A A A
Please consider registering
guest
sp_LogInOut Log In
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters – maximum search word length is 84 characters
sp_Feed Topic RSS02-yellowpac
Problem with SSD hard drive
February 25, 2020
10:57 am
Danex

Ken
Members
Forum Posts: 2
Member Since:
February 25, 2020
sp_UserOfflineSmall Offline

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

March 28, 2020
6:00 am
Avatar
Ninja UK
Admin
Forum Posts: 2556
Member Since:
May 14, 2015
sp_UserOfflineSmall Offline

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 ?

March 29, 2020
1:51 pm
Keithsipa

Ken
Members
Forum Posts: 2
Member Since:
March 29, 2020
sp_UserOfflineSmall Offline

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
Most Users Ever Online: 3117
Currently Online: scottysharp1986, Gary Haggard
Guest(s) 42
Currently Browsing this Page:
1 Guest(s)
Top Posters:
canter6: 131
Jaz808: 121
test123: 84
davep180: 81
SteelCityJJ: 76
MyRetrozz: 70
Misa Misa: 70
kme2019: 61
-x-: 53
sergiohyperspin: 52
Member Stats:
Guest Posters: 122
Members: 164995
Moderators: 32
Admins: 1
Forum Stats:
Groups: 7
Forums: 36
Topics: 4428
Posts: 12910
Newest Members:
M@rcade, MarcosSilva, juanan, stef1685, darkknightcastle, matiasleiva, Shoti, saxxo, wahdawy, GTR702
Moderators: aladdin: 0, Arcade Man: 0, Arcade Punk: 0, CP78: 0, ETA PRIME: 0, Ghost Lost: 0, Harrison Hacks: 0, T.K.O. Cinematics: 0, kiodiekin1: 0, level1online: 0, hursty1: 0, Neighbourhood Techie: 0, Maria: 0, PatmanQC: 0, Restalgia: 0, RetroHumanoid: 0, Simply Austin: 0, titipilas: 0, Titi Ober: 179, Enkak: 46, leepspvideo: 0, _RetroTech100: 0, Guest Post: 0, Mark Blackwood: 0, Frankie Wilde: 0, Jeremy Reynolds: 0, Leslie Alexander: 0, Jason Copley: 0, Eleonora: 0, Joshua Robinson: 0, James Collins: 0, trevor punt: 39
Administrators: Ninja UK: 2556