View source
From Vandelay Wiki
for
USB Mount Unmount
Jump to:
navigation
,
search
After plugging in your flashdrive. Run the following command: <pre>grep "SCSI removable disk" /var/log/messages</pre> you should see something like the following <pre> Jun 16 23:48:58 raspberrypi kernel: sd 2:0:0:0: [sda] Attached SCSI removable disk</pre> The important part is the bit in the square brackets, in this case "sda" next enter the follwoing command to create a mount point: <pre>mkdir ~/myflashdrive</pre> then mount the drive by entering the following command (replace the x's with the results of the grep command you ran above e.g. sda): <pre>sudo mount -t vfat -o rw,users /dev/xxx1 ~/myflashdrive</pre> now you can change to the directory where you mounted your flash drive using the following command: <pre>cd ~/myflashdrive</pre> to list the contents of the directory enter the following command: <pre>ls -la</pre> When you are done and want to remove the flashdrive return to your home directory with the follwoing command (you can't unmount the drive if you are currently working in one of its directories.) <pre>cd ~</pre> this will take you back to your home directory. you can then use the following command to unmount the drive (note the spelling of the command): <pre>sudo umount ~/myflashdrive</pre> you can now safely remove your flashdrive.
Return to
USB Mount Unmount
.
Personal tools
Log in / create account
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Toolbox
What links here
Related changes
Special pages