Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I just got a new drive (40 gig 7200rpm), so I partitioned it 39.5 gigs ext2, .3 gig swap. I want to move my linux (all the files from my current partition) from my current drive hda5 to my new drive hdb1. I don't want to reinstall linux on my new drive, it would be pointless, and I would have to reinstall all my drivers, kde3 and all that crap. Does anyone know of an easy way of doing this??
You can copy all the files. They you need to modify fstab and install LILO (after making modifucations in lilo.conf). If you have doubts (or you'd like to read a more detailed text), post again.
I'd use dump and restore to do the filesystem backup ... after that you have of course modify /etc/fstab, grub.conf / lilo.conf and reinstall the bootloader ...
okay.. I'm just going to do what I originally planned on, making a cp script. Quick Q? - what flag is there to copy hidden files?
k, the only problem is I have to mount it (/hdb) so I have to cp all the directories form the root except /hdb. Well, I odn't have many directories there any way
cp -pR xxxx /hdb
sound good? Well im gonna try :P
Did this ever work out for you? How'd you end up doing it?
I'm about to do the same for a friend tomorrow. He has linux on a bigger partition now, and we are moving to a smaller one. I'm not sure yet if dump is an option because I'm not sure where we'd be able to dump to. Hopefully he has enough extra space on his current larger partition to hold the dump and the current install, and then we can restore to the smaller partition (which I'm also hoping is large enough for his current install, I suspect it is but we haven't checked yet).
Obviously files in /proc and /tmp do not need to be copied, but I assume virtually everything else can be, even logs since they'll just be continued later or overwritten.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.