EmeraldDeer
Very Senior Member
While the OS may support GPT disks, I have found that amtm disk check script does not support GPT. It returns "Unknown filesystem type'. If I do nothing, the entware filesystem will never have a full e2fsck.Int step 2 above: Does the OS support GPT with ext4?
Code:
Found valid GPT with protective MBR; using GPT
Disk /dev/sda: 976773168 sectors, 465G
Logical sector size: 512
Disk identifier (GUID): 74e5cee0-c1af-03a9-b873-39dd6b70ea00
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Number Start (sector) End (sector) Size Code Name
1 2048 4194303 2047M 0700 Basic data partition
2 4194304 8388607 2048M 0700 Basic data partition
3 8388608 847249407 400G 0700 Basic data partition
Code:
FSTYPE=$(fdisk -l ${1:0:8} | grep $1 | cut -c55-65)
case "$FSTYPE" in
Linux*) CHKCMD="e2fsck -p";;
Win95* | FAT*) CHKCMD="fatfsck -a";;
HPFS/NTFS) CHKCMD="ntfsck -a";;
*) logger -t amtm "Disk check: Unknown filesystem type $FSTYPE on $1 - skipping check."
printf "\n$(date) Unknown filesystem type $FSTYPE on $1 - skipping check.\n" >> /jffs/amtm-disk-check.log
exit 1;;
esac
logger -t amtm "Running disk check '$CHKCMD' on $1"
printf "\n$(date) Starting '$CHKCMD $1'\n" >> /jffs/amtm-disk-check.log
$CHKCMD $1 >> /jffs/amtm-disk-check.log 2>&1
logger -t amtm "Disk check done on $1"
Code:
#FSTYPE=$(fdisk -l ${1:0:8} | grep $1 | cut -c55-65)
FSTYPE=Linux
Last edited: