Re: Upgrading a Hard Drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 09.11.2004 schrieb Cube um 0:33:

> I'm running Fedora on a 10 Gig drive, I wish to replace this drive with
> a 120 Gig. and I  don't want to reinstall everything from scratch.
> 
> What would be be best way to go?

Create the partitions on the new drive as you like using fdisk. Format
the partitions with mkfs.$filesystemtype. Then switch to runlevel 1 to
ensure your system is running minimal, mount the new partition and start
copying the data from the small drive's partitions to the freshly
created:

tar cplf - --atime-preserve --same-owner --exclude=/proc/* /) | (tar
xplf - --atime-preserve --same-owner -C /mnt/newdrive)

Above command will copy all content below / (main root) without the
content below /proc/ to the new drive partition mounted under /mnt.

Of course this is a very simple example. If you have a separate /boot
partition, you would have to mount and copy that separately. This short
description does not reflect the case you want to change the
partitioning.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.8-1.521smp 
Serendipity 01:56:59 up 19 days, 23:36, load average: 0.31, 0.53, 0.60 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux