LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-11-2004, 10:40 PM   #1
fester225
LQ Newbie
 
Registered: Dec 2004
Posts: 9

Rep: Reputation: 0
Sarge, No Grub


I have installed Sarge from NetInst. On reboot Grub gives error-18 and stops. This is supposed to be solved by creating a boot partition within the first 1023 cylinders of the hard-drive.

I've tried creating a 50MB bootable partition during the install, but Debian won't install the kernal there. How do I get NetInst to load the kernal in the boot partition?

The next partition is mounted at /home and is 14.4Gb, after that is the swap area.

Menu.lst has:

default 0
timeout 5
color cyan/blue white/blue

title Debian GNU/Linux, kernel 2.4.27-1-386
root (hd0,1)
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda2 ro
initrd /boot/initrd.img-2.4.27-1-386
savedefault
boot

title Debian GNU/Linux, kernel 2.4.27-1-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.4.27-1-386
savedefault
boot

How do I get Grub to run?
 
Old 12-12-2004, 03:06 AM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
I don't know the sarge installer specifically, but you should tell it that you want that partition mounted as "/boot". Does it not let you do this for some reason?

/boot does not even need to be that big. On my first install, I used a little bigger than that, not knowing how much I was going to need. My boot partition today holds only 7.5 MB today. You aren't likely to need much more than that (of course, give yourself a little room to breath).

Also, I'd have a knoppix disk handy. It is a debian system that runs purely from a CD. You don't even need to have a hard drive in the system to run knoppix. It can be useful as an emergency boot disk. (times like these for instance)

If you can get to a console, you could try manually copying the contents of /boot into the other partition, and running the grub installation program.

Any way, I'm tired and am going to bed.
 
Old 12-12-2004, 07:26 AM   #3
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
1. Partition manually, remember you only have 4 primary partitions in a hd.

2.If you have to create a /boot (why is that?) with 15 MB is enough, and it has to be Ext2, otherwise, it won't work, the other partitions can be something else, (reiser, xfs, jfs, ext3, etc)

Last edited by macondo; 12-12-2004 at 07:27 AM.
 
Old 12-12-2004, 07:17 PM   #4
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
macondo: You can correct me if I'm wrong, but there are no real differences in this context between ext2 and ext3. An ext3 partition is formated with the command "mkfs.e2fs -j /dev/partition". If I remember right, you can even mount an ext3 as an ext2 (at least in read only mode).

You are right though that other filesystems can be difficult on grub. I think that stage 1.5 has something to do with this...

Anyway, I think that ext3 should work. Ext2 does.
 
  


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
Tired of Grub! (Debian Sarge AMD64) ssobeht Debian 4 03-31-2005 06:44 AM
Reinstalling GRUB in Sarge fazaman Debian 4 02-25-2005 05:16 PM
How can I re-install grub from debian-sarge cd rosariowong Debian 3 12-13-2004 01:43 PM
Sarge NetInst Grub error-18 fester225 Debian 3 12-10-2004 04:16 PM
re-install grub from the cd of debian sarge hraposo Debian 1 11-04-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration