[root@localhost root]# dd if=/dev/zero of=new_fs bs=1M count=10
10+0개의 레코드를 입력하였습니다
10+0개의 레코드를 출력하였습니다
[root@localhost root]#
[root@localhost root]#
[root@localhost root]# mkfs.ext2 -Fq /root/cow
-F : 블락디바이스가 아니라도 무시하고 실행
-q : 아무런 메시지 없이 조용히 실행. 스크립트 안에서 실행할 때 주로 사용
mke2fs 1.32 (09-Nov-2002)
[root@localhost root]#mkdir /mnt/cow
[root@localhost root]# mount -o loop -t ext2 /root/cow /mnt/cow
[root@localhost root]#
[root@localhost root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 7.3G 4.3G 2.7G 63% /
none 125M 0 125M 0% /dev/shm
/dev/cdrom 647M 647M 0 100% /mnt/cdrom
/root/cow 9.7M 13K 9.2M 1% /mnt/cow
[root@localhost root]#
[root@localhost root]# cd /mnt/cow
[root@localhost cow]# ls
lost+found
[root@localhost cow]#
[root@localhost cow]# touch hello.c
[root@localhost cow]# ls
hello.c lost+found
[root@localhost cow]#