xfs
[Top] [All Lists]

Re: "LILO: /dev/sda: Read-only file system" after /boot flirted withxfs

To: Sergei Morozov <smv@xxxxxxxxxxxx>
Subject: Re: "LILO: /dev/sda: Read-only file system" after /boot flirted withxfs
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Fri, 13 Jul 2001 08:26:49 +0200
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id 0B27957306; Fri, 13 Jul 2001 08:36:06 +0200 (CEST)
Cc: linux-xfs@xxxxxxxxxxx
Organization: Sauter AG, Basel
References: <Pine.GSO.4.31.0107121722250.27410-100000@xxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Sergei Morozov schrieb:
> 
> Hi,
> 
> I have managed to compile linux-2.4.6-pre9-xfs-smp kernel and converted
> /home and /projects to xfs, and it worked great. Then foolishly I repeated
> the exercise for /boot, and got LI on reboot. Using floppy with old
> non-xfs kernel I booted all non-xfs partitions; and turned /boot back to
> ext2 (but at the cost of its content), pulled xfs-aware kernel out of the
> depths of /usr/src/linux-2.4/ into /boot; and try to rerun lilo
> but it wouldn't install by saying
> 
> #lilo -v
> LILO version 21.4-4 Copyright (C) 1992-1998 Werner Almesberger
> 'lba32' extensions Copyright (C) 1999,2000 John Coffman
> 
> Reading boot sector from /dev/sda
> Merging with /boot/boot.b
> Fatal: read /dev/sda : Read-only file system
> 
> #more /etc/lilo.conf
> boot=/dev/sda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> linear
> default=xfs
> message=/boot/message
> image=/boot/vmlinuz-2.4.6-pre9-xfs-smp
>         label=xfs
>         read-only
>         root=/dev/sda5
> 
> #more /etc/mtab
> /dev/sda5 /     ext2 rw 0 0
> none      /proc proc rw 0 0
> /dev/sdb1 /usr  ext2 rw 0 0
> /dev/fd0  /mnt/floppy ext2 rw,noexec,nosuid,nodev 0 0
> none      /dev/pts devpts rw,gid=5,mode=620 0 0
> /dev/sda1 /boot ext2 rw 0 0
> 
> #more /etc/fstab
> /dev/sda5 /     ext2 rw 0 0
> /dev/sda1 /boot ext2 rw 0 0
> /dev/sdb6 /home xfs deafults 1 2
> /dev/cdrom /mnt/cdrom iso9660 auto,user,ro 0 0
> /dev/cdrom1 /mnt/cdrom1 iso9660 auto,user,ro 0 0
> /dev/sda7 /projects xfs defaults 1 2
> /dev/sdb1 /usr  ext2 rw 0 0
> /dev/fd0  /mnt/floppy auto auto,user 0 0
> none      /proc proc rw 0 0
> none      /dev/pts devpts gid=5,mode=620 0 0
> /dev/sda6 swap swap defaults 0 0
> /dev/sdb5 swap swap defaults 0 0

My tip: use something like swap to get better perfomance:-)

/dev/sda6 swap swap defaults,pri=0 0 0
/dev/sdb5 swap swap defaults,pri=0 0 0

> 
> It doesn't seem that /boot is read only.

One question, how did you boot with the floppy. Sometimes one does
boot with something like init=/bin/sh and / is mounted ro, even when
mount tells you it is rw. Maybe the problem was such thing. mtab
will also report rw falsely, maybe cat /proc/mounts shows the truth.

> How I now make lilo install somewhere, best of all to MBR and /boot and
> restore contents of /boot? And, yes, xfs kernel is too big for floppy.
> 
> TIA,
>         Sergei
> 
> Writing is easy;
> all you do is sit staring
> at the blank sheet of paper until
> drops of blood form on your forehead.
>                 -- Gene Fowler
> 
> Sergei Morozov
> Department of Economics
> Stanford University
> Stanford, CA, 94305-6072
> ph: (650)-725-8984 (o)
>     (650)-498-1248 (h)
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
> 
> iQCVAwUBOH8VK3ZlrUSqDLbVAQFHIwP/dYGV0yV2AYoFWWfJDE6WMtYOLjUSebaV
> Mzv3ICK2SDPTQ6u3lKx/7VXdY1151pqRZ3Kn7Z8FPZ2KxjRIqeLtOsCMFPRXM234
> j23RfBtNPzG2pTOciJvqh0uHxySMR7Dzee+gjniNJadXyE0Y2+C33HICuVVqDH8O
> ZEhGny68w7c=
> =sz39
> -----END PGP SIGNATURE-----

-- 
Simon Matter              Tel:  +41 61 695 57 35
Fr.Sauter AG / CIT        Fax:  +41 61 695 53 30
Im Surinam 55
CH-4016 Basel             [mailto:simon.matter@xxxxxxxxxxxxxxxx]



<Prev in Thread] Current Thread [Next in Thread>