Bug#336317: initramfs-tools: created initramfs is unable to boot a system with mirrored rootdisks
On Monday 31 October 2005 11:42, maximilian attems wrote:
> On Sat, 29 Oct 2005, Dominik Kubla wrote:
> > The created initramfs drops into a shell because /dev/md0 can not be
> > mounted. This is a regression from version 0.30.
>
> what is your setup?
> please send the output of /proc/mdstat?
# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 hda3[0] hdc3[1]
19591168 blocks [2/2] [UU]
md0 : active raid1 hda1[0] hdc1[1]
15623104 blocks [2/2] [UU]
md1 : active raid1 hda2[0] hdc2[1]
3903680 blocks [2/2] [UU]
unused devices: <none>
> have you mdadm installed on that box?
> what does dpkg -l mdadm show?
# dpkg -l mdadm
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii mdadm 1.12.0-1 tool to administer Linux md device arrays (s
Additional infos:
$ cat /etc/fstab
#
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/md0 / ext3 defaults,errors=remount-ro 0 1
/dev/md1 none swap sw 0 0
/dev/md2 /home ext3 defaults 0 2
/dev/hdc4 /scratch ext3 defaults 0 2
/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
tmpfs /tmp tmpfs mode=1777,size=2G 0 0
$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 15377744 3755052 10841540 26% /
/dev/md2 19283236 14418876 4864360 75% /home
/dev/hdc4 39376392 1769000 35607168 5% /scratch
tmpfs 2097152 72 2097080 1% /tmp
tmpfs 648296 0 648296 0% /dev/shm
tmpfs 10240 144 10096 2% /dev
$ sfdisk -l /dev/hda
Disk /dev/hda: 77622 cylinders, 16 heads, 63 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 77622/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 1944 1945- 15623181 fd Linux raid autodetect
/dev/hda2 1945 2430 486 3903795 fd Linux raid autodetect
/dev/hda3 2431 4869 2439 19591267+ fd Linux raid autodetect
/dev/hda4 0 - 0 0 0 Empty
$ sfdisk -l /dev/hdc
Disk /dev/hdc: 158816 cylinders, 16 heads, 63 sectors/track
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hdc1 * 0+ 31001 31002- 15624976+ fd Linux raid autodetect
/dev/hdc2 31002 38751 7750 3906000 fd Linux raid autodetect
/dev/hdc3 38752 79441 40690 20507760 fd Linux raid autodetect
/dev/hdc4 79442 158815 79374 40004496 83 Linux
If you need any more info, please let me know ...
Many thanks for your work!
Dominik
--
Verschmilzt die Wirtschaft Europas zur Gemeinschaft, und das wird
früher geschehen, als wir denken, so verschmilzt auch die Politik.
-- Walther Rathenau (1867-1922)
Reply to: