Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dd says no space left on device
Date: Sun, 15 May 2011 18:41:25
Message-Id: 201105151940.33408.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] dd says no space left on device by Volker Armin Hemmann
1 On Sunday 15 May 2011 19:15:16 Volker Armin Hemmann wrote:
2 > On Sunday 15 May 2011 18:52:21 Mick wrote:
3 > > On Sunday 15 May 2011 08:45:05 Adam Carter wrote:
4 > > > I'm cloning a windows disk using gentoo;
5 > > >
6 > > > On the old 66GB disk;
7 > > > # dd if=/dev/sdb of=/root/winmbr.bin bs=512 count=1
8 > > > # dd if=/dev/sdb1 bs=10M | gzip -v > winpartition.gz
9 > > >
10 > > > Then after swapping in the new 500GB disk;
11 > > > dd if=/root/winmbr.bin of=/dev/sdb bs=512 count=1
12 > > > # gunzip -c winpartition.gz | dd of=/dev/sdb1 bs=10M
13 > > > dd: writing `/dev/sdb1': No space left on device
14 > > > 0+306 records in
15 > > > 0+305 records out
16 > > > 10137600 bytes (10 MB) copied, 0.109885 s, 92.3 MB/s
17 > > > # fdisk -l /dev/sdb
18 > > >
19 > > > Disk /dev/sdb: 500.1 GB, 500107862016 bytes
20 > > > 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
21 > > > Units = sectors of 1 * 512 = 512 bytes
22 > > > Sector size (logical/physical): 512 bytes / 512 bytes
23 > > > I/O size (minimum/optimal): 512 bytes / 512 bytes
24 > > > Disk identifier: 0xe3f7e3f7
25 > > >
26 > > > Device Boot Start End Blocks Id System
27 > > >
28 > > > /dev/sdb1 * 206848 117207039 58500096 7 HPFS/NTFS/exFAT
29 > > >
30 > > > Why is dd saying no space left after copying 10MB when sdb1 is 65GB?
31 > >
32 > > Not sure if the bs=10M is too large?
33 > >
34 > > You can try finding the optimum size of the bs= value by creating a
35 > > partition on the new disk, formating it and then run something like:
36 > >
37 > > dd if=/dev/zero bs=1024 count=1000000 of=/1G_test.file
38 > > dd if=/dev/zero bs=2048 count=500000 of=/1G_test.file
39 > > dd if=/dev/zero bs=4096 count=250000 of=/1G_test.file
40 > > dd if=/dev/zero bs=8192 count=125000 of=/1G_test.file
41 > >
42 > > and compare the results that dd reports. bs=4096 often gives best
43 > > performance (on my drives at least) but with the new 1T+ drives you may
44 > > find that another block size does the job better.
45 > >
46 > > Then zero the drive first using dd:
47 > >
48 > > dd if=/dev/zero of=/dev/sdb bs=4096 oflag=direct conv=notrunc
49 > >
50 > > and try repeating your restoring from back up with a more suitable block
51 > > size.
52 >
53 > a) sector sizes are mentioned in the docu
54 > b) compeletly unrelated.
55
56 You're right, but why is it stopping after the first 10M is transferred then?
57 --
58 Regards,
59 Mick

Attachments

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

Replies

Subject Author
Re: [gentoo-user] dd says no space left on device Volker Armin Hemmann <volkerarmin@××××××××××.com>