# \[Solved\] Card size incorrect (500MB of 8GB)

**URL:** https://dietpi.com/forum/t/solved-card-size-incorrect-500mb-of-8gb/2469
**Category:** Troubleshooting
**Created:** [11 August 2018 14:44 UTC](https://dietpi.com/forum/t/solved-card-size-incorrect-500mb-of-8gb/2469 "2018-08-11T14:44:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bilo34](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bilo34](https://dietpi.com/forum/u/bilo34)
#### Post date: [11 August 2018 14:44 UTC](https://dietpi.com/forum/t/solved-card-size-incorrect-500mb-of-8gb/2469/1 "2018-08-11T14:44:08Z")

</div>

Hello, I recently installed DietPi on a 1GB card, and I saw RootFS was too small (490MB) to install anything, so I installed it on a 8GB card.  
Now, the date and time sync doesn’t work, and I have the same problem. RootFS is at 0MB, and I opened “df -h”, here’s the result :

Filesystem Size Used Avail Use% Mounted on  
/dev/root 473M 462M 0 100% /  
devtmpfs 484M 0 484M 0% /dev  
tmpfs 489M 0 489M 0% /dev/shm  
tmpfs 489M 13M 476M 3% /run  
tmpfs 5.0M 0 5.0M 0% /run/lock  
tmpfs 489M 0 489M 0% /sys/fs/cgroup  
/dev/sda2 466G 110G 357G 24% /mnt/262847B128477EB5  
tmpfs 20M 24K 20M 1% /var/log  
tmpfs 488M 12K 488M 1% /tmp  
tmpfs 10M 1.5M 8.6M 15% /DietPi  
/dev/mmcblk0p1 42M 23M 19M 56% /boot  
  
  
So I opened the partition manager on my computer, and it’s a 7.8G partition (rest is for the boot partition).  
/dev/sda2 is my external HDD.  
Can anyone help me on this? I also noticed my own computer is kinda slow (internet too) when the Pi is plugged to the Internet…  
Thanks everyone

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [11 August 2018 15:26 UTC](https://dietpi.com/forum/t/solved-card-size-incorrect-500mb-of-8gb/2469/2 "2018-08-11T15:26:18Z")

</div>

Please try the following:

```nohighlight
wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/rootfs/etc/systemd/system/dietpi-fs_partition_resize.service -O /etc/systemd/system/dietpi-fs_partition_resize.service
wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/rootfs/var/lib/dietpi/services/fs_partition_resize.sh -O /var/lib/dietpi/services/fs_partition_resize.sh
systemctl daemon-reload
systemctl enable dietpi-fs_partition_resize
reboot

```

There were at least a bug inside this for /dev/sdX devices, but maybe it solves your issue as well.

---

<div class="post-metadata">

### Author: ![bilo34](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bilo34](https://dietpi.com/forum/u/bilo34)
#### Post date: [11 August 2018 16:03 UTC](https://dietpi.com/forum/t/solved-card-size-incorrect-500mb-of-8gb/2469/3 "2018-08-11T16:03:45Z")

</div>

> [@](#):
>
> Please try the following:
> 
> ```plaintext
> wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/rootfs/etc/systemd/system/dietpi-fs_partition_resize.service -O /etc/systemd/system/dietpi-fs_partition_resize.service
> wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/rootfs/var/lib/dietpi/services/fs_partition_resize.sh -O /var/lib/dietpi/services/fs_partition_resize.sh
> systemctl daemon-reload
> systemctl enable dietpi-fs_partition_resize
> reboot
> 
> ```
> 
> There were at least a bug inside this for /dev/sdX devices, but maybe it solves your issue as well.

It was an improper setup, I flashed the image again and ran the setup for the real first time (didn’t really see it before).  
Thanks for your help though !
