場景說明:因為需要重新定制squashfs.img檔案的大小,其實是稀疏檔案的大小,和實際檔案的大小有差別。實際的操作如下:
1)dd if=/dev/zero of=rootfs bs=65536 count=24000
2)mke2fs -F rootfs
3)mkdir mnt
4)mount rootfs mnt -o loop
5)cp -rp yourRootDir mnt
6)umount mnt
7)mkdir squashfs-dir
8)mv rootfs squshfs-dir
9)mksquashfs squashfs-dir squashRootfs
出現挂載異常:
mount :wrong fs type,bad option,bad superblock on /dev/mapper/live-rw
missing codepage or helper program,other error
In some cases useful info is found in syslog -try dmesg |tail or so
本文轉自fengyuzaitu 51CTO部落格,原文連結:http://blog.51cto.com/fengyuzaitu/1570753,如需轉載請自行聯系原作者