Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Ok, at the moment I currently have 1 pc containing a Win98SE FAT32 40gig drive with 3 partitions, and a 20gig linux drive containing 5 partitions. I also have cd and cd-rw drives.
I'm planning to buy a second pc, almost identical stats, and wish to clone the windows install at least, so I dont have to bother re-install. I might clone the linux one and edit a few drive and monitor settings, as it'll be hard to repatch a fresh install (I could get some more cds to burn the packages on to).
So my questions is: How can I copy one drive's contents exactly onto another if I cant have linux and the two windows drives in the pc at once, and cant copy the windows data onto the linux drive temporarily?
Could I put a few apps on a floppy? Would a non-harddrive-using linux distro be the answer? Can I remove one of the cd drives to attach the new harddrive?
And what problems might I encounter?
This command on a Dos or Win 3.0 - 98se (include the destination drive letter at the end [a formated and active (bootable) fat32 partition] after booting to a command prompt only will do what you want. I am still a newbie to linux so i can't give you a command for that yet. Hope this helps.
Using CDs are ugly when making an image of a 10 gigabyte hard drive or bigger. Who wants to shuffle around with about 20 or more CDs. I suggest buying a 120 gigabyte hard drive or bigger. A 5400 RPM hard drive will be just fine. For each drive or partition make an image to the 120 gigabyte hard drive or to the biggest hard drive.
When using dd, make sure you un-mount the input and output drives first for a block to block copy. If you are outputting to a file, you only need to un-mount the input drive. Not all filesystems work with dd.
You can copy all your LINUX configurations files to a few floppies. With Windows, you have to resort to disk imaging for a perfect copy. xcopy sometimes work perfectly.
Ok, so what'll happen if I use dd and the target drive/partition is larger than the source?
Is Windows's XCOPY command reliable for copying a running Windows partition to a new drive?
I'm thinking I'll get a nice 70 or 80 gig 7200rpm drive for linux, not sure if i'll stick windows as the first OS on it, or risk re-using a 4 year+ old drive. Either way I could be badly screwed if a drive fails. Would a second new ~30gig drive be worth it for just windows?
Yes it is reliable, I have used it many, many times in the past 12 years as a PC technician. It is not an image copy or block for block copy, and won't work on NTFS partitiions. For DOS FAT or FAT32 it is fine. After copying file for file (*.*) you just run FDISK and make the new partition HD active. If it didn't boot after that, just boot up to a WIN system disk and use the SYS C: command to reintall the system files. You can also use FDISK /MBR in case the master book record is not working right. These additional steps should not be needed as long as the newly copied file system resides on the first partitiion of the first hard drive in the system when it is booted up for the first time. And will work fine as long as the Windows registry or startup files aren't making calles to other drives or partitions that are no longer in existence at the same drive letter specs.
first create and format your destination partition on your new HDD
after that you can:
1) use xcopy
2) mount both partitions under linux and use "cp -R" (man cp) to copy the entire structure
### log on as root
### create source & destination
### mount source partition read-only
mount -r -t vfat /dev/hda1 /dos1
### mount destination partition
mount -t vfat /dev/hdc1 /dos2
### go to source
cp -R * ../dos2
###or if you are paranoid:
find . -depth -print | cpio -pdvm ../dos2
3) use "partimage" etc. under linux
4) use commercial cloning tools like "partition magic" under dos
dd is unlikely to work and possibly dangerous if you do not REALLY REALLY know what you are doing :-)
Originally posted by liontech2002 This command on a Dos or Win 3.0 - 98se (include the destination drive letter at the end [a formated and active (bootable) fat32 partition] after booting to a command prompt only will do what you want. I am still a newbie to linux so i can't give you a command for that yet. Hope this helps.
Don't forget the /a to catch any hidden files.
SYSTEM.DAT and USERS.DAT come to mind