• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Slackware 10 & USB 2.0

desie

OSNN Senior Addict
#1
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
 

desie

OSNN Senior Addict
#3
Thanks ill try that another time, for some reason slackware froze so I'm now in XP but next time ill try it thanks.
 

desie

OSNN Senior Addict
#4
mount: /dev/sda1 is not a valid block device

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

j79zlr

Glaanies script monkey
Political User
#5
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.
 

Xie

- geek -
#7
desie said:
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
Yeah you would need support for FAT32 in your kernel I believe.
 

j79zlr

Glaanies script monkey
Political User
#8
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
 

desie

OSNN Senior Addict
#9
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?
 

desie

OSNN Senior Addict
#10
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
 

j79zlr

Glaanies script monkey
Political User
#12
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
 

desie

OSNN Senior Addict
#14
Nov 18 17:52:05 localhost kernel: hub.c: new USB device 00:02.2-1, assigned address 4
Nov 18 17:52:08 localhost kernel: Initializing USB Mass Storage driver...
Nov 18 17:52:08 localhost kernel: usb.c: registered new driver usb-storage
Nov 18 17:52:08 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Nov 18 17:52:08 localhost kernel: sda: sda1
Nov 18 17:52:08 localhost kernel: USB Mass Storage support registered.
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.
 

X-Istence

*
Political User
#16
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.
 

desie

OSNN Senior Addict
#17
User@localhost:/mnt$ chmod 777 usbdrive
chmod: changing permissions of `usbdrive': Operation not permitted
User@localhost:/mnt$ su
Password:
root@localhost:/mnt# chmod 777 usbdrive
root@localhost:/mnt# chown User:User /usbdrive
chown: `User:User': invalid group
root@localhost:/mnt# chown User /usbdrive
chown: cannot access `/usbdrive': No such file or directory
root@localhost:/mnt# chown User:User /mnt/usbdrive
chown: `User:User': invalid group
root@localhost:/mnt# chown User /mnt/usbdrive
root@localhost:/mnt# mount /mnt/usbdrive
mount: /dev/sda1 is not a valid block device
root@localhost:/mnt#
Grrr this is so annoying :(
 
#18
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 ". :)
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,012
Latest member
Sierge