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

Re: [help] passer de lilo à grub



Le Sun, 15 Jul 2007 22:55:08 +0200
Daniel Huhardeaux <no-spam@tootai.net> a écrit:

> > Aucune des "doc" de migration lilo -> grub que j'ai vu ne mentionne ce
> > cas. Si j'ai bien compris il faut que le menu.lst soit
> > dans /boot/boot/grub au lieu de /boot/grub
> >   
> Faux. C'est bien dans /boot/grub qu'il doit être.

Pourtant dans /usr/share/doc/grub/README.Debian  c'est écrit (voir point 3):

«
quick setup
+-----------
+
+after installing the package:
+
+1) grub-install "(hd0)"
+   or if /boot is a separate partition
+   grub-install --root-directory=/boot "(hd0)"
+
+   using in place of "(hd0)" the device that you boot from
+
+2) update-grub which will create a menu.lst for you if one does not exist
+   or manually create one, and skip to step 4
+
+3) edit /boot/grub/menu.lst
+   or if /boot is a separate partition
+   edit /boot/boot/grub/menu.lst
+
+   and change groot, and kopt to whatever settings you need.
+   modify anything else in the menu.lst you want,
+
+   re-run update-grub to update the lines for each kernel to those
+   that you specified with groot and kopt
»

> C'est la définition de 
> tes partitions dans menu.lst qui doit être erronée. Voici celle que 
> j'utilise:
> 
> title           Debian GNU/Linux, kernel 2.6.21-2-amd64
> root            (hd0,2)
> kernel          /vmlinuz-2.6.21-2-amd64 root=/dev/mapper/vg0-Dom0 ro 
> vga=791 splash
> initrd          /initrd.img-2.6.21-2-amd64
> 
> Pour un fdisk qui est:
> 
> /dev/sda1               1          10       80293+  de  Dell Utility
> /dev/sda2   *          11         133      987997+   6  FAT16
> /dev/sda3             134         164      249007+  83  Linux
> /dev/sda4             165        9729    76830862+  8e  Linux LVM
> 
> et un fstab:
> 
> dh@listryx:~$ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    defaults        0       0
> /dev/mapper/vg0-Dom0 /               xfs     defaults        0       1
> /dev/sda2       /dos            vfat    defaults,users,gid=6,umask=7    
> 0       0
> /dev/sda3       /boot           ext3    defaults        0       2
> /dev/mapper/vg0-Home /home           xfs     defaults        0       2
> /dev/mapper/vg0-swap none            swap    sw              0       0
> /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
> /dev/mapper/vg0-DomU1 /media/XP      ext3     defaults        0       2
> 
> Donc/ /boot est la 3ème partition du premier disque soit pour grub hd0,2
> > Par contre je n'ai pas compris comment ça se gére ensuite avec update-grub
> > lors de l'installation d'un paquet noyau car update-grub ne semble
> > travailler que sur /boot/grub 
> Voir ci-dessus.

Et pour le groot tu as quoi?

Gaëtan



Reply to: