开云体育

PiShrink?


 

Is the??script the best way to shrink images for archiving or for use with a smaller SD card?

Thanks & 73,
Ed
N2BHD


 

Isn't it easier to just buy a bigger SD card or an external disk drive?



On 03/03/2022 09:42 Ed via groups.io <elancki@...> wrote:


Is the?PiShrink ()?script the best way to shrink images for archiving or for use with a smaller SD card?

Thanks & 73,
Ed
N2BHD
Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www


 

开云体育

Good Morning Ed,

Interesting subject. I'm not sure what else there is out there to use to shrink. Of course it depends on the amount of data that is really on the SD card. I had a 32 gig card and it shrunk down to about 2.5 gigs, which is probably the amount of actual data on the card. Then I zipped it. That took it down to less than 1 gig. I shrunk about everything I have for images (quite a few for backups). With shrinking them first and then zipping, each one was less than 1 gig.

Mick - W7CAT


----- Original Message -----
From: "Ed via groups.io"
To: [email protected]
Sent: Thursday, March 03, 2022 07:42:25 AM
Subject: [RaspberryPi-4-HamRadio] PiShrink?

> Is the PiShrink ( ) script the best way to shrink images for archiving or for use with a smaller SD card?
>
> Thanks & 73,
> Ed
> N2BHD
>
>
>
>
>
>
--


 

开云体育

No. For the few minutes it takes to shrink it, not worth buying hardware for something that has a quick and easy software solution.

Here is an example that got be started with PiShrink. Yes I bought some new cards. They were supposed to be 8 gig cards since that is what I use. They were actually 7.9 gig cards. The image from the 8 gig cards wouldn't fit on the new cards. After using PiShrink, the shrunken image fit just fine on the new cards.

I probably have over 20 images. That is 160 gigs of images (or more). Silly to buy bigger cards, which will make for bigger images and the need for a bigger hard drive just for storage. After shrinking, I am down to 20 gigs.

I don't understand the concept of the OS filling all the unused space on the card when there isn't anything there. If you have a hard drive, you don't fill the whole unused space on it. It only uses what it needs when it needs it.

Mick - W7CAT


----- Original Message -----
From: "Nigel Gunn, G8IFF/W8IFF"
To: [email protected], "Ed via groups.io"
Sent: Thursday, March 03, 2022 07:49:14 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> Isn't it easier to just buy a bigger SD card or an external disk drive?
>
>
>
> > On 03/03/2022 09:42 Ed via groups.io wrote:
> >
> >
> > Is the?PiShrink ()?script the best way to shrink images for archiving or for use with a smaller SD card?
> >
> > Thanks & 73,
> > Ed
> > N2BHD
> >
>
> Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
> Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www
>
>
>
>
>
>
--


 

开云体育

Also, if you have to send the image over the network, makes a big difference. We have an image we build on a 16 gig card, but we pishrink to just below 8 gig, and zipped it is 2.6 gig. Makes a difference when you need to ship to 100s of clients over the web

-- ?
73 de KG2V
Charlie

On Mar 3, 2022, at 9:54 AM, Teton Amateur Radio Repeater Association (TARRA) <tarra@...> wrote:

?

Good Morning Ed,

Interesting subject. I'm not sure what else there is out there to use to shrink. Of course it depends on the amount of data that is really on the SD card. I had a 32 gig card and it shrunk down to about 2.5 gigs, which is probably the amount of actual data on the card. Then I zipped it. That took it down to less than 1 gig. I shrunk about everything I have for images (quite a few for backups). With shrinking them first and then zipping, each one was less than 1 gig.

Mick - W7CAT


----- Original Message -----
From: "Ed via groups.io"
To: [email protected]
Sent: Thursday, March 03, 2022 07:42:25 AM
Subject: [RaspberryPi-4-HamRadio] PiShrink?

> Is the PiShrink ( ) script the best way to shrink images for archiving or for use with a smaller SD card?
>
> Thanks & 73,
> Ed
> N2BHD
>
>
>
>
>
>
--


 

You're new cards were 7.9 because they were preformatted for Windows and you loose some space to the format information. They're still 8G cards.


On 03/03/2022 10:11 Teton Amateur Radio Repeater Association (TARRA) <tarra@...> wrote:


No. For the few minutes it takes to shrink it, not worth buying hardware for something that has a quick and easy software solution.

Here is an example that got be started with PiShrink. Yes I bought some new cards. They were supposed to be 8 gig cards since that is what I use. They were actually 7.9 gig cards. The image from the 8 gig cards wouldn't fit on the new cards. After using PiShrink, the shrunken image fit just fine on the new cards.

I probably have over 20 images. That is 160 gigs of images (or more). Silly to buy bigger cards, which will make for bigger images and the need for a bigger hard drive just for storage. After shrinking, I am down to 20 gigs.

I don't understand the concept of the OS filling all the unused space on the card when there isn't anything there. If you have a hard drive, you don't fill the whole unused space on it. It only uses what it needs when it needs it.

Mick - W7CAT


----- Original Message -----
From: "Nigel Gunn, G8IFF/W8IFF"
To: [email protected], "Ed via groups.io"
Sent: Thursday, March 03, 2022 07:49:14 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> Isn't it easier to just buy a bigger SD card or an external disk drive?
>
>
>
> > On 03/03/2022 09:42 Ed via groups.io wrote:
> >
> >
> > Is the?PiShrink ( ())?script the best way to shrink images for archiving or for use with a smaller SD card?
> >
> > Thanks & 73,
> > Ed
> > N2BHD
> >
>
> Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
> Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www ()
>
>
>
>
>
>

--

Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www


 

开云体育

The concept isn't specifically with the OS, it's with the imager tools.? They don't look for data, they do a bit by bit copy of the media.? So if only 10k is used out of a 128g SD card, it still makes a complete image of the card.?

Get
On Mar 3, 2022, at 07:11, "Teton Amateur Radio Repeater Association (TARRA)" <tarra@...> wrote:

No. For the few minutes it takes to shrink it, not worth buying hardware for something that has a quick and easy software solution.

Here is an example that got be started with PiShrink. Yes I bought some new cards. They were supposed to be 8 gig cards since that is what I use. They were actually 7.9 gig cards. The image from the 8 gig cards wouldn't fit on the new cards. After using PiShrink, the shrunken image fit just fine on the new cards.

I probably have over 20 images. That is 160 gigs of images (or more). Silly to buy bigger cards, which will make for bigger images and the need for a bigger hard drive just for storage. After shrinking, I am down to 20 gigs.

I don't understand the concept of the OS filling all the unused space on the card when there isn't anything there. If you have a hard drive, you don't fill the whole unused space on it. It only uses what it needs when it needs it.

Mick - W7CAT


----- Original Message -----
From: "Nigel Gunn, G8IFF/W8IFF"
To: [email protected], "Ed via groups.io"
Sent: Thursday, March 03, 2022 07:49:14 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> Isn't it easier to just buy a bigger SD card or an external disk drive?
>
>
>
> > On 03/03/2022 09:42 Ed via groups.io wrote:
> >
> >
> > Is the?PiShrink ()?script the best way to shrink images for archiving or for use with a smaller SD card?
> >
> > Thanks & 73,
> > Ed
> > N2BHD
> >
>
> Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
> Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www
>
>
>
>
>
>
--


 

开云体育

Or make it available for download.

Mick - W7CAT

----- Original Message -----
From: "Charles Gallo"
To: [email protected]
Sent: Thursday, March 03, 2022 08:16:23 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> Also, if you have to send the image over the network, makes a big difference. We have an image we build on a 16 gig card, but we pishrink to just below 8 gig, and zipped it is 2.6 gig. Makes a difference when you need to ship to 100s of clients over the web
>
> --
> 73 de KG2V
> Charlie
>
> > On Mar 3, 2022, at 9:54 AM, Teton Amateur Radio Repeater Association (TARRA) wrote:
> >
> > ?
> > Good Morning Ed,
> >
> > Interesting subject. I'm not sure what else there is out there to use to shrink. Of course it depends on the amount of data that is really on the SD card. I had a 32 gig card and it shrunk down to about 2.5 gigs, which is probably the amount of actual data on the card. Then I zipped it. That took it down to less than 1 gig. I shrunk about everything I have for images (quite a few for backups). With shrinking them first and then zipping, each one was less than 1 gig.
> >
> > Mick - W7CAT
> >
> >
> > ----- Original Message -----
> > From: "Ed via groups.io"
> > To: [email protected]
> > Sent: Thursday, March 03, 2022 07:42:25 AM
> > Subject: [RaspberryPi-4-HamRadio] PiShrink?
> >
> > > Is the PiShrink ( ) script the best way to shrink images for archiving or for use with a smaller SD card?
> > >
> > > Thanks & 73,
> > > Ed
> > > N2BHD
> > >
> > >
> > >
> > >
> > >
> > >
> > --
> >
> >
>
>
>
>
>
>
--


 

Actually not true. The imager doesn't care about existing format and writes bit by bit. Some cards are 8GB others are 8GiB
Manufacturers don't all use the same standard.? Same with hard drives.? And if you look at the manufacturers specs, somewhere they actually list size by Bytes and you'll see the difference there.
GiB is 1024MB, GB is 1000MB

Get
On Mar 3, 2022, at 07:35, "Nigel Gunn, G8IFF/W8IFF" <nigel@...> wrote:

You're new cards were 7.9 because they were preformatted for Windows and you loose some space to the format information. They're still 8G cards.


On 03/03/2022 10:11 Teton Amateur Radio Repeater Association (TARRA) <tarra@...> wrote:


No. For the few minutes it takes to shrink it, not worth buying hardware for something that has a quick and easy software solution.

Here is an example that got be started with PiShrink. Yes I bought some new cards. They were supposed to be 8 gig cards since that is what I use. They were actually 7.9 gig cards. The image from the 8 gig cards wouldn't fit on the new cards. After using PiShrink, the shrunken image fit just fine on the new cards.

I probably have over 20 images. That is 160 gigs of images (or more). Silly to buy bigger cards, which will make for bigger images and the need for a bigger hard drive just for storage. After shrinking, I am down to 20 gigs.

I don't understand the concept of the OS filling all the unused space on the card when there isn't anything there. If you have a hard drive, you don't fill the whole unused space on it. It only uses what it needs when it needs it.

Mick - W7CAT


----- Original Message -----
From: "Nigel Gunn, G8IFF/W8IFF"
To: [email protected], "Ed via "
Sent: Thursday, March 03, 2022 07:49:14 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

Isn't it easier to just buy a bigger SD card or an external disk drive?



On 03/03/2022 09:42 Ed via wrote:


Is the?PiShrink ( ( the best way to shrink images for archiving or for use with a smaller SD card?

Thanks & 73,
Ed
N2BHD


Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www ()







--



Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www






 

开云体育

Exactly what we do - we want to save the 100s of clients (and ourselves) as many gigs of bandwidth as we can


On 2022-03-03 11:10, Teton Amateur Radio Repeater Association (TARRA) wrote:

Or make it available for download.

Mick - W7CAT
?
?
--
Charles Gallo


 

开云体育

Sorry, but I don't agree with what you are saying. Here is an example of why. I have a shrunk image that is 1.75 gigs in size. I image that to an 8 gig card. So the completed card only has 1.75 gig of space used on it. Once it is moved over to the Pi, it still only has 1.75 gig. The bit by bit copy is only of the 1.75 gig. The copy process did not fill the rest of the card. Once the card is in the Pi, the first time it boots, it boots up on the 1.75 gig image and then immediately reboots to fill out the rest of the space on the card. So in fact IT IS the OS that is doing it. Nothing to do with the copying of the image to the card.

Mick - W7CAT

----- Original Message -----
From: "N5XMT"
To: [email protected]
Sent: Thursday, March 03, 2022 08:39:19 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> The concept isn't specifically with the OS, it's with the imager tools.? They don't look for data, they do a bit by bit copy of the media.? So if only 10k is used out of a 128g SD card, it still makes a complete image of the card.?
>
> ?Get BlueMail for Android ?
>
> On Mar 3, 2022, 07:11, at 07:11, "Teton Amateur Radio Repeater Association (TARRA)" wrote:
> >No. For the few minutes it takes to shrink it, not worth buying
> >hardware
> >for something that has a quick and easy software solution.
> >
> >Here is an example that got be started with PiShrink. Yes I bought some
> >
> >new cards. They were supposed to be 8 gig cards since that is what I
> >use. They were actually 7.9 gig cards. The image from the 8 gig cards
> >wouldn't fit on the new cards. After using PiShrink, the shrunken image
> >
> >fit just fine on the new cards.
> >
> >I probably have over 20 images. That is 160 gigs of images (or more).
> >Silly to buy bigger cards, which will make for bigger images and the
> >need for a bigger hard drive just for storage. After shrinking, I am
> >down to 20 gigs.
> >
> >I don't understand the concept of the OS filling all the unused space
> >on
> >the card when there isn't anything there. If you have a hard drive, you
> >
> >don't fill the whole unused space on it. It only uses what it needs
> >when
> >it needs it.
> >
> >Mick - W7CAT
> >
> >
> >----- Original Message -----
> >From: "Nigel Gunn, G8IFF/W8IFF"
> >To: [email protected], "Ed via groups.io"
> >Sent: Thursday, March 03, 2022 07:49:14 AM
> >Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?
> >
> >> Isn't it easier to just buy a bigger SD card or an external disk
> >drive?
> > >
> > >
> > >
> > > > On 03/03/2022 09:42 Ed via groups.io wrote:
> > > >
> > > >
> > > > Is the?PiShrink
> >()?script
> >
> >the best way to shrink images for archiving or for use with a smaller
> >SD
> >card?
> > > >
> > > > Thanks & 73,
> > > > Ed
> > > > N2BHD
> > > >
> > >
> > > Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
> > > Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@...
> >www
> >
> > >
> > >
> > >
> > >
> > >
> > >
> >--
> >Untitled Document
> >
> >
> >
> >
>
>
>
>
>
>
--


 

开云体育

My comment was regarding an 8g image not fitting on an 8g card, not a shrunken image.? If you have an 8GB card and make an image file without pishrink, it will be an 8GB image file, even if I only 10k of that 8GB was used.? When you restore that file, if the card you used is spec'd by the manufacturer as 8G, but they use GiB for their "standard", then the image is 8192MB.? If the destination card you write the image to is also an 8G, but the manufacturer uses GB, it's free space is only 8000MB and the image will not fit.
GiB is the common standard, but disk drives, thumb drives etc depends on the manufacturer as to whether they use GB and GIB..
If the image was shrunk first, yes, only the used space of the original is all that it will be.? Unless it's a fresh image of Raspbian, it won't automatically expand the root filesystem to fit the card/drive it was installed on. You have to go into raspi-config, advanced options and expand filesystem then reboot.? Regardless of the size of the original image and card, that will only expand to the available unused size on the card


Get
On Mar 3, 2022, at 16:28, "Teton Amateur Radio Repeater Association (TARRA)" <tarra@...> wrote:

Sorry, but I don't agree with what you are saying. Here is an example of why. I have a shrunk image that is 1.75 gigs in size. I image that to an 8 gig card. So the completed card only has 1.75 gig of space used on it. Once it is moved over to the Pi, it still only has 1.75 gig. The bit by bit copy is only of the 1.75 gig. The copy process did not fill the rest of the card. Once the card is in the Pi, the first time it boots, it boots up on the 1.75 gig image and then immediately reboots to fill out the rest of the space on the card. So in fact IT IS the OS that is doing it. Nothing to do with the copying of the image to the card.

Mick - W7CAT

----- Original Message -----
From: "N5XMT"
To: [email protected]
Sent: Thursday, March 03, 2022 08:39:19 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> The concept isn't specifically with the OS, it's with the imager tools.? They don't look for data, they do a bit by bit copy of the media.? So if only 10k is used out of a 128g SD card, it still makes a complete image of the card.?
>
> ?Get BlueMail for Android ?
>
> On Mar 3, 2022, 07:11, at 07:11, "Teton Amateur Radio Repeater Association (TARRA)" wrote:
> >No. For the few minutes it takes to shrink it, not worth buying
> >hardware
> >for something that has a quick and easy software solution.
> >
> >Here is an example that got be started with PiShrink. Yes I bought some
> >
> >new cards. They were supposed to be 8 gig cards since that is what I
> >use. They were actually 7.9 gig cards. The image from the 8 gig cards
> >wouldn't fit on the new cards. After using PiShrink, the shrunken image
> >
> >fit just fine on the new cards.
> >
> >I probably have over 20 images. That is 160 gigs of images (or more).
> >Silly to buy bigger cards, which will make for bigger images and the
> >need for a bigger hard drive just for storage. After shrinking, I am
> >down to 20 gigs.
> >
> >I don't understand the concept of the OS filling all the unused space
> >on
> >the card when there isn't anything there. If you have a hard drive, you
> >
> >don't fill the whole unused space on it. It only uses what it needs
> >when
> >it needs it.
> >
> >Mick - W7CAT
> >
> >
> >----- Original Message -----
> >From: "Nigel Gunn, G8IFF/W8IFF"
> >To: [email protected], "Ed via groups.io"
> >Sent: Thursday, March 03, 2022 07:49:14 AM
> >Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?
> >
> >> Isn't it easier to just buy a bigger SD card or an external disk
> >drive?
> > >
> > >
> > >
> > > > On 03/03/2022 09:42 Ed via groups.io wrote:
> > > >
> > > >
> > > > Is the?PiShrink
> >()?script
> >
> >the best way to shrink images for archiving or for use with a smaller
> >SD
> >card?
> > > >
> > > > Thanks & 73,
> > > > Ed
> > > > N2BHD
> > > >
> > >
> > > Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
> > > Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@...
> >www
> >
> > >
> > >
> > >
> > >
> > >
> > >
> >--
> >Untitled Document
> >
> >
> >
> >
>
>
>
>
>
>
--


 

开云体育

Also another option is rpi-clone?? I've used that for a couple of years.?
Works pretty well, but I make a point of copying the image back onto another card and testing it.? Got burned a couple of times when backing up a headless configuration, and didn't see the errors that were sent.???? I routinely run systems on 8 or 16 GB card and back those up to a 4 GB Thumb drive.?? Same issue with thumb drives, 4GB can be off one way or another just enough that you can't put it back on a 4 GB micro SD card.?? Found my 4 GB thumb drive that is just slightly smaller, and using that, I'm able to put things back onto a 4GB SD card without issue.

Regards
Lloyd? n0nhj
?


On 3/4/2022 08:27, N5XMT wrote:

My comment was regarding an 8g image not fitting on an 8g card, not a shrunken image.? If you have an 8GB card and make an image file without pishrink, it will be an 8GB image file, even if I only 10k of that 8GB was used.? When you restore that file, if the card you used is spec'd by the manufacturer as 8G, but they use GiB for their "standard", then the image is 8192MB.? If the destination card you write the image to is also an 8G, but the manufacturer uses GB, it's free space is only 8000MB and the image will not fit.
GiB is the common standard, but disk drives, thumb drives etc depends on the manufacturer as to whether they use GB and GIB..
If the image was shrunk first, yes, only the used space of the original is all that it will be.? Unless it's a fresh image of Raspbian, it won't automatically expand the root filesystem to fit the card/drive it was installed on. You have to go into raspi-config, advanced options and expand filesystem then reboot.? Regardless of the size of the original image and card, that will only expand to the available unused size on the card


Get
On Mar 3, 2022, at 16:28, "Teton Amateur Radio Repeater Association (TARRA)" <tarra@...> wrote:

Sorry, but I don't agree with what you are saying. Here is an example of why. I have a shrunk image that is 1.75 gigs in size. I image that to an 8 gig card. So the completed card only has 1.75 gig of space used on it. Once it is moved over to the Pi, it still only has 1.75 gig. The bit by bit copy is only of the 1.75 gig. The copy process did not fill the rest of the card. Once the card is in the Pi, the first time it boots, it boots up on the 1.75 gig image and then immediately reboots to fill out the rest of the space on the card. So in fact IT IS the OS that is doing it. Nothing to do with the copying of the image to the card.

Mick - W7CAT

----- Original Message -----
From: "N5XMT"
To: [email protected]
Sent: Thursday, March 03, 2022 08:39:19 AM
Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?

> The concept isn't specifically with the OS, it's with the imager tools.? They don't look for data, they do a bit by bit copy of the media.? So if only 10k is used out of a 128g SD card, it still makes a complete image of the card.?
>
> ?Get BlueMail for Android ?
>
> On Mar 3, 2022, 07:11, at 07:11, "Teton Amateur Radio Repeater Association (TARRA)" wrote:
> >No. For the few minutes it takes to shrink it, not worth buying
> >hardware
> >for something that has a quick and easy software solution.
> >
> >Here is an example that got be started with PiShrink. Yes I bought some
> >
> >new cards. They were supposed to be 8 gig cards since that is what I
> >use. They were actually 7.9 gig cards. The image from the 8 gig cards
> >wouldn't fit on the new cards. After using PiShrink, the shrunken image
> >
> >fit just fine on the new cards.
> >
> >I probably have over 20 images. That is 160 gigs of images (or more).
> >Silly to buy bigger cards, which will make for bigger images and the
> >need for a bigger hard drive just for storage. After shrinking, I am
> >down to 20 gigs.
> >
> >I don't understand the concept of the OS filling all the unused space
> >on
> >the card when there isn't anything there. If you have a hard drive, you
> >
> >don't fill the whole unused space on it. It only uses what it needs
> >when
> >it needs it.
> >
> >Mick - W7CAT
> >
> >
> >----- Original Message -----
> >From: "Nigel Gunn, G8IFF/W8IFF"
> >To: [email protected], "Ed via groups.io"
> >Sent: Thursday, March 03, 2022 07:49:14 AM
> >Subject: Re: [RaspberryPi-4-HamRadio] PiShrink?
> >
> >> Isn't it easier to just buy a bigger SD card or an external disk
> >drive?
> > >
> > >
> > >
> > > > On 03/03/2022 09:42 Ed via groups.io wrote:
> > > >
> > > >
> > > > Is the?PiShrink
> >()?script
> >
> >the best way to shrink images for archiving or for use with a smaller
> >SD
> >card?
> > > >
> > > > Thanks & 73,
> > > > Ed
> > > > N2BHD
> > > >
> > >
> > > Nigel A. Gunn, ///shoulders.outwards.resolutions tel +1-937-971-0366
> > > Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@...
> >www
> >
> > >
> > >
> > >
> > >
> > >
> > >
> >--
> >Untitled Document
> >
> >
> >
> >
>
>
>
>
>
>
--


Virus-free.