[raspberry-vi] Re: trouble shrinking partition

  • From: <kperry@xxxxxxxxxxxxx>
  • To: <raspberry-vi@xxxxxxxxxxxxx>
  • Date: Sat, 2 Jan 2021 15:54:57 -0500

It is a lot of steps but you could make a script out of it and only have to
run the script.  That is what we did back with the BP18.  I never typed
everything out that was always a  mess.

-----Original Message-----
From: raspberry-vi-bounce@xxxxxxxxxxxxx <raspberry-vi-bounce@xxxxxxxxxxxxx>
On Behalf Of Glenn K0LNY
Sent: Saturday, January 2, 2021 3:09 PM
To: raspberry-vi@xxxxxxxxxxxxx
Subject: [raspberry-vi] Re: trouble shrinking partition

Hi Kelly,
It seemed like a lot of steps, so I was looking for an easier way.
I did make an 8GB partition on another drive, and did the following:
dd if=/dev/sdc2 of=/dev/sdb2 bs=64K
and it worked except that the 8GB partition wasn't quite big enough, it ran
out of space.
Maybe it got all the files, I'm not sure if the error was from copying empty
space from the 16GB partition.
I may try to remove some packages from the image that I installed to make it
smaller.
But I may take you up on having you shrink it for me.
Thanks.

Glenn

----- Original Message -----
From: "Kelly Prescott" <kprescott@xxxxxxxxxx>
To: <raspberry-vi@xxxxxxxxxxxxx>
Sent: Saturday, January 02, 2021 2:01 PM
Subject: [raspberry-vi] Re: trouble shrinking partition


If you can copy your image to something like dropbox or google drive, I
will be happy to download, shrink, and upload it back for you.
I would even be willing to download it, and go through the shrink process
with you on zoom or something and teach you how to do it.



On Sat, 2 Jan 2021, Glenn K0LNY wrote:

Hi All,
This is really frustrating.
I did a lot to get the Vanilla-SDR talking, and I did save the image from 
the 16GB SD card, and I keep trying to shrink the ext4 partition on the SD

card using Ubuntu on my main computer.
I have tried parted and I get mounting errors, telling me it is not 
mounted.
I have tried it with the disk utility too, using the GUI.
Same mount error.
I have tried it with /dev/sdc2 mounted and unmounted.
After changing the mount status, I do
mount -a to update fstab.
I've tried it after changing mount status without the mount -a command.
This is the reason I have a love hate relationship with Linux.
Glenn
===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views 
and attitudes expressed by the subscribers to this list do not reflect 
those of the Foundation.

Mike Ray, list creator, January 2013


===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and

attitudes expressed by the subscribers to this list do not reflect those of 
the Foundation.

Mike Ray, list creator, January 2013

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and
attitudes expressed by the subscribers to this list do not reflect those of
the Foundation.

Mike Ray, list creator, January 2013

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: