Modify

Opened 4 years ago

Last modified 2 years ago

#17299 new defect

mount as overlay storage for block-extroot does not work

Reported by: daniel.petre Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Hello, running r41842 and it seems the overlay from a usb flash drive does not mount. What i did:

  1. partitioned a 4GB flash drive, formatted as ext3, mounted on the router manually - works.
  2. copied everything from /overlay to the flash drive
  3. set the drive as "mount as overlay storage for block-extroot" via LuCi Mount Points, /etc/config/fstab looks like this:

config mount

option enabled '1'
option device '/dev/sda1'
option fstype 'ext3'
option options 'rw,sync'
option is_rootfs '1'
option enabled_fsck '1'

  1. rebooted - flash drive does not get mounted as /overlay !

Is this a bug?

Attachments (0)

Change History (7)

comment:1 follow-ups: Changed 4 years ago by jow

Add "option delay_root 10"

comment:2 Changed 4 years ago by daniel.petre

Seems like LuCi isnt adding the target option.. this config works for overlay:

config mount

option enabled '1'
option device '/dev/sda1'
option target /overlay
option fstype 'ext3'
option options 'rw,sync'
option enabled_fsck 0

comment:3 in reply to: ↑ 1 Changed 4 years ago by daniel.petre

Replying to jow:

Add "option delay_root 10"

thanks jow, but does not seem to work..
with:

config mount

option enabled '1'
option device '/dev/sda1'
option fstype 'ext3'
option options 'rw,sync'
option is_rootfs '1'
option delay_root 10

i still have (after some minutes):

Filesystem Size Used Available Use% Mounted on
rootfs 2.6M 228.0K 2.3M 9% /
/dev/root 4.5M 4.5M 0 100% /rom
tmpfs 62.0M 820.0K 61.2M 1% /tmp
/dev/mtdblock3 2.6M 228.0K 2.3M 9% /overlay
overlayfs:/overlay 2.6M 228.0K 2.3M 9% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 3.6G 25.1M 3.4G 1% /mnt/sda1

comment:4 in reply to: ↑ 1 Changed 4 years ago by daniel.petre

Replying to jow:

Add "option delay_root 10"

also this works with option target / manually added (delay_root 10 does not work without target) :

config mount

option enabled '1'
option device '/dev/sda1'
option target /
option fstype 'ext3'
option options 'rw,sync'
option is_rootfs '1'
option delay_root 10

Last edited 4 years ago by daniel.petre (previous) (diff)

comment:5 Changed 3 years ago by by314

Thank you very much guys, your info help a lot, here is mine:

Worked at "Chaos Calmer r44154 / LuCI (git-15.026.60909-44a6229)"

with this cfg and also adding all the rest of requeriments (the modules and all the stuff for usb)

config mount

option enabled '1'
option device '/dev/sda1'
option target /overlay
option label 'MMC_256MB'
option fstype 'ext4'
option is_rootfs '1'
option options 'rw,sync'
option delay_root 13

Cheers.

comment:6 Changed 3 years ago by anonymous

wow guys, even after trying out a lot of stuff, the config of by314 did it for me as well!
Even tho the fstab file looks differently after rebooting, the initial config seems to be crucial. Plz note, that im a noob with this xD

comment:7 Changed 2 years ago by rodrigo.goncalves@…

config of by314 did the trick

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.