Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wanted Ubuntu on my Gateway Solo Laptop. It had Win98 on the C:\ and WinXP on the D:\. Before the install, I could not boot from CD, but I could boot from floppy.

I installed Ubuntu to run alongside Windows XP as that was one of the options. It didn't detect Win98, but I swear it's on there. Install seemed fine and then it asked me to reboot.

When I rebooted, I got the message error: no such partition and the grub rescue> command prompt. I've looked around, but some commands, like sudo, don't work. One command I did get to work was set root=(hd0,0) if that helps.

I'm a noob, and it was a pain installing Win98 and XP since this system is so old. I don't want to wipe my drive and start all over!


Additional details copied from comments

Addendum, I restored my master boot record via my Win98 boot floppy and typing in frisk /mbr. But, I'd still like to get ubuntu - any help?

If I restored my master boot record - did I delete Ubuntu?

share|improve this question
    
Addendum, I restored my master boot record via my Win98 boot floppy and typing in frisk /mbr. –  VictorVictor5 May 27 '12 at 1:31
    
But, I'd still like to get ubuntu - any help? –  VictorVictor5 May 27 '12 at 1:31
    
Crap, if I restored my master boot record - did I delete Ubuntu? –  VictorVictor5 May 27 '12 at 1:34
    
If you've destroyed your MBR, you have not destroyed Ubuntu. You have just destroyed that little elf that will guide you there. You can reinstall GRUB, and that elf will return., (No misnomer/pun intended) –  hexafraction May 27 '12 at 20:26
    
No I didn't abandon the question - are all of the posts showing up Irrational John? –  VictorVictor5 May 27 '12 at 23:19

1 Answer 1

Try to re-install GRUB (Hoping your installed Ubuntu partition is there).

  1. Boot using a live cd of ubuntu.

  2. Open a terminal and run the command

sudo fdisk -l

It lists the complete partition table of the hard disk. In there, identify which partition you have got your linux installed on. You can identify it using the drive size you had allocated for it and looking at the last column of the output which will be ‘extended’ for all of your linux partitions. The partition will most probably be something like /dev/sda5 or something. Remember this partition.

  1. Create a temporary folder in your home directory (Note: You can make the temporary folder anywhere you want. I’m using the home folder just for the sake of explanation). I’m calling it ‘temp’ for now. So that ‘temp’ folder’s path will be /home/ubuntu/temp.

  2. Mount your linux partition there. That is, assuming that you found your linux partition to be /dev/sda5, you mount that at the ‘temp’ folder by doing the following command

sudo mount /dev/sda5 /home/ubuntu/temp

  1. If you want to check whether you have mounted the correct partition, go to your home folder and open temp. You will be in the ‘/’ directory. In there you will find ‘home’, in which your home folder’s name will be there. Once you’ve confirmed you have mounted the correct partition, do step 6.

  2. You have to install grub by showing the system where to read the data from the hard disk at the beginning. Don’t worry, just run the following command

sudo grub-install --root-directory=/home/ubuntu/temp /dev/sda

The ‘/dev/sda’ corresponds to your hard disk name. Replace it by whatever the command ‘sudo fdisk -l’ command showed you.

  1. You’re done. You may restart your system
share|improve this answer
    
harisibrahimkv, here's the thing - I can't boot from CD (but I can boot from floppy), and I did try the sudo command, but grub rescue says its an unknown command. –  VictorVictor5 May 27 '12 at 14:39
    
Any other ideas? –  VictorVictor5 May 27 '12 at 14:39
    
Also, dumb question, but since I'm new, what the heck is a "live cd" of ubunutu? Is it the same thing as burning it to CD? –  VictorVictor5 May 27 '12 at 14:43
    
Live CD is the CD/USB of Ubuntu that you boot from. Here it might be termed as "Live floppy". Actually, Live specifically refers to the "Try Ubuntu" option. If you can boot from floppy and select "Try ubuntu", then do try and reinstall GRUB as I've said in my answer. Also, none of the commands I mentioned above are for a GRUB rescue prompt. –  harisibrahimkv May 27 '12 at 14:54
    
One more quick question, would this still work with Lubuntu? My specs are PII 400 MHz, 384 MB RAM, 160 GB IDE HDD, but my I have 2 partitions on it already - Win98 on C:, and WinXP on D:, and I wanted Ubuntu or Lubuntu on a third partition, i.e., a triple boot. Your thoughts on an appropriate distro for something this old? Thanks again! –  VictorVictor5 May 27 '12 at 17:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.