PDA

View Full Version : replacing my hda


ekdya
2006-10-04, 06:39 PM CDT
Hi

I have my system with my hda running out of space. the disks setup is:
harddrive a primary master (to be replaced)
harddrive b primary slave
dvd burner c secondary master
cd burner d secondary slave

I have no idea how to go about this.
I guess I will leave the partition sizes and all the same except
increase the hda "/" dir by an additional 10GB and leave the remaining
space on the new drive for future needs.

what are the steps please?
my system info are listed below the "##########" line towards the end of this post.

what I read the steps should be according to
http://forums.fedoraforum.org/forum/showthread.php?t=67862&highlight=harddrive+upgrade
are:
1) boot from knoppix live cd; mount somewhere hdc1 (e.g. /mnt/fat32 -
you have to create this mountpoint)

**********
I have small damn linux cd, is this a live cd or I need to get knoppix live cd.?
my hdc is dvd burner, it will be mounted allready, what the use of the second
instruction in the stop above?

2) with partimage, clone hda1 and hda2 on hdc1: if necessary, split
the images files (due to the 2gb limit on fat32);

**********
ahhaa, copying the content of the hda to dvd(s), well, is it as easy as it sounds, first, where
is partimage "caommand on knoppix"? or what is it?
splitting will surly be needed, what is the command for that, in the middle of the proccess, I will
have no access to a normal working box to do read docs.


3) backup your hda mbr
dd if=/dev/hda of=/mnt/fat32/hda-mbr.bin bs=512 count=1

**********
Ok.

4) mount somewhere /boot and /home; with dar (I'm not sure knoppix has
it: tar is also good) do two separate backups of the files on these
pertitions and save them on /mnt/fat32.


************
not sure exctly what to do here. can some one expand it for me please?
I am thinking, you cann't just mkdir on hdc and copy things over, it is a dvd-rw and
you can create image or add to a non-closed image but even that I know not to do.


5) turn off the pc; unplug the old drive and put in its place the new
one. Reboot from the knoppix cd;
6) with qtparted, create the new partitions as described above.
7) mount hdc1 and all the new partitions of hda (except swap, obviously)

**********
can some one expand on this please? "how exactly"


8) restore the mbr
dd if=/mnt/fat32/hda-mbr.bin of=/dev/hda bs=512 count=1


9) with partimage, restore the image files of your partition on their places;
10) with dar (or tar) unpack the archives in their places (that is,
the new /boot and /home partitions)
11) You're done. Reboot normally from the hard disk, removing the
knoppix cd from the drive: grub will display it's menu and you can
boot normally FC4 or win.

A final note: in the case of windows, you restore a 2Gb image on a 5
Gb partition. Probably you have to resize the partition after the
restoration to be able to see and use the increased space; you can do
it easyly with qtparted once you're in FC4.
################################################## #################################

**************** /etc/fstab ****************
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
2539312 2408240 0 100% /
/dev/hda2 101105 14112 81772 15% /boot
tmpfs 517712 0 517712 0% /dev/shm
/dev/hdb9 9977788 366812 9104128 4% /mnt/debhom
/dev/fd0 1424 2 1422 1% /mnt/floppy


**************** disks layout ****************
# vgdisplay -v
Finding all volume groups
Finding volume group "VolGroup00"
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 4.47 GB
PE Size 32.00 MB
Total PE 143
Alloc PE / Size 142 / 4.44 GB
Free PE / Size 1 / 32.00 MB
VG UUID VfF2l5-tM24-N7GU-8Uwd-6ktW-Gld1-ql4y4i

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID uUpUzN-nQts-3NF1-IQXE-Wht9-tMPe-2HheHX
LV Write Access read/write
LV Status available
# open 1
LV Size 2.50 GB
Current LE 80
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID 2eGsqf-DtMk-9ZoE-QvCq-sTR0-o8YQ-yeKYlg
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

--- Physical volumes ---
PV Name /dev/hda3
PV UUID mpsXOF-qIT0-gd1a-lNxf-zG43-C723-xJTktu
PV Status allocatable
Total PE / Free PE 143 / 1

tkoco
2006-11-20, 09:50 AM CST
Sound like you need to read about the Logical Volume Manager. I had similar concerns and started reading about Logical Volumes. It is a lot easier than you might guess. Try this URL:
http://tldp.org/HOWTO/LVM-HOWTO/