Received: with ECARTIS (v1.0.0; list linux-xfs); Fri, 11 Apr 2003 05:56:50 -0700 (PDT) Received: from mail.crc.dk (mail.crc.dk [130.226.184.8]) by oss.sgi.com (8.12.9/8.12.9) with SMTP id h3BCuUFu013838 for ; Fri, 11 Apr 2003 05:56:31 -0700 Received: from crc.dk (k020-03.crc.dk [130.226.182.195]) by mail.crc.dk (8.11.6/8.11.6) with ESMTP id h3BCuNo12289; Fri, 11 Apr 2003 14:56:23 +0200 Message-ID: <3E96BB77.5000902@crc.dk> Date: Fri, 11 Apr 2003 14:56:23 +0200 From: Mogens Kjaer Organization: Carlsberg Laboratory User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: da, en-us, en MIME-Version: 1.0 To: linux-xfs@oss.sgi.com Subject: Re: [ANNOUNCE] Red Hat Linux 9 XFS DVD Released References: <3E94C880.2070003@stesmi.com> In-Reply-To: <3E94C880.2070003@stesmi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-archive-position: 3632 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: mk@crc.dk Precedence: bulk X-list: linux-xfs Content-Length: 2986 Lines: 90 Stefan Smietanowski wrote: ... > There is a bug with using GRUB as a bootloader. Either use LILO or > use one of the following workarounds: > > * Make a seperate /boot partition and use some other filesystem than > xfs on it. That way you won't get the issue and you can use xfs > without getting any problems. > > * Run the installer all the way until it asks if you should create > a boot disk or not. > If you're using the graphical installer press CTRL-ALT-F5. > If you're using the text installer, press ALT-F5. > You'll see an interesting page ending with a GRUB error > "Can't find file". > Above it are two lines. The first one is something like: > "root (hd0,0)" > After that you'll find a line with something like this (these lines > are different depending on your type of hard drive and partitioning: > "install /boot/grub/stage1 d .........." > Write both lines down literally. Note that there exists a space > after "(hd0)" in some places and not in others. Make sure you really > get it right. > Go back to the installer by using ALT-F7 if using the graphical > installer or ALT-F1 if using text. Instead of switching back to the installer, you can also switch to a shell (ALT-F2), and do a: chroot /mnt/sysimage /sbin/grub --batch --nofloppy --device-map=/boot/grub/device.map and give the two commands again (in my case): root (hd0,0) install /boot/grub/stage1 d (hd0) /boot/grub/stage2 p (hd0,0)/boot/grub/grub.conf quit and ctrl-D to exit chroot. (the install ... line is one line). Then you can go back to the installer. Interestingly, the command above is exactly the same the installer gives in stage2.img /usr/lib/booty/bootloaderInfo.py one has: ... rhpl.executil.execWithRedirect( "/sbin/grub-install", ["/sbin/grub-install", "--just-copy"], stdout = "/dev/tty5", stderr = "/dev/tty5", root = instRoot) # get the stage files synced to disk import isys isys.sync() isys.sync() isys.sync() # really install the bootloader p = os.pipe() os.write(p[1], cmd + '\n') os.close(p[1]) rhpl.executil.execWithRedirect('/sbin/grub' , [ "grub", "--batch", "--no-floppy", "--device-map=/boot/grub/device.map" ], stdin = p[0], stdout = "/dev/tty5", stderr = "/dev/tty5", root = instRoot) os.close(p[0]) ... I'm wondering if these sync's aren't enough on an XFS filesystem... Hm, I'll try and put 100 extra... Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: mk@crc.dk Homepage: http://www.crc.dk