SlackwareThis Forum is for the discussion of Slackware Linux.
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.
i want to clone the whole system on to one 3tb drive, and haven't been able to find a clearly defined way to do it. the 3tb drive is currently on a usb external which cfdisk finds at /dev/sdd (no partitions on it yet)
any help would be appreciated (and i realize there's probably at least 3 ways to do this, but i'd like this to boot cleanly too when i put the 3tb drive in the machine as /dev/sda with a minimum of fuss)
Format your new disk and mount it under /mnt/new. Then copy everything from /mnt/old to /mnt/new using your tool of choice (rsync, cpio, etc.). Then chroot into /mnt/new and reconfigure and install your boot manager.
That should do it, yeah. When you generated an initrd last time around did you reference the root disk by device name. If so that might be something else to consider.
Also remember to recreate the /mnt director(y|ies) on your copy, since you (rightly) excluded it.
it's kind of on hold for now.... having trouble getting slack 14.1 installed on the disk
had the disk in a lenovo desktop and everything seemed to be going fine until it began trying to install packages and the disk seems to disappear
i can read and write to it fine as long as it's in a usb external case however....
i think the HP tower i'm using as the primary machine is newer than the lenovo
i'll try agn soon
Last edited by unclejed613; 05-19-2014 at 02:28 AM.
Another way to do it live would be to mount the new disk then rsync everything from old to new. Whatever files are in sue and can't be copied srync will skip over. Then when you are ready to make the final switch over boot from the install cd and run rsync again to get anything missed.
I had to do this a few years back n a windoze server, it had many thousands of small files and copying from one disk to another took hours and hours. I used the equiv of rsync (robocopy) and would copy over whatever it could get over a weekend then stop the job Monday morning then start again the next weekend. Since it was copying only what changed after a couple weeks we got through most of the files then just had to copy the last few that changed before switching over.
if you are looking for imaged clones you could try drag-and-drop'ing the partitions using something like gparted live-usb.
else something like this mite work:
caution: dd can be very destructive if you are not exactly sure what your partitions are enumerated by
Code:
dd if=/dev/sda of=/dev/sdx bs=16M
# then use gparted gui to create another partition on the 3tb disk
dd if=/dev/sdb1 of=/dev/sdx5 bs=16M
yeah i'm very careful with dd.... only use it when i absolutely have to.... definitely need to research this in a bit more depth before i carry it out. i have a 6 or 7 year old hitachi drive in the machine now.... the drive has survived 3 machines so far without a hiccup.... started using the drive with slack 12.0 currently using 13.37
i treat dd as i would a firearm.... you can't undo it if you make a mistake, and you must be pointing it at the right target for the right reasons.
Last edited by unclejed613; 05-19-2014 at 04:09 PM.
I'd consider a file based clone for the first disk. Then I'd just tar or rsync or gparted or partimage over the /space data.
Be sure you understand that any clone may need various settings changed. Grub and fstab type of issues may need to be generic then back to specific on new system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.