by Arcade Punk



NEW FORUM IS IN BETA MODE - TESTING IN PROGRESS

Please consider registering
Guest
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Register Lost password?
sp_TopicIcon
Problem with SSD hard drive
2 Posts
(Offline)
1
February 25, 2020 - 10:57 am
Print Quote

Hi,I have a rasperry pi4 and I have installed the image of Damaso. AWESOME IMAGE, thank you for your work!!
I have connected a 500GB SSD hard disk, I save the image on the SSD with Win32Disk Imager and then copied the boot partition to an SD card.
Everything works correctly.
The problem is that I cannot use the entire size of the SSD disk because the image is 128gb. I tried with Gparted and then it doesn't boot (black screen).
Can somebody help me?
Sorry for my english 😀
Thank you

Avatar
1771 Posts
(Offline)
2
March 28, 2020 - 6:00 am
Print Quote

Enter this to see the current partition usage:
df

E.g.
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3698504 3351472 146524 96% /
/dev/root 3698504 3351472 146524 96% /
devtmpfs 494800 0 494800 0% /dev
tmpfs 99820 240 99580 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 199620 0 199620 0% /run/shm
/dev/mmcblk0p1 57288 19400 37888 34% /boot

The rootfs and /dev/root is the same thing, its just a debian thing the have them both appear as separate

Enter this:
sudo fdisk /dev/mmcblk0

Then press 'p' to see the current partitions on the disk. E.g.

Disk /dev/mmcblk0: 7860 MB, 7860125696 bytes
4 heads, 16 sectors/track, 239872 cylinders, total 15351808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa6202af7
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 15351807 7614464 83 Linux

Now delete the 2nd partition (it won't actually delete the data on it)
Press 'd' > Enter
Press '2' > Enter

Now re-create it:
Press 'n' > Enter
Press 'p' > Enter
Press '2' > Enter

Enter the First sector and the same value as the original /dev/mmcblk0p2 partition (122880 from the above example).

For the Last sector just press enter to use the maximum value.

Now press 'p' > Enter to see the new partition setup.
Finally press 'w' > Enter to write it

Now reboot:
sudo shutdown -r now

Once its back do the resize:
sudo resize2fs /dev/mmcblk0p2

This may take a little while to complete…

Now enter the command
df

and hey presto, you've expanded to use all the space 🙂

2 Posts
(Offline)
3
March 29, 2020 - 1:51 pm
Print Quote

Thanks for the info on the resize.  Do either of you know a good tutorial to swap to SSD for Rpi4.

Nevermind, just found your post in Other Images thread.

Forum Timezone: Europe/London
Show Stats
Administrators: Ninja UK, peter laws
Top Posters:
canter6: 199
Jaz808: 133
-x-: 54
Forum Stats:
Groups: 6
Forums: 51
Topics: 2510
Posts: 7960

 

Member Stats:
Guest Posters: 10
Members: 30156
Moderators: 0
Admins: 2

Most Users Ever Online
319
Currently Online
darkhero0418
Guest(s)
236
Currently Browsing this Page

1 Guest(s)

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More