PDA

View Full Version : problem dual booting lenny and fedora 12 menu.lst


blackpearl
17th February 2010, 12:47 AM
hello everybody
i had recently installed fedora 12 in a system running debian lenny in (hd0,0), its grub is installed in mbr and the grub of fedora is installed in the installation partition of fedora .I defined a separate partition /boot for debian but for fedora i used the available space for boot swap and /.
i booted with live cd to copy the grub.conf of the fedora to add it into menu.lst of debian but i have got "error 15 : file not found".i need hel and i will be thunkfull (sorry for my english mistakes -3 rd language)

this is my menu.lst


title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /vmlinuz-2.6.26-2-686 root=/dev/sda8 ro quiet
initrd /initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd0,0)
kernel /vmlinuz-2.6.26-2-686 root=/dev/sda8 ro single
initrd /initrd.img-2.6.26-2-686


title Fedora (2.6.31.5-127.fc12.i686.PAE)
root (hd0,8)
kernel /boot/vmlinuz-2.6.31.5-127.fc12.i686.PAE ro root=UUID=d6a1b08d-156c-47d0-bf70-3e63731da995 LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=fr rhgb quiet
initrd /boot/initramfs-2.6.31.5-127.fc12.i686.PAE.img


these are the result of commands like df -h ; fdisk -l and so on


Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x127f7bec

Device Boot Start End Blocks Id System
/dev/sda1 1 36 289138+ 83 Linux
/dev/sda2 37 19451 155950987+ f W95 Ext'd (LBA)
/dev/sda5 6375 12748 51199123+ 7 HPFS/NTFS
/dev/sda6 12749 19451 53841816 7 HPFS/NTFS
/dev/sda7 37 97 489919+ 82 Linux swap / Solaris
/dev/sda8 98 3209 24997108+ 83 Linux
/dev/sda9 * 3210 6374 25422847+ 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 4007 MB, 4007657472 bytes
124 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1018 3913161 c W95 FAT32 (LBA)






/dev/sda1: UUID="90ab3a54-3fc8-4faa-beee-0da542eb91e7" TYPE="ext3"
/dev/sda5: UUID="EC1C041A1C03DF08" LABEL=" Revolutionario" TYPE="ntfs"
/dev/sda6: UUID="74C40DFEC40DC2FA" LABEL="Guevara" TYPE="ntfs"
/dev/sda7: TYPE="swap"
/dev/sda8: LABEL="ErvestoGuevara" UUID="a4cbe516-1dc6-460b-a444-49eeeffc4a57" TYPE="ext3"
/dev/sda9: UUID="d6a1b08d-156c-47d0-bf70-3e63731da995" TYPE="ext4"
/dev/sdb1: UUID="CDA0-745E" TYPE="vfat"


Me# cat /etc/fstab

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
/dev/sda8 / ext3 errors=remount-ro 0 1
/dev/sda1 /boot ext3 defaults 0 2
/dev/sda6 /media/Guevara ntfs defaults,nls=utf8,umask=0222 0 0
/dev/sda5 /media/Revolutionario ntfs defaults,nls=utf8,umask=0222 0 0
/dev/sda9 /media/sda9 ext4 defaults 0 0
/dev/sda7 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda /media/cdrom1 udf,iso9660 user,noauto 0 0





Filesystem Size Used Avail Use% Mounted on
/dev/sda8 24G 7.1G 16G 32% /
tmpfs 252M 0 252M 0% /lib/init/rw
udev 10M 836K 9.2M 9% /dev
tmpfs 252M 0 252M 0% /dev/shm
/dev/sda1 274M 25M 235M 10% /boot
/dev/sda6 52G 52G 90M 100% /media/Guevara
/dev/sda5 49G 49G 81M 100% /media/Revolutionario
/dev/sdb1 3.8G 3.6G 149M 97% /media/disk
/dev/sr0 3.0G 3.0G 0 100% /media/cdrom0

kyryder
17th February 2010, 01:49 AM
Hello and Welcome to FedoraForum.org ,

I have found it easier to boot multiple OS's using a chainloader in menu.lst. If you use a chainloader you won't have to do any of the copy/past. The syntax for a chainloader looks like this :

title Fedora 12 (sda8)
chainloader (hd0,7)+1

Hope this helps,

Ky

blackpearl
17th February 2010, 02:41 PM

thank you so much
it did work i am using fedora now
it was so helpfull
it was so simple and so easy that i didn't believe
i puted these tow lines into menu.lst of my debian lenny

title Fedora 12 (sda9)
chainloader (hd0,8)+1
with changing sda8 with sda9 and (hd0,7)+1 with (hd0,8)+1 since i have installed fedora on sda9 not sda8. .

if i am thinking correctly , if i install on sda9 i have to change (hd0,7) with hd0,8)

Note: I think this method won't work if i didn't install fedora's grub on its root partition or if i created a separate /boot partition ?

thank you so much kyryder for your precious help.

:D:D:D

kyryder
17th February 2010, 03:42 PM
Congratulations, I am glad you where able to make it work! :)

Yes you are right, the chainloader method will only work if you put grub in the same partition as the new OS.

The reason I thought Fedora was on sda8 was the output from fdisk -l shows that your boot partitions is sda9 /dev/sda9 * 3210 6374 25422847+ 83 Linux with the "*" so I wrongly thought it was lenny's grub.

Just so you know for the future, in the title line the "(sda?)" and in the chainloader line the "+1" are not needed by grub. That is just a trick to make the lines more human readable and help keep track of what is what.

Congratulations again,


Ky