Modify

Opened 7 years ago

Closed 7 years ago

#7949 closed defect (worksforme)

overlay rootfs does not work for router station pro image

Reported by: anonymous Owned by: cshore
Priority: normal Milestone: Backfire 10.03.1
Component: base system Version: Backfire 10.03.1 RC2
Keywords: overlay rootfs Cc:

Description

I try to follow the howto at http://wiki.openwrt.org/doc/howto/rootfsonexternalstorage
carefully. I used overlay before. The main fault is:

root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
mini_fo:/overlay 2.1M 2.1M 0 100% /
/dev/sdb1 2.1M 2.1M 0 100% /

I will attach a couple of debug output in one file.
If you need help, feel free to ask.
Felix

Attachments (1)

openwrt_backfire_10.x.RC3.txt (1.8 KB) - added by kilmarnock@… 7 years ago.

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by kilmarnock@…

comment:1 Changed 7 years ago by anonymous

root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
mini_fo:/overlay 2.1M 2.1M 0 100% /
/dev/sdb1 2.1M 2.1M 0 100% /

comment:2 Changed 7 years ago by Felix Krull <kilmarnock@…>

I am using Backfire RC3. Attached my eMail.

comment:3 Changed 7 years ago by Felix Krull <kilmarnock@…>

Tried a fresh reinstall twice.

comment:4 Changed 7 years ago by jow

  • Owner changed from developers to cshore
  • Status changed from new to assigned

comment:5 Changed 7 years ago by anonymous

Is /dev/sdb1 the rootfs even without overlay? i.e. what is the flash filesystem located on. I ask because /dev/sdb1 is reporting 2.1 MB.

Also, try using a name other than '/' for the extroot filesystem. The target in /etc/config/fstab isn't actually supposed to be used during root mount but rather only when root fails to mount. In this case that would result in a conflicting mount because '/' is already mounted.

Try calling /usb or something like that and see if it a) still fails to mount as root
b) what df -h and mount report

comment:6 Changed 7 years ago by Felix Krull <kilmarnock@…>

root@OpenWrt:/# df -h

Filesystem Size Used Available Use% Mounted on

/dev/root 2.1M 2.1M 0 100% /rom

/dev/mtdblock3 12.8M 752.0K 12.1M 6% /overlay

mini_fo:/overlay 2.1M 2.1M 0 100% /

/dev/sdb1 807.4M 421.8M 344.6M 55% /usb

It does as you expected. But it is no overlay: mkdir /usb/local/ does not make /usr/local. So it is not used as overlay. Does it make sence?
I do not understand your first question
Felix

comment:7 Changed 7 years ago by Felix Krull <kilmarnock@…>

/dev/sdb1 is reporting 2.1 MB.
/dev/sdb1 is 800MB or more.
The flash ram is smaller

comment:8 Changed 7 years ago by anonymous

Are you using a squashfs?

If so, have you compiled the extroot into the image, or added it later. For squashfs you *must* compile it into the image.

comment:9 Changed 7 years ago by Felix Krull <kilmarnock@…>

yes, sqashfs. No, I installed it as a module, using the supplied .bin file. Perhaps someone should mention it in the wiki page above. Thank you for the hint, I will try the jffs image.
Felix

comment:10 Changed 7 years ago by Felix Krull <kilmarnock@…>

installed the jffs image. works great. thank you. for me, the tickes is closed

comment:11 Changed 7 years ago by jow

  • Resolution set to worksforme
  • Status changed from assigned to closed

Squash + builtin or jffs2 image required.

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.