Using a USB pen drive in Linux

tux-logo

USB pen drives / flash disks have become pretty popular and cheap. The newer distros automount these drives however in the older Linux distros one had to manually mount the USB drive in order to access its contents. Here’s how you can do it –

sudo mkdir /mnt/usbdisk

sudo mount /dev/sda1 /mnt/usbdisk

After this you can easily access the contents of your USB disk using cd /mnt/usbdisk The filesystem can also be specified by using the -t argument to the mount command. Do a man mount for more details on the mount command.

Advertisements

About synapse
Programming, motorcycles and photography. Want to do more, but only have time for so much!

10 Responses to Using a USB pen drive in Linux

  1. Alejandro says:

    in etch the usb is mounted automaticaly, you don’t need to do it everytime 🙂

  2. synapse says:

    Alejandro, quoting a part of post –
    “The newer distros automount these drives however in the older Linux distros one had to manually mount the USB drive in order to access its contents”

    The post was meant for users of older Linux distros like Redhat 9 etc. where USB pen drives wont automount. Anyways, thanks for sharing your knowledge!

  3. Alejandro says:

    oops, I’m sorry, somehow I didn’t saw that part!! 😕 *shame on me*

  4. Pingback: roulette rules

  5. Pingback: betting the middles

  6. Pingback: against all odds with guitar chords

  7. Pingback: casino club

  8. Pingback: mutual of omaha life insurance company

  9. Pingback: affordable term insurance quote

  10. G.Sridhar says:

    I cant able to open a pen drive. By using above commands i can open but it is showing like i am not authorised to see the file contants kindly suggest me a way to open the files .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: