Extending a dietPi file system (video #126)
Download image of the SD card
Here, you find the image of an SD card for the Raspberry Pi Zero. It only works for the Pi Zero. If you want to create a MQTT broker for another platform, you have to download the normal OS and then apply Peters script
Simple way
Look at https://learn.adafruit.com/resizing-raspberry-pi-boot-partition/edit-partitions
- If you have a other Linux system with a graphical interface, you can install gparted and mount your newly created SD card with the (too small) image into a USB card reader and the card reader into your running Raspberry.
- You have to enter your password twice
- You start gparted and search for your SD card. Then, with the right mouse, you resize/move your ext4 file system. Enter zero in the field “free space following) and hit “resize/move”
- Then, you apply all operations.
- Done!
Complex way (all commands in bold)
- Mount your newly created SD card with the (too small) image into a USB card reader and the card reader into your running Raspberry.
- Sudo fdisk -l shows you the name of this device (usually /dev/sda). It has two partitions, SDA1 and SDA2. And SDA2 is very small
- Sudo umount /dev/sda (usually, it is not mounted)
- Sudo parted /dev/sda
unit chs
print
- The numbers in red show the max number of cylinders, heads, and sectors of your SD card (actually, all numbers are too big). The yellow shows the actual beginning of your second partition
- Now, we have to remove the boundaries of the second partition: sudo rm 2
- And create new boundaries: mkpart primary 8,138,2 1963,254,62. We use the two numbers from before and subtract at least 1 from each (red number). You might get the error message “…is outside of the device /dev/sda”. Then, just experiment till your values are accepted (I found no better way)
- Now we quit the utility
- Next, we have to clean the newly created partition: sudo e2fsck -f /dev/sda2
- And resize the partition: sudo resize2fs /dev/sda2
- If we look at our partitions (sudo fdisk -l), we see, that the partition is bigger than before
This is the way it worked for me. No guarantee, that it works for you! I am a Linux beginner.
Source: http://elinux.org/RPi_Resize_Flash_Partitions
Sabine
20. April 2017 @ 9:08
Hello would you mind letting me know which webhost you’re working
with? I’ve loaded your blog in 3 different internet
browsers and I must say this blog loads a lot quicker then most.
Can you recommend a good web hosting provider at a honest price?
Cheers, I appreciate it!
admin
20. April 2017 @ 10:58
Webland.ch
Dating
22. February 2019 @ 20:45
Klasse gemachte Website, das Layout gefaellt mir
sehr gut! War bestimmt ‘n haufen Aufwand.
admin
14. April 2019 @ 11:54
Danke! Hab’s von YouTube gelernt 😉
fred
23. June 2022 @ 14:50
Hi, sorry to bother again, but I see you have edited the description of your video: https://www.youtube.com/watch?v=_pjcEKQY_Tk
https://www.youtube.com/watch?v=_gZEeoAl5Nk
Since we are the original developer who made this device possible, would you mind putting the Tindie and nanorfe.com link at the top of the description instead of linking to a clone?
I also posted a comment (username is Fred S.), would you mind pinning my comment on the video?
Thanks!
admin
28. June 2022 @ 10:31
I appreciate your input. However, my channel is supported by affiliate links. So I try to post Aliexpress links (which are also well accepted by my viewers because of the low risk). I do not know why you do not sell on this platform 🙁