Command

Orange Pi resize file system

Posted on

Check partition name $ sudo fdisk -l Print partition information and Check first sector of second partition $ sudo fdisk -c /dev/mmcblk0 input “p” Delete target partition and Create partition based on before partition information input “d” – input “2” – input “n” – Input “p” – input “p” – input “2” – input “first […]

Command

nohup

Posted on

On Unix-like operating systems, the nohup command executes another command, and instructs the system to continue running it even if the session is disconnected. $ sudo nohup example-script.sh > log.out & Nohup is for a single use. Think of a script that will take a long time to run but will still ultimately finish. Maybe there’s a long and […]

Command

Find Alternative Superblocks and Repair

Posted on

Before running dumpe2fs, make sure to run df -hT command to know the filesystem device name $ sudo dumpe2fs /dev/sdaX | grep -i superblock dumpe2fs 1.41.11 (14-Mar-2019) Primary superblock at 0, Group descriptors at 1-29 Backup superblock at 32768, Group descriptors at 32769-32797 Backup superblock at 98304, Group descriptors at 98305-98333 Backup superblock at 163840, Group descriptors at […]