From: Jiro SEKIBA <jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
To: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: grub nilfs2 module
Date: Thu, 04 Feb 2010 18:03:35 +0900 [thread overview]
Message-ID: <87bpg59xug.wl%jir@sekiba.com> (raw)
In-Reply-To: <20100204.100228.02802641.ryusuke-sG5X7nlA6pw@public.gmane.org>
Hi,
> It would be nice if you could tell us belief usage of the patch.
OK, sure. It's against bazaar repository, so you have to build
it from repository source instead of latest stable release tarball.
To build with stable release(1.97.2), you need to modify fs/nilfs2.c
not to use grub_xasprintf, but use grub_malloc and grub_sprintf.
You may get reject for makefile, but I think it'll be OK.
Here are the instruction to retrieve grub repository and build the softoware.
$ bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub
$ cd grub
$ patch -p0 < /path/to/the/patch
$ sh autogen.sh
$ ./configure
$ make
you need "make install" as usual. It will install under /usr/local
without giving any parameters for ./configure.
The "make install" won't install grub to MBR.
To install grub into MBR, you have to "grub-install" to target disk.
For example, assume that you have nilfs2 filesystem on hdb1,
mounted on /mnt and want to enable hdb as bootable. You'll do
# grub-install --root-directory=/mnt /dev/hdb
This will install grub into hdb's MBR and other required files into
following 32KiB blocks. Fuhtermore, it'll install files under
/mnt/boot/grub. Those files are not required to boot grub to read
the filesystem.
hdb is now self bootable disk. You'll just connect it as hdb and
grub will boot up.
Note, during grub-install, /boog/grub/grub.cfg will be copied int to
/mnt/boo/grub, which is not the one for hdb. So you have edit menu
at first time you boot with hdb. After boot the system, you can reproduce
the menu by grub-mkcofnig > /boot/grub/grub.cfg
Enjoy!
regards,
--
Jiro SEKIBA <jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-02-04 9:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 12:43 grub nilfs2 module Jiro SEKIBA
[not found] ` <87vdeea3r1.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
2010-02-04 1:02 ` Ryusuke Konishi
[not found] ` <20100204.100228.02802641.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-02-04 7:54 ` Ryusuke Konishi
[not found] ` <20100204.165456.217843065.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-02-04 8:18 ` Jiro SEKIBA
[not found] ` <87d40l9zyb.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
2010-02-04 9:03 ` Ryusuke Konishi
2010-02-04 9:03 ` Jiro SEKIBA [this message]
[not found] ` <87bpg59xug.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
2010-02-04 9:21 ` Ryusuke Konishi
[not found] ` <20100204.182139.37565943.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-02-09 11:07 ` Ryusuke Konishi
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=87bpg59xug.wl%jir@sekiba.com \
--to=jir-hfpbi5wx9j54eiagz67ipq@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ryusuke-sG5X7nlA6pw@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox