Russell_S
June 4th, 2009, 01:24 AM
Hi, this is my first post and am very new to this. I have spent most of the day Googling and reformatting to try and sort my own problem out but I appear to have failed which is why I'm now posting here.
Firstly some background. I have a Dell D600 laptop with a 40gb HDD and Windows XP installed and working. I decided to try Ubuntu 9.04 and went through the install routine and had it shrink my Windows partition down to free up some space for Ubuntu. This worked absolutely fine and I could dual boot into either operating system with no issues. I was starting to enjoy using Ubuntu and was learning a lot about installing packages and configuring the system which is where I've always come unstuck before.
At this point I decided that I would keep Ubuntu on the laptop but was restricted by the 40gb drive. So, I got a new 160gb drive so that I would still have plenty of space for Windows but also be able to use Ubuntu productively. Firstly I tried using Symantec Ghost to clone the old drive to the new one and resizing the partitions at the same time. This didn't work correctly as when I rebooted I just got the screen filled with "GRUB" constantly scrolling. However, after fixing the MBR I could then boot into Windows fine but obviously Ubuntu was not available. I've since found out that Ghost is known not to work well with Linux so I abandoned this approach.
I then decided to try just re-installing Ubuntu onto the new HDD. I booted of the live CD and deleted all the partitions except the Windows one. I then re-installed Ubunto telling it that I wanted Ubuntu & Windows side by side. This seemed to go fine until I rebooted and then I got a "GRUB error 18"
Now I have tried using "CloneZilla" to clone the old disk onto the new one without resizing the partitions as a test as I thought I could use "GParted" to resize them afterwards to my requirements. This again appeared to work fine until I rebooted. Now it doesn't bring up the boot menu and just presents me with a GRUB> command prompt. If I enter the following commands I can boot int Windows ok:
GRUB> root (hd0,0)
GRUB> makeactive
GRUB> chainloader +1
GRUB> boot
This will boot into windows fine. However I've followed lots of advice on commands to enter to boot into Ubuntu but none seem to work. I've connected the old disk up and booted from the liveCD and checked both hard disks and the menu.lst file is present in both and the contents are the same. So I don't know why the boot menu doesn't appear.
This is the disk structure as reported by GParted:
/dev/hda1 . . . . . . fat32
/dev/hda2 . . . . . . extended
. . /dev/hda5 . . . . ext3
. . /dev/hda6 . . . . linux swap
I've tried following the advice here http://users.bigpond.net.au/hermanzone/p15.htm#Find_out_which_partition_is_your__or
but when I enter the command "GRUB> find /sbin/init" it just returns "error 15: File not found". However, I know the file is there because I could see it when I booted from the LiveCD and browsed the disk. I've tried the following commands to boot into Ubuntu but it doesn't recongnise the kernel file as shown.
GRUB> root (hd0,4) . . . . . . . . . . . . . . returns "Filesystem type is ext2fs, partition type 0x83"
GRUB> kernel vmlinuz-2.6.28-11-generic root=/dev/hda5 . . . . . . . . . returns "Error 2: Bad file or directory type"
So, this is where I'm now at. I can still boot into either OS with the old HDD but I'm at a loss now what to do with the new one. Could someone give me some advice about, firstly why the boot menu is not coming up and, secondly what I can do about it and boot into my Ubuntu installation.
Many thanks and sorry for the long post. I just thought it would help to give as much info as possible.
Regards
Russell
Firstly some background. I have a Dell D600 laptop with a 40gb HDD and Windows XP installed and working. I decided to try Ubuntu 9.04 and went through the install routine and had it shrink my Windows partition down to free up some space for Ubuntu. This worked absolutely fine and I could dual boot into either operating system with no issues. I was starting to enjoy using Ubuntu and was learning a lot about installing packages and configuring the system which is where I've always come unstuck before.
At this point I decided that I would keep Ubuntu on the laptop but was restricted by the 40gb drive. So, I got a new 160gb drive so that I would still have plenty of space for Windows but also be able to use Ubuntu productively. Firstly I tried using Symantec Ghost to clone the old drive to the new one and resizing the partitions at the same time. This didn't work correctly as when I rebooted I just got the screen filled with "GRUB" constantly scrolling. However, after fixing the MBR I could then boot into Windows fine but obviously Ubuntu was not available. I've since found out that Ghost is known not to work well with Linux so I abandoned this approach.
I then decided to try just re-installing Ubuntu onto the new HDD. I booted of the live CD and deleted all the partitions except the Windows one. I then re-installed Ubunto telling it that I wanted Ubuntu & Windows side by side. This seemed to go fine until I rebooted and then I got a "GRUB error 18"
Now I have tried using "CloneZilla" to clone the old disk onto the new one without resizing the partitions as a test as I thought I could use "GParted" to resize them afterwards to my requirements. This again appeared to work fine until I rebooted. Now it doesn't bring up the boot menu and just presents me with a GRUB> command prompt. If I enter the following commands I can boot int Windows ok:
GRUB> root (hd0,0)
GRUB> makeactive
GRUB> chainloader +1
GRUB> boot
This will boot into windows fine. However I've followed lots of advice on commands to enter to boot into Ubuntu but none seem to work. I've connected the old disk up and booted from the liveCD and checked both hard disks and the menu.lst file is present in both and the contents are the same. So I don't know why the boot menu doesn't appear.
This is the disk structure as reported by GParted:
/dev/hda1 . . . . . . fat32
/dev/hda2 . . . . . . extended
. . /dev/hda5 . . . . ext3
. . /dev/hda6 . . . . linux swap
I've tried following the advice here http://users.bigpond.net.au/hermanzone/p15.htm#Find_out_which_partition_is_your__or
but when I enter the command "GRUB> find /sbin/init" it just returns "error 15: File not found". However, I know the file is there because I could see it when I booted from the LiveCD and browsed the disk. I've tried the following commands to boot into Ubuntu but it doesn't recongnise the kernel file as shown.
GRUB> root (hd0,4) . . . . . . . . . . . . . . returns "Filesystem type is ext2fs, partition type 0x83"
GRUB> kernel vmlinuz-2.6.28-11-generic root=/dev/hda5 . . . . . . . . . returns "Error 2: Bad file or directory type"
So, this is where I'm now at. I can still boot into either OS with the old HDD but I'm at a loss now what to do with the new one. Could someone give me some advice about, firstly why the boot menu is not coming up and, secondly what I can do about it and boot into my Ubuntu installation.
Many thanks and sorry for the long post. I just thought it would help to give as much info as possible.
Regards
Russell