Let's assume that I have a new hard drive with 3 partitions: Primary 1:Windows Primary 2:Linux Swap Primary 3: extended Logical 5:Linux root. The way I would proceed is to add that drive as a second drive, and simply copy the contents: mount /dev/hda1 /windows mount /dev/hdb1 /windows2 cd /windows cp -R * /windows2 This copies everything from windows (currently running Windows to new drive) umount /windows umount /windows2 mount /dev/hdb1 /mnt --- I'll just use tar here cd / tar cf - --preserve --one-filesystem . | ( cd /mnt; tar xf - --preserve ) This will copy everyting from the root filesystem to the mounted file system. umount .mnt (assume that we have both a Windows boot floppy with sys.exe on it as well as a SuSE Linux CD that can be booted.). Another way to do it is to install the new disk as the primary. I prefer to use Partition Magic to pre-create the partitions, but Linux can create the partitions also, but you need to format the Windows partion with the Windows formatter (I've not every tried this with Linux). Lets now assume the same partitions, but the new hard disk is alreadin installed as IDE Primary Master. (Assume drive with data is Primary Slave (hdb). Boot into the SuSE installation disk (I prefer YaST 1 for this, but YaST2 is ok). You can go through the partitioning steps if you want. Then once the installer is booted, use a virtual terminal (ctl-alt-f3) f3 I think will give you a shell prompt. (I sometimes use a standalone Linux floppy, but the install CD is more effective). You can then create /mnt/old and /mnt/new mount /dev/hdb1 /mnt/old mount /dev/hda1 /mnt/new You are running a minimal version of Linux with a few commands in /bin, but you can mount the root file system from the old Linux drive to gain access to them. Then copy recursivelty /mnt/old/* /mnt/new unmount both mount the old root and the new root, copy. If you have other file systems do that. Once everything is copied, then you should be able to proceed with the installation by selecting no files. LILO will be installed. Next, boot the stand al;one DOS diskette. When you get the a prompt, just run sys.exe on c: You should be able to boot Windows or Linux. --------- I've actually done this. My 8 GB hard drive was starting to get flaky. I bought a new one. Set up the partitions, and used tar. Tar also allows you to exclude files. Let's say I want to create a /var file system on /dev/hda6 (new drive), Assuming I'm in the SuSE installation ram disk, I've created /mnt/new and /mnt/old: mount the root file system: mount /dev/hdb5 /mnt/old mount /dev/hda5 /mnt/new cd /mnt/old; tar cf - --preserve --exclude ./var/* . | ( cd /mnt/new; tar xf - -- preserve ) You may need to specify tar as:/mnt/old/bin/tar It looks complicated, but once you do it it is straightforward. remember that when you go to a new drive, you may want to create your partitions differently. That is why I personally prefer a file by file copy. On 4 Apr 2002 at 13:46, Bryan Tyson wrote:
On Thursday 04 April 2002 09:23, Jerry wrote:
Backing up and restoring a Linux file system is (IMHO) better performed with a file by file type of backup, not an image backup.
What steps do you follow for this procedure? Thank you.
*************************************************** Powered by SuSE Linux 7.3 Professional KDE 2.2.1 KMail 1.3.1 This is a Microsoft-free computer
Bryan S. Tyson bryantyson@earthlink.net ***************************************************
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Jerry Feldman Portfolio Partner Engineering 508-467-4315 http://www.testdrive.compaq.com/linux/ Compaq Computer Corp. 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752