Suse 9.0, 2.6 kernel and hotplug
Howdy folks, I've just ordered 9.1, but it's on back order. I'm hoping that will fix my problem of not getting a thumb drive (or a cd recorder) to work. The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work. So I went and got a thumb drive hoping I could just transfer data to it and then use dos (blech!) to burn cd's. Unfortunatly, thumb drives also use the scsi system for creating a virtual disk! After some mucking around I finally got the following in my /var/log/messages: May 20 21:21:34 linux /etc/hotplug/usb.agent[1872]: Bad USB agent invocation May 20 21:21:35 linux kdm[1816]: pam_unix2: session started for user drmike, service xdm May 20 21:21:35 linux resmgr[1117]: accepted connection from user root May 20 21:21:35 linux resmgr[1117]: disconnect from root May 20 21:21:37 linux kernel: Initializing USB Mass Storage driver... May 20 21:21:37 linux kernel: scsi0 : SCSI emulation for USB Mass Storage devices May 20 21:21:37 linux /sbin/hotplug[1954]: no runnable /etc/hotplug/scsi_host.agent is installed May 20 21:21:37 linux kernel: Vendor: Model: Memorex TD 2B Rev: 1.07 May 20 21:21:37 linux kernel: Type: Direct-Access ANSI SCSI revision: 02 May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: syntax error near unexpected token `>' May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: ` all) exec &> >(logger -t $0[$$]);;' May 20 21:21:37 linux kernel: SCSI device sda: 243712 512-byte hdwr sectors (125 MB) May 20 21:21:37 linux kernel: sda: assuming Write Enabled May 20 21:21:37 linux kernel: sda: assuming drive cache: write through May 20 21:21:37 linux /sbin/hotplug[1972]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux kernel: sda: sda1 May 20 21:21:37 linux kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 May 20 21:21:37 linux kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 May 20 21:21:37 linux /sbin/hotplug[1979]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux /sbin/hotplug[1981]: no runnable /etc/hotplug/scsi_generic.agent is installed May 20 21:21:37 linux kernel: WARNING: USB Mass Storage data integrity not assured May 20 21:21:37 linux kernel: USB Mass Storage device found at 2 May 20 21:21:37 linux kernel: drivers/usb/core/usb.c: registered new driver usb-storage May 20 21:21:37 linux kernel: USB Mass Storage support registered. May 20 21:21:37 linux /sbin/hotplug[1980]: no runnable /etc/hotplug/scsi_device.agent is installed May 20 21:21:38 linux /sbin/hotplug[1961]: disk at /devices/pci0000:00/0000:00:10.2/usb3/3-2/3-2:1.0/host0/0:0:0:0 Which looks like the kernel can see the drive. But when I try to mount it: linux:/sata0 # mount -t vfat /dev/sda /mnt/trek mount: wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems linux:/sata0 # mount -t fat /dev/sda /mnt/trek mount: fs type fat not supported by kernel The thumb drive has been written to by winxp, so it ought to be vfat. The fat fs type _is_ supported by the kernel, I can read floppies just fine. The kernel cold plugs the thumb drive, and reports it's attached to sda1. My fstab entry is: /dev/sda /mnt/trek vfat auto,users 0 0 It seems like I'm almost there, but I can't figure out what I'm missing. Anyone else figured this out, or do I just wait for 9.1 to show up and hope things will work? Any comments appreciated! Patience, persistence, truth, Dr. mike
--- Mike Rosing <eresrch@eskimo.com> schrieb: > Howdy folks,
I've just ordered 9.1, but it's on back order. I'm hoping that will fix my problem of not getting a thumb drive (or a cd recorder) to work.
The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work.
You could use the SCSI emulation for that ;-) There's a description how to do this at the SuSE FAQ pages...
So I went and got a thumb drive hoping I could just transfer data to it and then use dos (blech!) to burn cd's. Unfortunatly, thumb drives also use the scsi system for creating a virtual disk! After some mucking around I finally got the following in my /var/log/messages:
May 20 21:21:34 linux /etc/hotplug/usb.agent[1872]: Bad USB agent invocation May 20 21:21:35 linux kdm[1816]: pam_unix2: session started for user drmike, service xdm May 20 21:21:35 linux resmgr[1117]: accepted connection from user root May 20 21:21:35 linux resmgr[1117]: disconnect from root May 20 21:21:37 linux kernel: Initializing USB Mass Storage driver... May 20 21:21:37 linux kernel: scsi0 : SCSI emulation for USB Mass Storage devices May 20 21:21:37 linux /sbin/hotplug[1954]: no runnable /etc/hotplug/scsi_host.agent is installed May 20 21:21:37 linux kernel: Vendor: Model: Memorex TD 2B Rev: 1.07 May 20 21:21:37 linux kernel: Type: Direct-Access ANSI SCSI revision: 02 May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: syntax error near unexpected token `>' May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: ` all) exec &>
(logger -t $0[$$]);;' May 20 21:21:37 linux kernel: SCSI device sda: 243712 512-byte hdwr sectors (125 MB) May 20 21:21:37 linux kernel: sda: assuming Write Enabled May 20 21:21:37 linux kernel: sda: assuming drive cache: write through May 20 21:21:37 linux /sbin/hotplug[1972]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux kernel: sda: sda1 May 20 21:21:37 linux kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 May 20 21:21:37 linux kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 May 20 21:21:37 linux /sbin/hotplug[1979]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux /sbin/hotplug[1981]: no runnable /etc/hotplug/scsi_generic.agent is installed May 20 21:21:37 linux kernel: WARNING: USB Mass Storage data integrity not assured May 20 21:21:37 linux kernel: USB Mass Storage device found at 2 May 20 21:21:37 linux kernel: drivers/usb/core/usb.c: registered new driver usb-storage May 20 21:21:37 linux kernel: USB Mass Storage support registered. May 20 21:21:37 linux /sbin/hotplug[1980]: no runnable /etc/hotplug/scsi_device.agent is installed May 20 21:21:38 linux /sbin/hotplug[1961]: disk at
/devices/pci0000:00/0000:00:10.2/usb3/3-2/3-2:1.0/host0/0:0:0:0
Which looks like the kernel can see the drive. But when I try to mount it:
linux:/sata0 # mount -t vfat /dev/sda /mnt/trek mount: wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems linux:/sata0 # mount -t fat /dev/sda /mnt/trek mount: fs type fat not supported by kernel
The thumb drive has been written to by winxp, so it ought to be vfat. The fat fs type _is_ supported by the kernel, I can read floppies just fine.
The kernel cold plugs the thumb drive, and reports it's attached to sda1.
My fstab entry is: /dev/sda /mnt/trek vfat auto,users 0 0
It seems like I'm almost there, but I can't figure out what I'm missing. Anyone else figured this out, or do I just wait for 9.1 to show up and hope things will work?
Any comments appreciated!
Patience, persistence, truth, Dr. mike
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com
Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de
--- Mike Rosing <eresrch@eskimo.com> schrieb: > Howdy folks,
I've just ordered 9.1, but it's on back order. I'm hoping that will fix my problem of not getting a thumb drive (or a cd recorder) to work.
The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work.
You could use the SCSI emulation for that ;-) There's a description how to do this at the SuSE FAQ pages...
So I went and got a thumb drive hoping I could just transfer data to it and then use dos (blech!) to burn cd's. Unfortunatly, thumb drives also use the scsi system for creating a virtual disk! After some mucking around I finally got the following in my /var/log/messages:
May 20 21:21:34 linux /etc/hotplug/usb.agent[1872]: Bad USB agent invocation May 20 21:21:35 linux kdm[1816]: pam_unix2: session started for user drmike, service xdm May 20 21:21:35 linux resmgr[1117]: accepted connection from user root May 20 21:21:35 linux resmgr[1117]: disconnect from root May 20 21:21:37 linux kernel: Initializing USB Mass Storage driver... May 20 21:21:37 linux kernel: scsi0 : SCSI emulation for USB Mass Storage devices May 20 21:21:37 linux /sbin/hotplug[1954]: no runnable /etc/hotplug/scsi_host.agent is installed May 20 21:21:37 linux kernel: Vendor: Model: Memorex TD 2B Rev: 1.07 May 20 21:21:37 linux kernel: Type: Direct-Access ANSI SCSI revision: 02 May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: syntax error near unexpected token `>' May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: ` all) exec &>
(logger -t $0[$$]);;' May 20 21:21:37 linux kernel: SCSI device sda: 243712 512-byte hdwr sectors (125 MB) May 20 21:21:37 linux kernel: sda: assuming Write Enabled May 20 21:21:37 linux kernel: sda: assuming drive cache: write through May 20 21:21:37 linux /sbin/hotplug[1972]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux kernel: sda: sda1 May 20 21:21:37 linux kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 May 20 21:21:37 linux kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 May 20 21:21:37 linux /sbin/hotplug[1979]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux /sbin/hotplug[1981]: no runnable /etc/hotplug/scsi_generic.agent is installed May 20 21:21:37 linux kernel: WARNING: USB Mass Storage data integrity not assured May 20 21:21:37 linux kernel: USB Mass Storage device found at 2 May 20 21:21:37 linux kernel: drivers/usb/core/usb.c: registered new driver usb-storage May 20 21:21:37 linux kernel: USB Mass Storage support registered. May 20 21:21:37 linux /sbin/hotplug[1980]: no runnable /etc/hotplug/scsi_device.agent is installed May 20 21:21:38 linux /sbin/hotplug[1961]: disk at
/devices/pci0000:00/0000:00:10.2/usb3/3-2/3-2:1.0/host0/0:0:0:0
Which looks like the kernel can see the drive. But when I try to mount it:
linux:/sata0 # mount -t vfat /dev/sda /mnt/trek mount: wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems linux:/sata0 # mount -t fat /dev/sda /mnt/trek mount: fs type fat not supported by kernel
The thumb drive has been written to by winxp, so it ought to be vfat. The fat fs type _is_ supported by the kernel, I can read floppies just fine.
The kernel cold plugs the thumb drive, and reports it's attached to sda1.
My fstab entry is: /dev/sda /mnt/trek vfat auto,users 0 0
It seems like I'm almost there, but I can't figure out what I'm missing. Anyone else figured this out, or do I just wait for 9.1 to show up and hope things will work?
Any comments appreciated!
Patience, persistence, truth, Dr. mike
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com
Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de
--- Mike Rosing <eresrch@eskimo.com> schrieb: > Howdy folks,
I've just ordered 9.1, but it's on back order. I'm hoping that will fix my problem of not getting a thumb drive (or a cd recorder) to work.
The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work.
You could use the SCSI emulation for that ;-) There's a description how to do this at the SuSE FAQ pages...
So I went and got a thumb drive hoping I could just transfer data to it and then use dos (blech!) to burn cd's. Unfortunatly, thumb drives also use the scsi system for creating a virtual disk! After some mucking around I finally got the following in my /var/log/messages:
May 20 21:21:34 linux /etc/hotplug/usb.agent[1872]: Bad USB agent invocation May 20 21:21:35 linux kdm[1816]: pam_unix2: session started for user drmike, service xdm May 20 21:21:35 linux resmgr[1117]: accepted connection from user root May 20 21:21:35 linux resmgr[1117]: disconnect from root May 20 21:21:37 linux kernel: Initializing USB Mass Storage driver... May 20 21:21:37 linux kernel: scsi0 : SCSI emulation for USB Mass Storage devices May 20 21:21:37 linux /sbin/hotplug[1954]: no runnable /etc/hotplug/scsi_host.agent is installed May 20 21:21:37 linux kernel: Vendor: Model: Memorex TD 2B Rev: 1.07 May 20 21:21:37 linux kernel: Type: Direct-Access ANSI SCSI revision: 02 May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: syntax error near unexpected token `>' May 20 21:21:37 linux /sbin/hotplug[1961]: /etc/hotplug/scsi.agent: ./hotplug.functions: line 41: ` all) exec &>
(logger -t $0[$$]);;' May 20 21:21:37 linux kernel: SCSI device sda: 243712 512-byte hdwr sectors (125 MB) May 20 21:21:37 linux kernel: sda: assuming Write Enabled May 20 21:21:37 linux kernel: sda: assuming drive cache: write through May 20 21:21:37 linux /sbin/hotplug[1972]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux kernel: sda: sda1 May 20 21:21:37 linux kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 May 20 21:21:37 linux kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 May 20 21:21:37 linux /sbin/hotplug[1979]: no runnable /etc/hotplug/block.agent is installed May 20 21:21:37 linux /sbin/hotplug[1981]: no runnable /etc/hotplug/scsi_generic.agent is installed May 20 21:21:37 linux kernel: WARNING: USB Mass Storage data integrity not assured May 20 21:21:37 linux kernel: USB Mass Storage device found at 2 May 20 21:21:37 linux kernel: drivers/usb/core/usb.c: registered new driver usb-storage May 20 21:21:37 linux kernel: USB Mass Storage support registered. May 20 21:21:37 linux /sbin/hotplug[1980]: no runnable /etc/hotplug/scsi_device.agent is installed May 20 21:21:38 linux /sbin/hotplug[1961]: disk at
/devices/pci0000:00/0000:00:10.2/usb3/3-2/3-2:1.0/host0/0:0:0:0
Which looks like the kernel can see the drive. But when I try to mount it:
linux:/sata0 # mount -t vfat /dev/sda /mnt/trek mount: wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems linux:/sata0 # mount -t fat /dev/sda /mnt/trek mount: fs type fat not supported by kernel
The thumb drive has been written to by winxp, so it ought to be vfat. The fat fs type _is_ supported by the kernel, I can read floppies just fine.
The kernel cold plugs the thumb drive, and reports it's attached to sda1.
My fstab entry is: /dev/sda /mnt/trek vfat auto,users 0 0
It seems like I'm almost there, but I can't figure out what I'm missing. Anyone else figured this out, or do I just wait for 9.1 to show up and hope things will work?
Any comments appreciated!
Patience, persistence, truth, Dr. mike
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com
Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de
On Thu, May 20, 2004 at 08:10:59PM -0700, Mike Rosing wrote:
The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work.
Use cdrecord -dev=/dev/hdc ... -Andi
On Fri, 21 May 2004, Andi Kleen wrote:
On Thu, May 20, 2004 at 08:10:59PM -0700, Mike Rosing wrote:
The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work.
Use cdrecord -dev=/dev/hdc ...
That gave: TOC Type: 1 = CD-ROM scsidev: '/dev/hdc' devname: '/dev/hdc' scsibus: -2 target: -2 lun: -2 Warning: Open by 'devname' is unintentional and not supported. cdrecord: Permission denied. Cannot open '/dev/hdc'. Cannot open SCSI driver. So that didn't work. However: On Fri, 21 May 2004, Santiago Flores wrote:
on your mount statement, the correct behaviour is happening. Unfortunately, you cannot mount a device (unless you put a filesystem on the device). It is common practice, and Windows can't do otherwise, to create a partition and put a filesystem on that partition. Thus the command was: "mount -t vfat /dev/sda /mnt/trek" but should look like: "mount -t vfat /dev/sda1 /mnt/trek" or what ever the partition would be.
worked great! So I can now at least transfer data easily to a system that can burn a CD. Hopefully 9.1 for AMD64 will fix my system so everything works with 2.6 kernel, but at least I can easily limp now. Thanks for the help everyone - I really appreciate it! Patience, persistence, truth, Dr. mike
On Fri, May 21, 2004 at 07:21:40PM -0700, Mike Rosing wrote:
On Fri, 21 May 2004, Andi Kleen wrote:
On Thu, May 20, 2004 at 08:10:59PM -0700, Mike Rosing wrote:
The 2.6 kernel sees my cd as /dev/hdc, but cdrecord wants to see it as a scsi device. I can read cd's and dvd's just fine, but I can't get cdrecord to work.
Use cdrecord -dev=/dev/hdc ...
That gave: TOC Type: 1 = CD-ROM scsidev: '/dev/hdc' devname: '/dev/hdc' scsibus: -2 target: -2 lun: -2 Warning: Open by 'devname' is unintentional and not supported. cdrecord: Permission denied. Cannot open '/dev/hdc'. Cannot open SCSI driver.
So that didn't work. However: On Fri, 21 May 2004, Santiago Flores wrote:
On 9.0 you need an updated cdrecord for this. On 9.1 it should work out of the box. However on 9.1 ide-scsi is not recommended, always use the new method. -Andi
participants (3)
-
Andi Kleen
-
Franz Mach
-
Mike Rosing