Posts Tagged ‘Virtual file system in Linux’

Creating a Virtual File System

STEP 1 (Construct a 10MB file) $ dd if=/dev/zero of=/tmp/disk-image count=20480 By default dd uses block of 512 so the size will be 20480*512 STEP 2 (Make an ext2 or ext3 file system) — ext2 shown here. $ mke2fs -q or if you want ext3 $ mkfs -t ext3 -q /tmp/disk-image you can also use reiser, but you’ll need to create a bigger disk image. Something like “dd if=/dev/zero of=/tmp/disk-image count=50480″. $ mkfs -t reiserfs -q /tmp/disk-image Hit yes for [...]

Related Posts Plugin for WordPress, Blogger...