Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manual USB mass storage mounting
07-11-2012, 12:46 PM (This post was last modified: 07-11-2012 02:05 PM by tavvva.)
Post: #1
Information Manual USB mass storage mounting
PREREQUISITE:
==============
USB host controller and USB mass storage support needs to be configured using the delisetup or usbconfig prior to the mounting. Both tools need to be executed from the root account.

--------------------------------------------------------------------------------------------------------------------------------------------

MOUNTING:
===========
1.) Unplug the USB mass storage device from the USB port (if it is plugged in)

2.) Become root
su

3.) Create a mountpoint (if it doesn't exist)
mkdir /mnt/usb-storage

4.) Make sure the sd_mod kernel module is loaded
modprobe sd_mod

5.) Insert the USB mass storage device into the USB port

6.) Check the list of SCSI devices and pick the last one (on the bottom) if there are more of them
dmesg | grep "SCSI device"

Example:
SCSI device sda: 7886848 512-byte hdwr sectors (4038 MB)


7.) List the available partitions on the selected device using the -l (small L) switch
fdisk -l /dev/sda

Example:
Disk /dev/sda: 4038 MB, 4038066176 bytes
174 heads, 3 sectors/track, 15108 cylinders
Units = cylinders of 522 * 512 = 267264 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 4 15102 3940352 c W95 FAT32 (LBA)


8.) Mount the selected partition under the previously created mountpoint
mount /dev/sda1 /mnt/usb-flash

Note: The USB mass storage content should be reachable under the /mnt/usb-flash directory from now

--------------------------------------------------------------------------------------------------------------------------------------------

UNMOUNTING:
=============

1.) Check if no application is using the /mnt/usb-flash mountpoint

2.) Make sure, that all your shells have the current directory set to any directory outside the mountpoint subtree
cd /

Note: you need to execute the above command only in the relevant shells

3.) Become root
su

4.) Umount the mountpoint
umount /mnt/usb-flash

5.) Wait for the command termination (that could take some time due to a cache flushing)

6.) If there was no error/warning after the previous step, you can safely remove the USB mass storage device from the port
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | DeLi(cate) Linux | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication