Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You don't say what brand of SCSI disk it is, but most new IDE disks come with a software CD from the factory or utilities available for download from the manufacturer's website. This software allows such things such as partitioning and copying a partition from the old disk to the new disk. It does not care what the contents of the partition are. If your new SCSI drive came with a similar CD or you can find the utilities on the web, I would use those tools instead.
Here is what I usually would do when duplicating my install to my spare drive. First boot with knoppix 2 to get to a console root prompt then,
Code:
mount /dev/sda2 /mnt/sda2
mount /dev/sdb1 /mnt/sdb1
cp -Rp /mnt/sda2/* /mnt/sdb1/
vi /mnt/sdb1/etc/fstab <----- Changing all sda2 to sdb1
vi /mnt/sdb1/etc/lilo.conf or /mnt/sdb1/boot/menu/grub.lst <------ Making changes for new drive again
chroot /mnt/sdb1 /sbin/lilo -v <----- or for grub
grub
setup (hd?)
exit
Now for installing the lilo/grub it can get a little complicated unless you want to keep it on the drive you already have it on in which case when editing their config files only change the parts that refer where the kernel is located and just let it install itself into the MBR of the sda drive like it is now (it it?). If you still have problems the output of fdisk -l and seeing which of the config files you are using would be nice.
Since the partitions sizes aren't the same, copying a partition would not work. To use a partition as source/target, they must have the exactly same size.
You need to use a mount point as source and target. Mount /dev/sda2 as /mnt/source and /dev/sdb1 as /mnt/target and "cp -pr /mnt/source /mnt/target" will work just fine.
Of course, you need to create a filesystem on /dev/sdb1 first. This filesystem can be different than the one on /dev/sda2.
There is the boot manager (lilo/grub) issue to deal with.
1) The boot loader on /dev/sda must be not changed or overwriten by windows.
2) If the boot manager is lilo them the MBR must be updated to reflect the new boot dir. (lilo -v)
A working live CD would be valuable if anything goes wrong.
And don't delete the linux on /dev/sda before you are sure your system is working right on the new location.
Keep copies of the original /etc/lilo.conf and /etc/fstab just in case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.