My Userlandを作る 2007-08-28

古文書が出てきたので、メモしておく。
日付が2004年だった。そのあたりでは、16MBくらいのCFが一般的だったのかなぁ。
いまだと64MBとか128MBのCFを探すほうが大変だったりするけど。

空のroot file image(16MB)を作成する。

% cd 適当なディレクトリ
% /bin/dd if=/dev/zero of=image/my_userland.img bs=16777216 count=1
% /sbin/mke2fs image/my_userland.img

ユーザランドを書き込む。

% su root
# mkdir /mnt/img
# /bin/mount -o loop image/my_userland.img /mnt/img
# cd ユーザランド
# tar cf - . | (cd /mnt/img; tar xf -)
# umount /mnt/img

Last-modified: 2022-05-05 (木) 22:27:10