Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only 2gb of sd card space is available, even on 32 gb card. #10

Closed
nmcain opened this issue Jan 16, 2019 · 16 comments
Closed

Only 2gb of sd card space is available, even on 32 gb card. #10

nmcain opened this issue Jan 16, 2019 · 16 comments
Labels
good first issue Good for newcomers solved & solution provided Read this, we have a fix for you

Comments

@nmcain
Copy link
Contributor

nmcain commented Jan 16, 2019

In GParted, it shows tons of empty space. Can we fix this, please.

@yunshansimon
Copy link
Member

expand.sh.txt

1.save the script to expand.sh
2.change mod chmod 755 expand.sh
3.run as root sudo expand.sh /dev/sda or /dev/mmcblk0
4.restart os.

@nmcain
Copy link
Contributor Author

nmcain commented Jan 16, 2019

Wow! Thank you! We should pu this in the readme

@yunshansimon
Copy link
Member

yunshansimon commented Jan 16, 2019

It doesn't belong vanilla Chromium OS. It is from FydeOS.
Close the tag if it works, please.

@nmcain
Copy link
Contributor Author

nmcain commented Jan 16, 2019

when I run the script, it shows this.
chronos@(none) ~/Downloads $ chmod 755 expand.sh chronos@(none) ~/Downloads $ sudo expand.sh /dev/sda sudo: expand.sh: command not found chronos@(none) ~/Downloads $ ls expand.sh IMG_20181229_175907.jpg chronos@(none) ~/Downloads $ expand.sh /dev/sda bash: expand.sh: command not found chronos@(none) ~/Downloads $ ./expand.sh /dev/sda bash: ./expand.sh: Permission denied chronos@(none) ~/Downloads $ sudo ./expand.sh /dev/sda sudo: unable to execute ./expand.sh: Permission denied chronos@(none) ~/Downloads $ chmod +x expand.sh chronos@(none) ~/Downloads $ sudo expand.sh /dev/sda sudo: expand.sh: command not found chronos@(none) ~/Downloads $ ./expand.sh bash: ./expand.sh: Permission denied chronos@(none) ~/Downloads $ sudo ./expand.sh sudo: unable to execute ./expand.sh: Permission denied chronos@(none) ~/Downloads $

@yunshansimon
Copy link
Member

The execute permission of ~/Downloads is forbiden. You need copy it to /usr/local/bin or /usr/local/sbin.

@nmcain
Copy link
Contributor Author

nmcain commented Jan 17, 2019

`(none) /usr/local # sudo ./expand.sh /dev/sda
ERROR: Can't open /dev/sda: No such file or directory
ERROR: Can't open /dev/sda: No such file or directory
ERROR: Can't open /dev/sda: No such file or directory
ERROR: Can't open /dev/sda: No such file or directory
partx: stat of /dev/sda failed: No such file or directory
resize2fs 1.44.1 (24-Mar-2018)
open: No such file or directory while opening /dev/sda1
(none) /usr/local # sudo ./expand.sh /dev/mmcblk0
ERROR: Entry outside of valid region
ERROR: -i 1 -s 59306940
resize2fs 1.44.1 (24-Mar-2018)
The filesystem is already 524288 (4k) blocks long. Nothing to do!

(none) /usr/local # `

@jslby
Copy link

jslby commented Jan 19, 2019

@yunshansimon
can you help me pls.

sudo ./expand.sh /dev/mmcblk0
ERROR: Entry outside of valid region
ERROR: -i 1 -s 60245948
resize2fs 1.44.5 (15-Dec-2018)
Filesystem at /dev/mmcblk0p1 is mounted on /media/STATE; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mmcblk0p1 is now 524301 (4k) blocks long.

you solved not work for me

@yunshansimon
Copy link
Member

Try the latest release

@blairbo
Copy link

blairbo commented Feb 23, 2019

This worked perfectly for me.

@MuTong233
Copy link

Try the latest build and login as a normal Google account.It should be expanded automatically.

@PrinceAlvar
Copy link

hello im new to Chrome OS and i currently have this problem, how do i get to the Chrome OS terminal and what command do i enter into it so that it reads the full 64gb SD card i have?

@fydeos-alpha fydeos-alpha added good first issue Good for newcomers solved & solution provided Read this, we have a fix for you labels Nov 21, 2019
@liberodark
Copy link

liberodark commented Dec 11, 2019

please add this script into the images would be better.
in /usr/bin/ or run that in auto?

@PrinceAlvar
Copy link

please add this script into the images would be better.
in /usr/bin/ or run that in auto?

can you please walk me through on how to do this over call or discord?
#6199409474
Disc #0804 Prince_Alvar

@yetipi3
Copy link

yetipi3 commented Jul 23, 2020

#80 i dont understand (im new to this)

@fydeos-alpha
Copy link
Member

  • First, bring up a shell prompt (ctrl + alt + F2 for tty shell; or ctrl + alt + t for crosh shell then enter shell for bash), login with chronos / test0000

  • Execute the lsblk command and verify your stateful partition label name, it's likely to be mmcblk0p1. Make sure it's listed in the output.

  • Execute the expansion script:

    sudo /usr/sbin/expand-partition.sh --dst /dev/mmcblk0p1
    

    Once the script finish running without error, your stateful partition should be expanded to occupy the rest of your SD card free space.

@vedranius
Copy link

  • First, bring up a shell prompt (ctrl + alt + F2 for tty shell; or ctrl + alt + t for crosh shell then enter shell for bash), login with chronos / test0000

  • Execute the lsblk command and verify your stateful partition label name, it's likely to be mmcblk0p1. Make sure it's listed in the output.

  • Execute the expansion script:

    sudo /usr/sbin/expand-partition.sh --dst /dev/mmcblk0p1
    

    Once the script finish running without error, your stateful partition should be expanded to occupy the rest of your SD card free space.

Thanks! This worked great! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers solved & solution provided Read this, we have a fix for you
Projects
None yet
Development

No branches or pull requests

10 participants