Discussion:
[BusyBox] Write protected disk
Tony Heller
2003-07-19 13:33:41 UTC
Permalink
Hi everyone,

I'm trying to use busybox to minimize the amount of activity in the init
routine, and have been simulating that configuration under the bochs
simulator for some time now. Recently I tried putting the same
configuration on a real Redhat 7.2 system, and it booted to the bash
prompt- but unfortunately the system then thought that the disk (hda)
was write protected, making the system useless.

The steps I took were:
copied busybox to /bin
linked /sbin/init to busybox
installed the specified /etc/inittab and /etc/init.d/rcS

Any ideas why the disk comes up write protected? It would be great
help to me if I could use the same boot on hardware and simulation.

TIA,
Tony
Goetz Bock
2003-07-19 13:33:41 UTC
Permalink
Post by Tony Heller
I'm trying to use busybox to minimize the amount of activity in the
init routine, [ ... ] and it booted to the bash prompt - but
unfortunately the system then thought that the disk (hda) was write
protected, making the system useless.
disks allways come up read only, you must remount it rw in rc.sysinit
(or a followup script) (rc.sysinit might be called rcS in your case)

just use

mount -o remount,rw /

this only wokrs if proc has been mounted or you have a correct /dev/root
entry in dev (in this case just use mount -o remount,rw /dev/root).
BTW: /dev/root comes free with devfs :-)

Cu,
Goetz.
Tony Heller
2002-06-24 00:09:03 UTC
Permalink
Hi everyone,

I'm trying to use busybox to minimize the amount of activity in the init
routine, and have been simulating that configuration under the bochs
simulator for some time now. Recently I tried putting the same
configuration on a real Redhat 7.2 system, and it booted to the bash
prompt- but unfortunately the system then thought that the disk (hda)
was write protected, making the system useless.

The steps I took were:
copied busybox to /bin
linked /sbin/init to busybox
installed the specified /etc/inittab and /etc/init.d/rcS

Any ideas why the disk comes up write protected? It would be great
help to me if I could use the same boot on hardware and simulation.

TIA,
Tony
Goetz Bock
2002-06-24 08:18:05 UTC
Permalink
Post by Tony Heller
I'm trying to use busybox to minimize the amount of activity in the
init routine, [ ... ] and it booted to the bash prompt - but
unfortunately the system then thought that the disk (hda) was write
protected, making the system useless.
disks allways come up read only, you must remount it rw in rc.sysinit
(or a followup script) (rc.sysinit might be called rcS in your case)

just use

mount -o remount,rw /

this only wokrs if proc has been mounted or you have a correct /dev/root
entry in dev (in this case just use mount -o remount,rw /dev/root).
BTW: /dev/root comes free with devfs :-)

Cu,
Goetz.

Continue reading on narkive:
Loading...