spexandwally
Pogoplug V4 lost power, boots but will not get IP address for SSH September 01, 2019 01:24AM |
Re: Pogoplug V4 lost power, boots but will not get IP address for SSH September 01, 2019 04:16AM |
Admin Registered: 12 years ago Posts: 17,931 |
Re: Pogoplug V4 lost power, boots but will not get IP address for SSH September 03, 2019 07:59PM |
Registered: 10 years ago Posts: 1,303 |
/sbin/dosfsck -aw <MSDOS partition>and
/sbin/fsck.ext4 -fy <EXT4 partition>to clean the EXT4 partition. When problem like this happens so often, due to power outages, etc., it will become cumbersome. So, I wrote a simple checkdisk shell scripts utility (attached below) to detect the partition type, i.e. ext, ext2, ext3, ext4, and vfat, then use it to select which disk utility to clean the partition. By no means this shell script utility is complete and it does lack an intelligence to check if the partition is mounted or not. I hope such a simple shell script utility will benefit anyone.