Re: [gentoo-user] i586 install

2007-08-24 Thread Neil Bothwick
On Thu, 23 Aug 2007 17:00:26 + (UTC), James wrote:

> The ide disk setup is very simple:
> fdisk /dev/hda
> #   Device BootStartEnd  Blocks   Id  System
> # /dev/hda1   *  1 50  401593+  83  Linux
> # /dev/hda2 51 185 1084387+  82  Linux swap
> # /dev/hda3   * 186 243418065092+  83  Linux

Is hda1 /boot and hda3 the root partition?

> #0
> title=kernel-2.6.21-gentoo-r4
> root(hd0,1)
> kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3
> #0
> title=kernel-2.6.21-gentoo-r4
> root(hd0,1)
> kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda1

If so, this is all wrong. /boot is not mounted, so GRUB cannot find the
kernel in (hd0,x)/boot (unless you have it symlinked to itself) and
(hd0,1) is your swap partition anyway.

root (hd0,0)
kernel /kernel-2.6.21-gentoo-r4...

would find the kernel correctly. If in any doubt, use
"find /kernel-2.6.21-gentoo-r4" in the GRUB shell.

Incidentally, if you use "make install" to install your kernels, and set
up grub to use "kernel /vmlinuz" you don't need to update GRUB each time
you update your kernel, because vmlinuz will always be a symlink to the
latest.


-- 
Neil Bothwick

The Japanese call us lazy, but at least we cook our fish!


signature.asc
Description: PGP signature


Re: [gentoo-user] i586 install

2007-08-23 Thread Sarpy Sam
On 8/23/07, James <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I seem to be having trouble installing
> grub on i586 systems.
>
> What I use is the
> "install-x86-minmal-2006.0.iso" cd to boot the system
> and follow the hadbook install guide. But I use the stage3 tarfile:
> stage3-i586-2006.1.tar.bz2
>
> Everything runs fine until I try to reboot off the hard drive.
> I get this
>
> Grub loading stage1.5
>
> Grub loading, please waite...
> Error 16
>
> It's repeatable on (2) different (amd k6) systems.
>
> Googling mostly reveals suggestions about file system
> being corrupt. I ran file system chekcs (reiserfsck)
> per previous instuctions and /boot and / come back
> clean and happy.
>
> The ide disk setup is very simple:
> fdisk /dev/hda
> #   Device BootStartEnd  Blocks   Id  System
> # /dev/hda1   *  1 50  401593+  83  Linux
> # /dev/hda2 51 185 1084387+  82  Linux swap
> # /dev/hda3   * 186 243418065092+  83  Linux
>
> and grub
>
> default 0
> fallback 1
> timeout 30
>
> #0
> title=kernel-2.6.21-gentoo-r4
> root(hd0,1)
> kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3
> #0
> title=kernel-2.6.21-gentoo-r4
> root(hd0,1)
> kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda1
>
>
Grub method of numbering has always confused me but I thought that
root(hd0,1) would point to the hda2 partition which is the swap
partition.  Shouldn't it be root(hd0,0) to point it to the hda1
partition?  I could easily be wrong but that is what I would try.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] i586 install

2007-08-23 Thread Neil Bothwick
Hello Benno Schulenberg,

> > GRUB cannot read files from a tail-packed Reiser filesystem.  
> 
> Huh?  How is this machine able to boot then?  Here /boot isn't a 
> separate partition, but just a subdir of /, which is mounted 
> without notail, and has been so for years.

As Volker said, maybe things have changed recently, but the requirement
was always to use notail when running reiserfs on /boot. that's why I use
ext3 on my root partition (no /boot partition), but I'd be happy to
switch it to reiser.

The latest baselayout-1 still has this warning in fstab
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.


-- 
Neil Bothwick

And all the Borg left was this copy of OS/2...


signature.asc
Description: PGP signature


Re: [gentoo-user] i586 install

2007-08-23 Thread Benno Schulenberg
Neil Bothwick wrote:
> GRUB cannot read files from a tail-packed Reiser filesystem.

Huh?  How is this machine able to boot then?  Here /boot isn't a 
separate partition, but just a subdir of /, which is mounted 
without notail, and has been so for years.

# mount | grep " / "
/dev/hda9 on / type reiserfs (rw,noatime)

Benno
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] i586 install

2007-08-23 Thread Neil Bothwick
Hello Florian Philipp,

> > If you must use reiserfs on /boot (it's a complete waste of space,
> > ext2 is more sensible), you must mount it with the notail option.
> > GRUB cannot read files from a tail-packed Reiser filesystem.  
> 
> You do not only need to mount it with notail, you need to write all
> files with notail in the first place.

That's what I was trying to say, but thanks for clarifying it.


-- 
Neil Bothwick

"One world, one web, one program"  -- Microsoft promotional ad
"Ein Volk, ein Reich, ein Fuehrer"  -- Adolf Hitler


signature.asc
Description: PGP signature


Re: [gentoo-user] i586 install

2007-08-23 Thread Florian Philipp
Am Donnerstag 23 August 2007 19:14:12 schrieb Neil Bothwick:
> Hello James,
>
> > Googling mostly reveals suggestions about file system
> > being corrupt. I ran file system chekcs (reiserfsck)
> > per previous instuctions and /boot and / come back
> > clean and happy.
>
> If you must use reiserfs on /boot (it's a complete waste of space, ext2
> is more sensible), you must mount it with the notail option. GRUB cannot
> read files from a tail-packed Reiser filesystem.

You do not only need to mount it with notail, you need to write all files with 
notail in the first place.

So ...
1. boot from CD 
2. mount -o notail /dev/hda1 /mount/gentoo
3. tar czf /tmp/boot.tar.gz /mount/gentoo/*
4. rm -rf /mount/gentoo/*
5. tar xzf /tmp/boot.tar.gz -C /mount/gentoo/

Or you switch to ext2 because you do not need a filesystem with journal on a 
partition that doesn't need to be bigger than 50MB.


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] i586 install

2007-08-23 Thread Neil Bothwick
Hello James,

> Googling mostly reveals suggestions about file system
> being corrupt. I ran file system chekcs (reiserfsck)
> per previous instuctions and /boot and / come back
> clean and happy.

If you must use reiserfs on /boot (it's a complete waste of space, ext2
is more sensible), you must mount it with the notail option. GRUB cannot
read files from a tail-packed Reiser filesystem.


-- 
Neil Bothwick

WinErr 002: No Error - Yet


signature.asc
Description: PGP signature


[gentoo-user] i586 install

2007-08-23 Thread James
Hello,

I seem to be having trouble installing
grub on i586 systems.

What I use is the 
"install-x86-minmal-2006.0.iso" cd to boot the system
and follow the hadbook install guide. But I use the stage3 tarfile:
stage3-i586-2006.1.tar.bz2

Everything runs fine until I try to reboot off the hard drive.
I get this

Grub loading stage1.5

Grub loading, please waite...
Error 16

It's repeatable on (2) different (amd k6) systems.

Googling mostly reveals suggestions about file system
being corrupt. I ran file system chekcs (reiserfsck)
per previous instuctions and /boot and / come back
clean and happy.

The ide disk setup is very simple:
fdisk /dev/hda
#   Device BootStartEnd  Blocks   Id  System
# /dev/hda1   *  1 50  401593+  83  Linux
# /dev/hda2 51 185 1084387+  82  Linux swap
# /dev/hda3   * 186 243418065092+  83  Linux

and grub

default 0
fallback 1
timeout 30

#0
title=kernel-2.6.21-gentoo-r4
root(hd0,1)
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3
#0
title=kernel-2.6.21-gentoo-r4
root(hd0,1)
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda1


(Note I use 2 entries in case one does not work)

Then run:
grep -v rootfs /proc/mounts > /etc/mtab
grub-install --no-floppy /dev/hda

exit chroot and unmount and reboot.


What am I missing ?

Is there a better way to install minimalistic gentoo
firewalls? If somebody was to make a HD image
that worked, I'd just dd it directly onto 
a 8G HD.

I have about a dozen of these firewall to build and using
gentoo has worked very well, once I get a minimal (no X)
system installed.

ideas?

James




-- 
[EMAIL PROTECTED] mailing list