Author Topic: Moving grub  (Read 4357 times)

Moving grub
on: March 24, 2006, 11:19:47 AM
Whats the possibility of sucessfully moving the Grub boot loader to a different partition?

Anyone know how to do it?

Moving grub
Reply #1 on: March 24, 2006, 12:49:59 PM
Quote from: brummie
Whats the possibility of sucessfully moving the Grub boot loader to a different partition?

Anyone know how to do it?


eh?

Where do you want to move it to?

GRUB resides in the MBR doesnt it? if you move it, it will not work...

Or am i wrong?

Moving grub
Reply #2 on: March 24, 2006, 13:02:37 PM
Quote from: Badabing
Quote from: brummie
Whats the possibility of sucessfully moving the Grub boot loader to a different partition?

Anyone know how to do it?


eh?

Where do you want to move it to?

GRUB resides in the MBR doesnt it? if you move it, it will not work...

Or am i wrong?


You are correct.

The drive it currently resides on though i want to pull out the system.

I have 3 SATA dives and 1 IDE drive
Windows was installed about 12months ago on a mirrored SATA array.
I then added the IDE disk and installed ubuntu on the 3 SATA. That left
the MBR on the IDE disk (silly me). I can pull the IDE disk out and use windows ok but i dont want to. So i would like the MBR on one of the SATA disks. Preferably the Ubuntu one.

Re:Moving grub
Reply #3 on: March 24, 2006, 13:13:12 PM
i getcha...


dunno if it is possible, though.

    • I Met Stuart - Where to find me
  • Offline Goblin

  • Posts: 1,228
  • Hero Member
Moving grub
Reply #4 on: March 24, 2006, 13:21:33 PM
By the time you work it out you could probably have backed up and reinstalled :)

Goblin
It's all fun and games until a 200' robot dinosaur shows up and trashes Neo-Tokyo… Again.

Moving grub
Reply #5 on: March 24, 2006, 13:43:57 PM
Quote from: Goblin
By the time you work it out you could probably have backed up and reinstalled :)

Goblin


I have thought about it but id rather find the solution

Moving grub
Reply #6 on: March 24, 2006, 14:24:14 PM
Dont move it, reinstall it where you want it using an aborted install of Ubuntu.

More info is at ubuntuforums.org. Have a search, its quite simple actually.

Moving grub
Reply #7 on: March 24, 2006, 14:25:47 PM
Quote from: maximusotter
Dont move it, reinstall it where you want it using an aborted install of Ubuntu.

More info is at ubuntuforums.org. Have a search, its quite simple actually.


I was going to try that as a last resort but thought there must be an official way of doing this like fixmbr or fixboot


Re:Moving grub
Reply #9 on: March 24, 2006, 14:44:42 PM
FFS my /tmp is omn there too will ubuntu create a new temp folder?

Moving grub
Reply #10 on: March 24, 2006, 14:50:00 PM
Youll have to make a new one. Id just edit fstab so it mounts back under wherever your / partition is.

So in my case:

/dev/hdb1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb2       /home           ext3    defaults        0       2
/dev/hda2       /tmp            ext3    defaults        0       2
/dev/hda3       none            swap    sw              0       0

Its just a matter of nixing the "/dev/hda2       /tmp " line

When you remove that line, then /temp just automatically defaults to under wherever youve mounted /

Re:Moving grub
Reply #11 on: March 24, 2006, 15:39:41 PM
that went worse than expected  :(

now in windows  :P


ah well lets face facts i was gonna end up reinstallin anyhow :roll:  

Moving grub
Reply #12 on: March 24, 2006, 15:44:31 PM
Youre all bad luck and club feet when it comes to Ubuntu, poor thing. :lol:

Did you format? Or just edit /etc/fstab wrong? If the latter, just use a live CD, mount the offending partition and edit away.

Re:Moving grub
Reply #13 on: March 24, 2006, 15:45:39 PM
post ya fstab for us pwease

didnt do anything yet just left it. My frigging Display wont load again, stuck in a loop

Re:Moving grub
Reply #14 on: March 24, 2006, 15:52:06 PM
Quote
# /etc/fstab: static file system information.
#
#            
proc            /proc           proc    defaults        0       0
/dev/hdb1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb2       /home           ext3    defaults        0       2
/dev/hda2       /tmp            ext3    defaults        0       2
/dev/hda3       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
/dev/hdd        /media/cdrom1   udf,iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda        /media/usb0     auto    rw,user,noauto  0       0
/dev/hda1       /media/xp  ntfs    nls=utf8,umask=0222 0       0
/dev/hdb3       none            swap    sw              0       0


Mines pretty crazy as I threw some swap and /temp onto the first drive (hda:XP) for giggles.

If you have three partitions: /, /home, and swap, with XP on the first and Ubuntu on the 2nd drive, a basic fstab should look like this:


Quote
# /etc/fstab: static file system information.
#
#            
proc            /proc           proc    defaults        0       0
/dev/hdb1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb2       /home           ext3    defaults        0       2
/dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
/dev/hdd        /media/cdrom1   udf,iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda        /media/usb0     auto    rw,user,noauto  0       0
/dev/hda1       /media/xp  ntfs    nls=utf8,umask=0222 0       0
/dev/hdb3       none            swap    sw              0       0


putting XP under "media" makes that drive show up under "Places"

0 Members and 1 Guest are viewing this topic.