FS#4043 - Problem with mkinitrd

Attached to Project: Arch Linux
Opened by Ben Webber (bengi) - Wednesday, 22 February 2006, 11:26 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 22 February 2006, 13:03 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I was having a problem with the move to initrd on one of my machines. It has a hpt366 ide controller which is running linux software raid. My root partition resides on this. The device nodes usually used by these are hde[1-3] and hdg[1-3]. When the initrd image is created by mkinitrd it only creates the hda - hdd devices nodes in the initrd so mdadm is unable to start my root array (which resides on hde3 and hdg3). I fixed this by adding the following lines to /sbin/mkinitd after line 772:-

mkblkdevs hde 1 12 33 1
mkblkdevs hdg 1 12 34 1

I have attached a modified version of /sbin/initrd with these extra lines. Some others may also be using hdf and hdh so I have also added the lines for hdf and hdh.

Hope this is useful somehow.

Ben.
This task depends upon

Closed by  Judd Vinet (judd)
Wednesday, 22 February 2006, 17:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  Thanks!
Comment by Ben Webber (bengi) - Wednesday, 22 February 2006, 11:55 GMT
Sorry, where I have put "I have attached a modified version of /sbin/initrd with these extra lines." It should read "I have attached a modified version of /sbin/mkinitrd with these extra lines."

Cheers.

Loading...