Florian Kulzer wrote:
I looked up GNU GRUB Manual 0.97(http://www.gnu.org/software/grub/manual/html_node/index.html), seems like u problem is this.On Wed, Jul 26, 2006 at 11:48:07 +0100, marc wrote:Matthew Dawson said...-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1On Tuesday 11 July 2006 17:03, marc wrote:Hi, I have a little problem :-o Machine has Windows on sda2 vfat, which is the MBR. (sda1 is not used), Linux on sda3, sda4 contains sda5 swap, sda6 ext Linux, sda7 is vfat shared space. Here's the story, so far - moved Linux (on sda3) to a safe place while booted on another partition (sda6) - formatted sda3 as reiserfs - amended both fstabs (sda3 and sda6) - mounted the newly formatted sda3 partition - moved the data back onto sda3 - rebooted. Grub currently loads from /boot on sda3, or rather it doesn't now. I'm getting an error 17 : Cannot mount selected partition. I'm not overly surprised, but I'm not sure what to do next. I can mount the partition from a live CD without a problem, and I obviously mounted it from my sda6 partition. Suggestions welcomed.It would seem that grub only embeded support for ext2, which is what it should do because the partition was ext (it uses ext2 support for both ext3 and ext2). What you have to do is embed the reiserfs support. Try mounting the all the partitions as normal from a livecd, then chrooting into it and running update-grub. That should fix the problem.Just got back to this. Nope, update-grub only "updated" menu.lst, no changes to the initrd.sudo dpkg-reconfigure linux-image-.... should rebuild your initrd. (For older kernels it is "kernel-image" instead of "linux-image".) If that does not work in the chroot environment then you can call mkinitrd or mkinitrd.yaird directly.
In short, it will perform a full install presuming the Stage 2 or Stage 1.510 is in its final install location. In slightly more detail, it will load stage1_file, validate that it is a GRUB Stage 1 of the right version number, install in it a blocklist for loading stage2_file as a Stage 2. If the option d is present, the Stage 1 will always look for the actual disk stage2_file was installed on, rather than using the booting drive. The Stage 2 will be loaded at address addr, which must be `0x8000' for a true Stage 2, and `0x2000' for a Stage 1.5. If addr is not present, GRUB will determine the address automatically. It then writes the completed Stage 1 to the first block of the device dest_dev. If the options p or config_file are present, then it reads the first block of stage2, modifies it with the values of the partition stage2_file was found on (for p) or places the string config_file into the area telling the stage2 where to look for a configuration file at boot time. Likewise, if real_config_file is present and stage2_file is a Stage 1.5, then the Stage 2 config_file is patched with the configuration file name real_config_file. This command preserves the DOS BPB (and for hard disks, the partition table) of the sector the Stage 1 is to be installed into.
setup --stage2=/boot/grub/reiserfs_stage1_5 (hd0) install /boot/grub/stage1 (hd0) /boot/grub/reiserfs_stage1_5 Remember return 2 me if that's really work, because I'm not sure in this. Shell.E.Xu -- 与其相濡以沫,不如相忘于江湖 |
- Re: Howto fix grub after converting to reiserfs marc
- Re: Howto fix grub after converting to reiserfs Florian Kulzer
- Re: Howto fix grub after converting to reiserfs shell