瀏覽代碼

Revert "Format as fat32"

This reverts commit 8e3b80c4b25a9d9e1b36b7bd7936ec0fb1402ba4.
Bob Mottram 7 年之前
父節點
當前提交
2d19a3d187
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/freedombone-format

+ 3
- 3
src/freedombone-format 查看文件

13
 # License
13
 # License
14
 # =======
14
 # =======
15
 #
15
 #
16
-# Copyright (C) 2015-2018 Bob Mottram <bob@freedombone.net>
16
+# Copyright (C) 2015-2016 Bob Mottram <bob@freedombone.net>
17
 #
17
 #
18
 # This program is free software: you can redistribute it and/or modify
18
 # This program is free software: you can redistribute it and/or modify
19
 # it under the terms of the GNU Affero General Public License as published by
19
 # it under the terms of the GNU Affero General Public License as published by
62
 a
62
 a
63
 1
63
 1
64
 w
64
 w
65
-" | fdisk /dev/${USB_DRIVE_SHORT};mkfs.msdos -F 32 -L "$LABEL" /dev/${USB_DRIVE_SHORT}1
65
+" | fdisk /dev/${USB_DRIVE_SHORT};mkfs.ext4 -L "$LABEL" /dev/${USB_DRIVE_SHORT}1
66
 
66
 
67
 echo $"Formatting $USB_DRIVE as LUKS"
67
 echo $"Formatting $USB_DRIVE as LUKS"
68
 cryptsetup -y -v luksFormat ${USB_DRIVE}
68
 cryptsetup -y -v luksFormat ${USB_DRIVE}
75
     echo $"Failed to open LUKS formatted drive $USB_DRIVE"
75
     echo $"Failed to open LUKS formatted drive $USB_DRIVE"
76
     exit 37232
76
     exit 37232
77
 fi
77
 fi
78
-mkfs.msdos -F 32 /dev/mapper/encrypted_usb -L "$LABEL"
78
+mkfs.ext4 /dev/mapper/encrypted_usb -L "$LABEL"
79
 if [ ! "$?" = "0" ]; then
79
 if [ ! "$?" = "0" ]; then
80
     cryptsetup luksClose encrypted_usb
80
     cryptsetup luksClose encrypted_usb
81
     echo $'Format of drive $USB_DRIVE failed'
81
     echo $'Format of drive $USB_DRIVE failed'