Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

usb drive on red hat

  • 25-06-2007 4:08pm
    #1
    Closed Accounts Posts: 532 ✭✭✭


    just started new job today,
    on red hat and i cant find where my usb drive is under red hat?

    i tried /dev/usb but its not there.

    any ideas?
    red hat seems to have found it since the usb key has the little green light flashing on it...
    thanks


Comments

  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    it's probably under /media or /mnt if automounted (likely) otherwise try to manually mount it....

    dmesg | tail and look for it's /dev (more often than not it's /dev/sdX) then mount it normally.


  • Closed Accounts Posts: 532 ✭✭✭slemons


    thanks for that.

    I still cant find it however.
    here is the output of dmesg | tail

    sda: test WP failed, assume Write Enabled
    sda: I/O error: dev 08:00, sector 0
    I/O error: dev 08:00, sector 0
    unable to read partition table
    hub.c: new USB device 00:1d.7-6, assigned address 3
    WARNING: USB Mass Storage data integrity not assured
    USB Mass Storage device found at 3
    SCSI device sda: 7966720 512-byte hdwr sectors (4079 MB)
    sda: Write Protect is off
    sda: sda1


    But when i do
    cd /dev/sda1/
    i get:
    /dev/sda1/ not a directory


    This article
    http://www.linux.com/base/ldp/howto/Flash-Memory-HOWTO/basics.htmlt

    seems to suggest that the usb key will be under /proc/scsi/usb-storage-0/
    and indeed i have such a folder but it doenst contain any of my data?

    Could this be because it is a fat32 drive?
    do i need to reformat for linux? I thought linux could read fat32?

    thanks!!


  • Closed Accounts Posts: 532 ✭✭✭slemons


    BUMP, can anyone help me out here please?
    all im trying to do is use a usb key under linux?

    Could it be that my work wont allow me permission to mount a usb key?
    Or is my key formatted in the wrong type. its fat32 in windows which shud be vfat in linux.
    help please?
    thanks
    john


  • Banned (with Prison Access) Posts: 3,073 ✭✭✭mickoneill30


    mkdir /mnt/usbkey
    mount /dev/sda1 /mnt/usbkey
    cd /mnt/usbkey


  • Registered Users, Registered Users 2 Posts: 1,636 ✭✭✭henbane


    mount -t vfat /dev/sda1 /mnt/tmp

    Then try and read tmp. That should mount it r+w for root.


  • Advertisement
  • Closed Accounts Posts: 68 ✭✭nuada


    or just pmount /dev/sda1
    which you can do as a normal user instead of as root


  • Closed Accounts Posts: 532 ✭✭✭slemons


    thanks for the help...
    but...

    i cant access /mnt to do

    [PHP]mkdir /mnt/usbkey
    mkdir: cannot create directory `/mnt/usbkey': Permission denied[/PHP]



    that ok i do this instead
    [PHP]mkdir ~/usbkey[/PHP]

    then

    [PHP]mount /dev/sda1 ~/usbkey
    mount: only root can do that[/PHP]

    so i cant mount anything unless im root, and thats not gonna happen soon

    i try pmount but its not installed.

    [PHP]pmount /dev/sda1 ~/usbkey
    pmount: Command not found.
    [/PHP]

    i tried

    [PHP]mount -t vfat /dev/sda1 ~/usbkey/
    mount: only root can do that[/PHP]


    so im out?
    any more ideas?

    thanks


  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    Looks like you might not have permission to use sda1

    Do a fdisk -l and see if the drive is being picked up

    and then

    mount -o /dev/sda1 or sdb1 /nameofmount


  • Closed Accounts Posts: 532 ✭✭✭slemons


    its being picked up alright

    [PHP]
    more /proc/scsi/usb-storage-0/3
    Host scsi3: usb-storage
    Vendor: Kingston
    Product: DataTraveler 2.0
    Serial Number: 5B721BA0B5E0
    Protocol: Transparent SCSI
    Transport: Bulk
    GUID: 13fe1d0000005b721ba0b5e0
    Attached: Yes[/PHP]


    But where is it? Do i have to mount it?


  • Closed Accounts Posts: 97 ✭✭koloughlin


    If you do either of the following it should show you if it already auto-mounted, and if so where
    mount
    

    or
    df -k
    


  • Advertisement
  • Closed Accounts Posts: 532 ✭✭✭slemons


    still no luck here.

    i cant use mount unless im root.

    and df -k gives nothing?

    any more ideas?
    or places i could go to ask for more help?
    thanks


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    slemons wrote:
    i cant use mount unless im root.

    That's right yeah. You'll need to change to root to mount the drive or use the sudo command (sudo allows you to run single commands as root, but you need to configure this on redhat).

    to switch to root use: su -
    then mount /dev/sda1 <directory of your choice that is empty>
    then exit (so you go back to yourself)
    then cd <the empty directory you chose above>
    and you should be able to see the contents

    Just to aid your understanding somewhat: /dev is where block devices are listed, but you need to mount those devices to a directory in order to be able to browse them.


  • Closed Accounts Posts: 532 ✭✭✭slemons


    thanks for that.

    but for me to become root i need a password which i dont have!

    is there any way to use a usb key without using mount?


Advertisement