PDA

View Full Version : trying to set up my USB 1.1 external one



Albretch
09-15-2005, 02:35 AM
Hi *,

I am trying to use my external drive's USB port to connect (mount) using Knoppix

I think it is a USB 1.1 Wiebitech one with a Maxtor Drive inside.

But I can not. What are the steps you need to go to enable my external drive?

Here is some system info for you in case you need it to troubleshoot my problem

Thanks

// __ what I get from dmesg
root@0[knoppix]# dmesg | grep 'usb'
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver ub
usbcore: registered new driver usb-storage
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver

root@0[knoppix]# dmesg | grep 'USB'
USB Universal Host Controller Interface driver v2.2
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Initializing USB Mass Storage driver...
USB Mass Storage support registered.
drivers/usb/input/hid-core.c: v2.0:USB HID core driver

root@0[knoppix]# dmesg | grep 'scsi'
ub: sizeof ub_scsi_cmd 64 ub_dev 2504
root@0[knoppix]# dmesg | grep 'SCSI'
SCSI subsystem initialized
Failed initialization of WD-7000 SCSI card!

root@0[knoppix]# dmesg | grep 'ohci'
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)

root@0[knoppix]# dmesg | grep 'PCI'
Allocating PCI resources starting at 40000000 (gap: 40000000:bec00000)
PCI: PCI BIOS revision 2.10 entry at 0xfb4d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router default [1106/3099] at 0000:00:00.0
VP_IDE: IDE controller at PCI slot 0000:00:11.1
PCI: Via PIC IRQ fixup for 0000:00:11.1, from 255 to 0
HPT372: IDE controller at PCI slot 0000:00:13.0
HPT37X: using 33MHz PCI clock
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
0000:00:08.0: 3Com PCI 3c905 Boomerang 100baseTx at 0xc000. Vers LK1.1.19

root@0[knoppix]# dmesg | grep 'pci'
VP_IDE: VIA vt8233 (rev 00) IDE UDMA100 controller on pci0000:00:11.1
options: [pci] [cardbus] [pm]

// __ devices /dev/s*
root@0[knoppix]# ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 Apr 14 2001 /dev/sda
brw-rw---- 1 root disk 8, 1 Apr 14 2001 /dev/sda1
brw-rw---- 1 root disk 8, 10 Apr 14 2001 /dev/sda10
brw-rw---- 1 root disk 8, 11 Apr 14 2001 /dev/sda11
brw-rw---- 1 root disk 8, 12 Apr 14 2001 /dev/sda12
brw-rw---- 1 root disk 8, 13 Apr 14 2001 /dev/sda13
brw-rw---- 1 root disk 8, 14 Apr 14 2001 /dev/sda14
brw-rw---- 1 root disk 8, 15 Apr 14 2001 /dev/sda15
brw-rw---- 1 root disk 8, 2 Apr 14 2001 /dev/sda2
brw-rw---- 1 root disk 8, 3 Apr 14 2001 /dev/sda3
brw-rw---- 1 root disk 8, 4 Apr 14 2001 /dev/sda4
brw-rw---- 1 root disk 8, 5 Apr 14 2001 /dev/sda5
brw-rw---- 1 root disk 8, 6 Apr 14 2001 /dev/sda6
brw-rw---- 1 root disk 8, 7 Apr 14 2001 /dev/sda7
brw-rw---- 1 root disk 8, 8 Apr 14 2001 /dev/sda8
brw-rw---- 1 root disk 8, 9 Apr 14 2001 /dev/sda9
brw-rw---- 1 root disk 8, 16 Apr 14 2001 /dev/sdb
...
brw-rw---- 1 root disk 8, 121 Apr 14 2001 /dev/sdh9

// __ from lsmod
root@0[knoppix]# lsmod | grep 'usb'
usbhid 42176 0
usb_storage 63296 0
usbcore 101496 7 usbhid,usb_storage,ub,ohci_hcd,uhci_hcd,ehci_hcd

root@0[knoppix]# lsmod | grep 'ohci'
ohci1394 33028 0
ieee1394 300600 2 sbp2,ohci1394
ohci_hcd 21896 0
usbcore 101496 7 usbhid,usb_storage,ub,ohci_hcd,uhci_hcd,ehci_hcd

// __ no disks
root@0[knoppix]# fdisk -l

// __ /etc/fstab
root@0[knoppix]# cat /etc/fstab
/proc /proc proc defaults 0 0
/sys /sys sysfs noauto 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
/dev/fd0 /mnt/auto/floppy auto user,noauto,exec,umask=000 0 0
/dev/cdrom /mnt/auto/cdrom auto user,noauto,exec,ro 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
noauto,users,exec 0 0

// __ just the Knoppix CD-ROM
root@0[knoppix]# cat /proc/partitions
major minor #blocks name

240 0 1966656 cloop0

Albretch
09-15-2005, 02:53 AM
root@0[knoppix]# usbview

I would get:

Can not open the file /proc/bus/usb/devices

Verify that you have USB compiled into your kernel, that the USN core modules loaded and have the usbdevfs filesystem mounted

rwcitek
09-15-2005, 12:31 PM
I am trying to use my external drive's USB port to connect (mount) using Knoppix
I think it is a USB 1.1 Wiebitech one with a Maxtor Drive inside.
But I can not. What are the steps you need to go to enable my external drive?
What version of Knoppix are you using? USB seems to be hit or miss depending on your version of Knoppix. See the bugs (http://www.knoppix.net/wiki/Bugs) page.

Regards,
- Robert
http://www.cwelug.org

Albretch
09-15-2005, 01:58 PM
Well, I am using Knoppix version 3.9 and on the Bugs parade

http://www.knoppix.net/wiki/Bugs/3.9-2005-05-27

I don't see anything specific about problems trying to attach -USB external drives-, even though they talk about problems while booting from USB CD/DVD-ROMs and with USB pens, keys and flash drives

I am sure that people do things like that all the time to back up data. Or?

Thanks
Albretch

rwcitek
09-15-2005, 02:24 PM
I am sure that people do things like that all the time to back up data. Or?
I've noticed some speed issues with external USB devices. For example, I've attached an external USB2 drive and tried to copy data to it. I was getting write speeds of about 0.5 MB/s. When I attached the same drive via FireWire, I was able to get speeds of around 10+ MB/s. Since then I've stuck to FireWire. This was with Knoppix 3.8.2. So things may be different with other versions.

To troubleshoot your issue, boot into text mode with boot: knoppix 3 then run these commands:

lsmod > /tmp/lsmod.1
dmesg -c > /dev/null
Now plug in your external USB drive and run these commands:

lsmod > /tmp/lsmod.2
dmesg
diff -y /tmp/lsmod.?
Can you post the output from the last dmesg and diff commands?

Regards,
- Robert
http://www.cwelug.org

Albretch
09-16-2005, 04:43 AM
> I've noticed some speed issues with external USB devices ...
A: Same thing with me. I wonder what the reason for this is?
I will le t you about K 3.9 after I test it

I did try to do things the exact way you told me but when I
tried to run X (startx) to be able to go online via a browser
and email you back, my computer froze.

There I go:

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ mount (initially)
knoppix@0[knoppix]$ su
/dev/root on / type ext2 (rw)
/dev/hdc on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=814512k)
/UNIONFS on /UNIONFS type unionfs (rw,noatime,dirs=/ramdisk=rw:/KNOPPIX=ro)
/UNIONFS/dev/pts on /UNIONFS/dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw,devmode=0666)
automount(pid1968) on /mnt/auto type autofs (rw,fd=4,pgrp=1968,minproto=2,maxproto=4)
/UNIONFS/dev/fd0 on /mnt/auto/floppy type vfat (rw,nosuid,nodev,uid=1000,gid=1000,umask=000)

// __ lsmod > /mnt/floppy/usb/lsmod1.txt

// __ cat /mnt/floppy/usb/lsmod1.txt
Module Size Used by
msdos 10880 0
autofs4 18820 1
af_packet 20104 0
es1371 35520 0
soundcore 11104 1 es1371
gameport 7552 1 es1371
ac97_codec 20108 1 es1371
3c59x 42024 0
mii 7808 1 3c59x
via_agp 11264 1
agpgart 30512 1 via_agp
via_ircc 22036 0
irda 118584 1 via_ircc
crc_ccitt 5888 1 irda
parport_pc 38596 0
parport 33480 1 parport_pc
8250 41692 0
serial_core 21120 1 8250
usbhid 42176 0
pcmcia 21776 0
yenta_socket 21896 0
rsrc_nonstatic 12160 1 yenta_socket
pcmcia_core 42272 3 pcmcia,yenta_socket,rsrc_nonstatic
apm 22252 1
genrtc 12060 0
unionfs 109944 1
cloop 18848 1
sbp2 24456 0
ohci1394 33028 0
ieee1394 300600 2 sbp2,ohci1394
usb_storage 63296 0
ub 18332 0
ohci_hcd 21896 0
uhci_hcd 31376 0
ehci_hcd 31752 0
usbcore 101496 7 usbhid,usb_storage,ub,ohci_hcd,uhci_hcd,ehci_hcd
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ dmesg -c > /dev/null

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ external USB drive plugged in

// __ mount (/proc/bus/usb) Is this it?
knoppix@0[knoppix]$ su
root@0[knoppix]# mount
/dev/root on / type ext2 (rw)
/dev/hdc on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=814432k)
/UNIONFS on /UNIONFS type unionfs (rw,noatime,dirs=/ramdisk=rw:/KNOPPIX=ro)
/UNIONFS/dev/pts on /UNIONFS/dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw,devmode=0666)
automount(pid1964) on /mnt/auto type autofs (rw,fd=4,pgrp=1964,minproto=2,maxproto=4)

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ lsmod > /mnt/floppy/usb/lsmod2.txt

// __ cat /mnt/floppy/usb/lsmod2.txt

Module Size Used by
msdos 10880 0
autofs4 18820 1
af_packet 20104 0
es1371 35520 0
soundcore 11104 1 es1371
gameport 7552 1 es1371
ac97_codec 20108 1 es1371
3c59x 42024 0
mii 7808 1 3c59x
via_agp 11264 1
agpgart 30512 1 via_agp
via_ircc 22036 0
irda 118584 1 via_ircc
crc_ccitt 5888 1 irda
parport_pc 38596 0
parport 33480 1 parport_pc
8250 41692 0
serial_core 21120 1 8250
usbhid 42176 0
pcmcia 21776 0
yenta_socket 21896 0
rsrc_nonstatic 12160 1 yenta_socket
pcmcia_core 42272 3 pcmcia,yenta_socket,rsrc_nonstatic
apm 22252 1
genrtc 12060 0
unionfs 109944 1
cloop 18848 1
sbp2 24456 0
ohci1394 33028 0
ieee1394 300600 2 sbp2,ohci1394
usb_storage 63296 0
ub 18332 0
ohci_hcd 21896 0
uhci_hcd 31376 0
ehci_hcd 31752 0
usbcore 101496 7 usbhid,usb_storage,ub,ohci_hcd,uhci_hcd,ehci_hcd

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ dmesg

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ diff -y /mnt/floppy/usb/lsmod?.txt > /mnt/floppy/usb/diff-lsmod_.txt

// __ cat /mnt/floppy/usb/diff-lsmod_.txt

Module Size Used by Module Size Used by
msdos 10880 0 msdos 10880 0
autofs4 18820 1 autofs4 18820 1
af_packet 20104 0 af_packet 20104 0
es1371 35520 0 es1371 35520 0
soundcore 11104 1 es1371 soundcore 11104 1 es1371
gameport 7552 1 es1371 gameport 7552 1 es1371
ac97_codec 20108 1 es1371 ac97_codec 20108 1 es1371
3c59x 42024 0 3c59x 42024 0
mii 7808 1 3c59x mii 7808 1 3c59x
via_agp 11264 1 via_agp 11264 1
agpgart 30512 1 via_agp agpgart 30512 1 via_agp
via_ircc 22036 0 via_ircc 22036 0
irda 118584 1 via_ircc irda 118584 1 via_ircc
crc_ccitt 5888 1 irda crc_ccitt 5888 1 irda
parport_pc 38596 0 parport_pc 38596 0
parport 33480 1 parport_pc parport 33480 1 parport_pc
8250 41692 0 8250 41692 0
serial_core 21120 1 8250 serial_core 21120 1 8250
usbhid 42176 0 usbhid 42176 0
pcmcia 21776 0 pcmcia 21776 0
yenta_socket 21896 0 yenta_socket 21896 0
rsrc_nonstatic 12160 1 yenta_socket rsrc_nonstatic 12160 1 yenta_socket
pcmcia_core 42272 3 pcmcia,yenta_socket,rsrc_nons pcmcia_core 42272 3 pcmcia,yenta_socket,rsrc_nons
apm 22252 1 apm 22252 1
genrtc 12060 0 genrtc 12060 0
unionfs 109944 1 unionfs 109944 1
cloop 18848 1 cloop 18848 1
sbp2 24456 0 sbp2 24456 0
ohci1394 33028 0 ohci1394 33028 0
ieee1394 300600 2 sbp2,ohci1394 ieee1394 300600 2 sbp2,ohci1394
usb_storage 63296 0 usb_storage 63296 0
ub 18332 0 ub 18332 0
ohci_hcd 21896 0 ohci_hcd 21896 0
uhci_hcd 31376 0 uhci_hcd 31376 0
ehci_hcd 31752 0 ehci_hcd 31752 0
usbcore 101496 7 usbhid,usb_storage,ub,ohci_hc usbcore 101496 7 usbhid,usb_storage,ub,ohci_hc

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// __ But I still don't see anything in the drive even though when I take the drive out of the case and cable it in:

root@0[knoppix]# mount -t vfat /dev/hda /mnt/hda -o ro
root@0[knoppix]# cd /mnt/hda
root@0[hda]# ls -l
total 728
drwxr-xr-x 6 root root 4096 Sep 1 15:29 Apps
drwxr-xr-x 3 root root 4096 Sep 1 17:40 BIOSUpdate
drwxr-xr-x 2 root root 4096 Sep 1 17:40 CleanAfter
drwxr-xr-x 4 root root 4096 Sep 1 17:45 DBs
drwxr-xr-x 2 root root 4096 Sep 1 17:46 Dev
drwxr-xr-x 3 root root 4096 Sep 1 15:29 JApps
drwxr-xr-x 406 root root 32768 Sep 1 20:18 LclWb
drwxr-xr-x 22 root root 4096 Sep 1 21:12 Misc
drwxr-xr-x 3 root root 4096 Sep 1 22:03 Recycled
drwxr-xr-x 3 root root 4096 Sep 1 15:41 Roaming
drwxr-xr-x 6 root root 4096 Sep 1 15:41 System Volume Information
drwxr-xr-x 4 root root 4096 Sep 1 15:43 __Inst
drwxr-xr-x 3 root root 4096 Sep 1 16:43 __Mail
drwxr-xr-x 6 root root 4096 Sep 1 15:29 __ReInstall__
drwxr-xr-x 8 root root 4096 Sep 1 17:08 __Wrk
drwxr-xr-x 3 root root 4096 Sep 1 15:29 __Yasmina
drwxr-xr-x 4 root root 4096 Sep 1 15:29 __iso
drwxr-xr-x 3 root root 4096 Sep 1 15:29 __run
drwxr-xr-x 12 root root 4096 Sep 1 15:29 __sec
drwxr-xr-x 7 root root 4096 Sep 1 17:08 __t__
drwxr-xr-x 4 root root 4096 Sep 1 15:29 cml
drwxr-xr-x 5 root root 4096 Sep 1 15:29 data-tree
drwxr-xr-x 14 root root 4096 Sep 1 17:46 deltree
drwxr-xr-x 13 root root 4096 Sep 1 15:29 eTexts
-r-xr-xr-x 1 root root 521728 Jun 23 18:28 findpart.exe
-r-xr-xr-x 1 root root 1038 Jun 23 18:28 findpart.txt
-r-xr-xr-x 1 root root 2512 Sep 6 11:00 findpart_end.txt
-r-xr-xr-x 1 root root 2327 Sep 2 11:22 findpart_end.txt~
-r-xr-xr-x 1 root root 28672 Jun 23 18:28 fpart467.dll
-r-xr-xr-x 1 root root 15159 Jun 23 18:28 fpart467.lib
-r-xr-xr-x 1 root root 7384 Jun 23 18:28 fpart467.vxd
drwxr-xr-x 39 root root 12288 Sep 6 10:31 gates
drwxr-xr-x 3 root root 4096 Sep 1 22:03 mkdosfs
drwxr-xr-x 2 root root 4096 Sep 1 22:04 temp
drwxr-xr-x 2 root root 4096 Sep 1 22:04 test
drwxr-xr-x 42 root root 4096 Sep 1 15:41 yyyymmdd_

// __ when I opened the file browser
root@0[hda]# konqueror

I could see all files without a problem

// __ df -h
root@1[knoppix]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.4M 13K 3.4M 1% /
/dev/hdc 696M 696M 0 100% /cdrom
/dev/cloop 1.9G 1.9G 0 100% /KNOPPIX
/ramdisk 796M 6.4M 789M 1% /ramdisk
/UNIONFS 2.7G 1.9G 789M 71% /UNIONFS
/UNIONFS/dev/fd0 1.4M 93K 1.3M 7% /mnt/auto/floppy
/UNIONFS/dev/hda 75G 53G 23G 71% /mnt/hda

Thanks
Albretch

rwcitek
09-16-2005, 07:10 AM
Thanks for all the detail. But I only needed the ouput of the dmesg and the diff.


dmesg
Nothing? Interesting. That means that Knoppix isn't even seeing the device when it is plugged in.




diff -y /mnt/floppy/usb/lsmod?.txt
Module Size Used by Module Size Used by
msdos 10880 0 msdos 10880 0
autofs4 18820 1 autofs4 18820 1
af_packet 20104 0 af_packet 20104 0
...
Given the dmesg output, I'm not surpirsed that no new modules were loaded.


// __ But I still don't see anything in the drive even though when I take the drive out of the case and cable it in:
/ __ when I opened the file browser

I could see all files without a problem

So if you hook up the drive via IDE cables, Knoppix recognizes the drive just fine and is able to mount the partition on it. But Knoppix does not recognize the drive via the USB. Right? If so, this narrows the problem down to the following areas:
- the drive enclosure
- the cable
- the USB card
- the driver for the USB card
- the driver for the USB drive

The first three are hardware issues, while the last two are software. How do you know that the enclosure, the cable, and the card work? This may sound like a silly question, but is the drive turned on when you plug the drive into the USB port?

As for the software drivers, try booting with boot: knoppix 3 and type the following commands:

rmmod ub
rmmod usb-storage
dmesg -c > /dev/null
modprobe usb-storage
lsmod > /tmp/lsmod.1

Now plug your drive in to the USB port and type these commands:

lsmod > /tmp/lsmod.2
( set -x
lspci
dmesg
diff /tmp/lsmod.?
) > /tmp/post.txt

Please post back the contents of /tmp/post.txt.

Reagards,
- Robert
http://www.cwelug.org

Albretch
09-16-2005, 05:29 PM
// __ OK, here is the output

0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP]
0000:00:08.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
0000:00:0b.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233 PCI to ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:13.0 RAID bus controller: Triones Technologies, Inc. HPT366/368/370/370A/372 (rev 05)
0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 82)
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

// __ there is something I don't quite get thoug. IfI go 'mount' I am getting

/dev/root on / type ext2 (rw)
/dev/hdc on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=814512k)
/UNIONFS on /UNIONFS type unionfs (rw,noatime,dirs=/ramdisk=rw:/KNOPPIX=ro)
/UNIONFS/dev/pts on /UNIONFS/dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw,devmode=0666)
automount(pid1968) on /mnt/auto type autofs (rw,fd=4,pgrp=1968,minproto=2,maxproto=4)
/UNIONFS/dev/fd0 on /mnt/auto/floppy type vfat (rw,nosuid,nodev,uid=1000,gid=1000,umask=000)

which apparently mounted the external USN drive in "/proc/bus/usb", bu when I go /proc/bus/usb/ls -l,

I see nothing?!

// __ ... and yes, I have been switching on andd off my drive ;-)

THanks

rwcitek
09-16-2005, 08:30 PM
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP]
0000:00:08.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
0000:00:0b.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233 PCI to ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:13.0 RAID bus controller: Triones Technologies, Inc. HPT366/368/370/370A/372 (rev 05)
0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 82)
Where's your USB card? You should have an entry similar to this:

# lspci | grep -i usb
0000:00:09.0 USB Controller: Unknown device 2955:6e61 (rev 11)

Going back to my previous post: How do you know that the enclosure, the cable, and the card work?

Regards,
- Robert
http://www.cwelug.org

Zoltan
09-18-2005, 08:40 PM
>Going back to my previous post: How do you know that the enclosure, the cable, and the card work?

I have the same problem.

Knoppix DVD 4.0 ran fine, and recognized a FAT pendrive.

Then I tried adding an external Maxtor USB formatted with 3 Linux partitons and one big FAT partition made with Partition Magic.
I tried the pivot_root install.
That worked (except I can't get out of Nautilus to KWindows <can now>, and Gnome gives me a "Knoppix unreachable" error.)
Firefox and Thunderbird both work running from the DVD and using pivot_root.

The FAT pendrive works fine in both configurations. <no it doesn't, only from DVD, not pivot_root drive> I do have myconfig and PH on the pendrive...

But the external USB drive <fat partition> doesn't. The error is "mount: mount point /mnt/uba1 does not exist" (It shows a pendrive icon in Konqueror; and QTParted shows 9 partitions, of which 5-9 are the ones I want to access)

<Actually, uba5 and uba6 (linux partitions) do mount, but using pivot_root, ubb1 and uba9 (FAT partitions) don't (mount wrong FS type)

The external drive works fine when I boot to WindowsXP, so enclosure, cable, and card are fine.

<AND everything works fine with Kanotix...>

rwcitek
09-19-2005, 06:59 AM
But the external USB drive <fat partition> doesn't. The error is "mount: mount point /mnt/uba1 does not exist"
Boot knoppix without the USB drive attached. Then type this in a root terminal window:

dmesg -c > /dev/null
Attach your USB drive and type the following code:

( set -x
uname -va
cat /etc/knoppix-version
lspci
dmesg
cat /proc/partitions
) >& post.txt

Please post the output of post.txt

Regards,
- Robert
http://www.cwelug.org

Zoltan
09-19-2005, 07:35 PM
Can't do this. Don't know enought about Linux.

Did it once when I switched to 'shell 2 ?' as root, but couldn't copy the post.txt to ubb1 (not writeable)
When I switched to shell 5 (the GUI), in which I know how to make ubb1 writeable, couldn't find post.txt from shell 2.
Tried again in GUI shell console; dmesg -c > /dev/null 'Operation not permitted'; tried again with su, but don't know enough to make that work.

Best I can tell uname -va produced Linux Knoppix 2.6.11 #2 SMP
lspci produced two USB controllers and a hub.
cat /proc/partitions showed ubb1 (the pendrive), and ubba (the external Maxtor) 5,6,7 (linux partitions)
but NOT the one I really need, uba9, the large FAT32 partition.
dmesg is 14k (I assume your first instruction would clear that, but I can't make it work).
I do see one line "FAT: invalid media value (0xb9); VFS: Can't find a valid FAT filesystem on dev hda"
That's the NTFS windows "C:\" drive; I can read from it fine.

And in my first try with Kanotix, everything appears to be working fine (uba9 is accessible)
<well, not everything. I can't figure out how to load myconfig...and the two USB devices, while accessible, seem to switch places after a reboot.>

Zoltan
09-20-2005, 12:35 AM
OK, figured out a way:

+ uname -va
Linux Knoppix 2.6.11 #2 SMP Thu May 26 20:53:11 CEST 2005 i686 GNU/Linux
+ cat /etc/knoppix-version
4.0 2005-06-08
+ lspci
0000:00:00.0 Host bridge: Intel Corp. 82830 830 Chipset Host Bridge (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82830 830 Chipset AGP Bridge (rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 41)
0000:00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 01)
0000:00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 01)
0000:00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio Controller (rev 01)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
0000:02:04.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:02:05.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
0000:02:06.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 01)
0000:02:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 41)
+ dmesg
usb 1-1: new full speed USB device using uhci_hcd and address 2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.2: new full speed USB device using uhci_hcd and address 3
uba: device 3 capacity nsec 490234752 bsize 512
uba: device 3 capacity nsec 490234752 bsize 512
uba: uba1 < uba5 uba6 uba7 >
usb 1-1.4: new full speed USB device using uhci_hcd and address 4
ubb: device 4 capacity nsec 501759 bsize 512
ubb: device 4 capacity nsec 501759 bsize 512
ubb: ubb1
+ cat /proc/partitions
major minor #blocks name

3 0 58605120 hda
3 1 58597056 hda1
240 0 5251136 cloop0
240 2 4175616 cloop2
180 0 245117376 uba
180 1 1 uba1
180 5 10241406 uba5
180 6 10241406 uba6
180 7 1028128 uba7
180 8 250879 ubb
180 9 250574 ubb1

It's ubb9 (the big FAT partition) that I need to get at.
I've found problems with Kanotix, too, but it mounts that partition just fine.

rwcitek
09-20-2005, 01:17 AM
OK, figured out a way
Excellent. And thanks for posting back.


0000:00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 01)
Knoppix recognizes your USB card. That's good.


uba: uba1 < uba5 uba6 uba7 >
ubb: ubb1
Knoppix found both USB devices. That's good, too.


180 0 245117376 uba
180 1 1 uba1
180 5 10241406 uba5
180 6 10241406 uba6
180 7 1028128 uba7
180 8 250879 ubb
180 9 250574 ubb1
Knoppix sees most but not all of your partitions. I'm wondering if this is a limitation of the USB driver trying to act like a SCSI device. IIRC, SCSI drives can have only 8 partitions. If that hold true for USB also, then you would not have any partitions 8 or higher. I hope I'm mistaken. I'll play around with my USB and FW drives to see if I can partition my drives similar to the way you have yours.

In the mean time, have a look at the partition table of uba:

fdisk -l /dev/uba
Does that list all the partitions?


It's ubb9 (the big FAT partition) that I need to get at.
I've found problems with Kanotix, too, but it mounts that partition just fine.
What happens if you try to mount it manually? That is:

mkdir /mnt/uba9
mount /dev/uba9 /mnt/uba9
ls -la /mnt/uba9
df -HT /mnt/uba9

Regards,
- Robert
http://www.cwelug.org

Zoltan
09-20-2005, 02:01 AM
]Excellent. And thanks for posting back.

Well, I'm the one who's asking for help...


fdisk -l /dev/uba

Does that list all the partitions?

Yes, it does. So does QParted, and they show up when I boot with Kanotix.


What happens if you try to mount it manually? That is:
Code:
mkdir /mnt/uba9
mount /dev/uba9 /mnt/uba9
ls -la /mnt/uba9
df -HT /mnt/uba9

su first...I'm learning

after mount /dev/uba9 /mnt/uba9 I get "special device /dev/uba9 does not exist"


Knoppix sees most but not all of your partitions. I'm wondering if this is a limitation of the USB driver trying to act like a SCSI device. IIRC, SCSI drives can have only 8 partitions. If that hold true for USB also, then you would not have any partitions 8 or higher.

I've tried disconnecting the USB devices one at a time; no change.
Knoppix just doesn't like that big FAT partition (although Kanotix has no trouble with it)

Albretch
09-21-2005, 04:15 PM
So you are saying that kanotix

http://distrowatch.com/table.php?distribution=kanotix

had no issues handling FAT FAT32 partitions from external USB drives?

THis is my problem too

I wasn't able to solve my problems. I had a technician tell me that I had to plug the USB drive before knoppix boots, which made me wonder what was the idea then of using a USB device.

Let me try kanotix then

I have noticed lots of problems with USB/Firewire devices with my knoppix distro 3.9

I am still wondering if there is anyone outthere using knoppix with external devices.

Albretch

Zoltan
09-21-2005, 06:00 PM
So you are saying that kanotix

http://distrowatch.com/table.php?distribution=kanotix

had no issues handling FAT FAT32 partitions from external USB drives?

That's right, athough I've had problems with Kanotix saving a configuration.

I have two USB devices attached to a laptop during boot, a FAT16 pendrive and an external 250GB Maxtor.

The external Maxtor wound up with 8 partitions, although I only created 4 Linux partitions and one FAT32 partition.

Both are recognized by both Knoppix and Kanotix. The FAT32 partition on the Maxtor is recognized by Knoppix (QParted shows all of them), but I can't seem to get it mounted.

Kanotix mounted all of them.

I'm looking at /dev and /etc/fstab to try to figure out the difference; but I need to spend some time on a linux book first.

What I'm trying to do is create an external drive that will RUN Linux (probably has to initially BOOT from a CD/DVD) without wrting anything to the Windows C:\ drive.

Albretch
09-22-2005, 06:36 PM
Actually I have a Maxtor Drive too (a MAXTOR 6L080J4, ATA one) inside a wiebetech enclosure with 2 Firewire connectors and one USB one.

After burning a kanotix copy (I liked it already, for some reason it is faster than Knoppix!! (and I don't think that the reason is that the default lang of most applications is German :?, which by the way I speak))

I got some info from

http://wiki.kanotix.net/CoMa.php?CoMa=usb-storage

but it appears to be for digital cameras only?

I see the LED on the drive reacting and running /etc/hotplug/usb/usb-storage, shows me

knoppix@1[knoppix]$ cat /var/log/hotplug/usb-storage.log
PRODUCT=5ab/60/1101
KERNEL=2.6.11-kanotix-11
find_partitions_26: Device not found in 25000 ms
Device not found
---
TYPE=usb
ACTION=add
PRODUCT=5ab/60/1101
INTERFACE=8/6/80
DEVICE=/proc/bus/usb/001/003
DEVPATH=/devices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:2.0
REMOVER=/var/run/usb/%proc%bus%usb%001%003
us_DEFAULTUID=1000
us_PARTITIONS=
us_SPECIALICON=camera
us_SPECIALNAME=camera
us_STORAGEICON=usbpendrive_mount
us_VERSION=20050718-devel

Then I tried a number of things, none of which worked

Could you tell me exactly how is it you mounted you external ATA drive using kanotix?

Thanks
Albretch

Zoltan
09-22-2005, 10:45 PM
After burning a kanotix copy (I liked it already, for some reason it is faster than Knoppix!! (and I don't think that the reason is that the default lang of most applications is German Confused, which by the way I speak))

I' auch. Bin aber Schwab, kann also kein Deutsch schreiben ;-)


Could you tell me exactly how is it you mounted you external ATA drive using kanotix?


I plugged it in.

Actually, it's plugged in when I boot.

In my case, both Knoppix and Kanotix recognized the USB device(s). On one laptop, I have two Maxtors (One-Touch), on the other, a Maxtor and a pendrive.

My problem is that Knoppix doesn't recognize the FAT partition on one of the Maxtors, while Kanotix does.
Both Knoppix and Kanotix recognize the single NTFS partition on the C:\ drives and the Linux partitions. Both recognize the single FAT16 partition on the Pendrive. Robert has speculated that I may have too many partitions on the drive Knoppix won't read, and I'm beginning to think he may be right. I tried deleting one with QTParted, but it wouldn't let me. I'll probably try deleting one in Windows eventually.

But at the moment I'm working my way through O'Reilly's "Running Linux"; there's too much I don't understand yet.[/quote]

Albretch
09-23-2005, 11:00 AM
> Actually, it's plugged in when I boot.

What is then the fun of having a hotpluggable drive when you must have it plugged when you boot?

Albretch

Zoltan
09-24-2005, 05:44 PM
I downloaded the Knoppix 4.01 DVD image.

At first impression, everything now seems to work, including that elusive FAT32 partition on the external USB drive.

Zoltan
09-25-2005, 05:22 AM
I downloaded the Knoppix 4.01 DVD image.

At first impression, everything now seems to work, including that elusive FAT32 partition on the external USB drive.

...and FWIW, I plugged in a pendrive to the running system, and it was recognized.

Now I've got to get it to recognize the USB CDROM as well.
Actually, it does, but both CDRom entries refer to the same CDRom.