|
List Info
Thread: grub "Error 3" and small partitions
|
|
| grub "Error 3" and small
partitions |
  United States |
2007-03-03 18:32:42 |
Hi, I have a problem that's been dealt with in the past
here:
http://mail-index.NetBSD.org/port-xen/2006/11/04/0010.
html
I'm getting the same error when I try to boot the xen.gz
kernel -
"Error 3: Bad or corrupt data while decompressing
file"
The solution seems to be to make a small /, and set the
block
size to 8k, and fragment size to 1k.
This has solved the problem for me, on other hardware, in
the past.
This time, it didn't have any effect.
This is a Pentium D 3ghz (dual core), running NetBSD
4.0_BETA2
from 20070225.
/ is on a raid mirror, is 2GB in size, and has block and
fragment
sizes of 8k and 1k respectively.
The grub install seems alright, I'm able to run grub with
this
configuration:
root (hd0,0)
chainloader +1
and get the NetBSD bootloader.
Does anyone have any advice on this? Thanks.
--david
|
|
| Re: grub "Error 3" and small
partitions |

|
2007-03-04 04:53:20 |
On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l goodrich
wrote:
> Hi, I have a problem that's been dealt with in the past
here:
> http://mail-index.NetBSD.org/port-xen/2006/11/04/0010.
html
>
> I'm getting the same error when I try to boot the
xen.gz kernel -
> "Error 3: Bad or corrupt data while decompressing
file"
>
> The solution seems to be to make a small /, and set the
block
> size to 8k, and fragment size to 1k.
>
> This has solved the problem for me, on other hardware,
in the past.
> This time, it didn't have any effect.
>
> This is a Pentium D 3ghz (dual core), running NetBSD
4.0_BETA2
> from 20070225.
>
> / is on a raid mirror, is 2GB in size, and has block
and fragment
> sizes of 8k and 1k respectively.
I'm not sure 2GB is small enough. I always to / 512MB or
smaller.
>
> The grub install seems alright, I'm able to run grub
with this
> configuration:
> root (hd0,0)
> chainloader +1
loading a file from filesystem or chain-booting a partition
are really 2
different things. However I think grub will load menu.lst at
boot, so
it probably can read at last parts of the filesystem
properly. This should
rule out issues with the raid setup.
--
Manuel Bouyer <bouyer antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
| Re: grub "Error 3" and small
partitions |

|
2007-03-04 04:53:20 |
On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l goodrich
wrote:
> Hi, I have a problem that's been dealt with in the past
here:
> http://mail-index.NetBSD.org/port-xen/2006/11/04/0010.
html
>
> I'm getting the same error when I try to boot the
xen.gz kernel -
> "Error 3: Bad or corrupt data while decompressing
file"
>
> The solution seems to be to make a small /, and set the
block
> size to 8k, and fragment size to 1k.
>
> This has solved the problem for me, on other hardware,
in the past.
> This time, it didn't have any effect.
>
> This is a Pentium D 3ghz (dual core), running NetBSD
4.0_BETA2
> from 20070225.
>
> / is on a raid mirror, is 2GB in size, and has block
and fragment
> sizes of 8k and 1k respectively.
I'm not sure 2GB is small enough. I always to / 512MB or
smaller.
>
> The grub install seems alright, I'm able to run grub
with this
> configuration:
> root (hd0,0)
> chainloader +1
loading a file from filesystem or chain-booting a partition
are really 2
different things. However I think grub will load menu.lst at
boot, so
it probably can read at last parts of the filesystem
properly. This should
rule out issues with the raid setup.
--
Manuel Bouyer <bouyer antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
| Re: grub "Error 3" and small
partitions |
  United States |
2007-03-04 10:57:52 |
On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel Bouyer
wrote:
> On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l
goodrich wrote:
> >
> > / is on a raid mirror, is 2GB in size, and has
block and fragment
> > sizes of 8k and 1k respectively.
>
> I'm not sure 2GB is small enough. I always to / 512MB
or smaller.
Well, okay. I guess i'll try smaller. 2G was sufficient in
the
past, though:
xen# df -h /
Filesystem Size Used Avail Capacity Mounted on
/dev/raid0a 1.9G 160M 1.7G 8% /
xen# disklabel raid0 | grep ^ a:
a: 4194304 0 4.2BSD 1024 8192 46608 #
(Cyl.
0 - 4095)
xen# uname -a
NetBSD xen.bwcws.dsrw.org 4.99.4 NetBSD 4.99.4 (XEN3_DOM0)
#0:
Mon Nov 27 04:32:34 CST 2006
dlg build-31.dsrw.org:/local/src/HEAD/src/sys/arch/i386/c
ompile/obj/XEN3_DOM0
i386
xen#
>
> >
> > The grub install seems alright, I'm able to run
grub with this
> > configuration:
> > root (hd0,0)
> > chainloader +1
>
> loading a file from filesystem or chain-booting a
partition are really 2
> different things. However I think grub will load
menu.lst at boot, so
> it probably can read at last parts of the filesystem
properly. This should
> rule out issues with the raid setup.
Okay. I saw this in the pkg_add output, and gave it a
shot:
title NetBSD (wd0)
root (hd0,0,a)
kernel /netbsd
and it seems to work fine as well.
Thanks.
--david
|
|
| Re: grub "Error 3" and small
partitions |
  United States |
2007-03-04 10:57:52 |
On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel Bouyer
wrote:
> On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l
goodrich wrote:
> >
> > / is on a raid mirror, is 2GB in size, and has
block and fragment
> > sizes of 8k and 1k respectively.
>
> I'm not sure 2GB is small enough. I always to / 512MB
or smaller.
Well, okay. I guess i'll try smaller. 2G was sufficient in
the
past, though:
xen# df -h /
Filesystem Size Used Avail Capacity Mounted on
/dev/raid0a 1.9G 160M 1.7G 8% /
xen# disklabel raid0 | grep ^ a:
a: 4194304 0 4.2BSD 1024 8192 46608 #
(Cyl.
0 - 4095)
xen# uname -a
NetBSD xen.bwcws.dsrw.org 4.99.4 NetBSD 4.99.4 (XEN3_DOM0)
#0:
Mon Nov 27 04:32:34 CST 2006
dlg build-31.dsrw.org:/local/src/HEAD/src/sys/arch/i386/c
ompile/obj/XEN3_DOM0
i386
xen#
>
> >
> > The grub install seems alright, I'm able to run
grub with this
> > configuration:
> > root (hd0,0)
> > chainloader +1
>
> loading a file from filesystem or chain-booting a
partition are really 2
> different things. However I think grub will load
menu.lst at boot, so
> it probably can read at last parts of the filesystem
properly. This should
> rule out issues with the raid setup.
Okay. I saw this in the pkg_add output, and gave it a
shot:
title NetBSD (wd0)
root (hd0,0,a)
kernel /netbsd
and it seems to work fine as well.
Thanks.
--david
|
|
| Re: grub "Error 3" and small
partitions |

|
2007-03-04 11:03:35 |
On Sun, Mar 04, 2007 at 10:57:52AM -0600, david l goodrich
wrote:
> On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel Bouyer
wrote:
> > On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l
goodrich wrote:
> > >
> > > / is on a raid mirror, is 2GB in size, and
has block and fragment
> > > sizes of 8k and 1k respectively.
> >
> > I'm not sure 2GB is small enough. I always to /
512MB or smaller.
>
> Well, okay. I guess i'll try smaller. 2G was
sufficient in the
> past, though:
Yes, and I also got it working once on a 128GB partition. It
depends on
where the file is located in the partition.
> >
> > loading a file from filesystem or chain-booting a
partition are really 2
> > different things. However I think grub will load
menu.lst at boot, so
> > it probably can read at last parts of the
filesystem properly. This should
> > rule out issues with the raid setup.
>
> Okay. I saw this in the pkg_add output, and gave it a
shot:
>
> title NetBSD (wd0)
> root (hd0,0,a)
> kernel /netbsd
>
> and it seems to work fine as well.
Again, it depends on where the file is in the partition.
/netbsd is one of the
first files written to / on install, so it's likely to be
near the start.
--
Manuel Bouyer <bouyer antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
| Re: grub "Error 3" and small
partitions |

|
2007-03-04 11:03:35 |
On Sun, Mar 04, 2007 at 10:57:52AM -0600, david l goodrich
wrote:
> On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel Bouyer
wrote:
> > On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l
goodrich wrote:
> > >
> > > / is on a raid mirror, is 2GB in size, and
has block and fragment
> > > sizes of 8k and 1k respectively.
> >
> > I'm not sure 2GB is small enough. I always to /
512MB or smaller.
>
> Well, okay. I guess i'll try smaller. 2G was
sufficient in the
> past, though:
Yes, and I also got it working once on a 128GB partition. It
depends on
where the file is located in the partition.
> >
> > loading a file from filesystem or chain-booting a
partition are really 2
> > different things. However I think grub will load
menu.lst at boot, so
> > it probably can read at last parts of the
filesystem properly. This should
> > rule out issues with the raid setup.
>
> Okay. I saw this in the pkg_add output, and gave it a
shot:
>
> title NetBSD (wd0)
> root (hd0,0,a)
> kernel /netbsd
>
> and it seems to work fine as well.
Again, it depends on where the file is in the partition.
/netbsd is one of the
first files written to / on install, so it's likely to be
near the start.
--
Manuel Bouyer <bouyer antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
| Re: grub "Error 3" and small
partitions |
  United States |
2007-03-04 15:28:53 |
On Sun, Mar 04, 2007 at 06:03:35PM +0100, Manuel Bouyer
wrote:
> On Sun, Mar 04, 2007 at 10:57:52AM -0600, david l
goodrich wrote:
> > On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel
Bouyer wrote:
> > > On Sat, Mar 03, 2007 at 06:32:42PM -0600,
david l goodrich wrote:
> > > >
> > > > / is on a raid mirror, is 2GB in size,
and has block and fragment
> > > > sizes of 8k and 1k respectively.
> > >
> > > I'm not sure 2GB is small enough. I always to
/ 512MB or smaller.
> >
> > Well, okay. I guess i'll try smaller. 2G was
sufficient in the
> > past, though:
>
> Yes, and I also got it working once on a 128GB
partition. It depends on
> where the file is located in the partition.
>
Point conceded. It works fine with a 512 MB / partition.
Thanks.
--david
|
|
| Re: grub "Error 3" and small
partitions |

|
2007-04-06 16:15:26 |
On Sun, Mar 04, 2007 at 06:03:35PM +0100, Manuel Bouyer
wrote:
> On Sun, Mar 04, 2007 at 10:57:52AM -0600, david l
goodrich wrote:
> > On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel
Bouyer wrote:
> > > On Sat, Mar 03, 2007 at 06:32:42PM -0600,
david l goodrich wrote:
> > > >
> > > > / is on a raid mirror, is 2GB in size,
and has block and fragment
> > > > sizes of 8k and 1k respectively.
> > >
> > > I'm not sure 2GB is small enough. I always to
/ 512MB or smaller.
> >
> > Well, okay. I guess i'll try smaller. 2G was
sufficient in the
> > past, though:
>
> Yes, and I also got it working once on a 128GB
partition. It depends on
> where the file is located in the partition.
It depends on whether the file is compressed or not. Gzipped
kernels
sometimes trigger this bug.
Pavel
|
|
| Re: grub "Error 3" and small
partitions |

|
2007-04-06 16:15:26 |
On Sun, Mar 04, 2007 at 06:03:35PM +0100, Manuel Bouyer
wrote:
> On Sun, Mar 04, 2007 at 10:57:52AM -0600, david l
goodrich wrote:
> > On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel
Bouyer wrote:
> > > On Sat, Mar 03, 2007 at 06:32:42PM -0600,
david l goodrich wrote:
> > > >
> > > > / is on a raid mirror, is 2GB in size,
and has block and fragment
> > > > sizes of 8k and 1k respectively.
> > >
> > > I'm not sure 2GB is small enough. I always to
/ 512MB or smaller.
> >
> > Well, okay. I guess i'll try smaller. 2G was
sufficient in the
> > past, though:
>
> Yes, and I also got it working once on a 128GB
partition. It depends on
> where the file is located in the partition.
It depends on whether the file is compressed or not. Gzipped
kernels
sometimes trigger this bug.
Pavel
|
|
[1-10]
|
|