LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-07-2007, 12:31 PM   #1
chike
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
Exclamation how do i get usb ports to show up on slackware 11?


I'm kinda stumped right now. I have 6 USB ports and 2 Firewire ports on my computer and I'm trying to get Slackware to mount them all. I'm using Slackware 11 with the 2.4 kernel, and I don't know where to begin in terms of adding USB ports onto the filesystem. Can someone help out? Thanks.
 
Old 10-07-2007, 01:02 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,749

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Try running blkid or fdisk -l to see if they are being recognized. I recently wrote a tool for kernel-2.4 which automunts usb drives....
 
Old 10-07-2007, 01:16 PM   #3
chike
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Okay I ran them both and here's what I got.
root@what:~# blkid
/dev/cdrom: TYPE="iso9660"
/dev/sda1: LABEL="" UUID="462A-4005" TYPE="vfat"
/dev/sda2: UUID="cb4f1752-261e-4512-a88e-7a88b35b9177" TYPE="ext2"
/dev/sda3: TYPE="swap"
root@what:~# fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 11738 94285453+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 11803 24321 100558867+ 83 Linux
/dev/sda3 11739 11802 514080 82 Linux swap

Partition table entries are not in disk order
root@what:~#

Doesn't seem to be any USB drives.

Do I have to manually add them?

Also, what's the tool that automounts them?
 
Old 10-07-2007, 01:18 PM   #4
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Can you switch to 2.6.x kernel? USB support in 2.6 is better than 2.4.
 
Old 10-07-2007, 01:25 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You do actually have USB devices plugged into those ports, right? I can't tell, because you refer to ports in your post and obviously you don't mount the ports :/.
 
Old 10-07-2007, 01:27 PM   #6
chike
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
I do have devices plugged in but I can't mount them. They don't show up in fstab.
 
Old 10-07-2007, 01:29 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The relevant partitions are not going to show up in fstab unless you add them. Does dmesg show the devices are being detected? Are the ports actually plugged into the motherboard?
 
Old 10-07-2007, 01:30 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
The command to mount a drive is 'mount <source> <destination>', so 'mount /dev/sda /mnt/tmp'. If you don't want to specify the destination on the command line, write an entry for it in '/etc/fstab'. Entries don't just magically appear in the 'fstab', you must put them there.

I usually like to use 'blkid' to see what drives are attached.
 
Old 10-07-2007, 01:37 PM   #9
chike
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Nylex View Post
The relevant partitions are not going to show up in fstab unless you add them. Does dmesg show the devices are being detected? Are the ports actually plugged into the motherboard?
dmesg shows this:
root@what:~# dmesg
driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
PCI: No IRQ known for interrupt pin A of device 02:04.0. Please try using pci=biosirq.
ohci1394: Failed to allocate shared interrupt 0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: No IRQ known for interrupt pin A of device 00:13.2. Please try using pci=biosirq.
hcd.c: Found HC with no IRQ. Check BIOS/PCI 00:13.2 setup!
PCI: No IRQ known for interrupt pin A of device 00:13.0. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
PCI: No IRQ known for interrupt pin A of device 00:13.1. Please try using pci=biosirq.
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-uhci.c: $Revision: 1.275 $ time 02:01:41 Sep 1 2006
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
scsi singledevice 4 0 0 0
scsi singledevice 4 0 1 0
scsi singledevice 4 0 2 0
scsi singledevice 4 0 3 0
scsi singledevice 4 0 4 0
scsi singledevice 4 0 5 0
scsi singledevice 4 0 6 0
scsi singledevice 4 0 7 0
scsi singledevice 0 0 0 0
scsi singledevice 0 0 1 0
scsi singledevice 0 0 2 0
scsi singledevice 0 0 3 0
scsi singledevice 0 0 4 0
scsi singledevice 0 0 5 0
scsi singledevice 0 0 6 0
scsi singledevice 0 0 7 0
scsi singledevice 1 0 0 0
scsi singledevice 1 0 1 0
scsi singledevice 1 0 2 0
scsi singledevice 1 0 3 0
scsi singledevice 1 0 4 0
scsi singledevice 1 0 5 0
scsi singledevice 1 0 6 0
scsi singledevice 1 0 7 0
scsi singledevice 2 0 0 1
scsi singledevice 2 0 0 2
scsi singledevice 2 0 0 3
scsi singledevice 2 0 0 4
scsi singledevice 2 0 0 5
scsi singledevice 2 0 0 6
scsi singledevice 2 0 0 7
scsi singledevice 2 0 1 0
scsi singledevice 2 0 2 0
scsi singledevice 2 0 3 0
scsi singledevice 2 0 4 0
scsi singledevice 2 0 5 0
scsi singledevice 2 0 6 0
scsi singledevice 2 0 7 0
scsi singledevice 3 0 0 0
scsi singledevice 3 0 1 0
scsi singledevice 3 0 2 0
scsi singledevice 3 0 3 0
scsi singledevice 3 0 4 0
scsi singledevice 3 0 5 0
scsi singledevice 3 0 6 0
scsi singledevice 3 0 7 0
spurious 8259A interrupt: IRQ7.

ok how would i go about putting the usb ports into etc/fstab?
 
Old 10-07-2007, 03:13 PM   #10
chike
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
ok i am stumped yet again

i put an entry for usb into etc/fstab, like so:
/dev/sda2 / ext2 defaults 1 1
/dev/sda1 /fat-c vfat defaults 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/usb1 /mnt/usb1 auto defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

i hope this is right

they brought up a "new device found" window, but when i run blkid i get this

root@what:~# blkid
/dev/cdrom: TYPE="iso9660"
/dev/sda1: LABEL="" UUID="462A-4005" TYPE="vfat"
/dev/sda2: UUID="cb4f1752-261e-4512-a88e-7a88b35b9177" TYPE="ext2"
/dev/sda3: TYPE="swap"
root@what:~#

what do i do to mount the device?
 
Old 10-07-2007, 11:57 PM   #11
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Have you created a udev rule to name one of your devices "usb1" (or made a symlink called "usb1" pointing to the actual device file)? The kernel isn't going to call your hard disks (or memory sticks, or whatever) "usb*". Anyway, if /dev/usb1 is valid, then you can just do "mount /dev/usb1". From your dmesg output though, it doesn't seem like the devices are detected. You can disconnect them, reconnect them and try dmesg immediately after doing so and show the results.
 
Old 10-08-2007, 01:37 AM   #12
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by chike View Post
dmesg shows this:
root@what:~# dmesg
driver usbdevfs
...
I don't see any device name usb1 in your dmesg. I doubt editing the fstab would fix your problem.

It has been a very long time since I last play with kernel 2.4, but AFAIK, you should be seeing a SCSI storage device. So, it should be an sdX device. From your dmesg output, I don't see it being detected by the kernel. There is no way you can switch to 2.6.x kernel?
 
Old 10-08-2007, 02:46 AM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Neither blkid or fdisk is for showing USB devices. Be careful of running commands someone gives you until you read it's manual page. For every command in a Linux system, you can read it's manual by issuing "man <command name>" in a terminal. For example:
Code:
mingdao@titus:~$ man lsusb
lsusb(8)                                         Linux USB Utilities                                         lsusb(8)

NAME
       lsusb - list USB devices

SYNOPSIS
       lsusb [ options ]

DESCRIPTION
       lsusb is a utility for displaying information about USB buses in the system and the devices connected to them.

       To make use of all the features of this  program,  you  need  to  have  a  Linux  kernel  which  supports  the
       /proc/bus/usb interface (e.g., Linux kernel 2.3.15 or newer).

OPTIONS
<snip>
You can issue "lsusb" to list USB devices.

Unplug all your USB devices and open a terminal. As root issue "tail -f /var/log/messages" and you can see the devices as they are detected; and you'll also know whether or not they're usable. After they show up and it says finished scanning, you can then issue "lsusb" as root and see them there.

USB works just fine in 2.4.x series kernels. Your /etc/fstab line:
Quote:
/dev/usb1 /mnt/usb1 auto defaults 0 0
is incorrect. USB devices are identified as:
/dev/sda (s=scsi, d=device, a=first device)
The numbers after sda, such as sda1, indicate the partitions of that device.

These mount points would be better in your /etc/fstab:
Code:
/dev/sda1       /usb1             vfat        noauto,users,rw  0   0
/dev/sdb1       /usb2             vfat        noauto,users,rw  0   0
That vfat entry is the filesystem. If you're using another filesystem, change it or try auto instead.

I choose the above and make directories for /usb1 and /usb2. Do that by issuing as root:
Code:
mkdir /usb1
mkdir /usb2
And then give them ownership and permissions as you desire. For my system I use:
Code:
chown mingdao.users /usb1
chown mingdao.users /usb2
to change the owner, and for permissions I use:
Code:
chmod 757 /usb1
chmod 757 /usb2
That allows me to mount the devices and read/write to them as a normal user -- no need to su to root except for system maintenance.

You should issue and read the following:
Code:
man fstab
man mount
And read this Quick and Dirty Guide to Linux File Permissions in our Linux Answers section.

Last edited by Bruce Hill; 10-08-2007 at 06:34 AM.
 
Old 10-08-2007, 02:50 AM   #14
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by chike View Post
ok i am stumped yet again

i put an entry for usb into etc/fstab, like so:
/dev/sda2 / ext2 defaults 1 1
/dev/sda1 /fat-c vfat defaults 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/usb1 /mnt/usb1 auto defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

i hope this is right

they brought up a "new device found" window, but when i run blkid i get this

root@what:~# blkid
/dev/cdrom: TYPE="iso9660"
/dev/sda1: LABEL="" UUID="462A-4005" TYPE="vfat"
/dev/sda2: UUID="cb4f1752-261e-4512-a88e-7a88b35b9177" TYPE="ext2"
/dev/sda3: TYPE="swap"
root@what:~#

what do i do to mount the device?
This is your drive:
/dev/sda1: LABEL="" UUID="462A-4005" TYPE="vfat"

Note the 'vfat' filesystem. So, you would mount it like:
Code:
mount /dev/sda1 /mnt/tmp
or you could put a line in fstab for it, something like:
Code:
/dev/sda1         /mnt/tmp      auto        noauto,owner     0   0
You can mount it anywhere, not just /mnt/tmp.
 
Old 10-08-2007, 02:56 AM   #15
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
I suspect that those entries he posted for sda1, sda2, and sda3 are his HARD DRIVE partitions, not USB drives. And iirc, the command "blkid" - command-line utility to locate/print block device attributes - only prints information on mounted block devices.

Last edited by Bruce Hill; 10-08-2007 at 06:33 AM. Reason: removed incorrect information posted
 
  


Reply

Tags
mount, slackware, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 10.2 recognizing usb ports Jedi_Jay87 Slackware 9 01-15-2008 12:09 AM
Slackware 12; dead USB ports after install Greased Lightning Slackware 3 07-06-2007 07:39 PM
USB 2.0 ports: devices not detected, but works fine with USB 1.1 ports (Kubuntu 6.06) KWTm Linux - Hardware 1 05-09-2007 04:42 AM
Missing USB Ports (Slackware) Poetics Linux - Hardware 2 01-11-2006 02:52 PM
my slackware does not configure my 8 USB ports? age-jan Linux - Newbie 2 01-07-2006 10:48 AM


All times are GMT -5. The time now is 12:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration