まあ 本質では無いが にゃんたろうが 適当な 確認をしておきます。
# df | sed 2,5d | sed 3d Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda9 133136404 12409820 114016900 10% /root/work/sda9 # ls bin/ dev/ home/ loop/ misc/ opt/ root/ srv/ usr/ boot/ etc/ install/ lost+found/ mnt/ proc/ run/ sys/ var/ cdrom/ fastboot lib/ media/ net/ put_old/ sbin/ tmp/ # cd home/fdopstm/ # mkdir 004_log-ZANTEI /* まあ log を 残す場所を作成しておきます。 */ # chown fdopstm.users 004_log-ZANTEI/ # cd ../../
これで rootimg.squash の 準備が 完了しました ので 作成します。
# pwd /root/work/sda9 # ls bin/ dev/ home/ loop/ misc/ opt/ root/ srv/ usr/ boot/ etc/ install/ lost+found/ mnt/ proc/ run/ sys/ var/ cdrom/ fastboot lib/ media/ net/ put_old/ sbin/ tmp/ # ls ../ pmt/ sda9/ sdb2/ # time /usr/bin/mksquashfs * ../rootimg.squash -b 1024KB -comp xz -noappend Parallel mksquashfs: Using 4 processors Creating 4.0 filesystem on ../rootimg.squash, block size 1048576. [=========================================================-] 435648/435648 100% Exportable Squashfs 4.0 filesystem, xz compressed, data block size 1048576 compressed data, compressed metadata, compressed fragments, compressed xattrs duplicates are removed Filesystem size 3598717.08 Kbytes (3514.37 Mbytes) 32.95% of uncompressed filesystem size (10922177.47 Kbytes) Inode table size 3789838 bytes (3701.01 Kbytes) 22.15% of uncompressed inode table size (17111018 bytes) Directory table size 4519690 bytes (4413.76 Kbytes) 36.56% of uncompressed directory table size (12363080 bytes) Number of duplicate files found 35334 Number of inodes 511550 Number of files 436192 Number of fragments 7183 Number of symbolic links 40766 Number of device nodes 269 Number of fifo nodes 1 Number of socket nodes 25 Number of directories 34297 Number of ids (unique uids + gids) 26 Number of uids 14 root (0) daemon (2) polkituser (21) fdopstm (1000) uucp (10) nobody (65534) mysql (33) wnn (17) bin (1) games (12) pop (16) postfix (15) man (13) lp (4) Number of gids 21 root (0) disk (6) tty (5) daemon (2) lp (7) users (100) wheel (10) nogroup (65534) mysql (40) postdrop (17) bin (1) mlocate (44) mail (12) games (43) messagebus (37) utmp (20) postfix (16) telnetd (35) man (15) sys (3) uucp (14) real 34m29.642s user 124m55.376s sys 3m52.773s # ls -l ../rootimg.squash -rw-r--r-- 1 root root 3685089280 Jun 6 22:35 ../rootimg.squash
にゃんたろう 拝!
2014年 3月 23日 日曜日 21:23:32 JST 作成