Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Chromebook expand/resize/grow partition rootfs

  1. #11
    Junior Member
    Join Date
    Jul 2013
    Posts
    12
    Awesome Outis! Worked like a champ. Now I feel like I'm getting my monies worth out of my SD card.

  2. #12
    Junior Member
    Join Date
    Jun 2016
    Posts
    12
    Quote Originally Posted by Outis View Post
    Cracked the code, see below.

    Basically here's the flow let me know if you have any questions:
    1. Zero out disk
    2. DD it over
    3. Check out the partitions
    4. Open up parted
    5. let parted fix the disk
    6. extend the data
    7. make it bootable
    8. mount the disk
    9. resize with btrfs
    10. unmount



    Code:
    dd if=/dev/zero of=/dev/sdb bs=2G
    dd if=kali-chromebook.img of=/dev/sdb bs=512k
    fdisk -l
    #complains about mismatch
    parted /dev/sdb
    (parted) print
    #Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space
    #(an extra 108478464 blocks) or continue with the current setting?
    #Fix/Ignore? 
    Fix
    cgpt add -i 2  -t data -b 40960 -s 122773471 -l Root /dev/sdb
    cgpt repair /dev/sdb
    cgpt add -i 1 -S 1 -T 5 -P 10 -l KERN-A /dev/sdb
    cgpt add -i 2 -S 1 -T 5 -P 5 -l KERN-B  /dev/sdb
    mount /dev/sdb2 /mnt
    btrfs filesystem resize max /mnt/
    umount /dev/sdb2
    hi there, I need to resurect this, because I got a problem with resizing, I can not fix on my own...

    Everything works, till I let parted "Fix" my USB drive (32GB) - now I can not boot it anymore with the chromebook
    I try to follow the next step(s):

    cgpt add -i 2 -t data -b 40960 -s 122773471 -l Root /dev/sdb results in a :"ERROR: Entry outside of valid region
    ERROR: -i 2 -l Root -b 40960 -s 122773471 -t EBD0A0A2-B9E5-4433-87C0-68B6B72699C7"

    cgpt show /dev/sdb returns:

    start size part contents
    0 1 PMBR
    1 1 Pri GPT header
    2 32 Pri GPT table
    8192 32768 1 Label: "kernel"
    Type: ChromeOS kernel
    UUID: 2AB71726-C5F4-FF4F-A206-F91EE59365CB
    Attr: priority=0 tries=0 successful=0
    40960 62474240 2 Label: "Root"
    Type: Linux data
    UUID: 9C347498-8108-6245-B0AE-3374B4A96494
    62517215 32 Sec GPT table
    62517247 1 Sec GPT header

    Now, how to set the right "region" for this?

    Hope somebody is willing to help, support is not that good, it seems...

    Cheers!

  3. #13
    Junior Member
    Join Date
    Jun 2016
    Posts
    12
    ok, it does work now... somehow, I must have misread a thing or two... I already resized my partitions with gparted and there was no need to give cgpt orders to resize something...
    What was missing for a working install was just to add Kern A and Kern B, as described in the posts before.

    Now I got a 32GB size USB Kali install!!!

    Thanks

  4. #14
    Amazing! Thankyou so much!
    Made this on the SD card in running system (Samsung ChromeBook 1): Only had to change device name,
    adjust the -s parameter to match my SD card and use resize2fs to resize the kali partition (also in running system )

    So, for my 16GB Samsung SD card:

    Code:
    parted /dev/mmcblk1
    (parted) print
    #Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space
    #(an extra ...
    #Fix/Ignore? 
    Fix
    cgpt add -i 2  -t data -b 40960 -s 30000000 -l Root /dev/mmcblk1
    cgpt repair /dev/mmcblk1
    cgpt add -i 1 -S 1 -T 5 -P 10 -l KERN-A /dev/mmcblk1
    cgpt add -i 2 -S 1 -T 5 -P 5 -l KERN-B  /dev/mmcblk1
    resize2fs /dev/mmcblk1p2
    reboot

  5. #15
    Junior Member
    Join Date
    Sep 2015
    Posts
    10
    thanks to EpsteinBzalder and Onkelpoe.

    had to wipe my USB, and now I'm back on the hunt for the right commands in the right order.

    happy to work with anyone from the kali team, everything else is rock solid... just seems like the chromebook is a bit difficult.

  6. #16
    Junior Member
    Join Date
    Jan 2018
    Posts
    5

    Chromebook expand/resize/grow partition rootfs

    I tried the following apps ...

    Acronis disk director 9 = When selecting resize it only moves the partition around and doesnt resize it.

    QTParted = Able to resize but there is an error on completion and it aborts.

    GParted = Cant find the hdd or partitions.

    I have 15GB partition and 67GB of unallocated space on the hdd.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •