GRUB: Cannot find list of partitions && /usr/sbin/grub-setup: error
I use four partitions on my machine: first and second for different Linux systems, third for data and fourth for swap. On the first partition I installed Mint. By default it used GRUB installed on /dev/sda. Then I installed Slackware on the second partition. I decided to put LILO on /dev/sda. In result I lost access to GRUB and Mint.
Now my goal is to install Mint’s GRUB on /dev/sda1 and then configure Slackware’s LILO to run Mint’s GRUB. To achieve the first goal I run Mint DVD, open terminal and use the commands: $ sudo mount /dev/sda1 /mnt/ $ sudo mount --bind /dev/ /mnt/dev/ $ sudo mount --bind /proc/ /mnt/proc/ $ sudo chroot /mnt/ Then I try to generate grub.cfg... # update-grub2 Code:
Generating grub.cfg ... First question: does that message informs about some serious problem? Second question: how can I pass the list of partitions on to GRUB? Next I try to install GRUB on /dev/sda1... # grub-install /dev/sda1 Code:
/usr/sbin/grub-setup: error: hd0,1 appears to contain a reiserfs filesystem which isn't known to reserve space for DOS-style boot. Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (--skip-fs-probe disables this check, use at your own risk). Quote:
Code:
#: util/i386/pc/grub-setup.c:258 # grub-install --skip-fs-probe /dev/sda1 Code:
Unrecognized option `--skip-fs-probe' *** Here are my GRUB’s configuration files... /etc/default/grub: Code:
# If you change this file, run 'update-grub' afterwards to update Code:
#!/bin/sh Code:
# Every assistance will be appreciated. |
Look at the tutorial link below, Section 4.G, Reinstall Grub. According to that you would just run: grub-install /dev/sda1 to install Grub 2 on the first partition.
http://www.dedoimedo.com/computers/g...mozTocId232162 I haven't used Lilo recently so I don't know how you would need to edit it to point to Mint partition. |
I tried --skip-fs-probe option mentioned in the first post together with grub-setup command...
# grub-setup -v --skip-fs-probe -r '(hd0,1)' /dev/sda1 Code:
grub-setup: info: cannot open `/boot/grub/device.map'. # grub-setup -v --skip-fs-probe --force -r '(hd0,1)' /dev/sda1 Code:
grub-setup: info: cannot open `/boot/grub/device.map'. Quote:
Code:
grub-setup: info: /dev/sda1 starts from 63. # grub-install /dev/sda1 Code:
/usr/sbin/grub-setup: error: hd0,1 appears to contain a reiserfs filesystem which isn't known to reserve space for DOS-style boot. Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (--skip-fs-probe disables this check, use at your own risk). Code:
/usr/sbin/grub-setup: error: hd0,1 appears to contain a reiserfs filesystem which isn't known to reserve space for DOS-style boot. Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (--skip-fs-probe disables this check, use at your own risk). @yancek As I wrote in the first post I tried grub-install /dev/sda1 command to install boot loader on the first partition but it refused to do it displaying very rare message about reiserfs filesystem, DOS-style boot, FILESYSTEM DESTRUCTION and --skip-fs-probe option. I’m sorry but your advice to use that command isn’t helpful at all because I encountered the problems when I tried to use that command. As for LILO I didn’t ask about it because I don’t have the problem with LILO but with GRUB. |
I rebooted machine and tried to boot Mint on /dev/sda1 using Mint DVD once again. It seems after last changes I lost the possibility to chroot to Mint installed on /dev/sda1...
$ sudo mount /dev/sda1 /mnt/ $ sudo mount –bind /dev/ /mnt/dev/ $ sudo mount –bind /proc/ /mnt/proc/ $ sudo chroot /mnt/ Code:
sudo: unable to execute /usr/sbin/chroot: Input/output error |
On the contrary - grub2 appears to understand the structure of reiser very well.
You were warned, you used --force, *you* screwed the filesystem. You shoot yourself in the foot, don't go blaming others. Like lilo grub2 relies on a blocklist - it moans (as above) about being installed into a partition, but seems to operate o.k. once done. On sane filesystems. |
Quote:
|
w1k0,
You might find it easier to put Grub2 on the MBR, and chainload slackware by putting your slackware bootloader into your slackware partition (sda2?) superblock. I can't remember whether Lilo will go into the superblock, but Grub 1 certainly will. Grub2 has some advantages, but you're not the only one to have troubles getting it to go anywhere except the MBR. For a lot of info on booting, see here |
Quote:
You stated that problem is common. So I’ll have to live with GRUB’s menu instead of LILO’s one. It isn’t very painful for me to use GRUB instead of LILO because I keep Mint on my spare machine and I use it rather seldom. In my opinion Mint is a great distribution for newcomers. So I test and configure the new version of Mint on my spare machine and then clone it on my girlfriend’s machine. That’s my whole story about Mint. Thank you impert for your nice assistance. I’ll keep that thread opened for a few days in hope that someone knows the tricky method of installing GRUB’s bootloader at the beginning of the partition and then I’ll mark it as SOLVED. |
Don't know if they've fixed this, it's been around for a while?
http://neosmart.net/blog/2008/ubuntu...fs-partitions/ https://bugs.launchpad.net/ubuntu/+s...ty/+bug/123102 http://www.mail-archive.com/ubuntu-b...msg417238.html |
Quote:
I know that Saikee, who wrote the "Just booting tips" in that link I gave you, has suggested using the -f option, but it was almost certainly with ext3. There does have to be somewhere for it to go at the start of the partition. |
Quote:
The fact that you don't understand that is irrelevant. For various reasons I haven't used reiser since before it was renamed to reiserfs. I can't help you as to whether what you want is even possible. Given Hans bloody-minded attitude, I doubt it. |
Hi,
I did a bit of googling. From this ancient thread: Quote:
|
Hi yancek,
thank you for informative links. Your first link is from January 2008: Quote:
Your second link is from June 2007: Quote:
Your third link is from June 2007: Code:
sudo chroot /target grub-install --no-floppy --debug "(hd0,4)" Thank you once again for your assistance, yancek. |
Hi impert,
in your first link there is also question: Quote:
Code:
mkdir /mnt/sda9 |
Hi impert,
your second link is also worth to follow: Quote:
|
Quote:
Quote:
Quote:
|
Hans Reiser is reiser - or was. Unfortunately a search these days will probably only find reference to his incarceration, not his ideas.
His attitude was always .... abrasive. |
Quote:
Personally, I'd give it a try: just edit the boot options as you are booting. I don't see what you've got to lose. See also this thread. |
Quote:
|
Quote:
|
Can you try booting your existing install from a Grub CD or a live CD with Grub (not syslinux) on it (pressing 'C' while it's booting), and edit the kernel line (hit 'E') to add that "notail" option? That might just save your existing OS.
|
I realize the links I posted were not currernt which is why I said the problem has been around for a while. I'm don't have any information on which Linux systems used the Grub/reiser combination but I used Suse Linux 9.2 exclusively for about 5 years and it was reiser and booted with Grub Legacy without problem. I don't remember the exact phrase I googled yesterday but, it was something like "boot reiser with grub". There were many more links than I posted, I just picked a few and as I recall almost all of them were Ubuntu or its derivatives.
I have no idea what the solution to this problem could be. Maybe it will work on your new install? Luck! |
Quote:
Now I'm testing my new ThinkPad X60s which I bought yesterday. So for some time I'll be away from Mint. But soon I'll try your advices. Thank you for your constant assistance. |
Quote:
Do you keep /boot directory on root partition or on separate one? Do you keep bootloader on the system partition or on MBR? I keep /boot directory on root partition and I try to put bootloader on the same ReiserFS partition. Quote:
|
Yes, Suse Linux 9.2 used Grub Legacy and your Mint is Grub2, don't know if that could be the problem but Grub2 is still beta software, AFAIK.
The boot directory was in the root partition. Quote:
|
I tried notail option but the result was the same as before. Mint's version of GRUB definitely dislikes ReiserFS. I decided to give up. I can live with GRUB's menu instead of LILO's one. Thank you guys for your assistance. I don't mark that thread as solved because it isn't solved at all.
|
I finally solved that problem. The solution is here.
|
All times are GMT -5. The time now is 03:41 PM. |