mkinitrd detects wrong root filesystem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initrd-tools (Ubuntu) |
Invalid
|
Medium
|
Jeff Bailey |
Bug Description
- i had ubuntu installed on a computer with a single hard 8gb drive (hda1);
- i moved that hdd to my main pc, wich has another disk (120gb sata) and had to
change grub's menu.lst to reflect changes (my 8gb drive is now 'hdc', my sata
drive is 'hda').
- after booting ubuntu, my main drive (8g) is 'hda', my sata drive is 'sda'.
when installing a new kernel, mkinitrd detects '/dev/hda1' as my root, wich is
incorrect, causing the kernel package (and others following) not to be installed.
i fixed it by editing '/etc/mkinitrd/
value for ROOT ('ROOT=/dev/hdc1').
(still find a bit weird the discrepancy between my harddrive's names
before/after booting; but i'm very new to linux)
(In reply to comment #0) mkinitrd. conf' and entering the correct
> - i had ubuntu installed on a computer with a single hard 8gb drive (hda1);
> - i moved that hdd to my main pc, wich has another disk (120gb sata) and had to
> change grub's menu.lst to reflect changes (my 8gb drive is now 'hdc', my sata
> drive is 'hda').
> - after booting ubuntu, my main drive (8g) is 'hda', my sata drive is 'sda'.
>
> when installing a new kernel, mkinitrd detects '/dev/hda1' as my root, wich is
> incorrect, causing the kernel package (and others following) not to be installed.
>
> i fixed it by editing '/etc/mkinitrd/
> value for ROOT ('ROOT=/dev/hdc1').
>
> (still find a bit weird the discrepancy between my harddrive's names
> before/after booting; but i'm very new to linux)
Sorry for the mixup, my harddrive is hdc, although the 'fstab' file still stated
'/dev/hda1' as the root filesystem.
if mkinitrd "probe" function gets the root value from fstab (as it seems to),
maybe it should be validated somehow???
if not, feel free to close this bug (and accept my apologies)
João Inácio