Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick
Date: Tue, 29 Mar 2016 17:07:28
Message-Id: 1673481.qE2GxjkF2b@dell_xps
In Reply to: Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick by Meino.Cramer@gmx.de
1 On Tuesday 29 Mar 2016 18:33:01 Meino.Cramer@×××.de wrote:
2 > Hi Ian,
3 >
4 > If I do a
5 >
6 > eix partclone
7 >
8 > I get
9 >
10 > No matches found.
11 > [1] 7241 exit 1 eix -n partclone
12 >
13 > . May be a typo... ;)
14
15 Please try not to top-post, it confuses the flow of the thread.
16
17 Ian's suggestions for using dd are good and I would like to add:
18
19 -Add a block size (e.g. bs=4096) or you'll be waiting for some time for the
20 command to finish.
21
22 -Pipe the output through gzip or bzip2 to compress what will be mostly empty
23 bits and bytes.
24
25
26 However, to start with check (using e.g. fdisk -l) if the USB stick has a
27 partition table on it in the first place. Many USB sticks have no partition
28 table and the vfat fs is created across the whole device (as if it were one
29 large partition). Nothing wrong with this as long as you don't try to boot
30 from it. The BIOS will try to jump to an MBR and the first partition and may
31 complain when it does not find one there.
32
33 You can use 'minfo' from the mtools package to find out what the geometry of
34 the USB stick is, before you reformat it.
35
36 BTW, some USB sticks of unknown provence come with malware in them. So
37 reformatting them before use is a good security measure.
38 --
39 Regards,
40 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies