Wallpapers Forums Login

Linux Mount Usb Pen Drive In Linux Server Machine Shell Command

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
Hashim Thu Jul 31, 2008
thanks, it is very easy commands
Niroshan Tue Jul 15, 2008
hi i am a person who like to get familier with linux language . tahnks for your tip. i will try ur code.
kamal Sat Mar 08, 2008
hi am kamal i very keen to a linux op system
thanks for your guidnesness.
webune Tue Jul 03, 2007
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
Eric Tue Jul 03, 2007
hda1
hdb1
sda1
sda5
sdb1
sdb5
sdc1
sdc5
sdd1
sdd5
sde1
sde5 are used already.

i tried sdf1, and sdg1 sdh1 -- it tells me it's finished but i don't know what it did. i've tried disconnecting and reconnecting the usbs...

is there any way to tell the machine to tell me what/where the usb(s) might be? i.e. a command for the list of all hdd's...

back to the man pages... a usb is more difficult than i thought.
webune Sun Jul 01, 2007
ok,i followed your steps,
but on my machine it was sdb and sbd1.

so if you are trying and sda1 doesn't work, try sdb1
paulo Mon Jun 25, 2007
this is what i use:

cd /mnt
ls
// Check if usb directory exists
// if usb no,
mkdir usb
// else
cd usb
ls

mount -t auto /dev/sda1 /mnt/usb

cd /mnt/usb/

ls

thanks for this tips
G.Naveen Mon Jun 18, 2007
hai hostman,

this is naveen. by using the commands which r given by u to mount the pen drive it is not working in my system. what should i do to mount the pen drive in my system. clear me plsss
thanking you

with regards
naveen

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5