Bug 8051

Summary: why is busybox mount read-only by default ?
Product: Busybox Reporter: linuxcbon
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED NEEDINFO    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.21.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description linuxcbon 2015-04-26 05:32:12 UTC
hi,

I tried "busybox mount /dev/root /" and it mounts as read-only.
But I thought mount should be read-write by default ?

I tried "-o rw" it's read only.
I tried "-o rw,remount" it finally works and becomes writable.

Thanks in advance.
Comment 1 Denys Vlasenko 2015-04-26 11:02:49 UTC
Can't reproduce.

Please show a strace of misbehaving mount.
Comment 2 linuxcbon 2015-05-05 21:59:45 UTC
(In reply to comment #1)
> Can't reproduce.
> Please show a strace of misbehaving mount.

Can you tell me the exact commands and steps to do the strace please ?

(By the way,I think this is caused because my ext2 file system was not cleanly unmounted when turning the PC off, so when rebooting, the filesystem was mounted as read only, I dont know if this is normal, and I have to verify if that's the real origin of the problem. )
Comment 3 Mike Frysinger 2015-08-17 12:34:05 UTC
you can do:
  strace -o /tmp/log mount /dev/root /

you should also run `dmesg` to see if there's any interesting messages in there
Comment 4 linuxcbon 2016-01-04 05:41:57 UTC
Why was it closed ?
I am sorry but this was not resolved.

How to reproduce :
Set linux kernel booting as read only (without RW) : kernel /boot/vmlinuz 
Then  inittab ::sysinit:/etc/rc.d/rc.sysinit
Then rc.sysinit : busybox mount /dev/root /
Result :
"busybox mount" mounts as read only.

# more /etc/mtab 
/dev/root / ext2 ro,relatime,errors=continue,user_xattr,acl 0 0

And by "default mount should mount as writeable ? No ?

Thanks in advance
Comment 5 Mike Frysinger 2016-01-04 07:41:18 UTC
(In reply to linuxcbon from comment #4)

we asked for more details which you did not provide.  please post your /etc/fstab and the requested strace run.