Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Since I re-install Windows OP,I have to rewrite the Grub to the MBR.
i type the command:
%Grub
%root (hd0,6) ##my linux(ubuntu 6.10) sits in hdc6.
%setup (hd0)
And I could see the successful acknowledgy.But I still boot to ubuntu.
The error infomation is:
Error 15:File not found.
What i'm amazing is that the content in the menu.lst is:
***********************************************
root (hd0,7)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc8 ro quiet splash.
initrd /boot/initrding-2.6.17-10-generic
************************************************
I tried for a few times the results are the same.
But it't sure that i see the successful acknowledgment.
when i edit it to:
root (hd0,5)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc6 ro quiet splash.
initrd /boot/initrding-2.6.17-10-generic
it says can't mount partition.
when i edit it to:
root (hd0,6)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc7 ro quiet splash.
initrd /boot/initrding-2.6.17-10-generic
after boot,it says :
/bin/sh:can't access tty: job control turned off
If your root folder is located on partition 6 of hdc then root(hd0,x) should be 5. This parameter specifies the number of partitions BEFORE the one you want to use. The kernel line should specify the actual device which would be /dev/hdc6.
Also, what is the content of /boot/grub/device.map? This maps the GRUB hd0/hd1/hd2... etc to physical devices. I *think* it is supposed to follow the boot order of the drives as set in your BIOS.
Below are two example entries for you, whenever you modify the device.map file, re-run: #grub-install /dev/hdc
I had a case where I couldn't get grub to work in spite of doing everything right and I just ran Super Grub Disk and let it figure out what was wrong. After using it, I've just decided that I don't want to troubleshoot grub problems by hand anymore.
I made a SGD with USBDisk,It doesn't work.Another time i run LiveCD and i use df command to examine the USBDisk.
It seems something wrong(my USBdisk is 128M,but it is only 10M)
and many functions of the fdisk command don't work well.
Quote:
Originally Posted by Quakeboy02
I had a case where I couldn't get grub to work in spite of doing everything right and I just ran Super Grub Disk and let it figure out what was wrong. After using it, I've just decided that I don't want to troubleshoot grub problems by hand anymore.
I don't think the hd number is wrong after I have tried something.And the grub-install had said it is ok.
Now I find another amazing phenomenon:When i tried to re-install ubuntu.There is no partition at all.But I can mount some of the partitions and i can see them under windows.
Quote:
Originally Posted by VoidRoamer
Hi cber,
A couple of thoughts for you...
If your root folder is located on partition 6 of hdc then root(hd0,x) should be 5. This parameter specifies the number of partitions BEFORE the one you want to use. The kernel line should specify the actual device which would be /dev/hdc6.
Also, what is the content of /boot/grub/device.map? This maps the GRUB hd0/hd1/hd2... etc to physical devices. I *think* it is supposed to follow the boot order of the drives as set in your BIOS.
Below are two example entries for you, whenever you modify the device.map file, re-run: #grub-install /dev/hdc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.