Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Several of my friends are avid Linux users, so they finally talked me into trying it out. At first everything worked just fine, then the problems started coming, but first a little background to this problem:
I have a Sony PCG-R505EL with WinXP, preinstalled. Because of the weird proprietary I-link docking station containing the the CD drive, I ended up having to copy all of the Mandrake 9.1 cds to a FAT32 partition. Initially I installed Mandrake 9.1 just fine, and was able to boot into XP as well using the GRUB boot manager. Slowly a friend was helping me get everything working, until one day, I want to Start XP and am greeted by the message "NTLDR is missing".
Right after the ntldr error, Linux stopped booting directly into KDE, and instead gave some sort of error message of "hard disk failure", so I had to log on from the console and "startx". I assumed this was due to the fact that the ntldr was missing.
Nothing I read online helped, and reluctantly I decided I'd create yet another partition and install XP again. I did so, but soon found out that Sony's driver installers wouldn't install the drivers unless XP was in the C: drive. So after backing up my files via Linux, I deleted both of the NTFS partitions with the Windows XP installations, created a new partition, and installed WinXP.
So now XP works, but I no longer get the GRUB boot menu. Having encountered this before on my desktop, I thought I could remedy the situation by Using the Mandrake Boot CD, then type "rescue", finish booting of the Mandrake Copy on my FAT32 hard drive, and simply have Mandrake reinstall the boot loader. However, when the process was almost done, I get the error message
"Fatal: First sector of /dev/hda3 doesn't have a valid boot signature"
"Program exited abnormally (return code 1)"
My drives are as follows:
hda1 - NTFS with winXP
hda2 - FAT32 with the Mandrake CDs
hda3 - Extended with Mandrake 9.1
I searched the web high and low, but came up with nothing that really applied to my situation. Lots of people wrote about setting up a dual system from scratch, but nothing if you already have XP and linux coexisting, especially not if GRUB was the boot loader being used. One post suggested to try to "update" from the Mandrake CD.
I tried that, until I came to a screeching halt when I received the error
"An error occurred
Oops, no root partition"
I asked a friend about this and he said that this meant that I didn't have my linux partition mounted.
So I booted into the console and typed
"mount"
sure enough, only the ram-drive was mounted, so I typed
"mount /dev/hda3 /"
This time when I checked mount, hda3 was mounted
I tried "exit", "quit" and anything else to get back into the rescue GUI, but since nothing worked, cntrl alt deleted and rebooted. One back in the rescue GUI, I again tried to have it reinstall the boot loader, but once again it stopped with the same error
"Fatal: First sector of /dev/hda3 doesn't have a valid boot signature"
"Program exited abnormally (return code 1)"
Anybody have any idea how I can go about fixing my partition so that it has a "valid boot signature"? This is most frustrating, since I have or HAD a perfectly working installation on Linux, and now, I can't even boot into the console part of it.
I'm rapidly becoming disillusioned with linux, since non of my friends who have used linux for years have been able to help me at all. I'
Should I install linux into yet anoter partition? Would I have access to my personal files, or are they locked somehow?
Should I create another very small partition to keep my bootloader and/or grub safe?
Is there a way to boot into linux via the console, without actually invoking grub?
I'm really in need of some help.....as a Junior in College, I'm required to use a linux environment to do my coding homework, and right now I can't access it.
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
Hi,
The URL that Tink gave you is an HTML version of the man pages, which should always be your first resource.
I hope that you do have your linux boot disk. If you do, boot it, login as root and then type grub-install /dev/hda at the prompt. This should install GRUB on the MBR which is the way it should be installed. You may then have to edit the /boot/grub/grub.conf to make it boot your XP, but man grub will tell you how to do that (or that link that Tink gave you).
Turns out there was more amiss than just grub. I installed grub following the instructions on that link, and was amazed at how easy it was. All I had to do was type boot to the rescue section, go to the conosole and type:
However, when I rebooted, there was still alot wrong, but now I was in familiar territory for my linux friend.
He quickly determined that the problem lay in the fact that linux expected to find mandrake in hd0,3 when in fact it was now in hd0,2
There was quite a few things wrong.
The problem was that mandrake still expected to find itself in the hd0,3 partition, when it was in the hd0,2 partition.
We had to edit the various config files using vim or something like that, but I can't say I remember all the files he edited. He used find and replace to change any refrence to hd0,3 to hd0,2.
Then, we installed grub again, and everything worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.