Linux Mount Usb Pen Drive In Linux Server Machine Shell Command
Linux Mount Usb Pen Drive In Linux Server Machine Shell Command
Post Description:
Post Tags: linux, mount, usb, pen, drive, in, linux, server, machine, shell, command
This Post Has Been Viewed 3001 Times Since Mon May 21, 2007 8:33 pm Posted By hostman with 8 replies
| 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
Leave Your Comments [ dejar commentarios ]
Comments and replies About Linux Mount Usb Pen Drive In Linux Server Machine Shell Command
:: 1 :: #7190 - Reply By G.Naveen On Mon Jun 18, 2007 10:56 pm
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
:: 2 :: #8117 - Reply By paulo On Mon Jun 25, 2007 9:05 am
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
:: 3 :: #9108 - Reply By webune On Sun Jul 01, 2007 10:50 am
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
:: 4 :: #9495 - Reply By Eric On Tue Jul 03, 2007 3:32 pm
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.
:: 5 :: #9499 - Reply By webune On Tue Jul 03, 2007 3:48 pm
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 :: 6 :: #44785 - Reply By kamal On Sat Mar 08, 2008 11:14 pm
hi am kamal i very keen to a linux op system
thanks for your guidnesness.
:: 7 :: #61930 - Reply By Niroshan On Tue Jul 15, 2008 11:16 pm
hi i am a person who like to get familier with linux language . tahnks for your tip. i will try ur code.
:: 8 :: #64276 - Reply By Hashim Ali On Thu Jul 31, 2008 10:20 pm
thanks, it is very easy commands