Jump to content

USB3.0 SSD 500GB doesn't resize, stuck with 3.3gb rootfs


Doopie

Recommended Posts

Hi,

I've seen the question asked many times but there is no working solution for this( ? )

Hardware:
Odroid N2
500GB Samsung USB3.1 T5 SSD


What i've done:
Downloaded the Odroid N2 image
Put in on the SSD

It boots and it installs without problems. but with a problem and that it's NOT resizing the partition like it does when you install on a SD-card.

I edited the boot.ini and the fstab to use /dev/sda1. I even edited the /usr/lib/armbian/armbian-resize-filesystem to hardcode /dev/sda1 into the file

 

When i run sudo systemctl start armbian-resize-filesystem nothing happens. Well if i added an extra partition it's gone after that. Luckily i had no data on it yet because i'm still exploring.

Is there any good way to get this working on the SSD ( or any other media that is not a SD or eMMC card. ).



 

 

 

Link to comment
Share on other sites

Thanks martinayotte but I tried that but ended up with a bad disk:

 

This is what i get with fdisk -l ( used a 32gb sd to create the image that is now on the SSD)

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1        8192 61324351 61316160 29,2G 83 Linux

 

But when i try to write with fdisk i get this:
First sector (65535-976773167, default 65535):

So this will render the drive unbootable

And it seems i'm not the only only one having this  trouble with fdisk( and maybe that's why Armbian doesn't resize the partition )
https://unix.stackexchange.com/questions/303354/why-does-fdisk-insist-on-starting-the-first-partition-at-sector-65535-mib-31-99


I ended up using another Linux computer to use Parted. That seemed to work. fdisk is not the right tool to use and that's causing the problems, so it seems.

Link to comment
Share on other sites

7 minutes ago, Doopie said:

Thanks martinayotte but I tried that but ended up with a bad disk:

The way to do it with fdisk is :

- print existing partition to note the start sector and the type to be remembered .

- delete existing partition.

- create a new partition with same start sector seen previously seen but choose maximum size suggested.

- print again partition and see if type is good one, if not change the type.

- commit fdisk with "w".

- then, execute "resize2fs <partition>"

7 minutes ago, Doopie said:

I ended up using another Linux computer to use Parted.

That is a good workaround ...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines