LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2008, 08:13 PM   #1
spacepigeon
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Need to move grub to my linux partition


Currently I have GRUB installed on sda1 (windows), and this is also my bootable partition. I assume that after I install grub onto my linux partition, I need to make sda2 (root) my bootable partition.

Any pointers or tips??

Thanks in advance.
 
Old 07-04-2008, 08:28 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
Originally Posted by spacepigeon View Post
Currently I have GRUB installed on sda1 (windows), and this is also my bootable partition.
Are you sure ??? - this is possible, but unlikely. Show us some evidence. When you boot the machine do you get a grub menu or a Windows loader screen ???.
Quote:
I assume that after I install grub onto my linux partition, I need to make sda2 (root) my bootable partition.
Nope - the Linux loaders ignore the boot/active flag.

Why don't you tell what problem you think you are trying to solve.
 
Old 07-04-2008, 08:38 PM   #3
spacepigeon
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
GRUB loader. Looks like:

Arch Linux
Arch Linux Fallback
Windows

Last few lines of /boot/grub/menu.lst look like

Code:
title  Arch Linux
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro
initrd /boot/kernel26-fallback.img

# (1) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
Anyway, when I built this machine a few days ago, I didn't have a retail copy of XP handy and I know XP likes to have the first partition so I used a reinstall disk from an old Dell. Arch asked where I wanted to install grub and I said sda1 (windows). Now that I have a retail copy, I need to make sure that when I reinstall on sda1, I can still load Arch.
 
Old 07-04-2008, 08:52 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Looking at that, seems you mis-remembered.
Grub is in the MBR, with its stage files in /dev/sda2. So far so good.
When you re-install XP, it will indeed trash the MBR - easy enough to fix. Been a few months since I did an Arch fix-up, but I don't think it's the easiest for this. I use a Gentoo minimal CD, but any liveCD will do - Knoppix say. From a terminal, run the command "grub" as root, then
Code:
root (hd0,1)
setup (hd0)
All done - just re-boot.
 
Old 07-04-2008, 08:58 PM   #5
spacepigeon
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks! I thought about using the Arch cd and skipping all the way to install the bootloader and proceed. I do have a Ubuntu 8.10 live cd kicking around, Ill probably just use that and your suggestion.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move Linux system to new partition hcgrant Linux - Software 2 11-02-2007 04:58 PM
How to move unused windows partition to linux partition? aribowo SUSE / openSUSE 3 05-29-2007 12:51 AM
delete windows partition and move linux up Mr_C Linux - General 7 03-17-2006 02:28 PM
move xp partition for linux davidleroux1 Linux - Software 4 11-27-2004 04:16 PM
Grub/booting problems after partition move jacobly Linux - Newbie 3 09-02-2003 09:33 AM


All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration