-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4040 7.10 usbroot not recognizing ext3 file system #195
Comments
Looks like no-one else wants to answer (at least not yet, since 19 hours) ... so I'll do it now. Please take note of the circumstance, that I'm not a Freetz rep and my answer may be the wrong one. It's your decision, whether you want to consider it for your further thoughts/actions. Your expectations are too optimistic in my opinion. Are you really sure, you've used the I can't see any preparations for Linux kernel version 3 and later in this script - seems to me, as if the highest supported kernel version (where the device really gets mounted from Usually the start of Therefore the kernel mounts the root filesystem and calls the specified command (or script) instead of the usual This script has to mount the USB storage device now and to call the usual To mount the USB device, it has to start the USB host first - have a look at the To start the USB host (and that means: immediately at system start, not while initializing the system later, where For other kernel versions, loading these modules is done from this Such a path of execution doesn't exist for kernel version 3 and later ... as a result, the storage device for your Instead this statement gets executed: https://github.com/Freetz/freetz/blob/master/make/usbroot/files/root/etc/init.d/rc.usbroot#L553 and your box resumes the normal boot process, because the root device will never get replaced and the later called TL;DR: I don't believe, there was ever a successful start of a FRITZ!Box device with an activated Even if you would get managed to let the system recognize the correct filesystem of your USB storage device, your device would not start with this partition as root device - at least not with the current implementation of If you run into problems with a filesystem image, that's too big for the available flash memory, consider to use an |
I thought so that I've seen a new version run usbroot, but maybe i was wrong. I'll try to get into this in about 1.5 Weeks when I'm back from holidays. |
okay, so you were right, the usb stick i tested on the 4020 worked with old versions but doesn't with 7. The only thing I don't get yet is why doesn't it start normally. You mentioned that the script resumes the init process without replacing the filesystem. However it doesn't boot normally, instead it gets stuck in a bootloop. (both 4040 and 4020) Thank you for mentioning the externals extension, I never knew what it was, but I'll get into it soon. |
I have taken a quick look into this topic... The first problem is that switching init to /etc/init.d/rc.usbroot doesn't work on devices with "inner"and "outer" filesystem. When rc.usbroot is started from kernel command line the root filesystem isn't mounted. So there are no modules in /lib because you have to mount /filesystem_core.squashfs first and switch root... I doubt there is the possibility to add files to the outer filesystem at the moment? So this would be the first challenge. Then the rc.usbroot script has to be adopted for kernel version 3.10 and xhci usbhost module... Regards, |
Easy as taking candy from a baby, as long as the needed space isn't too large. You may re-mount "/wrapper" on such devices (as r/w, it's mounted r/o by AVM) and you get immediately access to the free space from the YAFFS2 filesystem, that's stored in this partition. I'm storing (regularly) 16 MB in an additional image there and there are still 4 MB available - all data taken from a 7490 device, which has most files/needs most space in stock firmware, compared to other VR9 models.
TL;DR: It's possible to store data there ... either from the running system (e.g. while enabling USB root mode) or from the Freetz toolchain already. The cumulated space requirements (FRITZ!OS + Freetz additions) have to be honoured ... the YAFFS2 partition is only 48 MB in size and a bigger SquashFS image reduces the available space in the uncompressed part. On VR9 devices (with this I would modify the |
Is your problem still under FOS 7.12? |
If AVM didn't randomly go back in their kernel version, then yes it should still be there. |
Hi,
I was trying to install unbound and some other network management stuff and because of easy access and big image sizes i decided to use usbroot. I was using usbroot previously (<7.x) and it always worked like a charm and was very reliable.
Now i made myself another internal image which basically only has usbroot and some smaller stuff for debugging or easy access (like Dropbear or nano shell).
after some minor troubles I managed my box to detect and also (freetz)mount the ext3 usb stick in uStor01
However usbroot page does not recognize that the file system is ext3, it says "unknown" and the selection boxes are greyed out.
Now here is what i tried:
It all did not result in any step towards booting from the usb stick.
In the AVM-Webinterface the usb stick shows up correctly as ext3 and is accessible in FritzNAS
I already googled, and although there is no such problem, i found that apparently the command "fstyp" has something to do with fs recognition of usbroot. I dont know the syntax and the usage isnt very specific, but "fstyp /dev/sda1" fails (and yes, /dev/sda1 is the correct and available usb partition)
On the 4020 fstyp returns ext3 as expected (same usb stick).
(just for completeness, the 4020 i was comparing too has got the "newest" firmware for it, but the freetz build could be up to half a year old, maybe something regarding fstyp has changes since then)
I dont know whether i documented everything important, please just ask if there is something missing.
config.txt
The text was updated successfully, but these errors were encountered: