Modify

Opened 3 years ago

Closed 3 years ago

#18795 closed defect (invalid)

pivot_root / pivot_overlay not working on chaos calmer r44053

Reported by: walter.huettenmeyer@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: ar71xx, WRT160NL, chaos calmer, pivot_root, pivot_overlay, extroot, solved Cc:

Description (last modified by rmilecki)

/dev/mtdblock3 was mounted on /overlay and not unmounted before it tried to mount my sda1 there, so it would not mount there.

Adding a mount point manually in fstab or via LuCI (git-15.019.63550-0d541a4) for /dev/mtdblock3 to solved the issue.

If you run into the same issue, please take following example:

root@router:~# cat /etc/config/fstab

config global
	option anon_swap '0'
	option anon_mount '0'
	option auto_swap '1'
	option auto_mount '1'
	option delay_root '15'
	option check_fs '1'

config mount
	option target '/mnt/mtdblock3'
	option device '/dev/mtdblock3'
	option fstype 'jffs2'
	option options 'rw,sync'
	option enabled '1'
	option check_fs '0'

config mount
	option device '/dev/sda1'
	option target '/overlay'
	option fstype 'ext4'
	option options 'rw,sync'
	option enabled '1'
	option is_rootfs '1'

config mount
	option device '/dev/sda2'
	option target '/mnt/daten'
	option fstype 'ext4'
	option enabled '1'

config swap
	option enabled '1'
	option device '/dev/sda3'

After a reboot it worked, and after many more it still is.
I'm not sure if the delay_root setting is necessary,
but with this setting it works and setting it to 15 didn't have any negative impact.

If I check the available space, I can see it is working, LuCI also reports the correct size and free space.

root@router:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  238.1M     11.1M    223.0M   5% /
/dev/root                 2.0M      2.0M         0 100% /rom
tmpfs                    14.0M   1012.0K     13.0M   7% /tmp
/dev/sda1               238.1M     11.1M    223.0M   5% /overlay
overlayfs:/overlay      238.1M     11.1M    223.0M   5% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda2               914.6G     74.7M    914.5G   0% /mnt/daten
/dev/mtdblock3            4.6M      2.3M      2.4M  49% /mnt/mtdblock3

For me, this bug could be set to <solved> if it may help others.

Attachments (0)

Change History (2)

comment:1 in reply to: ↑ description Changed 3 years ago by rmilecki

  • Description modified (diff)

Replying to walter.huettenmeyer@…:

/dev/mtdblock3 was mounted on /overlay and not unmounted before it tried to mount my sda1 there, so it would not mount there.

Provide some log and output of "mount" at least (without your fix/workaround with /dev/mtdblock3).

comment:2 Changed 3 years ago by rmilecki

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.