LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-10-2007, 05:12 PM   #1
PLFaBiaN5
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Rep: Reputation: 15
grub loader swap partition


is alright to install the grub loader on the
swap partiton? or do you have to setup another partition
for the boot loader /boot and install it there?
 
Old 01-10-2007, 05:18 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You can't install grub to swap. /boot doesn't need its own partition , although it is fine if it has one. Grub needs to be in the MBR of the first drive to be read, and then the rest of the files for booting go in the /boot directory, which can be in its own partition, or as part of the root /.

Peace,
JimBass
 
Old 01-10-2007, 05:31 PM   #3
PLFaBiaN5
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 15
y can't the grub be on the hda5 partition of the master record?
hda5 is my /boot partition.
 
Old 01-10-2007, 05:36 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Grub should be in the /boot partition, but it also needs to be in the MBR, so it gets read. The part that tells the machine where to find the rest of the boot info sits in the MBR, and the rest of it sits in the /boot directory. That is the default, and always the correct way of doing things.

Peace,
JimBass
 
Old 01-10-2007, 05:42 PM   #5
PLFaBiaN5
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 15
i trying to leave my master boot record intact and trying to install the grub in the
/boot partition and modify the boot file in windows so i could boot the linux os.
 
Old 01-10-2007, 05:44 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
First Grub should not be put in a swap as it would be overwritten every time the swap is used.

Grub can be placed anywhere but it can only boots a Linux if it is in the MBR.

If Grub is placed elsewhere then it can only be booted by whatever in the MBR. Once loaded Grub can proceed to boot other systems.

Every partition, except a few rarely used ones, has a boot sector so Grub can be placed in any partition, especially where there is no boot loader competing for the boot sector.

You have to be clear about what you want to do with Grub before placing it in a destination.
 
Old 01-10-2007, 06:08 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Building on what the master already said....

In this context, we are talking about stage 1 of grub. This typically goes in one of three places: mbr, boot sector of a partition, or on a floppy.

Regardless of where GRUB goes, there must be something in the mbr (or a floppy)

All this aside, you need to describe exactly how you want your system set up.....
 
Old 01-10-2007, 06:15 PM   #8
PLFaBiaN5
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 15
this of topic but i get this error when its creating catalogs in suse 10.2

cd:///?devices=/dev/hdc
Unknow Error: Can't copy /var/adm/mount/AP_0x00000001/suse/setup/descr/gnome-10.2-145.i586.pat
to /var/tmp/TmpDir.7MrBDg/DATA/descr/gnome-10.2-145.i586.pat

anyone knows what this ever means?
 
Old 01-10-2007, 07:06 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by PLFaBiaN5
this of topic but i get this error when its creating catalogs in suse 10.2

cd:///?devices=/dev/hdc
Unknow Error: Can't copy /var/adm/mount/AP_0x00000001/suse/setup/descr/gnome-10.2-145.i586.pat
to /var/tmp/TmpDir.7MrBDg/DATA/descr/gnome-10.2-145.i586.pat

anyone knows what this ever means?
First, please do not change the subject in the middle of us trying to help you......

Quote:
cd:///?devices=/dev/hdc
What is this?---Is this supposed to be a valid Linux command? If so, what is it supposed to do?
If this was not the command, then what IS the command that generated those messages?
 
Old 01-11-2007, 02:02 PM   #10
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Quote:
i trying to leave my master boot record intact and trying to install the grub
If your only booting one OS no your system then grub must be in the MBR.
But if you are dual booting two or more OS systems then there are other options open to you, but there must be some form of boot loader with in the first 512 bit of the drive for linux to boot.
 
Old 01-11-2007, 02:22 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by Duck2006
If your only booting one OS no your system then grub must be in the MBR.
But if you are dual booting two or more OS systems then there are other options open to you, but there must be some form of boot loader with in the first 512 bit of the drive for linux to boot.
We may have lost OP---oh well

Nitpicking the above: something must be in the mbr, or on a floppy (or a CD/DVD)
 
Old 01-11-2007, 02:50 PM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I do carry in my signature 3 methods of installing Linux while keeping Windows MBR untouched like a virgin, to suit the level hardware the Windows user has.
 
Old 01-11-2007, 10:36 PM   #13
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
saikee has some good options on the signature of his post, witch i give a try and it sould fix your problem, and leave the MBR in tact
 
  


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
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 07:11 PM
Grub loader not loading Windows XP or Fedora Core 1 after changing partition size. zetafunc Fedora - Installation 17 06-12-2005 02:27 AM
lost grub AND swap partition Frelov Linux - Newbie 3 03-10-2005 12:06 AM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
Add logical ntfs partition to GRUB loader ! Bonch Debian 1 12-09-2004 11:01 AM


All times are GMT -5. The time now is 12:16 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