All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: out of range pointer with ext2 filesystem
Date: Wed, 16 Feb 2005 18:00:29 +0000	[thread overview]
Message-ID: <87psz04c76.fsf@marco.marco-g.com> (raw)
In-Reply-To: <1108518271.32268.215175116@webmail.messagingengine.com> (richard juckes's message of "Wed, 16 Feb 2005 09:44:31 +0800")

"richard juckes" <richardjuckes@fastmail.cn> writes:

> Hi, this is the problem I'm having with Grub2-cvs and ext2 filesystems.
> I get a successful boot from a kernel on floppy with a fat filesystem,
> but no luck when the same floppy is formatted with ext2.

[...]

> --> make
> --> ./grub-mkimage -v -d . -o core.img _chain boot cat cmp ext2 fat
> fshelp halt help linux ls normal pc reboot terminal
> --> su mkdosfs /dev/fd0
> --> dd if=boot.img of=/devfd0 bs=512 count=1
> --> dd if=core.img of=/devfd0 bs=512 seek=1

First you create a filesystem and after that you overwrite it.  I
doubt that it will work.

> reboot
>
> GNU GRUB version 1.90
>
> grub> ls
> (fd0) (hd0) (hd0,0) (hd0,4) ..... (hd0,11)
> grub> ls -l
> Disk: fd0
> Disk: hd0
> unaligned pointer 0xfaa4

In this example you use mkdosfs, or did you mean mkfe2fs?

> make another kernel floppy
>
> --# mke2fs /dev/fd0
> mke2fs 1.36 (05-Feb-2005)
> Filesystem label=
> OS type: Linux
> Block size=1024 (log=0)
> Fragment size=1024 (log=0)
> 184 inodes, 1440 blocks
> 72 blocks (5.00%) reserved for the super user
> First data block=1
> 1 block group
> 8192 blocks per group, 8192 fragments per group
> 184 inodes per group
>
> Writing inode tables: done
> Writing superblocks and filesystem accounting information: done
>
> This filesystem will be automatically checked every 31 mounts or
> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
>
> reboot

You don't put GRUB on it?

> grub> linux (fd0)/bzImage root=/dev/hda6
> out of range pointer 0x7fca0

This is weird and should not happen.  A broken filesystem should never
cause a crash.  I will have a look at next weekend.

Thanks,
Marco





      reply	other threads:[~2005-02-16 18:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16  1:44 out of range pointer with ext2 filesystem richard juckes
2005-02-16 18:00 ` Marco Gerards [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87psz04c76.fsf@marco.marco-g.com \
    --to=metgerards@student.han.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.