Linux Mount Usb Pen Drive In Linux Server Machine Shell Command
linux mount usb pen drive in linux server machine shell command
linux, mount, usb, pen, drive, in, linux, server, machine, shell, command
Linux Mount Usb Pen Drive In Linux Server Machine Shell Command
Post Description: linux mount usb pen drive in linux server machine shell command
POST# 230
Posted On: Fri Feb 29, 2008 12:01 pm
web hosting
Topic: 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


Mon Jun 18, 2007 10:56 pm
1
G.Naveen
Reply #747
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
Mon Jun 25, 2007 9:05 am
2
paulo
Reply #748
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
Sun Jul 01, 2007 10:50 am
3
webune
Reply #749
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
Tue Jul 03, 2007 3:32 pm
4
Eric
Reply #750
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.
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
Sat Mar 08, 2008 11:14 pm
6
kamal
Reply #752
hi am kamal i very keen to a linux op system
thanks for your guidnesness.

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload