Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

how do i access a usb key in linux redhat?

  • 10-03-2005 05:23PM
    #1
    Registered Users, Registered Users 2 Posts: 2,623 ✭✭✭


    noob to linux and i need a hand.
    its probably blatently obvious but how do you access a usb key in linux Redhat?

    i need to use a program thats only available to me for use with linux and its on my usb key,
    it would probably be just as easy to burn a cd but i'd like to kno.

    thanks...


Comments

  • Closed Accounts Posts: 294 ✭✭eggshapedfred


    change to the root user (su -)
    then make a directory in /mnt (something like /mnt/usbdrive )

    then:
    mount /dev/sda1 /mnt/usbdrive

    you can set up fstab so that you only have to type
    mount /mnt/usbdrive
    to mount it. the fstab entry should be something like:
    /dev/sda1 /mnt/usbdrive vfat noauto,users 0 0

    if you only want to copy stuff from it this one time the first set of commands will do ya. if you want to set up fstab I'd check google as I'm not 100% on the fstab line...

    HTH


  • Registered Users, Registered Users 2 Posts: 2,623 ✭✭✭Panda


    thanks for the speedy reply, off to try it now.


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    Panda wrote:
    noob to linux and i need a hand.
    its probably blatently obvious but how do you access a usb key in linux Redhat?

    i need to use a program thats only available to me for use with linux and its on my usb key,
    it would probably be just as easy to burn a cd but i'd like to kno.

    thanks...

    In some versions, there may be an automount thing. Try doing "ls /mnt/removable", "ls /mnt/removable2","ls /mnt/usb1", "ls /mnt/usb1". It may just work :)

    Also, if you do have to do it manually, it may not be at /dev/sda if you have any other devices that Linux likes to believe are SCSI. Examples include PATA-RAID and all varieties of SATA. If sda doesn't work, try sdb, and so on.
    Rob.


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    Add the following line to /etc/fstab:
    /dev/sda1		/mnt/flash		vfat	noauto,defaults,user	0 0
    

    Then you just type "mount /dev/sda1" and it will mount to /mnt/flash.


Advertisement