PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Umzug von hdd auf ssd -> Grub defekt...



smartysmart34
04.08.11, 21:17
Hallo zusammen,

ich habe heute meine hdd mitt clonezilla 1.2.9-19 auf eine ssd umgezogen
Darauf war neben dem Grub im MBR auch noch zwei Windows-Partitionen und meine Linux-Root.

Wenn ich die Platte nun als Systemplatte anschließe, dann kommt noch GRUB loading stage 1.5, und danach bin ich auf der Grub-Konsole.

Habe Knoppix gebootet und mir die menu.lst auf der geclonten Platte angesehen... alles da.

Habe gelesen, dass möglicherweise die device.map durcheinander wäre. War sie im Vergleich zur devices-map-old tatsächlich. Habe die hdx-Nu,,ern wieder so angepasst, wie sie in devices.old waren. Kein Erfolg. Boot landet wieder in der grub-Konsole.

Hab dann von Knoppix aus den Aufruf grub-install --recheck -nofloppy root-directory="pfad zu grub" /dev/hde abgesetzt aber er sagte mir er könne stage1 nicht korrekt lesen.

Was habe ich übersehen bzw. wo steckt der Fehler und wie kriege ich den ohne neuinstallation behoben?

Danke und Gruß,
Martin

nopes
04.08.11, 22:11
mutmaßlich liegt es daran, dass uuids anstatt /dev/xyz verwendet werden

kreol
04.08.11, 22:25
Du redest viel von menu.lst, device.map und der Partitionierung (fdisk). Wo sind die Fakten? Was steht da drin? Ist es Grub 2 oder legacy? Welche Distri? Die 11.4 aus Deiner Sig? Oder was anderes? 11.4 hat Grub2, das hat aber keine menu.lst mehr...

Bitte poste Befehl und Ausgabe hierher, unter Beachtung des Hinweises in meiner Sig (code-Tags). Vorher tippen wir hier im Dunkeln.

Kreol

smartysmart34
04.08.11, 22:28
Welches Problem genau sollte das Verwenden von UUIDs haben? Mein Verständnis ist, das Clonezilla beim disk to disk-clone die UUIDS mitnimmt? Und die alte Platte habe ich ja nun abgezogen.

Ich bin nun nach folgendem Posting vorgegangen:

http://wiki.ubuntuusers.de/GRUB

Die Befehle wurden in meinem Fall mit der Partition hd(4,2) korrekt ausgeführt, die vorhandene Konfiguration wurde gefunden... Jetz kommt nach Stage 1.5 direkt ... Error 15

nopes
04.08.11, 22:33
falsch, tue dir denn gefallen und nutze zunächst /dev/xyz, wenn es dann bootet zieh es mit tunefs oder sowas gerade, oder s.....s auf die uuis und bleibt den devs.

[edit] ups, bist ja schon weiter, tortzdem, würde ich es erstmal mit /dex/xyz versuchen.

smartysmart34
04.08.11, 22:35
Posten von Files ist etwas schwierig, wenn man die Kiste zwecks Problembehebung mehrfach am booten ist und aufgrund des ausgebauten REchners kein Netzwerk hat.

Aber ich bin am Umbauen und poste die Files gleich

smartysmart34
04.08.11, 22:48
Also. Habe gerade mal nachgesehen: Die UUID ist identisch geblieben. Und Suse 11.4 hat mir bei frischer Installation Grub eingespielt. Nix grub2.

Ausgabe von "ls -l /dev/disk/by-uuid"


knoppix@Microknoppix:/dev/disk/by-uuid$ ls -l
insgesamt 0
lrwxrwxrwx 1 root root 10 4. Aug 23:37 1214b685-0115-4606-9085-0d23b72353d1 -> ../../dm-0
lrwxrwxrwx 1 root root 10 4. Aug 23:37 1523eeae-f3ac-4758-af7f-fd30fcbb81ad -> ../../dm-5
lrwxrwxrwx 1 root root 10 4. Aug 23:37 19cec33b-2ae3-4ead-b87f-b96549c4d35b -> ../../dm-2
lrwxrwxrwx 1 root root 10 4. Aug 23:38 3870E06470E02A78 -> ../../sde2
lrwxrwxrwx 1 root root 10 4. Aug 23:37 43f3129f-edb0-45cc-bf59-fb9d0941c12a -> ../../dm-3
lrwxrwxrwx 1 root root 10 4. Aug 23:38 4BA5-F908 -> ../../sdd5
lrwxrwxrwx 1 root root 10 4. Aug 23:37 8f6d1e3d-ba18-4a4b-993c-7e9aa2577c46 -> ../../dm-4
lrwxrwxrwx 1 root root 10 4. Aug 23:38 950f779d-ff6d-4d44-a17b-5e0bc04dfdc5 -> ../../sde3
lrwxrwxrwx 1 root root 10 4. Aug 23:38 9C88D2C188D2995A -> ../../sde1
lrwxrwxrwx 1 root root 10 4. Aug 23:37 c49ea5d3-9a5e-4f6d-a94d-67b695240f0d -> ../../dm-1
lrwxrwxrwx 1 root root 10 4. Aug 23:38 CA28035628034145 -> ../../sdd1
lrwxrwxrwx 1 root root 10 4. Aug 23:38 DCD218FFD218DF96 -> ../../sdd2
lrwxrwxrwx 1 root root 10 4. Aug 23:38 E0E6294BE62922F0 -> ../../sdd3


fdisk -l

knoppix@Microknoppix:/dev/disk/by-uuid$ fdisk -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe9519202

Device Boot Start End Blocks Id System

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe9519203

Device Boot Start End Blocks Id System

Disk /dev/sdc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe9519200

Device Boot Start End Blocks Id System

Disk /dev/sdd: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6de775ec

Device Boot Start End Blocks Id System
/dev/sdd1 1 3060 24576000 7 HPFS/NTFS
/dev/sdd2 3060 60427 460800000 7 HPFS/NTFS
/dev/sdd3 60427 77637 138240000 7 HPFS/NTFS
/dev/sdd4 77637 91202 108955648 f W95 Ext'd (LBA)
/dev/sdd5 77637 91202 108954624 c W95 FAT32 (LBA)

Disk /dev/sde: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x109a109b

Device Boot Start End Blocks Id System
/dev/sde1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sde2 13 6375 51097600 7 HPFS/NTFS
/dev/sde3 6375 14729 67108864 83 Linux

Disk /dev/dm-0: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 751.6 GB, 751619276800 bytes
255 heads, 63 sectors/track, 91379 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-4 doesn't contain a valid partition table

Disk /dev/dm-5: 830.6 GB, 830556078080 bytes
255 heads, 63 sectors/track, 100976 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-5 doesn't contain a valid partition table


etc/fstab

knoppix@Microknoppix:/dev/disk/by-uuid$ cat /media/sde3/etc/fstab
/dev/Linux_Data/Swap swap swap defaults 0 0
UUID=950f779d-ff6d-4d44-a17b-5e0bc04dfdc5 / ext4 defaults,discard,acl,user_xattr 1 1
/dev/Linux_Data/Home /home ext4 defaults 1 2
/dev/Linux_Data/Temp /tmp ext4 acl,user_xattr 1 2
/dev/Linux_Data/Var /var ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
UUID=c49ea5d3-9a5e-4f6d-a94d-67b695240f0d /mnt/local ext4 user,acl 1 2
UUID=4BA5-F908 /mnt/local/tausch vfat defaults,uid=1000,gid=100,fmask=133,dmask=022 1 2
192.168.2.2:/mnt/local/fileshares/public /mnt/remote/SoltauSuseServer_Public nfs defaults,bg,rw,auto,user,soft,vers=3 0 0
192.168.2.2:/mnt/local/fileshares/private/martin /home/martin/Downloads/special nfs defaults,bg,rw,auto,soft,user,vers=3 0 0
UUID=dfe172cc-251a-4d09-bc94-a7bb7389a039 /mnt/local/extern1 ext4 defaults,rw,noauto,user 0 0
UUID=8137cdf5-59e1-4bb8-a545-b519d81d31aa /mnt/local/extern2 ext4 defaults,rw,noauto,user 0 0
UUID=1523eeae-f3ac-4758-af7f-fd30fcbb81ad /mnt/local/Sysbackup ext4 user,acl,user_xattr 1 2


menu.lst

root@Microknoppix:/dev/disk/by-uuid# cat /media/sde3/boot/grub/menu.lst
# Modified by YaST2. Last modification on Tue Aug 2 22:40:21 CEST 2011
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd4,2)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.6-0.7
root (hd4,2)
kernel /boot/vmlinuz-2.6.37.6-0.7-desktop root=/dev/disk/by-uuid/950f779d-ff6d-4d44-a17b-5e0bc04dfdc5 resume=/dev/Linux_Data/Swap splash=silent quiet showopts vga=0x375
initrd /boot/initrd-2.6.37.6-0.7-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.7
root (hd4,2)
kernel /boot/vmlinuz-2.6.37.6-0.7-desktop root=/dev/disk/by-uuid/950f779d-ff6d-4d44-a17b-5e0bc04dfdc5 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x375
initrd /boot/initrd-2.6.37.6-0.7-desktop

###Don't change this comment - YaST2 identifier: Original name: linux###
title Memory Test (memtest86+) -- openSUSE 11.4 - Memory Test (memtest86+)
kernel (hd4,2)/boot/memtest.bin root=/dev/disk/by-uuid/950f779d-ff6d-4d44-a17b-5e0bc04dfdc5 resume=/dev/Linux_Data/Swap splash=silent quiet showopts vga=0x375

###Don't change this comment - YaST2 identifier: Original name: windows 4###
title Windows 7
rootnoverify (hd4,0)
chainloader +1


und die device.map

root@Microknoppix:/dev/disk/by-uuid# cat /media/sde3/boot/grub/device.map
(hd1) /dev/disk/by-id/ata-WDC_WD6400AAKS-65A7B2_WD-WCASYA692617
(hd2) /dev/disk/by-id/ata-WDC_WD6400AAKS-65A7B2_WD-WCASYA688019
(hd3) /dev/disk/by-id/ata-WDC_WD6400AAKS-65A7B2_WD-WCASYA691078
(hd4) /dev/disk/by-id/ata-WDC_WD7501AALS-00E3A0_WD-WCATR0141448
(hd0) /dev/disk/by-id/ata-M4-CT256M4SSD2_0000000011180306F133


Ausgabe von "find /boot/grub/stage1" in der Rescue-console der Opensuse 11.4-CD (grub auf der Konsole gestartet) war hd(4,2).

Danke und Gruß,
Martin

smartysmart34
05.08.11, 07:35
root@Microknoppix:/dev/disk/by-uuid# cat /media/sde3/boot/grub/device.map
(hd0) /dev/disk/by-id/ata-WDC_WD6400AAKS-65A7B2_WD-WCASYA692617
(hd1) /dev/disk/by-id/ata-WDC_WD6400AAKS-65A7B2_WD-WCASYA688019
(hd2) /dev/disk/by-id/ata-WDC_WD6400AAKS-65A7B2_WD-WCASYA691078
(hd3) /dev/disk/by-id/ata-WDC_WD7501AALS-00E3A0_WD-WCATR0141448
(hd4) /dev/disk/by-id/ata-M4-CT256M4SSD2_0000000011180306F133

Kurzes Update: Ich habe in der device.map die Zuordnung wie oben angepasst, die ssd hat also jetzt die Nummer hd4.
Kein Unterschied

Im BIOS ist die SSD die erste Platte. Nun habe ich irgendwo gelesen, dass GRUB der im BIOS Erstgenannten Platte immer hd0 zuweist. müsste die in diesem Post gelistete device.map das nicht auf hd4 umdefinieren, sodaß das mit den in der menu.lst eingetragenen Werten passen müsste?

kreol
05.08.11, 09:59
15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.Quelle: Ultimatives Grub-manual (http://www.gnu.org/software/grub/manual/legacy/grub.html).

Was passiert, wenn Du grub neu im mbr etablierst?
grub
root (hd4,2)
setup (hd4)
quitDann sollte hd4 aber auch die Platte sein, die im BIOS als Bootplatte eingetragen ist.

Ansonsten: Mal booten und mit "c" auf die Grub-Konsole gehen. Dort kannst Du mit Tab-completion rausfinden, wo /boot und die notwendigen Dateien liegen.

Kreol

smartysmart34
05.08.11, 10:09
Wenn ich die von Dir genannten Befehle aus der Suse Rescue-Umgebung absetze, dann meldet er mir ein OK zurück. Also für die einzelnen schritte "Configuration found, ..."
Mein Problem ist: Wenn ich von der SSD booten will, dann kommt noch
"Stage 1.5 loading" und dann kommt NUR "Error 15". Der Text "File not found" kommt NICHT und ich bekomme auch keinen Grub-Prompt.

Daher auch keine GRUB-Konsole

Die Alte Platte war am Sata3-Port des Mainboards angeschlossen, war aber selbst ein SATA2-Device. Die SSD ist nun ein SATA3-Device. Kann es da zu Inkompatibilitäten kommen, wenn Linux plötzlich am SATA3-Port hängt, der jetzt auch auf SATA3 läuft?

smartysmart34
05.08.11, 16:10
Vielleicht ne blöde Frage, aber ich versteh das nicht ganz: Reicht es denn, wenn ich die device.map einfach editiere, oder muss ich danach den MBR nochmal aktualisieren (grub... root(,); setup (hd4))?

Danke und Gruß,
Martin

kreol
05.08.11, 18:05
Vielleicht ne blöde Frage, aber ich versteh das nicht ganz: Reicht es denn, wenn ich die device.map einfach editiere, oder muss ich danach den MBR nochmal aktualisieren (grub... root(,); setup (hd4))?
...Es reicht, die device.map zu editieren, Grub verwendet sie beim nächsten Reboot. Es sollte halt auch das richtige drinstehen...

Kreol

P.S.
Für eine Grub-Konsole kannst Du auch eine Live nehmen. grml, Knoppix, Kanotix oder die SGD (http://linux.softpedia.com/get/System/Boot/Super-Grub-Disk-8071.shtml).

smartysmart34
05.08.11, 20:53
Also kurzes Update:

Das war mir deutlich zu viel gefrickel und gesuche. Hab Acronis True Image Home für 30 € gekauft, die Platte nochmal damit auf die SSD geklont und umgesteckt: Läuft.
Grub intakt, Windows bootet und unter Linux habe ich in fstab und menu.lst dreimal die UUID geändert. ferdisch. Manchmal kann man sich für etwas Kleingeld auch Nerven sparen ;-)

Frage: Täuscht mich das, oder ist clonezilla an manchen Ecken etwas wackelig? Die haben ja jetzt gerade erst wieder nen Fehler gefixt durch den man garkeine Clones machen konnte. Es gibt mehrere Hinweise, das die 64bit-version die belegten Blöcke (calculating bitmap) nicht ermitteln kann und endlos hängt. Und die 32bittige Variante hat mir nen nichtstartenden Klon hingedonnert. Wohlgemerkt mit den Defaults im simple Interface (nicht Expert mode).

Insofern: Danke für die Hilfsversuche, Gruß und schönes Wochenende
Martin

gropiuskalle
05.08.11, 21:38
Ich benutze Clonezilla schon sehr lange (die 64bit-Version) und hatte noch nie Probleme damit - recoveries werden regelmäßig von mir getestet; Klon rüberbraten, ggf. fstab und all das anpassen, läuft.

Warum das hier nicht läuft, verstehe ich auch nicht so recht - eventuell beim Klonen und / oder recovery nicht auf die Optionen für den MBR geachtet?