[RFC PATCH v2/SETUP SCRIPT]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#!/bin/sh
set -ex

IMG=$HOME/ext4.img
MNT=/ext4

if [ "$1" != 'mount' ]; then
	rm -f $IMG
	truncate --size 128M $IMG
fi

DEV=$(sudo losetup --find --show $IMG)

if [ "$1" != 'mount' ]; then
	sudo mkfs.ext4 $DEV
	sudo tune2fs -f -o journal_data $DEV
fi

sudo mkdir -p $MNT
sudo mount -o data=journal $DEV $MNT
sudo chown -R ubuntu:ubuntu $MNT



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux