-
how to move current install to a new hard drive
all,
I've installed knoppix 2.6 to an old (small) hard drive I had. It took me a while to get the sound, printing and video modes to what I want but now I need to move it to a larger hard drive. What's the best way to do this? Install a new bigger harddrive on the PC then move the boot record and related info?
what steps and what reseach should I do?
TIA
-
Senior Member
registered user
assuming your current HD is:
/dev/hda1 root
/dev/hda2 swap
Then install your current HD in the machine & boot with Knoppix and do all the following as root. If you want to have a different partition layout then you will have to adjust the /etc/fstab file accordingly. So instead partition the new HD the same. I use cfdisk.
/dev/hdb1 root
/dev/hdb2 swap
You may have to reboot to make sure the changes are properly read. Then format the parition with the appropriate filesystem type.
For ext2fs: mke2fs -v /dev/hdb1
For ext3fs: mke2fs -vj /dev/hdb1
For swap: mkswap /dev/hdb2
Now mount the original and the new root paritions:
mount /dev/hda1 /mnt/hda1
mount /dev/hdb1 /mnt/hdb1
Copy your current linux system to the new HD:
cp -Rp /mnt/hda1/* /mnt/hdb1
Once that completes then shutdown the system & remove the old HD and put in its place the new HD. Boot Knoppix again, mount the root partition to /mnt/hda1 & this time you will apply the boot loader. If you are using grub want to install to the MBR then you must run:
grub-install /dev/hda
If you are using lilo & want to install to the mbr then you must:
chroot /mnt/hda1 /bin/bash
/sbin/lilo
exit
If you have installed the bootloader, then you should be fine. Reboot the machine & find out. If you have any problems please post them here.
I hope this helps.
James
Similar Threads
-
By jwg in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-04-2007, 03:25 PM
-
By wolfkin in forum MS Windows & New to Linux
Replies: 7
Last Post: 08-23-2005, 07:22 PM
-
By cannedmushrooms in forum Customising & Remastering
Replies: 3
Last Post: 12-16-2003, 05:22 PM
-
By bubazoo in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 11-21-2003, 05:19 PM
-
By Gregwithoneg in forum General Support
Replies: 6
Last Post: 05-22-2003, 01:41 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray
$39.99

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00

Dell EMC 4TB 7.2K SAS SED 6Gb/s 3.5" Enterprise HDD, 118000762
$75.00

(ST8000NM0045) SEAGATE ENTERPRISE 8TB 7200RPM 4Kn SATA 6Gb/s 3.5" HARD DRIVE
$199.99

HGST 0F23072 Deskstar NAS 6TB SATA III 7200RPM 128MB 3.5in HDD
$84.99

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99

Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5" 512b/s
$55.00

HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)
$45.00

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive
$34.99

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600
$49.95