From c4bc597f65ad83929792857b7fd4905e6b9af079 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Tue, 9 Aug 2016 19:59:05 +0200 Subject: [PATCH] Better check_fat target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0320a45c..904881d6 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,11 @@ mount_fat: sudo /bin/mount -t vfat /dev/loop0 mnt/fake/ check_fat: - sudo fsck.fat -n /dev/loop0 + sudo /sbin/losetup -o1048576 /dev/loop0 hdd.img + sudo /bin/mount -t vfat /dev/loop0 mnt/fake/ + sudo fsck.fat -n /dev/loop0 || true + sudo /bin/umount mnt/fake/ + sudo /sbin/losetup -d /dev/loop0 umount_fat: sudo /bin/umount mnt/fake/