Just Sharing Knowledge on Robotics, Electronics and Programming

Sunday, March 5, 2017

Resize file system on SD card on Orange Pi PC Linux



If you are facing the problem of the disk space is lower than the actual size of SD card  used in orangepi PC, then you can do the following trick



First

$ fdisk -l

and you should know the partition name...

and in my case..

$ fdisk -c /dev/mmcblk0

input 'p'

and show information of partition...

may be.....taget partition is 2.....

input "d"       -> deldet partition....

input "2"      -> target delete partition...

ipput "np"     -> set new partition information...

input "p"      ->set primary

input "2"     -> target partition...

and input first sector number.......
(above...you type "fdisk -l" and find that number ( /dev/mmcblk0p2 's start number )

and request last sector....and push enter key....

and input "w"    ->write partiotion information....

System show error ....ignore....

$ reboot

$ resize2fs /dev/mmcblk0p2

$ df- h

done

0 comments:

Post a Comment