-
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

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1619.19

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00

Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board
$300.00

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004
$649.99

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV
$18.95

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs
$87.99

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99

LSI 9305-16i SATA SAS 12Gbs Controller card PCIe 3.0 IT-Mode w/SAS SATA cable US
$125.98

Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i
$228.00

New BroadCom 9500-8i Tri-Mode HBA Card Storage Adapter New-Sealed
$245.57