Re: Moving whole partitions
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Sat, 10 Feb 2007 12:26:19 -0600
On Sat, 10 Feb 2007 19:01:42 +0100, Alexander Korsunsky wrote:
Anyway, I wanted to ask how I could manage to copy some whole partitions
(preferably as is, e.g. as an image) to an extern hard drive,
Hmm, bad blocks and wasted space too?
No me.
repartition my disk and get the partitions back onto my hard drive again.
First question: Can I copy a whole partition, and if yes, how.
Tar can be used.
First Create/format target partition(s), mount and tar partition accross.
General example follows:
Boot a rescue cd/diskette.
mkdir /old
mkdir /new
mount -t auto /dev/hdWX /old # you solve fory W X
mount -t auto /dev/hdYZ /new # you solve fory Y Z
cd /old
tar cfp - . | (cd /new && tar xpf -)
cd
umount /old /new
Second question: What do I have to change in my linux systems to get
them working again (apart from grub menu)
/etc/fstab changes
Third Question: Can I resize a partition?
I find a live partition cd can come in handy for everything you
want so far.
http://sourceforge.net/project/showfiles.php?group_id=115843&package_id=173828
Fourth question: My Ubuntu partition contains both the / and the /home
directories, which I now find quite inconvenient. Is there a chance to
split them now without reinstalling the whole system?
Yes, create/format your new home partition. mount it /new_home
cd /home
tar cfp - . | (cd /new_home && tar xpf -)
umount /new_home
mv /home /home_old
mkdir /home
modify /etc/fstab to have /home as an mount point instead of /new_home
mount /home
.
- References:
- Moving whole partitions
- From: Alexander Korsunsky
- Moving whole partitions
- Prev by Date: Re: CUPS+PDF Letterhead?
- Next by Date: Re: CUPS+PDF Letterhead?
- Previous by thread: Re: Moving whole partitions
- Next by thread: Re: Moving whole partitions
- Index(es):
Relevant Pages
|