Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dd says no space left on device
Date: Tue, 17 May 2011 07:52:19
Message-Id: BANLkTi=v=8aE-vyy0_chOvw3V+AWjo-zLg@mail.gmail.com
In Reply to: Re: [gentoo-user] dd says no space left on device by Stroller
1 On Tue, May 17, 2011 at 12:21 AM, Stroller
2 <stroller@××××××××××××××××××.uk>wrote:
3
4 >
5 > On 16/5/2011, at 12:56pm, Adam Carter wrote:
6 > > ...
7 > > Yes the new drive is bigger, going from 66G to 500G. Single partition
8 > only, ...
9 > >
10 > > So how do i proceed? Is it;
11 > > 1. dd the mbr without partition table, to get the boot code (so bs=446
12 > count=1)
13 > > 2. use fdisk to set one big primary partition, mark it bootable and NTFS
14 > (type 7)
15 > > 3. dd into what will be /dev/sdb1
16 >
17 > Just `dd if=/dev/sda of=/dev/sdb` if you can.
18 >
19
20 Done - and its worked.
21
22 Here's what i did;
23 1. Take existing drive out of laptop and connect to Gentoo box using an
24 esata box, then
25 sphinx ~ # dd if=/dev/sdb bs=10M conv=notrunc,noerror | gzip > windisk.gz
26 5723+1 records in
27 5723+1 records out
28 60011642880 bytes (60 GB) copied, 5667.78 s, 10.6 MB/s
29
30 For interests sake, windows reports that 51gig is in use, which along with
31 the free space has compressed down to
32 sphinx ~ # ls -lh win*
33 -rw-r--r-- 1 root root 37G May 17 12:29 windisk.gz
34
35 2. Swap existing disk to new drive, then
36 sphinx ~ # gunzip -c windisk.gz | dd of=/dev/sdb bs=10M conv=notrunc
37 0+1819751 records in
38 0+1819751 records out
39 60011642880 bytes (60 GB) copied, 940.652 s, 63.8 MB/s
40
41 3. Boot into windows. After login it says "You must restart your computer to
42 apply these changes", so i restart. Then go into Disk managment and select
43 "Extend Volume", which immediately makes all the space was immediately
44 available. Paranoia says run a disk check, which windows offers to schedule
45 at next reboot. I accept and reboot, check runs and no errors are reported,
46 so im :)
47
48 Thanks again list!