Hallo,
um Ubuntu 18.04.1 zu installieren habe ich zunächst die / von Xubuntu 1604 von der SSD auf die HDD verschoben. Mit rsync vom LiveUSB nach der Anleitung von Ubuntu umziehen. Die eigentliche Installation von Bionic Beaver verlief dann erwartungsgemäß und die Einrichtung läuft (zwar schleppend 😕 aber muss).
Gerade wollte ich 16.04 nochmal starten und hatte lange ein schwarzes Bild und dann die Meldung:
Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! UUID=e3a54b65-5c6e-45e2-8c5e-14b42aa6eead does not exist. Dropping to a shell! BusyBox v1.22.4 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)
Die angegebene UUID existiert im System ja auch nicht mehr:
tg@Ubuntu1804:~$ sudo blkid -o list -w /dev/null device fs_type label mount point UUID -------------------------------------------------------------------------------------------------------------------------------------------------- /dev/sda1 ntfs System-reserviert (not mounted) 4C6AC6266AC60CA0 /dev/sda2 ntfs Win10 (not mounted) EEB6C929B6C8F35F /dev/sda3 ntfs (not mounted) 2CF27E7DF27E4B5A /dev/sda5 swap [SWAP] 986abe3a-9985-4ad3-bd9b-9c639b66e7c0 /dev/sda6 ext4 / bfe980ac-5e64-4e69-a987-3dcbafb6a3a0 /dev/sdc1 ntfs 2TB (not mounted) 192605662FFEB2CA /dev/sdc2 ext4 xUbuntu1604 /media/tg/xUbuntu1604 d842a9db-9e95-4550-9b6d-00419117b878 /dev/sdc3 ext4 xUbuntuAlt (not mounted) fc76d975-ce46-408f-b2d5-3bdbb5e6c500 /dev/sdd1 ext4 3TB_2 (not mounted) a5bf95db-9f1f-44cd-959e-4ee8f7584666 /dev/sdb (not mounted)
In der alten fstab habe ich die Änderungen vorgenommen und kommentiert:
# <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda6 UUID=e3a54b65-5c6e-45e2-8c5e-14b42aa6eead during installation, NEW UUID UUID=d842a9db-9e95-4550-9b6d-00419117b878 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation, SAME UUID UUID=986abe3a-9985-4ad3-bd9b-9c639b66e7c0 none swap sw 0 0 # 2TB was on /dev/sdc1 during installation UUID=192605662FFEB2CA /media/tg/2TB ntfs-3g defaults,users 0 0 # UUID=a5bf95db-9f1f-44cd-959e-4ee8f7584666 /media/tg/3TB_2 ext4 defaults,users 0 0
Grub habe ich nur auf sda, hab aber nach Anleitung mit chroot vom Livesystem eigentlich auch nach sdc installiert.
tg@Ubuntu1804:~$ sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: Kein GRUB Y ;; esac\""
/dev/sda: GRUB 2 v1.99
/dev/sda1: Kein GRUB 55aa
/dev/sda2: Kein GRUB 55aa
/dev/sda3: Kein GRUB 55aa
/dev/sda4: Kein GRUB 00
/dev/sda5: Kein GRUB 00
/dev/sda6: Kein GRUB 00
/dev/sdb: Kein GRUB 00
/dev/sdc: Kein GRUB 00
/dev/sdc1: Kein GRUB 55aa
/dev/sdc2: Kein GRUB 00
/dev/sdc3: Kein GRUB 00
/dev/sdd: Kein GRUB 00
/dev/sdd1: Kein GRUB 0018.04 und Win10 booten problemlos, die Einträge in grub.cfg stimmen nur für Ubuntu 16.04.5 LTS nicht:
tg@Ubuntu1804:~$ cat /boot/grub/grub.cfg
[...]
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/09_os-prober ###
menuentry 'Windows 10 (auf /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-4C6AC6266AC60CA0' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 4C6AC6266AC60CA0
else
search --no-floppy --fs-uuid --set=root 4C6AC6266AC60CA0
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Ubuntu 16.04.5 LTS (16.04) (auf /dev/sdc2)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-d842a9db-9e95-4550-9b6d-00419117b878' {
insmod part_msdos
insmod ext2
set root='hd2,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2 d842a9db-9e95-4550-9b6d-00419117b878
else
search --no-floppy --fs-uuid --set=root d842a9db-9e95-4550-9b6d-00419117b878
fi
linux /boot/vmlinuz-4.4.0-31-generic root=UUID=e3a54b65-5c6e-45e2-8c5e-14b42aa6eead ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-31-generic
}
[...]Wie bringe ich Grub nun bei das die UUID "e3a..." falsch ist und die UUID "d84..." genommen werden muss um 16.04 zu booten?
Liebe Grüße Michael