Why read-only rootfs is mounted.

2,268 views
Skip to first unread message

raviphu...@gmail.com

unread,
May 24, 2013, 8:12:05 AM5/24/13
to beagl...@googlegroups.com
Dear All,
I'm trying to port linux on beaglebone using Buildroot.

But rootfs is mounted as read-only, but I need write-enable. What shall I do

Following is snap of my configurations

1.Kernel configuration file as below .............
# Boot options
#
CONFIG_USE_OF=y
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
# CONFIG_ARM_APPENDED_DTB is not set
CONFIG_CMDLINE="console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"
# CONFIG_CMDLINE_FROM_BOOTLOADER is not set
# CONFIG_CMDLINE_EXTEND is not set
CONFIG_CMDLINE_FORCE=y

2.During boot ..................
[    1.429267] Waiting for root device /dev/mmcblk0p2...
[    1.500222] mmc0: host does not support reading read-only switch. assuming write-enable.
[    1.511263] mmc0: new high speed SDHC card at address 1234
[    1.517496] mmcblk0: mmc0:1234 SA04G 3.63 GiB 
[    1.524363]  mmcblk0: p1 p2 p3(data partition)
[    1.541758] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.549498] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.562266] EXT4-fs (mmcblk0p2): recovery complete
[    1.797961] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.806553] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.817957] devtmpfs: mounted
[    1.821336] Freeing init memory: 116K

3.after booting ................
# cat /proc/cmdline 
console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait


Please help me

thanx in advance

Ravi

Koen Kooi

unread,
May 24, 2013, 8:30:06 AM5/24/13
to beagl...@googlegroups.com

Op 24 mei 2013, om 14:12 heeft raviphu...@gmail.com het volgende geschreven:

> Dear All,
> I'm trying to port linux on beaglebone

Wasn't linux already ported to beaglebone over a year ago?


Frank Hunleth

unread,
May 24, 2013, 12:09:28 PM5/24/13
to beagl...@googlegroups.com
On Fri, May 24, 2013 at 8:12 AM, <raviphu...@gmail.com> wrote:
>
> Dear All,
> I'm trying to port linux on beaglebone using Buildroot.
>
> But rootfs is mounted as read-only, but I need write-enable. What shall I do
>

Buildroot's default is to mount the root filesystem as read-only.
There's an option in the Buildroot configuration menus under "System
Configuration" to change this. It is the
BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW option in the config file.

Or you could manually remount the root filesystem by running:

mount -o remount,rw /

ravi phulsundar

unread,
May 27, 2013, 12:11:45 AM5/27/13
to beagl...@googlegroups.com
Thanx Frank,

It worked, Thanx again.

Ravi



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/CETSn4AwSvs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages