User: Password:
|
|
Subscribe / Log in / New account

avoiding loopback for squashfs

avoiding loopback for squashfs

Posted Feb 1, 2007 4:36 UTC (Thu) by pjm (subscriber, #2080)
Parent article: Embedded Linux: Using Compressed File Systems

Can the squashfs be put in its own partition (or similar) rather than as a file on some other filesystem? This might remove the need for the loopback step and possibly even the separate initial minimal root system the article suggests.


(Log in to post comments)

avoiding loopback for squashfs

Posted Feb 1, 2007 7:31 UTC (Thu) by Wummel (subscriber, #7591) [Link]

Yes, the squashfs filesystem can be created directly on a block device, for example with:
mksquashfs /tmp/busybox /dev/hda5

avoiding loopback for squashfs

Posted Feb 1, 2007 17:31 UTC (Thu) by daney (subscriber, #24551) [Link]

We use squashfs as the root on a NOR type flash with the mtd drivers. Something like this:

mksquashfs * ../root.squashfs -all-root -noappend

Then on the target device:

flashcp root.squashfs /dev/mtd1

The kernel command line to boot is then:

root=1f01 rootfstype=squashfs


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds