Post Description: linux mount usb pen drive in linux server machine shell command
This Post Has Been Viewed 1446 Times Since Fri Feb 29, 2008 12:01 pm Posted By web hosting with 6 replies
POST# 230
Posted On: Fri Feb 29, 2008 12:01 pm
hi, my name is hostman, i am with webune.com support, and one of the frequently asked questions from customers is how do they mount a usb pendrive into a linux machine. if you have windows, its easy, but how do you mount one in linux. well, i'll give you the answer for free just as long as you can remember that WEBUNE.COM has excellent Dedicated Server Services, ok.
ok, so here we go.
first, insert the pindrive into the usb port.
then go into the shell command and typ this command to create a usb directory where you can mount your pendrive device:
mkdir /mnt/usb
now that you created a directory called usb in your /mnt directory, its time to mount your usb device into the /mnt/usb directory and you do it with this command:
mount -t auto /dev/sda1 /mnt/usb
now, you can list all the files in your usb pen drive with this command:
ls /mnt/usb
its that easy. please let me know if this helps.
Webune.com Support - World Class IT Support
Tue Jul 03, 2007 3:48 pm
5
webune
Reply #751
i had the same problem, i don't know of any command, but this is what i did.
fist disconnect your USB, then send the command to list all my devices:
COMMAND:
ls /dev/
you will get a list of all the devices. so copy and paste the results into a text editor like notepad
Now connect your USB, wait like 30 seconds to make sure the system registers it in the /dev direcory and then send tha command again:
COMMAND:
ls /dev/
now compare the before list and after list, which ever device was not on the first list you know that's how your system is calling it?
i don't know what else to tell you, but this is what i did and that's how i was able to find out.
go to this post to see how i did it:
http://www.wallpaperama.com/forums/linux-mount-usb-pen-drive-in-linux-server-machine-shell-command-t714.html