Prev: exFAT is... (was Re: Vfat or NTFS?)
Next: Overwrite existing partition with zeros without hurting partition table? (Debian Lenny)
From: Umarzuki Mochlis on 8 Mar 2010 01:30 Assuming Debian Lenny's installer will detect a Ubuntu 10.04 (daily build) partition in my PC (debian = /dev/sda1, ubuntu = /dev/sda3), i installed Lenny on sda1 but Ubuntu entry does not show up on GRUB. # grub-install -v grub-install (GNU GRUB 0.97) so i proceed to edit grub taking example from Ubuntu's grub.cfg like below ### BEGIN /etc/grub.d/10_linux ### menuentry "Ubuntu, with Linux 2.6.32-15-generic" { recordfail insmod ext2 set root=(hd0,3) search --no-floppy --fs-uuid --set 76fe9a67-1168-4154-b994-4b466e92f7df linux /boot/vmlinuz-2.6.32-15-generic root=UUID=76fe9a67-1168-4154-b994-4b466e92f7df ro quiet splash initrd /boot/initrd.img-2.6.32-15-generic and i came out with: title Ubuntu, with Linux 2.6.32-15-generic root (hd0,2) kernel /boot/vmlinuz-2.6.32-15-generic root=/dev/sda3 ro quiet splash initrd /boot/initrd.img-2.6.32-15-generic but i can't boot that partition, where did i go wrong or Lenny's version of GRUB cannot boot from ext4 partition? -- Regards, Umarzuki Mochlis http://debmal.my
From: Sjoerd Hardeman on 8 Mar 2010 04:30 Umarzuki Mochlis schreef: > Assuming Debian Lenny's installer will detect a Ubuntu 10.04 (daily > build) partition in my PC (debian = /dev/sda1, ubuntu = /dev/sda3), i > installed Lenny on sda1 but Ubuntu entry does not show up on GRUB. > > # grub-install -v > grub-install (GNU GRUB 0.97) > > so i proceed to edit grub taking example from Ubuntu's grub.cfg like below > > ... > but i can't boot that partition, where did i go wrong or Lenny's version > of GRUB cannot boot from ext4 partition? I thought grub1 does not boot from ext4. Anyway, grub2 does, so installing grub2 should solve your issues. Sjoerd PS. Make sure you have a rescue cd when installing new bootloaders. An error is all too easily made (either by you, the installer or whatever else) and usually results in an unbootable system.
From: Umarzuki Mochlis on 9 Mar 2010 11:30 So now i had installed grub2 and it does not automatically detects a distro i had installed (before installing debian) on /dev/sda3 I saw this message on /boot/grub/grub.cfg # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub and do i proceed from here? [snipped] > I thought grub1 does not boot from ext4. Anyway, grub2 does, so installing > grub2 should solve your issues. > > Sjoerd > PS. Make sure you have a rescue cd when installing new bootloaders. An > error is all too easily made (either by you, the installer or whatever else) > and usually results in an unbootable system. > > -- Regards, Umarzuki Mochlis http://debmal.my
From: Andrei Popescu on 9 Mar 2010 15:40 On Wed,10.Mar.10, 00:27:19, Umarzuki Mochlis wrote: > So now i had installed grub2 and it does not automatically detects a distro > i had installed (before installing debian) on /dev/sda3 > > I saw this message on /boot/grub/grub.cfg > # DO NOT EDIT THIS FILE > # > # It is automatically generated by /usr/sbin/grub-mkconfig using templates > # from /etc/grub.d and settings from /etc/default/grub > > and do i proceed from here? Install os-prober and re-run update-grub. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Umarzuki Mochlis on 9 Mar 2010 18:40
2010/3/10 Andrei Popescu <andreimpopescu(a)gmail.com> > On Wed,10.Mar.10, 00:27:19, Umarzuki Mochlis wrote: > > So now i had installed grub2 and it does not automatically detects a > distro > > i had installed (before installing debian) on /dev/sda3 > > > > I saw this message on /boot/grub/grub.cfg > > # DO NOT EDIT THIS FILE > > # > > # It is automatically generated by /usr/sbin/grub-mkconfig using > templates > > # from /etc/grub.d and settings from /etc/default/grub > > > > and do i proceed from here? > > Install os-prober and re-run update-grub. > > Thanks, the following is the steps taken (which is successful, of course) 1. mount /dev/sda3 (the ext4 os partition) "tune2fs -E test_fs /dev/sda3; mount -t ext4dev /dev/sda3 /mnt/" 2. copy its menu entry entry in /mnt/boot/grub/grub.cfg to /etc/grub.d/40_custom 3. run update-grub (it should say that it detects the other os's kernel) 4. new entries for that os will be appended in /boot/grub/grub.cfg > Regards, > Andrei > -- > Offtopic discussions among Debian users and developers: > http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBCAAGBQJLlrFJAAoJEHNWs3jeoi3p8BwH/jojcCfYqHqLZUc0HVV7QiKb > rvokI3/ECOUssO5Vx6HVSMCpY/ony0Yck6+c8eO2oazRPEsETxM90npRZJe+6ovy > XC8JQuhd8dKBEXfnVfJFM1yxWkOvE8/gjBwAsBTWtypg1UmzSaF7E8z3HWoGty/e > PwDJStqRQLptCN+bJBJoBSUbVl3NXduRhVBh//5Ea7amndsIyxWB6jiSWbDM5/jC > oLxwNvpBCLclLjune64cqQ9h8O9d0Oi6bTBlIhAOdS3K4qO95WztvS8q0KBcVWx8 > N0LiXBMxTtuynRiXHlkSOrARSqsus3ullMR1oAXA/4ORia/aGAVx3pHJ099YJk4= > =yGga > -----END PGP SIGNATURE----- > > -- Regards, Umarzuki Mochlis http://debmal.my |