Gentoo Archives: gentoo-user

From: Ian Bloss <ianlinkcd@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick
Date: Tue, 29 Mar 2016 16:21:23
Message-Id: CADopNUc=Q693bqdnOhwOYaBOca_FZv1-JL_AZQFG7o7e-ScU4A@mail.gmail.com
In Reply to: Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick by Meino.Cramer@gmx.de
1 Checkout partclone, I think it does what you're looking for.
2
3 On Tue, Mar 29, 2016, 12:19 <Meino.Cramer@×××.de> wrote:
4
5 > Hi Ia,
6 >
7 > thanks for your reply ! :)
8 >
9 > The usbstick I want to make an initial backup is 64GB of size.
10 > That means, I will backup mostly zeroes.
11 >
12 > Where are the partioning/format defining on the device?
13 > If there are only stored the beginning of the device: How
14 > much do I need to copy?
15 >
16 > or:
17 >
18 > If there are tools to extract all needed informations of the
19 > partioning/formatting and to recreate exactly that kind of
20 > partitioning/formatting later with that or other tools:
21 > Which tools do I need and how to use them?
22 >
23 > Thank you very much in advance for any help!
24 > Best regards,
25 > Meino
26 >
27 >
28 >
29 > Ian Bloss <ianlinkcd@×××××.com> [16-03-29 18:12]:
30 > > If you're gonna dd a drive you either go the same space or larger. To be
31 > > sure you get everything you can just
32 > >
33 > > dd if=/dev/oldstick of=/dev/newstick
34 > >
35 > > Replacing old/newstick with the correct device.
36 > >
37 > > You can even keep a backup image with
38 > >
39 > > dd if=/dev/oldstick of=/home/user/whateveryounamedit.img
40 > >
41 > > Which you then can replicate to any drive
42 > >
43 > > dd if=/home/user/whateveryounamedit.img of=/dev/newdevice
44 > >
45 > > On Tue, Mar 29, 2016, 11:43 <Meino.Cramer@×××.de> wrote:
46 > >
47 > > > Hi,
48 > > >
49 > > > since companies know their usbstick internals best, they
50 > > > format their drives in a way, that the performance is best.
51 > > >
52 > > > That's why I want to make a complete image "backup" of my
53 > > > new usbstick first before using it in case of needing to
54 > > > reset the whole thing.
55 > > >
56 > > > The stick is a 64GB vfat formatted device.
57 > > >
58 > > > How much of the usbstick do I need to dd/pv from
59 > > > the stick to preserve *all* informations to do a
60 > > > "true factory reset" later if needed?
61 > > >
62 > > > Thank you very much in advance for any help!
63 > > > Best regards,
64 > > > Meino
65 > > >
66 > > >
67 > > >
68 > > >
69 > > >
70 > > >
71 >
72 >

Replies