Thread: Mount pen drive
View Single Post
  #5   (View Single Post)  
Old 9th December 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by lucas34 View Post
My pen drive has 8GB.
So I think it would be sd0e,right?
No.
  • As jggimi has stated (& as seen in the output of dmesg(8)...), your USB device is connected as sd1.
  • Next, use disklabel(8) find the correct partition to mount:

    $ sudo disklabel sd1
  • If this USB drive is formatted as MS-DOS, usually this will be assigned to partition "i".
  • Once the correct partition has been identified, mount it with the following command:

    $ sudo mount -t msdos /dev/sd1i /mnt
  • Upon success, you should now see this in the output of df(1).
Partitions for foreign file systems are identified by the following algorithm:
  1. If not already assigned, pick the midpoint between "a" & "p" (which is "i").
  2. If partition "i" is already assigned, use the next available letter.

Last edited by ocicat; 9th December 2013 at 05:18 PM. Reason: Add algorithmic details.
Reply With Quote