Slackware 10 & USB 2.0

Discussion in 'Linux & BSD' started by desie, Nov 2, 2004.

  1. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Hi all I have managed to get Slackware 10 installed on a spare 10GB drive :D. Well It detected my XP SP2 hard drive great and I can read it all so NTFS browsing is ok. However I have an 80GB USB 2.0 7200RPM (8MB cache) external hard drive manufactured by Lacie. I have tried to enable the following in the control center of KDE 3.2.3 (System Aministration>Linux Kernel):

    Support for USB (tick)
    Preliminary USB device filesystem (tick)
    EHCI HCD (USB 2.0) support (EXPERIMENTEL) (tick)
    USB Mass Storage Support (tick)

    And of course theres all the default USB stuff ticked or compiled as a module at Slackware install. Once I applied the changes as root it told me to run "make sysmlinks dep" in /usr/src/linux so I did all of that and rebooted Slackware.

    Nothing appears in /mnt/ that relates to USB, do you know were I could find the drive or have I missed somthing? The filesystem is FAT32 (do I have to add support for that somewere?) and my hardware is in my Sig. Hope you can help thanks. PS kernel version is 2.4.26
     
  2. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    You have to mount it.

    mkdir /mnt/usbdrive
    mount -t vfat /dev/sda1 /mnt/usbdrive
     
  3. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Thanks ill try that another time, for some reason slackware froze so I'm now in XP but next time ill try it thanks.
     
  4. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    mount: /dev/sda1 is not a valid block device

    After doing the "mount -t vfat /dev/sda1 /mnt/usbdrive" command
     
  5. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    k, you are going to have to figure out what the drive is listed as. Do you have hotplugging enabled in the kernel? If so, you could do this:

    tail -f /var/log/messages

    When you hotplug the harddrive it should output something like:

    kernel: Attached scsi disk sda1 at scsi1, channel 0, id 0, lun 0

    Note the sda1 line, it may be different for you.
     
  6. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Hi thanks for that info I will try it next time I'm in Slackware. In XP atm, don't know if this is any help I doubt it :p.
     

    Attached Files:

  7. Xie

    Xie - geek - Subscribed User Folding Team

    Messages:
    5,275
    Location:
    NY, USA
    Yeah you would need support for FAT32 in your kernel I believe.
     
  8. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    VFAT support there by default, if it wasn't you would get a different error like filesystem not supported by kernel. The windows info doesn't do any good. You need to figure out what device the USB is listed as in linux. Should be /dev/sda or /dev/sda1
     
  9. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    I think I got it mounted it but when I access /mnt/usbdrive it just says access denied to usbdrive is it because I mounted it as root or using Konqueror without root?
     
  10. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    I managed to look inside the drive when I was loged in as root. However in my normal account trying to mount it just says,

    mount -t vfat /dev/sda1/mnt/usbdrive
    mount: only root can do that
     
  11. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    What you need to do is as root:


    chmod 777 /mnt/usbdrive
    mount ....

    login as user

    go to /mnt/usbdrive

    now it should work.
     
  12. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    To mount it as a normal user, you would have to edit your /etc/fstab file, add this:

    Code:
    /dev/sda1                /mnt/usbdrive     vfat            noauto,users            0 0
     
  13. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    I did what both of you guys said and it don't show any files now :(.
     
  14. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    It's sda1 like you guys said and I did everything you said X-Istence and j79zlr but still get access denied as a normal user (in a termnial). In a file browser just shows no files.
     
  15. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Anyone help me Im in Slackware now :confused:
     
  16. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Sorry Desie, but Linux is not really my area. In FreeBSD you chmod it to 777, chown it to the right user, then as root mount the drive, and all files under the mount point will be chmod 777 and chown'ed to the right user, so that they can be viewed.

    here is what i run for my 256 MB key:

    mkdir /usbstick
    chmod 777 /usbstick
    chown xistence:xistence /usbstick
    mount .... /usbstick

    open up Konq, and browse to /usbstick. Done.
     
  17. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Grrr this is so annoying :(
     
  18. Xie

    Xie - geek - Subscribed User Folding Team

    Messages:
    5,275
    Location:
    NY, USA
    I'm not a guru but it didn't look like you made the mount point above before trying to chmod/chown it. Also you would chown it to whatever user you use (ie . desie:desie) .. unless of course you do login as " User ". :)
     
  19. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    Ok back to how it was when it was working in root. I just get access denied in a normal user. Tried everything you guys said.
     

    Attached Files:

  20. desie

    desie OSNN Senior Addict

    Messages:
    307
    Location:
    England
    So no one can help me then?