• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[Erledigt] Grub-Konfiguration überprüfen

A

Anonymous

Gast
Hi,

da ich am WE plane, Windows 7 zu installieren, möchte ich gerne meine Grub-Konfiguration überprüfen, so dass die Installation dann nicht wie sonst immer eine Try-And-Error-Prozedur wird. Kann mir jemand sagen, ob das so passt? Ich hatte mir vor kurzem eine separate boot-Partition eingerichtet, und dabei den Grub zerschossen. Ich hatte dann solange rumprobiert, bis es wieder ging, das möchte ich gerne vermeiden. ;)

Meine Partitionstabelle:
Code:
root@RossTheBoss:/home/Herbie> fdisk -l

Platte /dev/sda: 200.0 GByte, 200049647616 Byte
255 Köpfe, 63 Sektoren/Spuren, 24321 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x368efd66

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1       23015   184867956    7  HPFS/NTFS
/dev/sda2           23016       24321    10490413+   7  HPFS/NTFS

Platte /dev/sdb: 250.0 GByte, 250059350016 Byte
255 Köpfe, 63 Sektoren/Spuren, 30401 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x18f817f2

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1   *           1        3914    31439173+   7  HPFS/NTFS
/dev/sdb2            3915        5872    15727635    7  HPFS/NTFS
/dev/sdb3            5873       23874   144601033+   7  HPFS/NTFS
/dev/sdb4           23875       30401    52428124    7  HPFS/NTFS

Platte /dev/sdc: 160.0 GByte, 160041885696 Byte
255 Köpfe, 63 Sektoren/Spuren, 19457 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0xedc236a5

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdc1   *           1        1308    10506478+  83  Linux
/dev/sdc2            1309       19457   145781842+   5  Erweiterte
/dev/sdc5            1309        1340      257008+  83  Linux
/dev/sdc6            1341        1862     4192933+  82  Linux Swap / Solaris
/dev/sdc7            1863        9014    57448408+  83  Linux
/dev/sdc8            9015       19457    83883364+   7  HPFS/NTFS
root@RossTheBoss:/home/Herbie>
/dev/sdc1 ist /
/dev/sdc5 ist /boot

Meine device.map
Code:
root@RossTheBoss:/home/Herbie> cat /boot/grub/device.map
(hd2)   /dev/disk/by-id/ata-MAXTOR_STM3160215AS_9RA5AX9E
(hd0)   /dev/disk/by-id/ata-SAMSUNG_HD250HJ_S0URJ9BP901410
(hd1)   /dev/disk/by-id/ata-SAMSUNG_HD200HJ_S16KJ1NQ602494

Meine grub.conf
Code:
root@RossTheBoss:/home/Herbie> cat /etc/grub.conf
setup --stage2=/boot/grub/stage2 (hd0) (hd2,4)
quit

Meine menu.lst
Code:
root@RossTheBoss:/home/Herbie> cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Fr Jul 24 15:06:00 CEST 2009
default 0
timeout 10
gfxmenu (hd2,4)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux
    root (hd2,4)
    kernel /vmlinuz root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part1 resume=/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part6 splash=verbose showopts vga=0x31a
    initrd /initrd

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

Meine fstab:
Code:
root@RossTheBoss:/home/Herbie> cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc    /proc   proc    defaults        0       0
sysfs   /sys    sysfs   noauto  0       0
devpts  /dev/pts        devpts  mode=0620,gid=5 0       0

# Linux-Partitionen
/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part1        /       ext3    acl,user_xattr  1    1
/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part5        /boot   ext3    acl,user_xattr  1    1
/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part6        swap    swap    defaults        0    0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part7        /home   ext3    acl,user_xattr  1    2

# Windows-Partitionen
/dev/disk/by-id/ata-SAMSUNG_HD250HJ_S0URJ9BP901410-part1        /windows/C      ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0      0
/dev/disk/by-id/ata-SAMSUNG_HD250HJ_S0URJ9BP901410-part2        /windows/D      ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0      0
/dev/disk/by-id/ata-SAMSUNG_HD250HJ_S0URJ9BP901410-part3        /windows/E      ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0      0
/dev/disk/by-id/ata-SAMSUNG_HD250HJ_S0URJ9BP901410-part4        /windows/F      ntfs-3g rw,locale=de_DE.utf8,uid=1000,umask=0027      0       0
/dev/disk/by-id/ata-SAMSUNG_HD200HJ_S16KJ1NQ602494-part1        /windows/G      ntfs-3g rw,locale=de_DE.utf8,uid=1000,umask=0027      0       0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM31602_9RA5AX9E-part8        /windows/H      ntfs-3g rw,locale=de_DE.utf8,uid=1000,umask=0027      0       0
/dev/disk/by-id/ata-SAMSUNG_HD200HJ_S16KJ1NQ602494-part2        /windows/I      ntfs-3g rw,locale=de_DE.utf8,uid=1000,umask=0027      0       0

# Virtualbox USB-Unterstützung
usbfs /proc/bus/usb usbfs auto,busgid=1000,busmode=0775,devgid=1000,devmode=0664 0 0

Wäre nett, wenn das jemand überfliegen kann, ich möchte unnötiges Fluchen vermeiden am WE...
Danke
 

lOtz1009

Moderator
Teammitglied
Zu den GRUB-Settings sag ich erstmal nix, das können andere hier besser :D

Nur ein Hinweis: Windows7 legt bei der Installation eine eigene Bootpartition an.
 
OP
A

Anonymous

Gast
Hi,

das wird doch ne grössere Aktion. Ich schmeisse meine Partitionierung über den Haufen, wird eh mal Zeit für eine Müll-Entsorgung ;) . Geplant ist es so:
Platte /dev/sda: 200.0 GByte (/dev/disk/by-id/ata-SAMSUNG_HD200HJ_S16KJ1NQ602494)
--> C mit 30 GB
--> D mit 170 GB

Platte /dev/sdb: 250.0 GByte (/dev/disk/by-id/ata-SAMSUNG_HD250HJ_S0URJ9BP901410)
--> E mit 250 GB

Platte /dev/sdc: 160.0 GByte (/dev/disk/by-id/ata-MAXTOR_STM3160215AS_9RA5AX9E)
--> bleibt eigentlich fast so
--> /dev/sdc8 fliegt raus, den freien Speicher bekommt /home

@josef-wien
Bin grade nicht im Linux, weil der MSDNAA-Downloader leider nur im Windows funzt.
 
OP
A

Anonymous

Gast
Es hat geklappt. Ich musste nur im Bios die Reihenfolge der 200GB-und 250GB-Platte tauschen. Danach Grub mit Buntu-LiveCD und chroot installiert.

Für alle, die künftig auch Win 7 installieren wollen:
Ich kann euch nur den Tip geben, legt die Windows Partitionen schon vor der Installation an und hinterlasst keinen unpartitionierten Bereich. Wie schon erwähnt, legt Win 7 sonst bei der Installation eine eigene Boot-Partition an. Nachzulesen hier: http://www.mydigitallife.info/2009/...m-been-created-during-windows-7-installation/ Mit dieser Boot-Partition hatte ich nur Ärger. Windows liess sich dann nach der Grub-Installation nicht mehr booten und meckerte über kaputte Filesysteme, eine Reparatur half auch nicht mehr. Ich hab auch nicht so ganz verstanden, aus welcher Partition Windows dann eigentlich startet, aus der Boot- oder System-Partition...Ohne die Boot-Partition ging die Installation und der Start beider Systeme jedenfalls ohne Probleme.
 
Oben