Re: [opensuse] hard drive replacement question
- From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 25 Apr 2009 20:54:41 -0500
James Knott wrote:
Per Jessen wrote:
David C. Rankin wrote:
Forget rsync, 'dd' is your friend here. The replacement can be asDavid, that way Bob will end up with an exact copy of his old 8Gb drive,
simple as hooking your new drive up and doing "dd old new", remove
old, reboot, done! We'll call the new drive /dev/sdb for this example
and /dev/sda the old, then just hook your new driver up, then:
dd if=/dev/sda of=/dev/sdb
which is (probably) good/useful, but he'll also have no use for the
remaining gigabytes - the new drive is likely to be 160G or bigger.
I thought partitions could be enlarged. So, set up as an 8GB and then
go from there.
Yes,
The main purpose of suggesting dd, was that Bob will also get the master boot
record copied. That way he never even has to worry about sticking an install
disk in the cd drive;-)
As for the disk size thing, let's say Bob's 8G drive is partitioned as:
/dev/sda1 100M mounted as /boot
/dev/sda5 3G mounted as /
/dev/sda6 4G mounted as /home
/dev/sda7 900M swap
Let's say new drive is 500G. After dd, then Bob can just create additional
partitions out of the unused space. If / is tight because /var is getting close
to full, then just cfdisk create a new 10G extended partition /dev/sda8, mount
/dev/sda8 /mnt/tmp; cp -a /var/* /mnt/tmp; umount /mnt/tmp; rm -r /var; mount
/dev/sda8 /var.
If bob was going to upgrade to 11 or 11.1, then of course I'd just unplug the
current hard drive, install the new, install openSuSE, the plug the old hard
drive back in as a slave and then rsync -a or cp -a all the data from /old /new
--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- [opensuse] hard drive replacement question
- From: Bob S
- Re: [opensuse] hard drive replacement question
- From: David C. Rankin
- Re: [opensuse] hard drive replacement question
- From: Per Jessen
- Re: [opensuse] hard drive replacement question
- From: James Knott
- [opensuse] hard drive replacement question
- Prev by Date: Re: [opensuse] hard drive replacement question
- Next by Date: Re: [opensuse] VirtualBox Shared Folder question
- Previous by thread: [opensuse] Re: hard drive replacement question
- Next by thread: Re: [opensuse] hard drive replacement question
- Index(es):
Relevant Pages
|