Prev: Slack 11 'dnsmasq: failed to create listening socket: Address already in use
Next: 2.6.19.2 Kernel Headers
From: xspirix on 23 Nov 2006 19:07 Hi I have a sonyvaio (sz2m/b) on which I have successfully installed slackware 11. Everything went fine except that I cannot mount my memory stick duo. From the dmesg I can see that the driver is recognized by the kernel (2.6.18.1): Vendor: Sony Model: USB HS-CARD Rev: 4.52 Type: Direct-Access ANSI SCSI revision: 00 sd 2:0:0:0: Attached scsi removable disk sdb sd 2:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete It seems that it does not create the sdb1 device (sda is the sata hard disk for this laptop). I have tried also sdb and sg1 but it complaints about the filesystem type (even using the option -t). usb-storage and scsi related is built-in the kernel. Any help? probably udev issue ..? Thanks in advance Regards andrea
From: Eef Hartman on 24 Nov 2006 03:19 xspirix <andrea.spitaleri(a)gmail.com> wrote: > Hi > I have a sonyvaio (sz2m/b) on which I have successfully installed > slackware 11. Everything went fine except that I cannot mount my memory > stick duo. From the dmesg I can see that the driver is recognized by > the kernel (2.6.18.1): > > Vendor: Sony Model: USB HS-CARD Rev: 4.52 > Type: Direct-Access ANSI SCSI revision: 00 > sd 2:0:0:0: Attached scsi removable disk sdb > sd 2:0:0:0: Attached scsi generic sg1 type 0 > usb-storage: device scan complete It doesn't give a line like: sdb: sdb1 or sdb: unknown partition table (the first when the MBR contains a partition table, the second when it has been formatted as "superfloppy", so with the BOOT block on the place of the MBR). Then it probably doesn't recognize the MBR (Master Boot Record, the first block OF the device). That one should _either_ contain a partition table (with at least one partition) or a boot block - like a floppy does). What does "fdisk -l /dev/sdb" say? udev will only create sdb1 if: 1) a valid partition table has been recognized ON the sdb device and 2) that partition table contains an entry for partition 1 PS: I've reformatted my own memory stick to be "super-floppy" format, with vfat (fat32) file system), so my "dmesg" will give the 2nd line (2.6 kernel, the message in 2.4 was different) when recognizing my stick: sdb: unknown partition table as the boot block is NOT a valid partition table, and I have to mount the stick as /dev/sdb with vfat file system (PS: this is NOT the default, msdos normally precedes vfat). -- ******************************************************************** ** Eef Hartman, Delft University of Technology, dept. EWI/TW ** ** e-mail: E.J.M.Hartman(a)math.tudelft.nl, fax: +31-15-278 7295 ** ** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands ** ********************************************************************
From: xspirix on 24 Nov 2006 05:16 > What does "fdisk -l /dev/sdb" say? nothing ... without -l it says unable to open sdb (i am doing as root). however I created the device sdb1 with the command mknod sdb1 b 8 1 and I mounted it. I looked to this dir and there were data used from the sony to re-install the system in case of failure (some kind of hide partition since i cannot see even from windows). that is strange because the log says something different: less /proc/scsi/usb-storage/2 : Host scsi2: usb-storage Vendor: Sony Product: UMH-U09 Serial Number: F00000127325 Protocol: Transparent SCSI Transport: Bulk Quirks: and /dev/disk/by-id gives : lrwxrwxrwx 1 root root 9 2006-11-24 10:02 usb-Sony_USB_HS-CARD_F00000127325 -> ../../sdb lrwxrwxrwx 1 root root 9 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK -> .../../sda lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part6 -> ../../sda6 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part7 -> ../../sda7 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part9 -> ../../sda9 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part8 -> ../../sda8 lrwxrwxrwx 1 root root 10 2006-11-24 11:02 scsi-1ATA_ST98823AS_3PK-part1 -> ../../sda1 so it seems that sdb is the memory stick. Last (sorry for the long post) I paste my dmesg: ...... Initializing USB Mass Storage driver... scsi2 : SCSI emulation for USB Mass Storage devices usbcore: registered new driver usb-storage USB Mass Storage support registered. usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning .............. Vendor: Sony Model: USB HS-CARD Rev: 4.52 Type: Direct-Access ANSI SCSI revision: 00 sd 2:0:0:0: Attached scsi removable disk sdb sd 2:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete ................... mount sg0 or sg1 says : mount: sg0 (sg1) is not a block device thanks for the help andrea
From: Kees Theunissen on 24 Nov 2006 06:02 xspirix wrote: >> What does "fdisk -l /dev/sdb" say? > nothing ... > without -l it says unable to open sdb (i am doing as root). however I > created the device sdb1 with the command mknod sdb1 b 8 1 and I > mounted it. I looked to this dir and there were data used from the sony > to re-install the system in case of failure (some kind of hide > partition since i cannot see even from windows). that is strange > because the log says something different: You were looking at the first (hidden) partition of your hard disk. The name /dev/sdb1 is not used at all to select a disk or partition. The device type (block), major device number (8) and minor device number (1) is all that matters. And block device major 8 minor 1 is /dev/sda1 See /usr/src/linux/Documentation/devices.txt: 8 block SCSI disk devices (0-15) 0 = /dev/sda First SCSI disk whole disk 16 = /dev/sdb Second SCSI disk whole disk 32 = /dev/sdc Third SCSI disk whole disk ... 240 = /dev/sdp Sixteenth SCSI disk whole disk Partitions are handled in the same way as for IDE disks (see major number 3) except that the limit on partitions is 15. For /dev/sdb use minor 16, for /dev/sdb1 use minor 17, ..... But it should not be needed to do this manually. Regards, Kees. -- Kees Theunissen.
From: Eef Hartman on 24 Nov 2006 06:23 xspirix <andrea.spitaleri(a)gmail.com> wrote: > mount sg0 or sg1 says : > mount: sg0 (sg1) is not a block device No, sg (Scsi General) is a CHAR-type device, meant for low-level device control (like controlling tapes or CD-roms), the mountable device _should_ be either sdb (super-floppy format) or sdbX with X the partition number. But according to your dmesg the kernel doesn't recognize your memory stick as a "disk like" device, because it doesn't seem to read the MBR (as said before, it should give a message about sdb: <partitions> to show that it DID try to read the MBR. If the MBR is valid it SHOULD give such a message, so at the moment it seems that THIS memory stick is not usable with Linux (it is a kernel thing, not distribution dependant). This is what dmesg shows on my (Dane-Elec 2 GB, reformatted by myself) stick: usb 1-6: new high speed USB device using ehci_hcd and address 16 usb 1-6: configuration #1 chosen from 1 choice scsi10 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 16 usb-storage: waiting for device to settle before scanning Vendor: Dane-Elec Model: USB DRIVE Rev: 2.00 Type: Direct-Access ANSI SCSI revision: 02 ready SCSI device sdb: 4075520 512-byte hdwr sectors (2087 MB) sdb: Write Protect is off sdb: Mode Sense: 03 00 00 00 sdb: assuming drive cache: write through sdb: sdb1 sd 10:0:0:0: Attached scsi removable disk sdb sd 10:0:0:0: Attached scsi generic sg4 type 0 usb-storage: device scan complete This is with a 2.6 kernel, it will be a bit different with 2.4.* Note that it mentions sector and total size and the MBR info. My older (Genie, 512MB) "super-floppy" stick gives: usb 1-6: new high speed USB device using ehci_hcd and address 17 usb 1-6: configuration #1 chosen from 1 choice hub 1-6:1.0: USB hub found hub 1-6:1.0: 1 port detected usb 1-6.1: new high speed USB device using ehci_hcd and address 18 usb 1-6.1: configuration #1 chosen from 1 choice scsi11 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 18 usb-storage: waiting for device to settle before scanning Vendor: USB 2.0 Model: Flash Disk Rev: PROL Type: Direct-Access ANSI SCSI revision: 00 SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB) sdb: Write Protect is off sdb: Mode Sense: 00 06 00 00 sdb: assuming drive cache: write through sdb: unknown partition table sd 11:0:0:0: Attached scsi removable disk sdb sd 11:0:0:0: Attached scsi generic sg4 type 0 usb-storage: device scan complete -- ******************************************************************** ** Eef Hartman, Delft University of Technology, dept. EWI/TW ** ** e-mail: E.J.M.Hartman(a)math.tudelft.nl, fax: +31-15-278 7295 ** ** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands ** ********************************************************************
|
Next
|
Last
Pages: 1 2 Prev: Slack 11 'dnsmasq: failed to create listening socket: Address already in use Next: 2.6.19.2 Kernel Headers |