Code Sample |
if ! $fdisk -l | awk '/^\/dev/{print $1}'| grep -wq ${DEVICE}; then echo "Can't find device ${DEVICE}. Is it connected?" exit 1 fi |
Code Sample |
# losetup -a /dev/loop0: [0100]:226 (/dev/ram12) encryption=AES128 multi-key-v3 # df -h /dev/loop0 Filesystem Size Used Avail Use% Mounted on /dev/loop0 95M 13K 90M 1% /mnt/test # du -h /mnt/test 12K /mnt/test/lost+found 13K /mnt/test |
Code Sample |
df -h /dev/ram12 Filesystem Size Used Avail Use% Mounted on /dev/root 3.0M 735K 2.2M 25% / |
Code Sample |
# losetup /dev/loop0 /dev/ram12 # losetup -a df -h /dev/loop0 Filesystem Size Used Avail Use% Mounted on /dev/root 3.0M 735K 2.2M 25% / |
Code Sample |
dd if=/dev/zero of=/dev/ram12 dd: writing to `/dev/ram12': No space left on device 200001+0 records in 200000+0 records out 102400000 bytes transferred in 0.859401 seconds (119152753 bytes/sec) ^^^^^^^^^^ |