LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-15-2003, 04:07 AM   #1
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
Thumbs up /boot partition


I just found this forum....looks absolutely great.

The problem I have is this. I just installed RH 8.0. Also have XP installed (which I'm not totally impressed with btw). I thought I installed GRUB and now when I start the box it goes directly into XP. Now, when I run GRUB from a terminal, and try to configure it, it tells me that I haven't installed a boot partition. Now I am new and before someone rips on me, let me admit I know nothing!!! So, if someone can steer me in the right direction, I'd appreciate it and a very large mug of beer goes to you! I know I can just re-install RH, but I'd rather learn something here.

Thanks everyone!

Freestone
 
Old 01-15-2003, 08:03 AM   #2
barbanero
Member
 
Registered: Jan 2002
Location: Bucharest
Distribution: RedHat, AIX
Posts: 39

Rep: Reputation: 15
first of wall a can give you some hints about lilo not grub(i don't like it)

so, let's say you have installed XP and you want to install RH as the second system.

what is the size of harddisk?

if the harddisk is bigger (`20G let's say ) you must creat the root partition (/)
before 1024 cylinder or create only /boot partition (50M) the same before
1024 cylinder

you must remember /dev/hdax partitions that you have created to set up the
the boot manager (lilo) and the /dev/hday where resides XP

if it is clear Good luck!
 
Old 01-15-2003, 10:18 AM   #3
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
A few more tips:

You really don't need the /boot partition, since grub never need it to run (if you install the stage1 in the MBR) and newer versions of lilo don't need it too. It was necessary because the loader can't reach cyclinders above the 1024, like barbanero just said..

If you have access to your system with a boot disk, you can reinstall your bootloader, but before install hin it's a good idea to clean then first:
# dd if=/dev/zero of=/dev/hdx bs=512 count=1

With Grub you must to know the number of the partition that the data is, the first number is the number of the hd ( primary master -> 0 ), and the second is the number of the partition. Ex: hda1 => hd0,0; hdb2 => hd1,1

# /usr/sbin/grub
grub> install (hdX,X)/grub/stage1 (hd0) (hdX,X)/grub/stage2 0x8000 (hdX,X)/grub/menu.lst
grub> quit

With lilo is simpler:
# /sbin/lilo

Hope that helps ...
 
Old 01-15-2003, 11:06 AM   #4
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
Both grub and lilo support having the /boot partition beyond the 1024 cylinder. You just have to turn on that option. Grub has this feature built in. Lilo requires the option. Check the lilo man page...

But then again, like vladkrack said, you do not even need the boot partition...

-Leif
 
Old 01-15-2003, 08:43 PM   #5
Netrack
Member
 
Registered: Dec 2002
Posts: 57

Rep: Reputation: 15
also note, if your going to create a patition use partition majic, do not use the fdisk that is on the win boot disk, (took me ahwile to fig that one out)
 
Old 01-16-2003, 12:01 AM   #6
mechatron
LQ Newbie
 
Registered: Jan 2003
Location: australia
Distribution: redhat 8
Posts: 18

Rep: Reputation: 0
hang on, this might solve all my problems... I have RH8 and installed grub to mbr - does this mean I can just delete my /boot partition and everything will still be OK?
 
Old 01-16-2003, 02:54 AM   #7
barbanero
Member
 
Registered: Jan 2002
Location: Bucharest
Distribution: RedHat, AIX
Posts: 39

Rep: Reputation: 15
Nop! It is a bad idea!

If your grub is in mbr, to clear the mbr you must boot with a boot disk in DOS and give the command fdisk/mbr

will clean all data write in mbr
 
Old 01-16-2003, 03:08 AM   #8
mechatron
LQ Newbie
 
Registered: Jan 2003
Location: australia
Distribution: redhat 8
Posts: 18

Rep: Reputation: 0
i want to keep dual-booting with rh8/xp - i just want to reclaim the partition if its not being used - still a bad idea?
 
Old 01-16-2003, 07:46 AM   #9
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Only the stage1 it's in the MBR, then it points to stage2, that its's in disk. You can clean the MBR without the DOS bootdisk, using the dd like I posted earlier.

You can remove that partition, but first you will need the data, try to mount your /boot partition elsewhere:

# umount /boot
# mkdir /tmp/boot
# mount /dev/hdx /tmp/boot
# cp -av /tmp/boot/* /boot

You will have to remove from /etc/fstab the line that mounts the partition /boot, edit your /boot/grub/menu.lst in order to reflect your actual situation in partition scheme, then reinstall grub to make it work properly with the lines that I posted earlier too.

Hope that helps...
 
Old 01-16-2003, 08:53 AM   #10
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
mechatron, there are three ways to set up your dual boot system. Here is a simple tech sheet from Red Hat that explains each and how to make them work.

http://www.redhat.com/advice/tips/dualboot.html
 
  


Reply



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
dual boot xp/gentoo (selecting boot for each partition) saif__r Linux - Newbie 8 08-13-2005 10:23 AM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
creating new partition before boot partition?? rose_bud4201 Linux - General 17 02-07-2003 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 AM.

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
Open Source Consulting | Domain Registration