How to clone debian system to another hard drive
I am quite a beginner. I am trying to make a clone of my hamm (disk A) to another hard drive (disk B). Here is what I did. 1. I put them on master/slave and I partitioned B appropriately. 2. I created file systems on appropriate partitions with mkfs /dev/hdb2 and so on.. 3. I mount the B partitions on the /mnt point. 4. After reading in a multidisk HOWTO that cp is well behaved with regard to symbolic links I did a cp -av /usr/mnt/usr cp -av /home /mnt/home and so on for each of the files and directories under / (I did not just do the whole disk at one go cause I wanted to avoid /mnt and /proc). Anyway, I take off the A and use my floppy boot diskette and B and i can logon and seems ok. I want to boot off the hard drive so I did a /sbin/lilo. But can't boot off hard drive, just after the fsck check of partitions I get error message: unable to open an initial console. So: is there a better way to do a clone (like a script) that i could not find? Is there a better way to get contents of A onto B in step 4? Did some files not go through by my cp method. Thanks, Scott -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
On Fri, 31 Jul 1998, Scott Hill wrote: [ moving partitions snipped ] : Anyway, I take off the A and use my floppy boot diskette and B and i : can logon : and seems ok. I want to boot off the hard drive so I did a /sbin/lilo. : But can't boot : off hard drive, just after the fsck check of partitions I get error : message: : unable to open an initial console. Sounds like a missing device file. : So: is there a better way to do a clone (like a script) that i could : not find? Is there : a better way to get contents of A onto B in step 4? Did some files not : go through : by my cp method. [ Warning! You are about to invoke religious debate ] I've found that `find . -xdev | cpio -padm /mnt' works everytime device and other strange files included. So, to copy on filesystem to another, mount the target filesystem on /mnt . `cd' to the mountpoint of the source filesystem (you're moving / `cd /', /usr `cd /usr', etc.) Then run the above command. Couldn't be easier. -- Nathan Norman MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD 57104 mailto://[EMAIL PROTECTED] http://www.midco.net finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9) -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
Scott, It may help if you read over this mini-HOWTO which covers this exact topic: http://sunsite.unc.edu/mdw/HOWTO/mini/Hard-Disk-Upgrade.html I've used the first copy method (with everything on one partition) many times with no problem. It also gives several other variations of how to copy depending on your setup. One thing to check is if you have a /proc directory on the new disk, because you usually need to do that manually. Tom Scott Hill wrote: I am quite a beginner. I am trying to make a clone of my hamm (disk A) to another hard drive (disk B). Here is what I did. 1. I put them on master/slave and I partitioned B appropriately. 2. I created file systems on appropriate partitions with mkfs /dev/hdb2 and so on.. 3. I mount the B partitions on the /mnt point. 4. After reading in a multidisk HOWTO that cp is well behaved with regard to symbolic links I did a cp -av /usr/mnt/usr cp -av /home /mnt/home and so on for each of the files and directories under / (I did not just do the whole disk at one go cause I wanted to avoid /mnt and /proc). Anyway, I take off the A and use my floppy boot diskette and B and i can logon and seems ok. I want to boot off the hard drive so I did a /sbin/lilo. But can't boot off hard drive, just after the fsck check of partitions I get error message: unable to open an initial console. So: is there a better way to do a clone (like a script) that i could not find? Is there a better way to get contents of A onto B in step 4? Did some files not go through by my cp method. Thanks, Scott -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
Hi Tom, I have read from this mini-howto (point 4.) the following: ...(Note: Contrary to what the man page states, the command mkfs -t ext2 -c /dev/hdb1 doesn't check for bad blocks under any of Red Hat, Debian or Slackware.)... Is it true for Debian? On Fri, 31 Jul 1998, Tom Pfeifer wrote: Scott, It may help if you read over this mini-HOWTO which covers this exact topic: http://sunsite.unc.edu/mdw/HOWTO/mini/Hard-Disk-Upgrade.html I've used the first copy method (with everything on one partition) many times with no problem. It also gives several other variations of how to copy depending on your setup. One thing to check is if you have a /proc directory on the new disk, because you usually need to do that manually. Tom Scott Hill wrote: I am quite a beginner. I am trying to make a clone of my hamm (disk A) to another [...] Eugene Sevinian CRD, YerPhI, 375036, Armenia URL: http://crdlx5.yerphi.am/prs/sevinian.html Phone: 374-2-344873 -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
Eugene Sevinian wrote: Hi Tom, I have read from this mini-howto (point 4.) the following: ...(Note: Contrary to what the man page states, the command mkfs -t ext2 -c /dev/hdb1 doesn't check for bad blocks under any of Red Hat, Debian or Slackware.)... Is it true for Debian? Yes, it does check for bad blocks on my machine (hamm) with either syntax mkfs.ext2 -c /dev/hdxxOR mkfs -t ext2 -c /dev/hdxx of the command, as long as the -c is used. Not sure I understand what the author is talking about there. Tom -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null