<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Error454</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Error454"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Error454"/>
	<updated>2026-05-01T17:40:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=14055</id>
		<title>Mounting Files and Devices as USB Mass Storage</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=14055"/>
		<updated>2011-03-16T00:36:39Z</updated>

		<summary type="html">&lt;p&gt;Error454: Added link to an open source node.js project that uses these details.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Background==&lt;br /&gt;
Devices running WebOS use a usb mass storage driver written by Mike Lockwood in 2008.  The driver source can be found in the following location in the source tree:&amp;lt;br&amp;gt;&lt;br /&gt;
linux-2.6.24/drivers/usb/gadget/f_mass_storage.c&lt;br /&gt;
&lt;br /&gt;
This driver calls '''DEVICE_ATTR''' to create a file named &amp;quot;file&amp;quot; in sysfs.  When the sysfs file entry is written to, the function '''store_file()''' is called within the driver.  '''store_file()''' will mount the file or device that is passed in as an argument.&lt;br /&gt;
&lt;br /&gt;
==Mounting Examples==&lt;br /&gt;
The following examples illustrate how to use this special file, you must be root since the &amp;quot;file&amp;quot; entry has permissions 644.&lt;br /&gt;
&lt;br /&gt;
'''Mount /media/internal'''&amp;lt;br&amp;gt;&lt;br /&gt;
echo /dev/mapper/store-media &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&lt;br /&gt;
&lt;br /&gt;
'''Create a 256 MB image and mount it'''&amp;lt;br&amp;gt;&lt;br /&gt;
dd if=/dev/zero of=/media/internal/test.img bs=1M count=256&amp;lt;br&amp;gt;&lt;br /&gt;
echo /media/internal/test.img &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
There are numerous applications that could benefit from using this feature.  Many game consoles write to generic fat16/32 partitions, unfortunately they typically want to format the entire partition for their use.  Using this method, a game console CAN format the entire partition (2nd example above) without wiping out precious user data.&lt;br /&gt;
&lt;br /&gt;
==Sample Service==&lt;br /&gt;
A node.js service for WebOS 2.x that implements the base functionality to mount user-specified files can be found [http://gitorious.org/usb-mass-storage-tools-service here]&lt;/div&gt;</summary>
		<author><name>Error454</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=13649</id>
		<title>Mounting Files and Devices as USB Mass Storage</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=13649"/>
		<updated>2011-03-06T05:13:55Z</updated>

		<summary type="html">&lt;p&gt;Error454: Fixed section header and grammar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Background==&lt;br /&gt;
Devices running WebOS use a usb mass storage driver written by Mike Lockwood in 2008.  The driver source can be found in the following location in the source tree:&amp;lt;br&amp;gt;&lt;br /&gt;
linux-2.6.24/drivers/usb/gadget/f_mass_storage.c&lt;br /&gt;
&lt;br /&gt;
This driver calls '''DEVICE_ATTR''' to create a file named &amp;quot;file&amp;quot; in sysfs.  When the sysfs file entry is written to, the function '''store_file()''' is called within the driver.  '''store_file()''' will mount the file or device that is passed in as an argument.&lt;br /&gt;
&lt;br /&gt;
==Mounting Examples==&lt;br /&gt;
The following examples illustrate how to use this special file, you must be root since the &amp;quot;file&amp;quot; entry has permissions 644.&lt;br /&gt;
&lt;br /&gt;
'''Mount /media/internal'''&amp;lt;br&amp;gt;&lt;br /&gt;
echo /dev/mapper/store-media &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&lt;br /&gt;
&lt;br /&gt;
'''Create a 256 MB image and mount it'''&amp;lt;br&amp;gt;&lt;br /&gt;
dd if=/dev/zero of=/media/internal/test.img bs=1M count=256&amp;lt;br&amp;gt;&lt;br /&gt;
echo /media/internal/test.img &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
There are numerous applications that could benefit from using this feature.  Many game consoles write to generic fat16/32 partitions, unfortunately they typically want to format the entire partition for their use.  Using this method, a game console CAN format the entire partition (2nd example above) without wiping out precious user data.&lt;/div&gt;</summary>
		<author><name>Error454</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=13603</id>
		<title>Mounting Files and Devices as USB Mass Storage</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=13603"/>
		<updated>2011-03-05T04:18:43Z</updated>

		<summary type="html">&lt;p&gt;Error454: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Mounting Files and Devices as USB Mass Storage =&lt;br /&gt;
==Background==&lt;br /&gt;
Devices running WebOS use a usb mass storage driver written by Mike Lockwood in 2008.  The driver source can be found in the following location in the source tree:&amp;lt;br&amp;gt;&lt;br /&gt;
linux-2.6.24/drivers/usb/gadget/f_mass_storage.c&lt;br /&gt;
&lt;br /&gt;
This driver calls '''DEVICE_ATTR''' to create a file named &amp;quot;file&amp;quot; in sysfs.  When the sysfs entry is written to, the function '''store_file()''' is called within the driver.  This function will mount the file or device that is passed in.&lt;br /&gt;
&lt;br /&gt;
==Mounting Examples==&lt;br /&gt;
The following examples illustrate how to use this file, you must be root since the &amp;quot;file&amp;quot; entry has permissions 644.&lt;br /&gt;
&lt;br /&gt;
'''Mount /media/internal'''&amp;lt;br&amp;gt;&lt;br /&gt;
echo /dev/mapper/store-media &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&lt;br /&gt;
&lt;br /&gt;
'''Create a 256 MB image and mount it'''&amp;lt;br&amp;gt;&lt;br /&gt;
dd if=/dev/zero of=/media/internal/test.img bs=1M count=256&amp;lt;br&amp;gt;&lt;br /&gt;
echo /media/internal/test.img &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
There are numerous applications that could benefit from using this feature.  Many game consoles write to generic fat16/32 partitions, unfortunately they typically want to format the entire partition for their use.  Using this method, a game console CAN format the entire partition (2nd example above) without wiping out the entire partition.&lt;/div&gt;</summary>
		<author><name>Error454</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=13601</id>
		<title>Mounting Files and Devices as USB Mass Storage</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Mounting_Files_and_Devices_as_USB_Mass_Storage&amp;diff=13601"/>
		<updated>2011-03-05T04:17:00Z</updated>

		<summary type="html">&lt;p&gt;Error454: initial page creation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Mounting Files and Devices as USB Mass Storage =&lt;br /&gt;
==Background==&lt;br /&gt;
Devices running WebOS use a usb mass storage driver written by Mike Lockwood in 2008.  The driver source can be found in the following location in the source tree:&amp;lt;br&amp;gt;&lt;br /&gt;
linux-2.6.24/drivers/usb/gadget/f_mass_storage.c&lt;br /&gt;
&lt;br /&gt;
This driver calls '''DEVICE_ATTR''' to create a file named &amp;quot;file&amp;quot; in sysfs.  When the sysfs entry is read, the function '''store_file()''' is called within the driver.  This function will mount the file or device that is passed in.&lt;br /&gt;
&lt;br /&gt;
==Mounting Examples==&lt;br /&gt;
The following examples illustrate how to use this file, you must be root since the &amp;quot;file&amp;quot; entry has permissions 644.&lt;br /&gt;
&lt;br /&gt;
'''Mount /media/internal'''&amp;lt;br&amp;gt;&lt;br /&gt;
echo /dev/mapper/store-media &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&lt;br /&gt;
&lt;br /&gt;
'''Create a 256 MB image and mount it'''&amp;lt;br&amp;gt;&lt;br /&gt;
dd if=/dev/zero of=/media/internal/test.img bs=1M count=256&amp;lt;br&amp;gt;&lt;br /&gt;
echo /media/internal/test.img &amp;gt; /sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0/file&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
There are numerous applications that could benefit from using this feature.  Many game consoles write to generic fat16/32 partitions, unfortunately they typically want to format the entire partition for their use.  Using this method, a game console CAN format the entire partition (2nd example above) without wiping out the entire partition.&lt;/div&gt;</summary>
		<author><name>Error454</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Portal:Research&amp;diff=13599</id>
		<title>Portal:Research</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Portal:Research&amp;diff=13599"/>
		<updated>2011-03-05T03:38:21Z</updated>

		<summary type="html">&lt;p&gt;Error454: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__notoc__&lt;br /&gt;
{{portal-header|&lt;br /&gt;
The Research Portal is for bleeding edge things being done with the device. &lt;br /&gt;
&lt;br /&gt;
Title all pages: '''Research [description]''' or '''Reference [description]'''&lt;br /&gt;
}}&lt;br /&gt;
{{portal-two-columns&lt;br /&gt;
|column1=&lt;br /&gt;
===Research:===&lt;br /&gt;
&lt;br /&gt;
* [[Applications Bundled on the Pre]]&lt;br /&gt;
* [[Application_Framework|Application Framework]]&lt;br /&gt;
* [[Application Signing|Application Signing]]&lt;br /&gt;
* [[Blocking Updates]]&lt;br /&gt;
* [[New Bluetooth|BlueZ (Replacing Palm Bluetooth)]]&lt;br /&gt;
* [[Bluetooth Network Connection]]&lt;br /&gt;
* [[Boot_Chain|Boot Chain]]&lt;br /&gt;
* [[Bootie]]&lt;br /&gt;
* [[Carrier Configuration]]&lt;br /&gt;
* [[ClassicFilesystem]]&lt;br /&gt;
* [[Decrypt SSL (trusted man-in-the-middle technique)|Decrypt SSL (trusted man-in-the-middle technique)]]&lt;br /&gt;
* [[Easter Eggs|Easter Eggs]]&lt;br /&gt;
* [[FirstUse Application Functionality]]&lt;br /&gt;
* [[Fonts available on board the Pre]]&lt;br /&gt;
* [[Gstreamer]]&lt;br /&gt;
* [[Hidd]]&lt;br /&gt;
* [[Introspecting_Dbus|Introspecting Dbus]]&lt;br /&gt;
* [[Key Codes|Key Codes]] &lt;br /&gt;
* [[Media API|Media API]]&lt;br /&gt;
* [[Mounting Files and Devices as USB Mass Storage]]&lt;br /&gt;
* [[Network Management|Network Management]]&lt;br /&gt;
* [[Advanced Wifi|Advanced Wireless LAN]]&lt;br /&gt;
* [[OpenGL|OpenGL research]]&lt;br /&gt;
* [[OpenGL_Triangle_of_Doom|OpenGL coding and demo Triangle of Doom]]&lt;br /&gt;
* [[Pre Specific Hash Codes|Pre Specific Hash Codes]]&lt;br /&gt;
* [[Research_Pre_Keyboard | Pre keyboard scancodes and keycodes]]&lt;br /&gt;
* [[Proximity Sensor]] &lt;br /&gt;
* [[Pictures from Self-Test|Pictures from Self-Test]] &lt;br /&gt;
* [[PmIpcDispatch|PmIpcDispatch to talk to palm IPC servers]]&lt;br /&gt;
* [[Restore Debug Log|Restore Debug Log]] &lt;br /&gt;
* [[Reverse_Engineering_WebOS_Doctor|Reverse Engineering WebOS Doctor]]&lt;br /&gt;
* [[Rooted Pre Issues|Rooted Pre Issues]] &lt;br /&gt;
* [[Research_Securing_Pre|Securing your Pre]]&lt;br /&gt;
* [[Running Processes|Running Processes]] &lt;br /&gt;
* [[Symlink Applications|Symlink Applications]] &lt;br /&gt;
* [[System Sounds|System Sounds]] &lt;br /&gt;
* [[TestApps|TestApps]] &lt;br /&gt;
* [[Facebook timezone issue|The annoying Facebook timezone issue]]&lt;br /&gt;
* [[Update Service Trace|Update Service Trace]] &lt;br /&gt;
* [[Tidbits|Tidbits]] &lt;br /&gt;
* [[VideoRecording]]&lt;br /&gt;
* [[WebOS Exploration - Various Information|WebOS Exploration - Various Information]] &lt;br /&gt;
* [[Research_Pre_GSM_Modem | Pre GSM modem device informations]]&lt;br /&gt;
* [[Research_Pre_GSM_Modem_Protocol | Pre GSM modem protocol informations]]&lt;br /&gt;
* [[Research_Pre_Audio | Audio routing and setup on the Pre]]&lt;br /&gt;
* [[Research_mpt | MSM modem passthru mode ]]&lt;br /&gt;
* [[Research_Pre_Boot_Process | Boot process]]&lt;br /&gt;
* [[LibSDL Research| SDL LibSDL research which lead to Quake and Doom running]]&lt;br /&gt;
* [[LibPDL Research| PDL LibPDL research ties into palm's device hooks]]&lt;br /&gt;
* [[Unofficial networks compatiblity list]]&lt;br /&gt;
* [[Research_kernel_Tuning | Research [kernel tuning]]]&lt;br /&gt;
* [[Touchscreen]]&lt;br /&gt;
* [[Java Support in webOS]]&lt;br /&gt;
* [[Chrooting | Methods of chrooting in webOS]]&lt;br /&gt;
&lt;br /&gt;
|column2=&lt;br /&gt;
===Reference===&lt;br /&gt;
* [[Packaging Standards|Packaging Standards]]&lt;br /&gt;
* [[webkit_transform|Webkit Transform]]- a powerful set of commands for manipulating elements.&lt;br /&gt;
* [http://www.mobileforensicsworld.org/2010/presentations/MFW10_JHU_PalmPrePhoneForensics.pdf webOS Forensics Using the Palm Pre Plus] : a lot of useful informations on webOS.&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Error454</name></author>
	</entry>
</feed>