[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub hd0 -> hd3



Uwe Kerstan wrote:
...
Den Bootsektor im MBR würde ich erstmal nicht überschreiben,
weil du davon z.Z. bootest. /etc/mtab sollte beim Start neu erstellt werden, ist also kein Problem (Backup schadet aber nicht).

Suche mal bitte die Kernel in der Grub-Shell:

find /boot/vmlinuz-2.6.18-4-k7

Da müssten mindesten 2 Kernel sein, die Ausgabe wäre interessant.

(hd0,0)
(hd3,0)

Eine Alternative wäre noch:

1. Live-CD booten
2. mount /dev/sda1 /mnt
3. chroot /mnt /bin/bash
4. grub-install /dev/sda

Sollte den Grub in den MBR der SATA-Platte installieren.
Dann die SATA-Platte im BIOS als erste Bootplatte festlegen.

hab ich gemacht, dann kriege ich die Meldung:
df: Warnung: Lesen der Tabelle eingehängter Dateisysteme nicht möglich - Datei oder Verzeichnis nicht gefunden (kommt 2x)

Could not find device for /boot: Not found or not a block device

Ohne chroot:
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device


Ich hab dann an der grub Shell
root (hd3,0)
setup (hd3)
gemacht und success bekommen.

Beim booten kam dann der Eintrag aus der menu.lst der sda1, aber der root-Eintrag stimmte nicht (hd,0), denn hab ich dann auf (hd0,0) geändert (im BIOS habe ich die sda jetzt als Bootplatte).

Trotzdem sieht das noch nicht korrekt aus:

root@linux:/boot/grub# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda7 on /var type ext3 (rw)
/dev/mapper/home_crypt on /home type ext3 (rw)
/dev/hda1 on /mnt/hda1 type ext3 (rw)
/dev/mapper/opt_crypt on /opt type ext3 (rw)
/dev/mapper/music_crypt on /opt/mp3 type ext3 (rw)
/dev/mapper/www_crypt on /var/www type ext3 (rw)
/dev/mapper/video_crypt on /video type ext3 (rw)


root@linux:/boot/grub# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/hda1 / ext3 rw,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
/dev/hda1 /dev/.static/dev ext3 rw,data=ordered 0 0
tmpfs /dev tmpfs rw 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
/dev/sda7 /var ext3 rw,data=ordered 0 0
/dev/mapper/home_crypt /home ext3 rw,data=ordered 0 0
/dev/hda1 /mnt/hda1 ext3 rw,data=ordered 0 0
/dev/mapper/opt_crypt /opt ext3 rw,data=ordered 0 0
/dev/mapper/music_crypt /opt/mp3 ext3 rw,data=ordered 0 0
/dev/mapper/www_crypt /var/www ext3 rw,data=ordered 0 0
/dev/mapper/video_crypt /video ext3 rw,data=ordered 0 0
root@linux:/boot/grub#

root@linux:/boot/grub# cat /proc/mounts  |grep sda1
root@linux:/boot/grub# cat /proc/mounts  |grep hda1
/dev/hda1 / ext3 rw,data=ordered 0 0
/dev/hda1 /dev/.static/dev ext3 rw,data=ordered 0 0
/dev/hda1 /mnt/hda1 ext3 rw,data=ordered 0 0
root@linux:/boot/grub#

Also wieder Differenz zwischen mount und /proc/mounts (mtabs hatte ich gelöscht).

Ich lass das jetzt erstmal laufen, weil ich für eine Woche nach Frankreich bin, aber wenn ich zurück bin muss ich da nochmal dran - vielleicht hast du oder sonst noch einer ja noch 'ne Idee?

Andre


--
Personal weblog and more: http://bischof.homelinux.net

Stilblüten aus Polizeiberichten und Gerichtsverhandlungen:
Nach ambulanter Behandlung konnte der junge Mann seinen Finger wieder
mit nach Hause nehmen.



Reply to: