View previous topic :: View next topic |
Author |
Message |
electroarts Tux's lil' helper
Joined: 03 Jan 2004 Posts: 86
|
Posted: Fri Oct 14, 2005 4:51 pm Post subject: no /dev/sd* when connecting firewire drive[SOLVED!] |
|
|
EDIT: in my case, the inability format or mount the firewire drive was due to the kernel not recognizing the partition format. Because I am running PPC, the PC BIOS partition table support was turned off by default (AFAIK). Enabling it fixed the problem.
/EDIT
Howdy,
the kernel sees my firewire drive when it gets plugged in, and creates a SCSI ID for it, but I cannot get it to create a /dev/sd* node.
Code: | $ uname -a
Linux macumbista 2.6.12-gentoo-r10 #7 Sat Oct 8 20:47:59 CEST 2005 ppc 7447A, altivec supported PowerBook5,6 GNU/Linux |
Code: | # dmesg
ieee1394: Node resumed: ID:BUS[0-00:1023] GUID[00d04b281308c1ce]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
scsi10 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: WDC WD16 Model: 00JB-00GVC0 Rev: 08.0
Type: Direct-Access ANSI SCSI revision: 06
|
Code: | tail -f /var/log/messages
Oct 14 18:46:12 macumbista ieee1394: Node resumed: ID:BUS[0-00:1023] GUID[00d04b281308c1ce]
Oct 14 18:46:12 macumbista ieee1394: Node changed: 0-00:1023 -> 0-01:1023
Oct 14 18:46:12 macumbista scsi11 : SCSI emulation for IEEE-1394 SBP-2 Devices
Oct 14 18:46:13 macumbista ieee1394: sbp2: Logged into SBP-2 device
Oct 14 18:46:13 macumbista ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Oct 14 18:46:13 macumbista Vendor: WDC WD16 Model: 00JB-00GVC0 Rev: 08.0
Oct 14 18:46:13 macumbista Type: Direct-Access ANSI SCSI revision: 06
Oct 14 18:46:13 macumbista scsi.agent[31932]: disk at /devices/pci0002:24/0002:24:0e.0/fw-host0/00d04b281308c1ce/00d04b281308c1ce-0/host11/target11:0:0/11:0:0:0 |
All the firewire options are enabled (but not as modules) in my kernel. Is this a Udev permissions kind of thing? The disk on the firewire interface is unformatted, but that shouldn't make a diff whether or not the /dev/sd* node gets made correctly.
EDIT: Code: | # udevmonitor
UEVENT[1129308758] add@/class/scsi_host/host12
UDEV [1129308758] add@/class/scsi_host/host12
UEVENT[1129308759] add@/devices/pci0002:24/0002:24:0e.0/fw-host0/00d04b281308c1ce/00d04b281308c1ce-0/host12/target12:0:0/12:0:0:0
UEVENT[1129308759] add@/class/scsi_device/12:0:0:0
UDEV [1129308759] add@/devices/pci0002:24/0002:24:0e.0/fw-host0/00d04b281308c1ce/00d04b281308c1ce-0/host12/target12:0:0/12:0:0:0
UDEV [1129308759] add@/class/scsi_device/12:0:0:0
|
Last edited by electroarts on Mon Dec 19, 2005 10:15 am; edited 1 time in total |
|
Back to top |
|
|
oliver Apprentice
Joined: 25 Jun 2003 Posts: 170
|
Posted: Fri Oct 14, 2005 5:18 pm Post subject: |
|
|
I just answered the same thing in another thread so I hope it's right
I had the same problem with a USB memory stick - it wouldn't create the /dev/sd* entry until I modprobed sd_mod which was part of the scsi kernel options |
|
Back to top |
|
|
electroarts Tux's lil' helper
Joined: 03 Jan 2004 Posts: 86
|
Posted: Fri Oct 14, 2005 10:47 pm Post subject: |
|
|
OK, I double-checked my kernl conf and found that actually I had no SCSI support enabled, so that's taken care of now. But I still have some troubles.
I can fdisk /dev/sda and create /dev/sda1, but I cannot format or mount it:
Code: | tail -f /var/log/messages
Oct 15 00:33:58 macumbista ieee1394: Node resumed: ID:BUS[0-00:1023] GUID[00d04
b281308c1ce]
Oct 15 00:33:58 macumbista ieee1394: Node changed: 0-00:1023 -> 0-01:1023
Oct 15 00:33:58 macumbista scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
Oct 15 00:33:59 macumbista ieee1394: sbp2: Logged into SBP-2 device
Oct 15 00:33:59 macumbista ieee1394: Node 0-00:1023: Max speed [S400] - Max payl
oad [2048]
Oct 15 00:33:59 macumbista Vendor: WDC WD16 Model: 00JB-00GVC0 Rev: 08.0
Oct 15 00:33:59 macumbista Type: Direct-Access ANSI SCSI
revision: 06
Oct 15 00:33:59 macumbista SCSI device sda: 268435455 512-byte hdwr sectors (137
439 MB)
Oct 15 00:33:59 macumbista sda: asking for cache data failed
Oct 15 00:33:59 macumbista sda: assuming drive cache: write through
Oct 15 00:33:59 macumbista SCSI device sda: 268435455 512-byte hdwr sectors (137
439 MB)
Oct 15 00:33:59 macumbista sda: asking for cache data failed
Oct 15 00:33:59 macumbista sda: assuming drive cache: write through
Oct 15 00:33:59 macumbista sda: unknown partition table
Oct 15 00:33:59 macumbista Attached scsi disk sda at scsi1, channel 0, id 0, lun
0
Oct 15 00:33:59 macumbista Attached scsi generic sg0 at scsi1, channel 0, id 0,
lun 0, type 0
Oct 15 00:33:59 macumbista scsi.agent[6762]: disk at /devices/pci0002:24/0002:24
:0e.0/fw-host0/00d04b281308c1ce/00d04b281308c1ce-0/host1/target1:0:0/1:0:0:0
|
Code: | # dmseg
ieee1394: Node resumed: ID:BUS[0-00:1023] GUID[00d04b281308c1ce]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: WDC WD16 Model: 00JB-00GVC0 Rev: 08.0
Type: Direct-Access ANSI SCSI revision: 06
SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB)
sda: asking for cache data failed
sda: assuming drive cache: write through
SCSI device sda: 268435455 512-byte hdwr sectors (137439 MB)
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
|
And what's more I don't have sd_mod (at least not as a module). Further suggestions? Would anybody like to see a kernel conf?
http://umatic.nl/stuff/config |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Fri Oct 14, 2005 11:09 pm Post subject: |
|
|
electroarts wrote: | OK, I double-checked my kernl conf and found that actually I had no SCSI support enabled, so that's taken care of now. But I still have some troubles.
I can fdisk /dev/sda and create /dev/sda1, but I cannot format or mount it. |
But which error(s) do you have trying to format it ?
electroarts wrote: | And what's more I don't have sd_mod (at least not as a module). |
It's controlled by the CONFIG_BLK_DEV_SD parameter. You will only have the sd_mod module if your SCSI support is built as module. In your case, it seems you have it built-in, so you don't need the module. |
|
Back to top |
|
|
electroarts Tux's lil' helper
Joined: 03 Jan 2004 Posts: 86
|
Posted: Sat Oct 15, 2005 9:39 am Post subject: |
|
|
Quote: | But which error(s) do you have trying to format it ? |
Here's the fdisk output, showing a partition at /dev/sda1:
Code: | # fdisk /dev/sda
The number of cylinders for this disk is set to 16709.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 137.4 GB, 137438952960 bytes
255 heads, 63 sectors/track, 16709 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 16709 134215011 83 Linux
|
And here's the mkreiserfs output, showing no partition at /dev/sda1:
Code: | # mkreiserfs /dev/sda1
mkreiserfs 3.6.19 (2003 www.namesys.com)
Failed to open '/dev/sda1': No such device or address.
|
Now you see it, now you don't! Nice trick, huh?
Udev shows this:
Code: | # udevmonitor
UEVENT[1129368958] add@/class/scsi_host/host3
UDEV [1129368958] add@/class/scsi_host/host3
UEVENT[1129368959] add@/devices/pci0002:24/0002:24:0e.0/fw-host0/00d04b281308c1ce/00d04b281308c1ce-0/host3/target3:0:0/3:0:0:0
UEVENT[1129368959] add@/block/sda
UEVENT[1129368959] add@/class/scsi_generic/sg0
UEVENT[1129368959] add@/class/scsi_device/3:0:0:0
UDEV [1129368959] add@/devices/pci0002:24/0002:24:0e.0/fw-host0/00d04b281308c1ce/00d04b281308c1ce-0/host3/target3:0:0/3:0:0:0
UDEV [1129368959] add@/block/sda
UDEV [1129368959] add@/class/scsi_generic/sg0
UDEV [1129368959] add@/class/scsi_device/3:0:0:0
|
|
|
Back to top |
|
|
electroarts Tux's lil' helper
Joined: 03 Jan 2004 Posts: 86
|
Posted: Sun Dec 18, 2005 10:21 pm Post subject: |
|
|
Something of a BUMP. I've done a lot of kernel mucking since I started this thread, but I still have the same old problem. I can't get my firewire drive attached to /dev/sda1.
Dmesg reports this:
Code: | ieee1394: Node resumed: ID:BUS[0-00:1023] GUID[00d04b281308c1ce]
scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: MAXTOR 6 Model: L060J3 Rev: A93.
Type: Direct-Access-RBC ANSI SCSI revision: 04
SCSI device sda: 117266688 512-byte hdwr sectors (60041 MB)
sda: asking for cache data failed
sda: assuming drive cache: write through
SCSI device sda: 117266688 512-byte hdwr sectors (60041 MB)
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
FAT: bogus number of FAT structure
VFS: Can't find a valid FAT filesystem on dev sda.
HFS+-fs: unable to find HFS+ superblock
ReiserFS: sda: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on s
da
VFS: Can't find an ext2 filesystem on dev sda.
VFS: Can't find ext3 filesystem on dev sda. |
Fdisk can find the drive and see the partition, but mount can't find it:
Code: | macumbista derek # mount /dev/sda /mnt/firewire/
mount: you must specify the filesystem type
macumbista derek # mount -t ext2 /dev/sda /mnt/firewire/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems
macumbista derek # mount -t reiserfs /dev/sda /mnt/firewire/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems
macumbista derek # mount /dev/sda1 /mnt/firewire/
mount: special device /dev/sda1 does not exist
|
I really don't know where to keep looking at this point. Should I blame Udev, or should I blame something in the kernel? I've tried to mount both a USB and a firewire exsternal drive with several different disks and different file systems, all with no luck.
The weirdest thing is that my Ipod mounts fine!
Code: | ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: Apple Model: iPod Rev: 1.62
Type: Direct-Access-RBC ANSI SCSI revision: 00
sda: Spinning up disk.......ready
SCSI device sda: 39063024 512-byte hdwr sectors (20000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 04 00 00
sda: asking for cache data failed
sda: assuming drive cache: write through
SCSI device sda: 39063024 512-byte hdwr sectors (20000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 04 00 00
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: [mac] sda1 sda2 sda3
Attached scsi removable disk sda at scsi6, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi6, channel 0, id 0, lun 0, type 14
|
The main error seesm to be an inability to read the partition table of the USB or Firewire HD. But why does the Ipod work, then?
Help! |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Dec 18, 2005 11:12 pm Post subject: |
|
|
electroarts wrote: | The main error seesm to be an inability to read the partition table of the USB or Firewire HD. But why does the Ipod work, then? |
Do you, by any chance, have this option turned off in your kernel ?
Code: | File systems --->
Partition Types --->
[*] Advanced partition selection
[*] PC BIOS (MSDOS partition tables) support |
BTW, the ipod works because it is using a mac partition map. |
|
Back to top |
|
|
electroarts Tux's lil' helper
Joined: 03 Jan 2004 Posts: 86
|
Posted: Mon Dec 19, 2005 10:12 am Post subject: |
|
|
Quote: | Do you, by any chance, have this option turned off in your kernel ? Code: | [*] PC BIOS (MSDOS partition tables) support |
|
That was it.
YOU ROCK! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|