titan wrote:I'm going out on a limb here, but I think it may have something to do with you using dd instead of doing an image.
Also, take a look here:
Grub doesn't really have a cylinder limit if your BIOS supports LBA (ignoring the unrelated problem of partitions > 2GB that must use GPT) -- Error 18 is actually the error you get when your BIOS can't support it ("Selected cylinder exceeds maximum supported by BIOS"). Unless you have an old 28-bit limited LBA BIOS, all you should have to do is reinstall Grub after moving the partition.bthylafh wrote:After some digging, I think my Ubuntu partition is now too far towards the back of the disk, which puts Grub past whatever its cylinder limit is.
bitvector wrote:Typically how I reinstall grub from a rescue boot is:
1. mount my existing hierarchy under say /mnt (including /mnt/boot if that's separate).
2. mount -t bind /dev /mnt/dev
3. mount -t bind /dev/pts /mnt/dev/pts
4. mount -t proc none /mnt/proc
5. chroot /mnt
6. grub-install /dev/sda (or whatever)
root@ubuntu:/# grub-install /dev/sda
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
You said you tried to run grub-install onto sda3, but you'd probably want to install to sda (i.e. the disk's MBR, not the partition superblock).
Also, make sure your /boot/grub/menu.lst refers to the NEW correct partition numbers for the (hd?) stuff (also you may have to change /etc/fstab if the partitions are mounted by number and have changed).
title Ubuntu 8.10, kernel 2.6.27-11-generic
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=6ca30b5a-6299-4b07-9ab3-7834601787ef ro quiet splash vga=795
Oops, it was supposed to be -t none -o bind, but --bind is the same.bthylafh wrote:GParted labeled it as sda4, so I did your suggestion, except instead of "-t bind" I did "--bind" because the other way doesn't work.
Well, based on what you've said, I suppose you'd want root (hd0,3), which should be sda4 and you'll need to remove the /boot prefix and just have the kernel and initrd as /vmlinuz... and /initrd... (since /boot is a separate partition, they are in the top-level directory in that partition -- they just get mounted at /boot).bthylafh wrote:Do I need to change that to have the root as the new /boot partition, or what should I do?
Users browsing this forum: No registered users and 4 guests