DietPi sees only 561GB out of 4.6 TB external drive Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
z5z
Posts: 5
Joined: Sun Oct 04, 2020 3:45 pm

DietPi sees only 561GB out of 4.6 TB external drive

Post by z5z »

Hello,

recently I have bought a new Seagate Expansion drive with the capacity of 5TB. I've installed DietPi x64 on it through etcher. After the install, I resized the drive in disk manager but it still only shows 561.3 GB available of of 4.6TB possible. What can I do to make it work?

Here is the outcome from cat /var/tmp/dietpi/logs/fs_partition_resize.log:

Code: Select all


root@DietPi:~# cat /var/tmp/dietpi/logs/fs_partition_resize.log
Removed /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.ser                                                        vice.
The size of this disk is 4.6 TiB (5000981077504 bytes). DOS partition table form                                                        at cannot be used on drives for volumes larger than 2199023255040 bytes for 512-                                                        byte sectors. Use GUID partition table format (GPT).
Disk /dev/sda: 4.6 TiB, 5000981077504 bytes, 9767541167 sectors
Disk model: Expansion
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xad09722e

Old situation:

Device     Boot  Start        End    Sectors   Size Id Type
/dev/sda1         8192     532479     524288   256M  c W95 FAT32 (LBA)
/dev/sda2       532480 1177606574 1177074095 561.3G 83 Linux

/dev/sda2:
New situation:
Disklabel type: dos
Disk identifier: 0xad09722e

Device     Boot  Start        End    Sectors   Size Id Type
/dev/sda1         8192     532479     524288   256M  c W95 FAT32 (LBA)
/dev/sda2       532480 1177606574 1177074095 561.3G 83 Linux

The partition table has been altered.
resize2fs 1.44.5 (15-Dec-2018)
The filesystem is already 147134261 (4k) blocks long.  Nothing to do!
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi sees only 561GB out of 4.6 TB external drive

Post by Joulinar »

Hi,

you could connect your HDD to your computer and use a tool like GParted to check situation and resize

https://gparted.org/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
z5z
Posts: 5
Joined: Sun Oct 04, 2020 3:45 pm

Re: DietPi sees only 561GB out of 4.6 TB external drive

Post by z5z »

I've found the problem - it's the limitation of the MBR partition (2TB max). Nevertheless, I do not want to reformat the drive completely as to change it to GPT partition. Is there a way to remain on my current dietpi installation and somehow manage to use all of the provided capacity (4.6 TB)? Maybe I can move the boo partition to a smaller USB stick and somehow transfer the 5TB drive into a GPT without loosing the data on it?
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi sees only 561GB out of 4.6 TB external drive

Post by Joulinar »

I found an older post on the web https://forums.linuxmint.com/viewtopic.php?t=241602

not sure if it is still working. But seems gdisk could do what you are looking for.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 667
Joined: Thu Jul 20, 2017 8:55 am

Re: DietPi sees only 561GB out of 4.6 TB external drive

Post by WarHawk »

Use exfat

fat32 is limited in it's size due to lack of addressing capability...exfat fixes that (this is why large USB drives use exfat)

also exfat is cross compatible with linux, windows, and MAC
https://helpdeskgeek.com/help-desk/what ... s-of-each/

You should be able to convert to exfat without losing data
https://www.diskpart.com/articles/conve ... -0310.html (seems to be a windows only converter, but should work)
However it seems the safest bet is to back up all the data, then do a complete re-format :(
Post Reply