From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] dd says no space left on device
Date: Mon, 16 May 2011 16:35:07 +0100 [thread overview]
Message-ID: <BANLkTikkNd0_rercEZB5Nb0MTzRu_fv0HQ@mail.gmail.com> (raw)
In-Reply-To: <10DA6B9E-10FF-4D03-80CC-8701313F338F@stellar.eclipse.co.uk>
On 16 May 2011 15:21, Stroller <stroller@stellar.eclipse.co.uk> wrote:
>
> On 16/5/2011, at 12:56pm, Adam Carter wrote:
>> ...
>> Yes the new drive is bigger, going from 66G to 500G. Single partition only, ...
>>
>> So how do i proceed? Is it;
>> 1. dd the mbr without partition table, to get the boot code (so bs=446 count=1)
>> 2. use fdisk to set one big primary partition, mark it bootable and NTFS (type 7)
>> 3. dd into what will be /dev/sdb1
>
> Just `dd if=/dev/sda of=/dev/sdb` if you can.
>
> As Neil posted: there is no need to copy MBR & partitions separately in such a simple situation. I don't know that I have ever needed to clone a hard-drive in the way that you're attempting - I have *always* cloned the whole drive (and I've cloned quite a few Windows drives this way). `dd if=/dev/sda of=/dev/sdb` with no numbers on the end of sda or sdb.
>
>> but IIRC there is a 100MB unlabelled space (doesnt come up with fdisk -l). Is this is an OEM recovery hidden partition?
>
> Possibly. But this question should be preceded by: "do you have an OEM recovery hidden partition?"
>
> I mean, if the computer starts up and says "press R to boot into the Compaq recovery partition" and there's no other place for it to be, then yes. But frequently OEM recovery hidden partitions are visible in Windows' disk management console (Start > Run > "diskmgmt.msc") as partitions of DOS or unknown type, or simply showing as "hidden" or with no drive letter assigned. Therefore I'd expect them to be visible in fdisk as well.
>
> Whatever, if you clone the whole disk you will copy the recovery partition, if its present.
>
>> Will I be able to expand NTFS or it is better to make sure parition size = NTFS filesystem size so it doesnt get confused, the boot into windows and expand it?
>
> It probably depends on the version of NTFS whether this can be done natively or not. I believe that in XP you can expand D: and E: partitions from within Windows, but not C:. So to expand an XP system drive you would use Partition Magic or the GParted LiveCD [1]. I guess that Windows 7 allows you to expand C: from the management console, if not GParted claims to support it (and Vista).
>
> I would be trying to do this *after* you have cloned the whole drive and booted with the new copy. Don't try to be clever about whether the filesystem should be the same size as the partition or not - just copy the whole lot verbatim, so they'll remain the same sizes they are now. Then use the GUI tools to expand the partition+filesystem afterwards and let those GUI tools worry about it - preferably use Windows' own tools, otherwise use Partition Magic or GParted.
>
> Partition Magic is my resizing tool of choice for XP, but it's neither free nor Free, nor is it supported on Vista or Windows 7. GParted is the next choice, then - I understand it to be more than "just a graphical front-end", and I don't think you'll have such good results trying to use command-line tools to expand NTFS partitions.
>
> Stroller.
>
>
> [1] http://gparted.sourceforge.net/livecd.php
Only to add that the new larger drive will appear as small as the
original because the fs size is after all that of the smaller drive.
After your dd the data over to the new disk you will need to run
gparted as suggested by Stroller, or use ntfsresize which is what
gparted uses anyway.
--
Regards,
Mick
next prev parent reply other threads:[~2011-05-16 15:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-15 7:45 [gentoo-user] dd says no space left on device Adam Carter
2011-05-15 9:20 ` Joost Roeleveld
2011-05-15 13:44 ` Alex Schuster
2011-05-15 17:52 ` Mick
2011-05-15 18:15 ` Volker Armin Hemmann
2011-05-15 18:40 ` Mick
2011-05-15 19:45 ` Volker Armin Hemmann
2011-05-16 1:01 ` Adam Carter
2011-05-16 6:00 ` Mick
2011-05-16 6:31 ` Adam Carter
2011-05-16 10:37 ` Mick
2011-05-16 10:45 ` Neil Bothwick
2011-05-16 11:16 ` Mick
2011-05-16 11:37 ` Neil Bothwick
2011-05-16 11:56 ` Adam Carter
2011-05-16 14:21 ` Stroller
2011-05-16 15:35 ` Mick [this message]
2011-05-16 16:03 ` Stroller
2011-05-16 18:55 ` Mick
2011-05-16 19:54 ` Neil Bothwick
2011-05-16 20:14 ` Mick
2011-05-17 7:50 ` Adam Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTikkNd0_rercEZB5Nb0MTzRu_fv0HQ@mail.gmail.com \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox