You are not logged in.
Pages: 1
I've a disk partitioned thus :
partition 0 - ntfs - windows xp - 20 GB
partition 1 - ext4 - SliTaz - 20 GB
partition 2 - ext4 - linux distro_B - 20 GB
partition 3 - extended
partition 4 - logical - ext4 - 20 GB
partition 5 - logical - ext4 - 400 GB
The linux distro_B was originally in a different disk. I copied all the files from that disk to partition 2(dev/sda3) , edited menu.lst accordingly and distro_B boots flawlessly. Menu.lst entry is htis :
root (hd0,2)
kernel /boot/vmlinuz-linux root=/dev/sda3 nomodeset
However, if I put distro_B in partition 4 (dev/sda5), I get error 15 from grub - file not found. Yes, I updated menu.lst to
root (hd0,4)
kernel /boot/vmlinuz-linux root=/dev/sda5 nomodeset
I'm wodering what the problem is and how to get grub to see the logical partition?
Any help will be greatly appreciated!
Offline
The primary partition are reserved on position 1 - 4, and the first logical partition are started anyway from 5 position.
Your correct partition table are
partition 0 - ntfs - windows xp - 20 GB
partition 1 - ext4 - SliTaz - 20 GB
partition 2 - ext4 - linux distro_B - 20 GB
partition 3 - extended
partition 5 - logical - ext4 - 20 GB
partition 6 - logical - ext4 - 400 GB
IMHO
Offline
Thanks for your reply gibor! I tried root(hd0,5) and got the same file not found error (15).
gparted lists the first logical partition as dev/sda5 so I think root(hd0, 4) is correct because grub starts counting at 0. Amyway I tried 4 and 5 and none works.
Offline
On my case have multiple partition, and grub legacy (0,97) work on all partition.
Grub at launch search folder /boot/grub on partition indicated, if it correct the boot run correctly.
The message error 15 is the grub not found the folder on partition indicated.
My partition table
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 61435903 30716928 7 HPFS/NTFS
/dev/sda2 61435904 83140607 10852352 83 Linux
/dev/sda3 83140608 91529215 4194304 82 Linux swap
/dev/sda4 91531262 488395928 198432333+ 5 Extended
/dev/sda5 91531264 112560560 10514648+ 83 Linux
/dev/sda6 112562176 425480191 156459008 83 Linux
/dev/sda7 425482240 445962239 10240000 83 Linux
/dev/sda8 445964288 488395928 21215820+ 83 Linux
sda1 so Seven
sda2 so SliTaz
sda3 swap
sda4 extended
sda5 rolling-testing
sda6 data partition
sda7 linux lfs
sda8 partition for various so testing
the menu.lst
title Slitaz kernel-2.6.37
root (hd0,1)
kernel /boot/vmlinuz-2.6.37-slitaz root=/dev/sda2 quiet
title SliTaz-rolling-dev
root (hd0,7)
kernel /boot/vmlinuz-3.2.71-slitaz nomodeset root=/dev/sda8
title SliTaz-lfs
root (hd0,6)
kernel /boot/vmlinuz nomodeset root=/dev/sda7
title Windows
Seven
rootnoverify (hd0,0)
chainloader +1
makeactive
title SliTaz live
root (hd0,5)
kernel /boot/vmlinuz-2.6.37-slitaz lang=it_IT kmap=it
initrd /boot/rootfs.gz
title SliTaz-rolling live
root (hd0,5)
kernel /boot/rolling-core/boot/vmlinuz-3.2.71-slitaz lang=it_IT kmap=it
initrd /boot/rolling-core/boot/rootfs.gz
title Acronis
root (hd0,5)
kernel /boot/acronis/dat3.dat vga=791 ramdisk_size=131072 acpi=off quiet mbrcrcs=on /s
initrd /boot/acronis/dat2.dat
title Boot Options
lock
find --set-root /boot/grub/submenu.lst
configfile /boot/grub/submenu.lst
Offline
Thanks gibor. My partition table isn't too different from yours and menu.lst looks more or less the same too, So I'm still clueless. I'll take a look at grub's manual.
Offline
So I used grub's console mode and made sure that grub can see hd0,4 and of course it can. But it turns out I had made a pretty stupid mistake when copying files and that's why it wouldn't find the kernel image. Sorry I wasted your time and thanks again.
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]