FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-23-2012, 08:27 AM
Gary Dale
 
Default Tools in Debian to create whole disk image (multiple partitions)?

On 23/07/12 02:07 AM, Andrei POPESCU wrote:

On Du, 22 iul 12, 22:41:52, Gary Dale wrote:

So what you really need is a copy of the files on /boot and /. You
don't need the swap space and you don't need the empty space in the
main partition.

Nope, what I really need is something that would fit here:

http://www.raspberrypi.org/downloads

Kind regards,
Andrei
In that case, simply do a dd but limit the number of blocks written to
2G worth.


If you zero the swap partition first, this will make the file more
compressible. You can also zero the empty space on the main partition,
which should make it also compress quite well. BitShredder can do this.
If the partition has the free space zeroed, it should compress down to a
manageable size.


After you've created the image, compress it.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 500D0B09.6010106@rogers.com">http://lists.debian.org/500D0B09.6010106@rogers.com
 
Old 07-23-2012, 11:13 AM
Henrique de Moraes Holschuh
 
Default Tools in Debian to create whole disk image (multiple partitions)?

On Mon, 23 Jul 2012, Gary Dale wrote:
> compressible. You can also zero the empty space on the main
> partition, which should make it also compress quite well.
> BitShredder can do this. If the partition has the free space zeroed,
> it should compress down to a manageable size.

On most filesystems (not on btrfs, for example), "dd if=/dev/zero
of=somefile bs=1M ; rm somefile" (as root) will happily zero all the data
area in the filesystem that hosts somefile (provided it is otherwise idle).
Zeroing stale metadata areas is filesystem-version-specific, dangerous, and
not worth the effort.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120723111357.GB9103@khazad-dum.debian.net">http://lists.debian.org/20120723111357.GB9103@khazad-dum.debian.net
 
Old 07-23-2012, 11:28 AM
Henrique de Moraes Holschuh
 
Default Tools in Debian to create whole disk image (multiple partitions)?

On Mon, 23 Jul 2012, Henrique de Moraes Holschuh wrote:
> On Mon, 23 Jul 2012, Gary Dale wrote:
> > compressible. You can also zero the empty space on the main
> > partition, which should make it also compress quite well.
> > BitShredder can do this. If the partition has the free space zeroed,
> > it should compress down to a manageable size.
>
> On most filesystems (not on btrfs, for example), "dd if=/dev/zero
> of=somefile bs=1M ; rm somefile" (as root) will happily zero all the data
> area in the filesystem that hosts somefile (provided it is otherwise idle).
> Zeroing stale metadata areas is filesystem-version-specific, dangerous, and
> not worth the effort.

Ah yes, better disclaim it: that's for spinning rust and RAM-based
drives only! Don't do it on solid-state devices with limited
write-cycles such as FLASH-based devices (i.e. SSDs, pendrives, SD
cards...).

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120723112842.GC9103@khazad-dum.debian.net">http://lists.debian.org/20120723112842.GC9103@khazad-dum.debian.net
 
Old 07-23-2012, 02:48 PM
Mark Neidorff
 
Default Tools in Debian to create whole disk image (multiple partitions)?

On Monday 23 July 2012 2:07:42 am Andrei POPESCU wrote:
> On Du, 22 iul 12, 22:41:52, Gary Dale wrote:
> > So what you really need is a copy of the files on /boot and /. You
> > don't need the swap space and you don't need the empty space in the
> > main partition.
>
> Nope, what I really need is something that would fit here:
>
> http://www.raspberrypi.org/downloads

I think what you want to do is here:

http://darkdust.net/writings/diskimagesminihowto

Seems to me that the RPi folks used this technique to create the images.

Rick Thomas suggested a one-liner to create the img file that looks like it
should work well.

Another suggestion....ask the kind folks at RPi. (They are almost as nice as
the folks on the Debian list)

Mark


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201207231048.29216.mark@neidorff.com">http://lists.debian.org/201207231048.29216.mark@neidorff.com
 
Old 07-25-2012, 11:33 AM
Andrei POPESCU
 
Default Tools in Debian to create whole disk image (multiple partitions)?

On Lu, 23 iul 12, 10:48:29, Mark Neidorff wrote:
> On Monday 23 July 2012 2:07:42 am Andrei POPESCU wrote:
> > On Du, 22 iul 12, 22:41:52, Gary Dale wrote:
> > > So what you really need is a copy of the files on /boot and /. You
> > > don't need the swap space and you don't need the empty space in the
> > > main partition.
> >
> > Nope, what I really need is something that would fit here:
> >
> > http://www.raspberrypi.org/downloads
>
> I think what you want to do is here:
>
> http://darkdust.net/writings/diskimagesminihowto

I thought about zeroing the card in advance and also about creating the
big partition smaller. There are tips in there to not copy the
unpartitioned space which should help in this case

> Another suggestion....ask the kind folks at RPi. (They are almost as
> nice as the folks on the Debian list)

Sure, but I don't like forums at all

Kind regards
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 

Thread Tools




All times are GMT. The time now is 08:17 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org