Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275107

Re: disk image

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: disk image
Date 2024-12-01 19:40 +0100
Message-ID <JOX1n-d2Ld-3@gated-at.bofh.it> (permalink)
References <JOWI1-d2EL-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/1/24 10:19, William Torrez Corea wrote:
> I make a disk image but this makes a backup of free space and full space of
> the disk.
> 
> I am using dd (Unix) and using gnome-disk-utility.
> 
> How can I make a disk image of selected data?
> 
> I don't want to make a backup of the entire disk.


I use dd(1) for backup images:

1.  If you want to backup only one partition, specify the device node 
for that partition:

# dd if=/dev/sda1 ...

2.  If you want specific blocks, such as the MBR, primary GPT header, 
secondary GPT header, etc., specific the starting block and the number 
of blocks to backup:

# dd bs=512 skip=0 count=34 ...


Related:

3.  Run zerofree(8), fstrim(8), or another utility to zero ununused 
blocks prior to taking the image.  This implies #4.

4.  Enable compression of the backup stream.  For command line usage:

#  dd ... | gzip ...


David

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

disk image William Torrez Corea <willitc9888@gmail.com> - 2024-12-01 19:20 +0100
  Re: disk image David Christensen <dpchrist@holgerdanske.com> - 2024-12-01 19:40 +0100
  Re: disk image "Thomas Schmitt" <scdbackup@gmx.net> - 2024-12-01 20:00 +0100

csiph-web