[opensuse] mkinitrd resume device is wrong
Hello: I have copied an openSUSE 13.1 installation from a hard disk (dev/sdb2) to another one (/dev/sda2). After this on the new drive I changed /etc/fstab, /boot/grub/device.map and /boot/grub/menu.lst: replaced all old drive references with new drive references using uuids (I use grub1 legacy, not grub2).Then I chrooted to the new drive as: mount /dev/sda /mnt mount -B /sys /mnt/sys mount -B /dev /mnt/dev mount -B /proc /mnt/proc chroot /mnt Now I would like to make a new initrd. When I run mkinitrd it builds in the image a reference to a resume device which is my old drive: mkinitrd Kernel image: /boot/vmlinuz-3.11.10-29-desktop Initrd image: /boot/initrd-3.11.10-29-desktop KMS drivers: i915 Root device: /dev/disk/by-id/ata-<new-drive>-part2 (/dev/sda2) (mounted on / as ext4) Resume device: /dev/disk/by-id/ata-<old-drive>-part1 (/dev/sdb1) Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_hp_sw scsi_dh_rdac scsi_dh_emc scsi_dh_alua video button i2c-algo-bit drm drm_kms_helper i915 ata_piix xhci-hcd hid-logitech-dj ... Features: acpi kms plymouth block usb resume.userspace resume.kernel How can I force mkinitrd to change resume device to the new drive /dev/sda1 instead of keeping the old drive /dev/sdb1? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 13 Nov 2015 19:37, Istvan Gabor <suseuser04@...> wrote:
I have copied an openSUSE 13.1 installation from a hard disk (dev/sdb2) to another one (/dev/sda2). After this on the new drive I changed /etc/fstab, /boot/grub/device.map and /boot/grub/menu.lst: replaced all old drive references with new drive references using uuids (I use grub1 legacy, not grub2).Then I chrooted to the new drive as:
mount /dev/sda /mnt mount -B /sys /mnt/sys mount -B /dev /mnt/dev mount -B /proc /mnt/proc chroot /mnt
Now I would like to make a new initrd. When I run mkinitrd it builds in the image a reference to a resume device which is my old drive:
mkinitrd
Kernel image: /boot/vmlinuz-3.11.10-29-desktop Initrd image: /boot/initrd-3.11.10-29-desktop KMS drivers: i915 Root device: /dev/disk/by-id/ata-<new-drive>-part2 (/dev/sda2) (mounted on / as ext4) Resume device: /dev/disk/by-id/ata-<old-drive>-part1 (/dev/sdb1) Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_hp_sw scsi_dh_rdac scsi_dh_emc scsi_dh_alua video button i2c-algo-bit drm drm_kms_helper i915 ata_piix xhci-hcd hid-logitech-dj ... Features: acpi kms plymouth block usb resume.userspace resume.kernel
How can I force mkinitrd to change resume device to the new drive /dev/sda1 instead of keeping the old drive /dev/sdb1?
It's a matter of "where is the swap partition" ? On the "old" disk (sdb) or on the new (sda). ATM it looks like swap is still on the "old" drive. Get that in order -- including the /etc/fstab entry, changing the partion id on the old swap from "swap" to something else -- do a reboot, to make sure that the old swap is no longer in use, then either use YAST to change the boot config or edit your grub config by hand yourself. After that call "mkinitrd" again, and the "Resume device" should point to the swap partition on the new disk. Afterwards you can re-set the partition-id on the swap on the old disk. - Yamaban. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Istvan Gabor
-
Yamaban