mmaxx
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
Hi, wie scheinbar einige andere hier, kann auch ich nach dem System-Upgrade nicht mehr booten und lande mit dem Fehler "symbol 'grub_term_highlight_color' not found" in der >Grub rescue. Ich habe ein Vaio Pro notebook, welchem ich letztes Jahr erfolgreich mittels boot-repair, ein Ubuntu 12.04 neben das vorinstallierte Windows 8 gestellt hab. Gestern Abend beim Upgrade hat's mir dann die funktionierende Bootconfig zerschossen und ich habe 5 Stunden vergeblich versucht das Ding zu fixen. Hier die Historie: Mit Ubuntu Live Stick 14.04 gebootet und versucht es mit boot-repair zu kitten.
| sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list"
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
|
http://askubuntu.com/questions/449818/boot-repair-ppa-404 Mit den Standardeinstellungen lief das Programm scheinbar sauber, bis am Schuluss ein Error angezeigt wurde - hier der Output:
http://paste.ubuntu.com/7278535/ Folgende Zeilen am Ende des Logs ...
| Failed to mount '/dev/sda5': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.
mount /dev/sda5 : Error code 14
mount -r /dev/sda5 /mnt/boot-sav/sda5
Unhide GRUB boot menu in sda8/boot/grub/grub.cfg
An error occurred during the repair.
You can now reboot your computer.
|
... haben mit Google die Erkenntnis gebracht, dass die Installation von Grub scheitert, weil die Windowspartition in einem Hibernate Modus liegt und für den NTFS Treiber somit nicht richtig mountbar ist.
http://askubuntu.com/questions/204166/how-do-i-mount-a-hibernated-ntfs-partition Nachdem ich dann versucht habe das Problem mit folgenden Befehl zu besiegen,
| sudo mount -t ntfs-3g -ro remove_hiberfile /dev/sda5 /media/windooooof
|
habe ich nochmals boot-repair laufen lassen. Hier das Log von diesem boot-repair lauf. http://paste.ubuntu.com/7279283/ Hier das Tail des Logs:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 |
Unknown GPT Partiton Type
329701f46e06124e8273346c5641494f
=============================== StdErr Messages: ===============================
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
mkdir: cannot create directory '/mnt/BootInfo': Read-only file system
cat: /tmp/BootInfo-2fo1VQ0k/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-2fo1VQ0k/Tmp_Log: No such file or directory
File descriptor 9 (/proc/4810/mounts) leaked on lvscan invocation. Parent PID 26315: bash
File descriptor 63 (pipe:[52186]) leaked on lvscan invocation. Parent PID 26315: bash
No volume groups found
ADDITIONAL INFORMATION :
|
Der aktuellen Output des BootInfoScript http://sourceforge.net/projects/bootinfoscript/ ist im Anhang. Für Tipps um meinem Laptop wieder Dualboot beizubringen, bin ich sehr dankbar. Viele Grüße,
Max
- RESULTS.txt (21.5 KiB)
- Download RESULTS.txt
|
mmaxx
(Themenstarter)
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
Hi Lidux, leider kann ich weder ubuntu noch w8 starten, da ich beim default-mäßigen Starten (Bootmedium=Festplatte) des Computers, sofort auf die grub-rescue-console falle. ☹ VG, Max
|
mmaxx
(Themenstarter)
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
Hey rabadumpf, habe es eben anhand deines Links versucht - leider ohne Erfolg. 😐 In dem Artikel steht sdXY ist dabei die Rootpartition, die an das eigene System anzupassen ist (z.B.: /dev/sda5)!
Ich habe hier sda8 gemountet, da dies meine Linuxpartition ist. Bin mir nicht sicher ob das richtig war?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 | ubuntu@ubuntu:~$ sudo mount /dev/sda8 /mnt
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo mount -t proc /proc /mnt/proc
ubuntu@ubuntu:~$ sudo cp /proc/mounts /mnt/etc/mtab
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# grub-install /dev/sda
sda sda1 sda10 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9
root@ubuntu:/# grub-install /dev/sda8
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
root@ubuntu:/# grub-install --recheck /dev/sd
sda sda10 sda3 sda5 sda7 sda9 sdb1
sda1 sda2 sda4 sda6 sda8 sdb
root@ubuntu:/# grub-install --recheck /dev/sda8
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
root@ubuntu:/# ^C
root@ubuntu:/# exit
ubuntu@ubuntu:~$ sudo mount /dev/sda8 /mnt/boot/efi
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# grub-install /dev/sda8
Installing for x86_64-efi platform.
grub-install: error: /boot/efi doesn't look like an EFI partition.
root@ubuntu:/# mount -l
...
ubuntu@ubuntu:~$ sudo umount /mnt/boot/efi
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/boot/efi
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# grub-install /dev/sda
sda sda1 sda10 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9
root@ubuntu:/# grub-install /dev/sda1
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@ubuntu:/# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found linux image: /boot/vmlinuz-3.11.0-19-generic
Found initrd image: /boot/initrd.img-3.11.0-19-generic
Adding boot menu entry for EFI firmware configuration
done
root@ubuntu:/# exit
ubuntu@ubuntu:~$ sudo reboot
|
Hier die liste der Mounts, während des Versuches:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | root@ubuntu:/# mount -l
rootfs on / type rootfs (rw,size=4016720k,nr_inodes=1004180)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=4029432k,nr_inodes=1007358,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=808192k,mode=755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
tmpfs on /cow type tmpfs (rw,noatime,mode=755)
/cow on / type overlayfs (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
none on /sys/fs/fuse/connections type fusectl (rw,relatime)
none on /sys/kernel/debug type debugfs (rw,relatime)
none on /sys/kernel/security type securityfs (rw,relatime)
none on /sys/firmware/efi/efivars type efivarfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,nosuid,nodev,relatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)
none on /sys/fs/pstore type pstore (rw,relatime)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,name=systemd)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/sda1 on /mnt/boot-sav/sda1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) [SONYSYS]
/dev/sda2 on /mnt/boot-sav/sda2 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096) [Windows RE tools]
/dev/sda3 on /mnt/boot-sav/sda3 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda5 on /mnt/boot-sav/sda5 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda6 on /mnt/boot-sav/sda6 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096) [Recovery]
/dev/sda8 on /mnt/boot-sav/sda8 type ext4 (rw,relatime,data=ordered)
/dev/sda8 on /mnt type ext4 (rw,relatime,data=ordered)
udev on /mnt/dev type devtmpfs (rw,relatime,size=4029432k,nr_inodes=1007358,mode=755)
sysfs on /mnt/sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/proc on /mnt/proc type proc (rw,relatime)
|
Ich stochere bei dem Thema ziemlich im Nebel. Weiß jemand Rat? Viele Grüße, Max
|
mmaxx
(Themenstarter)
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
Ich habe mit Gparted das bios_grub Flag von der sda7 entfernt. Ungültiges MakroDieses Makro ist nicht verfügbar Das hat dazu gefuehrt, dass beim Start des Rechners automatisch Windows bootet.
Den Fast Restart in Win8 habe ich deaktiviert, was die Fehlermeldung
| Failed to mount '/dev/sda5': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.
|
verschwinden lies.
Leider habe ich immer noch einen Error beim boot-repair
http://paste.ubuntu.com/7287057/
| chroot /mnt/boot-sav/sda8 update-grub -y
Unrecognized option `-y'
|
und immer noch keinen Dualboot...
- Bilder
|
Frieder108
Anmeldungsdatum: 7. März 2010
Beiträge: 9600
|
mmaxx schrieb: | ubuntu@ubuntu:~$ sudo mount /dev/sda8 /mnt
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo mount -t proc /proc /mnt/proc
ubuntu@ubuntu:~$ sudo cp /proc/mounts /mnt/etc/mtab
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# grub-install /dev/sda
|
hier muß noch die Efi-Partition mit gemountet werden, also mit sudo mount /dev/sdXY /mnt/boot/efi #XY muß natürlich angepasst werden und der Befehl zur Grubinstallation ist ganz simple grub-install Zeig mal bitte die Ausgabe von sudo parted -l
|
mmaxx
(Themenstarter)
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
ubuntu@ubuntu:~$ sudo parted -l
Model: ATA SAMSUNG MZNTD256 (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition hidden
2 274MB 1819MB 1546MB ntfs Basic data partition hidden, diag
3 1819MB 2092MB 273MB fat32 EFI system partition boot
4 2092MB 2226MB 134MB Microsoft reserved partition msftres
5 2226MB 130GB 128GB ntfs Basic data partition msftdata
6 130GB 130GB 472MB ntfs hidden, diag
7 130GB 130GB 1049kB
8 130GB 214GB 83.2GB ext4
9 214GB 222GB 8492MB linux-swap(v1)
10 222GB 231GB 8492MB
11 231GB 256GB 25.5GB ntfs Basic data partition hidden, diag
Model: USB Flash Disk (scsi)
Disk /dev/sdb: 4010MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 31.7kB 4007MB 4007MB primary fat32 boot, lba
Nochmals die Grubbereinigung laut Anleitung ... 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | ubuntu@ubuntu:~$ sudo mount /dev/sda8 /mnt
ubuntu@ubuntu:~$ sudo mount /mnt/sda3 /mnt/boot/efi
mount: special device /mnt/sda3 does not exist
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /mnt/boot/efi
sda3
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /mnt/boot/efi
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo mount -t proc /proc /mnt/proc
ubuntu@ubuntu:~$ sudo cp /proc/mounts /mnt/etc/mtab
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# grub-install /dev/sda3
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@ubuntu:/# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found linux image: /boot/vmlinuz-3.11.0-19-generic
Found initrd image: /boot/initrd.img-3.11.0-19-generic
Adding boot menu entry for EFI firmware configuration
done
|
Ende vom Lied ... Windows startet per default.
|
Frieder108
Anmeldungsdatum: 7. März 2010
Beiträge: 9600
|
Moin moin, tja, was soll ich sagen? Irgendwie bin ich verwirrt - du hast 2 EFI-Partitionen (sda1 + sda3) und ich bin mir nicht sicher, ob wirklich die sda3 die richtige ist - evtl. beim Chroot beide einbinden. Des weiteren hab ich dir gepostet, wie der Befehl zur Grubinstallation lautet Frieder108 schrieb: der Befehl zur Grubinstallation ist ganz simple grub-install
ohne Angabe einer Partition Also, versuchs nochmal, mounte die sda1 ebenfalls und führ zur Grubinstallation folgenden Befehl aus:
grub-install && update-grub && exit Frage: taucht Ubuntu eigentlich auch nicht Bootmenü auf?
|
mmaxx
(Themenstarter)
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
Moin Frieder108, Ich bin beruhigt, dass ich nicht als einzigster verwirrt bin. 😕 Die sda1 ist efi mit dem flag "hidden". Sie hat die Bezeichnung "SONYSYS", das ist vermutlich die Partition wo das zum Computer gehörende VAIOcare Gedöns untergebracht ist. Die sda3 ist efi mit dem flag "boot". Keine Ahnung wo des Viech herkommt? Vielleicht wurde die mit dem boot-repair Tool angelegt? Habe es jetzt nochmals mit jeweils sda1 und sda3 auf /mnt/boot/efi und nur grub-install ohne Partionsangabe probiert. Beide Male leider ohne Erfolg.
| grub-install && update-grub && exit
|
Beim Rechnerstart sehe ich kein Bootmenü. Es scheint so, dass Windows automatisch beim hochfahren geladen wird. Viele Grüße, Max
|
rabadumpf
Anmeldungsdatum: 7. Mai 2011
Beiträge: 185
|
Grub install nach sda1 oder sda7 hast du ja schon probiert, oder? Nur mal so zum Nachdenken:
Bei meiner Reparatur musste ich grub nach /dev/sdX installieren , also bei mir /dev/sdc.
Analog auf deinen Fall wäre das dann grub-install /dev/sda. Aber keine Ahnung, was das für Folgen hat ☺. Alles ohne Gewähr.
|
Frieder108
Anmeldungsdatum: 7. März 2010
Beiträge: 9600
|
mmaxx schrieb: Moin Frieder108, Ich bin beruhigt, dass ich nicht als einzigster verwirrt bin. 😕
🦆 🦆 😀
Die sda1 ist efi mit dem flag "hidden". Sie hat die Bezeichnung "SONYSYS", das ist vermutlich die Partition wo das zum Computer gehörende VAIOcare Gedöns untergebracht ist.
hmm ja, ist ne Möglichkeit
Die sda3 ist efi mit dem flag "boot". Keine Ahnung wo des Viech herkommt? Vielleicht wurde die mit dem boot-repair Tool angelegt?
die legt Win8 bei der Installation im UEFI-Modus automatisch an - sollte dann soweit doch passen
Habe es jetzt nochmals mit jeweils sda1 und sda3 auf /mnt/boot/efi und nur grub-install ohne Partionsangabe probiert. Beide Male leider ohne Erfolg.
| grub-install && update-grub && exit
|
der Befehl ist so richtig - das Problem muß ein anderers sein
Beim Rechnerstart sehe ich kein Bootmenü. Es scheint so, dass Windows automatisch beim hochfahren geladen wird.
kann es sein, dass dein Windows nicht richtig runterfährt? Ich bin in der UEFI-Geschichte auch nicht so firm, hab hier nur ein Gerät,wo im UEFI-Modus installiert ist und das hab ich selber auf ne leere Pestplatte installiert, also ohne irgend welche vom Hersteller vorgegebene Einstellungen. Was du malmachen kannst ist folgendes - im Livesystem natürlich 😉 sudo apt-get install efibootmgr und dann die Ausgabe von sudo efibootmgr -v hier posten - damit sehen wir mal,was bei dir im NVRAM eigentlich alles eingetragen ist.
Viele Grüße, Max
ebenso, Frieder p.s. zum Nachlesen übrigens noch hier <klick mich>
|
mmaxx
(Themenstarter)
Anmeldungsdatum: 30. November 2010
Beiträge: 28
|
Hi, der Befehl efibootmgr -v bringt folgendes:
| BootCurrent: 000C
Timeout: 0 seconds
BootOrder: 000C,0005,0007,0008,0009,000A,0001,000B
Boot0001* Windows Boot Manager HD(3,363800,82000,8883f67e-ddb6-48b3-8dc9-ee7ca6b06354)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...i................
Boot0005* Sony Original HD(1,800,82000,9e88d1e5-72d0-43c5-a936-d5cf277f8ca1)File(\EFI\Microsoft\Boot\bootmgfw.efi)
Boot0007* Windows Boot Manager HD(3,363800,82000,8883f67e-ddb6-48b3-8dc9-ee7ca6b06354)File(\EFI\Boot\bootx64.efi)
Boot0008* Windows Boot Manager HD(5,425800,1a93d800,1a0c9623-83db-48d3-9d1d-7d97bfa9c694)File(\EFI\Boot\bootx64.efi)
Boot0009* Windows Boot Manager HD(5,425800,6ebd000,1a0c9623-83db-48d3-9d1d-7d97bfa9c694)File(\EFI\Boot\bootx64.efi)
Boot000A* Windows Boot Manager HD(5,425800,eeaae7a,1a0c9623-83db-48d3-9d1d-7d97bfa9c694)File(\EFI\Boot\bootx64.efi)
Boot000B* Windows Boot Manager HD(5,425800,edc9e7a,1a0c9623-83db-48d3-9d1d-7d97bfa9c694)File(\EFI\Boot\bootx64.efi)
Boot000C* UEFI: USB Flash Disk 1100 ACPI(a0341d0,0)PCI(1d,0)USB(1,0)USB(1,0)HD(1,3e,776b92,0004d377)..BO
|
...ob das Windows nicht richtig runter fährt, weiß ich nicht. Ich habe jedenfalls dort den "Fast restart" ausgestellt, und ich erhalte beim starten von Windows keinerlei Fehlermeldung, was ja ein gutes Zeichen ist.
|