Trying to install slackware onto a raid 1 on 2 2TB drives.
I followed the official readme.
I have two drives, sda
and sdb
. They each have two partitions, one for /
(50GB) and one for /home
(Rest of drive, ~1950GB) No swap, have 32GB ram.
I partitioned them with gparted in a live distro, as when I did it in the slackware setup with cfdisk
, fdisk -l
would say that the partition "does not start on physical sector boundary", and I'm bad at fdisk (trying to get the trailing 100MB suggested by the readme was the hard bit there)
So I get the disks partitioned, make both partitions raid 1, resulting in /dev/md0
and /dev/md1
. I continue with the install, everything going smoothly. After setup finishes, I modify lilo.conf
, setting boot = /dev/md0
, and raid-extra-boot = mbr-only
Restart, lilo comes up, starts booting slackware, then I get
md: autodetecting RAID arrays.
md: Scanned 0 and added 0 devices
...
REISERFS warning (device md0): sh-2006 read_super_block: bread failed (dev md0, block 2, size 4096)
REISERFS warning (device md0): sh-2006 read_super_block: bread failed (dev md0, block 16, size 4096)
...
EXT4-fs (md0): unable to read superblock
...
Please append a correct "root=" boot option ...
...
kernel panic-not syncing VFS:unable to mount root fs on unknown-block(9,0)
So it's not detecting the raid correctly, it seems.
If I boot into parted magic, or the slackware setup, it does find /dev/md0
.
So I would have thought the 9,0 means ninth device, first partition
. You thought wrong. That would be the major and minor device numbers.brw-r----- 1 root disk 9, 0 Sep 2 2011 md0
./dev/md0
, and edit the question.