News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Moving grub

Started by brummie, March 24, 2006, 11:19:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brummie

Whats the possibility of sucessfully moving the Grub boot loader to a different partition?

Anyone know how to do it?

Badabing

Quote from: brummieWhats 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?

brummie

Quote from: Badabing
Quote from: brummieWhats 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.

Badabing

i getcha...


dunno if it is possible, though.

Goblin

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.

brummie

Quote from: GoblinBy 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

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.

brummie

Quote from: maximusotterDont 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


brummie

FFS my /tmp is omn there too will ubuntu create a new temp folder?

maximusotter

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 /

brummie

that went worse than expected  :(

now in windows  :P


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

maximusotter

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.

brummie

post ya fstab for us pwease

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

maximusotter

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"