Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Not more than 2 disks accessible under -current and -netbsd-5 !?



On Jan 10, 2011, at 3:37 54PM, Markus W Kilbinger wrote:

> Hi!
> 
> Last week my (main/boot) netbsd disk died and I had to restore from my
> backup disk onto a new one. For this situation I prepared a bootable
> usb memory stick with a netbsd-5 i386 system and booted from it via
> bios. (All on pc hardware)
> 
> dmesg output looked fine, usb memory stick (sd0), new disk (wd0) and
> backup disk (wd1) were probed normally. After fdisk, disklabel and
> newfs-ing the new disk (wd0) I tried to mount my backup disk (wd1),
> but that didn't work:
> 
>  # mount /dev/wd1a /mnt
>  mount: cannot open `/dev/wd1a': Device not configured
> 
>  # fdisk wd1
>  fdisk: cannot opendisk /dev/rwd1d: Device not configured
> 
> ?? After some try and error my finding/conclusion was that simply/only
> the first 2 disks were accessible. All further disks were probed
> normally (dmesg), but denied any access as 'Device not configured'.
> 
> To make my situation a bit more reproducable I took
> pkgsrc/emulators/qemu and run it with at least 3 disks, e.g.:
> 
>  qemu -serial file:/tmp/qemu.log -m 512 -hda /dev/rsd0d \
>    -hdb first.img -hdc second.img -hdd third.img
> 
> (/dev/rsd0d is my bootable usb memory stick). dmesg excerpt:
> 
>  [...]
>  wd0 at atabus0 drive 0: <QEMU HARDDISK>
>  wd0: drive supports 16-sector PIO transfers, LBA48 addressing
>  wd0: 7680 MB, 15603 cyl, 16 head, 63 sec, 512 bytes/sect x 15728640 sectors
>  wd0: 32-bit data port
>  wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>  wd1 at atabus0 drive 1: <QEMU HARDDISK>
>  wd1: drive supports 16-sector PIO transfers, LBA48 addressing
>  wd1: 2637 MB, 5358 cyl, 16 head, 63 sec, 512 bytes/sect x 5400864 sectors
>  wd1: 32-bit data port
>  wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>  wd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
>  wd1(piixide0:0:1): using PIO mode 4, DMA mode 2 (using DMA)
>  wd2 at atabus1 drive 0: <QEMU HARDDISK>
>  wd2: drive supports 16-sector PIO transfers, LBA48 addressing
>  wd2: 1139 MB, 2315 cyl, 16 head, 63 sec, 512 bytes/sect x 2333776 sectors
>  wd2: 32-bit data port
>  wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>  wd3 at atabus1 drive 1: <QEMU HARDDISK>
>  wd3: drive supports 16-sector PIO transfers, LBA48 addressing
>  wd3: 3000 MB, 6095 cyl, 16 head, 63 sec, 512 bytes/sect x 6144000 sectors
>  wd3: 32-bit data port
>  wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>  wd2(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
>  wd3(piixide0:1:1): using PIO mode 4, DMA mode 2 (using DMA)
>  Kernelized RAIDframe activated
>  pad0: outputs: 44100Hz, 16-bit, stereo
>  audio0 at pad0: half duplex, playback, capture
>  findroot: unable to read block 3474977
>  boot device: wd0
>  root on wd0a dumps on wd0b
>  root file system type: ffs
> 
> 'wd0' and 'wd1' are accessible after boot, e.g.:
> 
>  # fdisk wd1
>  fdisk: primary partition table invalid, no magic in sector 0
>  Disk: /dev/rwd1d
>  NetBSD disklabel disk geometry:
>  cylinders: 2315, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
>  total sectors: 2333776
> 
>  BIOS disk geometry:
>  cylinders: 668, heads: 128, sectors/track: 63 (8064 sectors/cylinder)
>  total sectors: 5400864
> 
>  Partition table:
>  0: <UNUSED>
>  1: <UNUSED>
>  2: <UNUSED>
>  3: <UNUSED>
>  Bootselector disabled.
>  No active partition.
> 
> But 'wd2' and 'wd3' are not:
> 
>  # fdisk wd2
>  fdisk: cannot opendisk /dev/rwd2d: Device not configured
>  # fdsik wd3
>  fdisk: cannot opendisk /dev/rwd3d: Device not configured
> 
> So, what's going (wr)on(g) here!? What am I missing?

What does /dev look like?  Are the wd2 device files listed?

                --Steve Bellovin, http://www.cs.columbia.edu/~smb







Home | Main Index | Thread Index | Old Index