resize root partition to max available space SD card can provide
#10
(11-16-2016, 12:37 PM)bilylilyli Wrote: hi, how can I specify the path when I run the resize_rootfs.sh?

hi, I run those two command, and I attach the resuld. The first picture is for df -h and the second one is for fdisk -l.

When you look at the code for resize_rootfs.sh that I linked to earlier, it's pretty obvious that resize_rootfs.sh doesn't accept any parameters - it is hard-coded at lines 11 & 12 to resize "/dev/mmcblk0p2" - which is the second partition on your microSD card.

If you look back that df -h (or the fdisk) listing, you can see that you have /dev/mmcblk0p1 (50MB in size) and /dev/mmcblk0p2 (7GB in size). /dev/mmcblk0p1 is a boot partition, and if you look at the microsd on a Windows machine, that is all you will be able to see (without installing extra drivers / software). /dev/mmcblk0p2 is the actual data partition for linux, and that is the one that should be resized when you run resize_rootfs.sh. The problem now is in knowing why the resize has failed, as you said this is on a 16GB microSD, and it hasn't been resized up to use the full 16GB. Do you get any errors or output from resize_rootfs.sh when you run it again (make sure you're running as root).

Can you give the link to where you got the image from or which version it was, - as I indicated earlier, there was a older image that had a bug in resize_rootfs but that was fixed about three-four months ago, so I just want to make sure that image is not still linked as a current image somewhere.
  Reply


Messages In This Thread
RE: resize root partition to max available space SD card can provide - by pfeerick - 11-16-2016, 07:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  root running from usb connected ssd locks up system marcelser 0 2,706 11-17-2017, 04:50 PM
Last Post: marcelser
  OMV base on Debian jessie Root Problem ayamy 3 6,103 09-03-2017, 09:21 PM
Last Post: tllim
Wink clone copy of sd card by using partclone hatahata 6 9,861 11-04-2016, 12:53 AM
Last Post: pfeerick
  root password shaozhai 4 7,089 08-25-2016, 12:55 PM
Last Post: jl_678
  how to use USB hard disk as /(root) hatahata 15 19,524 07-01-2016, 07:09 PM
Last Post: hatahata
Sad How to resize the root partition in order to fully utilize the SD Card MicroDiery 5 8,178 05-24-2016, 05:48 AM
Last Post: Luke
  Debian root's password? rayivy 2 4,667 05-12-2016, 08:59 PM
Last Post: rayivy
Bug Firewall bug and free space , need to help ! ( debian xfce Released Apr 08 2016 ) joe 2 4,712 05-05-2016, 04:42 PM
Last Post: joe
  what is the root password for debian? piahoo 5 11,361 04-29-2016, 02:12 PM
Last Post: rhkean

Forum Jump:


Users browsing this thread: 1 Guest(s)