Linux mount usb pen drive in linux server machine shell command

Mobile
feeds
Welcome Login | Register

Linux mount usb pen drive in linux server machine shell command
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Linux Hosting Forums
        » » 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 Linux Hosting
Post Tags:
This Post Has Been Viewed 4269 Times Since Mon May 21, 2007 8:33 pm Author hostman with 8 replies
Linux mount usb pen drive in linux server machine shell command
Advertise On This Page




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

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : Linux mount usb pen drive in linux server machine shell command

Comments and replies About Linux mount usb pen drive in linux server machine shell command
:: 1 :: Reply #7190 Reply By G.Naveen On Mon Jun 18, 2007 10:56 pm
G.Naveen:
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 :: Reply #8117 Reply By paulo On Mon Jun 25, 2007 9:05 am
paulo:
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 :: Reply #9108 Reply By webune On Sun Jul 01, 2007 10:50 am
webune:
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 :: Reply #9495 Reply By Eric On Tue Jul 03, 2007 3:32 pm
Eric:
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 :: Reply #9499 Reply By webune On Tue Jul 03, 2007 3:48 pm
webune:
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 :: Reply #44785 Reply By kamal On Sat Mar 08, 2008 11:14 pm
kamal:
hi am kamal i very keen to a linux op system
thanks for your guidnesness.
:: 7 :: Reply #61930 Reply By Niroshan On Tue Jul 15, 2008 11:16 pm
Niroshan:
hi i am a person who like to get familier with linux language . tahnks for your tip. i will try ur code.
:: 8 :: Reply #64276 Reply By Hashim On Thu Jul 31, 2008 10:20 pm
Hashim:
thanks, it is very easy commands