mrw wrote: 
> 
> I'll bet that someone has already written a tool that resizes the
> individual partitions of a disk image and generates a smaller disk
> image. It would need to be file system aware... 
> 
There are several ('example' (https://github.com/Drewsif/PiShrink))

> 
> It wouldn't be difficult to roll your own, I think.
> 
Basically,
    
- mount image as loop device
- shrink file system (with e.g. resize2fs)
- shrink partition (with parted)
  
> 
> Yes, one tar job for each partition, with the expectation that you
> manually recreate the file system before untarring into it. I haven't
> considered trying to provoke tar into saving partition info, and I'm
> dubious about it.
> 
You can use sfdisk to backup/recover partition tables



SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=110496

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping

Reply via email to