Re: Linux Mounting problem

Richard B. Johnson (root@chaos.analogic.com)
Fri, 31 Aug 2001 08:08:06 -0400 (EDT)


On Thu, 30 Aug 2001, Jim Roland wrote:

> He is getting these errors because his /etc/rc.d/rc.sysinit is shuttling
> all output from the commands in the script to be written to /dev/null
> and his FS is mounted as read-only. It never gets mounted as read-write
> because of fsck failing to approve the check with an OK status. If 1-2
> boots in rescue mode (or as "linux single") don't fix the errors, the
> last step (e2fsck) should be run and should fix the error, unless there
> is serious drive corruption.
>
> Regards,
> Jim Roland, RHCE
>
[SNIPPED...]

But you can write to a device that exists on a R/O disk! If the write
is not allowed, then the device-file has become corrupt and "seems to be"
a file, instead of a device..

Script started on Fri Aug 31 08:04:09 2001
# mount -o ro /dev/sdc1 /alt
# cd /alt
# ls
System.old boot dos exports initrd lost+found proc tmp vmlinuz
alt cdrom etc guru laptop mnt root usr vmlinuz.old
bin dev export home lib opt sbin var
# >foo
bash: foo: Read-only file system
# cd dev
# >null
# ls -a >null
# file null
null: character special (1/3)
# pwd
/alt/dev
# cd ~
# umount /alt
# exit
exit
Script done on Fri Aug 31 08:05:25 2001

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/