grub2: symlink on reiserfs: error: file not found
Quoted 10 lines
Quoted 10 lines
I'm using grub-pc installed on hda9 and chainloaded from grub legacy on hda/hda1. hda3 (Debian Etch) and hda9 (Debian Sid) have reiserfs (v3.6), both systems are configured to use the symlinks vmlinuz and initrd.img in their root directories (linking to the actual kernel and ramdisk). This works well using grub legacy from hda1 (so the symlinks are okay).
In grub2 both partitions are recognized (ls and tab completion) as reiserfs. Selecting Sid (hda9) works as expected,
Selecting Etch (hda3) produces the error: You need to load the ramdisk first. Typing on grub commandline: linux (hd0,3)/vmlinuz makes error: file not found
Typing: linux (hd0,3)/boot/vmlinuz-2.6.18-6-k7 loads the kernel.
Robert Millan asked me to produce a test case and send it to this mailinglist. I'm not very familiar with doing so but this should work:
echo "Testfile" >/boot/test
ln -s /boot/test /test
The diskimage http://www.chbmeyer.de/1.reiserfs.gz has a size of 35 MB (compressed: 36kb). "ls (hd0)/" works well
"cat (hd0)/test" produces: error: file not found
Thank you for your great work
Christian Meyer
_____________________________________________________________________
Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!
http://www.digitaledienste.web.de/freemail/club/lp/?lp=7
Quoted 14 lines · Christian Meyer
Quoted 10 lines
Quoted 10 lines
I'm using grub-pc installed on hda9 and chainloaded from grub legacy on hda/hda1. hda3 (Debian Etch) and hda9 (Debian Sid) have reiserfs (v3.6), both systems are configured to use the symlinks vmlinuz and initrd.img in their root directories (linking to the actual kernel and ramdisk). This works well using grub legacy from hda1 (so the symlinks are okay).
In grub2 both partitions are recognized (ls and tab completion) as reiserfs. Selecting Sid (hda9) works as expected,
Selecting Etch (hda3) produces the error: You need to load the ramdisk first. Typing on grub commandline: linux (hd0,3)/vmlinuz makes error: file not found
Typing: linux (hd0,3)/boot/vmlinuz-2.6.18-6-k7 loads the kernel.Robert Millan asked me to produce a test case and send it to this mailinglist. I'm not very familiar with doing so but this should work:
Quoted 7 lines
echo "Testfile" >/boot/test
ln -s/boot/test/testThe diskimage http://www.chbmeyer.de/1.reiserfs.gz has a size of 35 MB (compressed: 36kb). "ls (hd0)/" works well
"cat (hd0)/test" produces: error: file not found
The test file have problem, the link is pointed to /mnt/boot/test instead of /boot/test.
Signature · 1 line
Bean
Le Monday 25 February 2008 15:08:31 Bean, vous avez écrit :
Quoted 2 lines
The test file have problem, the link is pointed to
/mnt/boot/testinstead of/boot/test.
BTW, I wonder if the initial problam is similar...
Christian: can you double-check that the symlink is consistent with its containing partition ?
For example, having a partition mounted on /boot with symlinks inside it which are absolute from OS point of view will be broken from grub point of view, as it has no fstab notion.
Of course, if you don't have a separate /boot partition, having an absolute symlink should work, and if it doesn't it's a bug.
Vincent