<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>read-only root fs with Busybox? </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi,<BR>
<BR>
I'm attempting to setup a read-only root filesystem on a Compact Flash card. I'm using the GRUB bootloader and am passing 'root=/dev/hda1 ro' to the kernel boot. This seems to do what I want. However I also need to be able to login via telnet to make some configuration changes (requiring write access). When I try to remount the root fs read-write, the mount command complains that '/' or '/dev/hda1' aren't in my /etc/fstab (which they aren't). Currently my /etc/fstab contains:<BR>
<BR>
# /etc/fstab<BR>
#<BR>
none /proc proc defaults 0 0<BR>
none /sys sysfs defaults 0 0<BR>
none /dev/pts devpts gid=5,mode=620 0 0<BR>
tmpfs /var tmpfs size=25% 0 0<BR>
<BR>
On my target 'cat /proc/mounts' returns:<BR>
rootfs / rootfs rw 0 0<BR>
/dev/root / ext2 ro 0 0<BR>
none /proc proc rw,nodiratime 0 0<BR>
none /sys sysfs rw 0 0<BR>
none /dev/pts devpts rw 0 0<BR>
tmpfs /var tmpfs rw 0 0<BR>
<BR>
I'm unsure about a few things ...<BR>
<BR>
Do I need to add an entry in /etc/fstab for '/' to allow the mount command to work properly? Does this work alongside the GRUB parameters? Or does adding an entry for '/' in /etc/fstab with the 'ro' option mean I no longer need to pass 'ro' in GRUB?<BR>
<BR>
Why does 'cat /proc/mounts' give 2 entries for '/' with 'rootfs' being 'rw'?<BR>
<BR>
Any tips on the correct configuration for a read-only root fs with support for remounting read-write?<BR>
<BR>
Thanks alot,<BR>
Mark<BR>
</FONT>
</P>

</BODY>
<!--[object_id=#gdcanada.com#]--><FONT face=Tahoma><FONT color=#0000ff><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT color=#000000>
<P align=left><FONT face=Tahoma size=2><FONT color=#0000ff><FONT face=Arial color=#000000 size=1>The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. <BR>Thank you.</FONT> </FONT></FONT></P></FONT></SPAN><FONT size=2></FONT></FONT></FONT></HTML>