Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
there are two ssd . one has Debian installed with an ext4 file system. I need to migrate Debian to a second ssd that has an ext2 file system. how to do it correctly?
Usually when you migrate an operating system from one disk to another, you migrate it en-masse, including the filesystem. Use CloneZilla or similar to do the job.
Not with CloneZilla as far as I know - you would have to copy individual files over or freshly install. However, the way ext is designed is that ext3 = ext2 + features, ext4 = ext3 + even more features. You can just use tune2fs to switch off all the ext3 and ext4 features on your ext4 system to effectively turn it into ext2.
that was a very helpful answer. I learned how to turn off logging. Thank you so much. but tell me is it possible to change like I wrote way above the file system to ext4 to btrfs?
tell me is it possible to change like I wrote way above the file system to ext4 to btrfs?
I do not really understand that. More or less correct. You need to create a new filesystem and copy all the files using cp, tar, rsync, whatever you want.
Just I don't know what is that chroot, /root/vdisk ...
You must not copy a running system.
The operating system that I will copy is not running on machines. I install Gentoo on arm. and it's hard to explain what I will do. You do not pay attention to what I do. more important is the answer whether it is possible to copy a non-running operating system onto a disk with a different file system.
The operating system that I will copy is not running on machines. I install Gentoo on arm. and it's hard to explain what I will do. You do not pay attention to what I do. more important is the answer whether it is possible to copy a non-running operating system onto a disk with a different file system.
The answer is yes, with some limitations. Depending on how the system is set up, you may find that it will not load due to the wrong filesystem support in the initramfs (whatever that is in the case of the distro you're using). I hit that problem when I used cp -a to transfer an Arch system from ext4 to xfs. I could boot, but I needed to use the fallback initramfs, because the standard one did not have support for xfs during the early part of the boot.
Other than that and editing /etc/fstab to match new UUID or /dev/sdXX, the only other problem I've seen is if the system is set up for hybernation - that may mean that there is a UUID stored to let it know where to write the hibernation data to. That is annoying rather than fatal, and finding where that data is stored seems to differ from distro to distro.
The nice things is, unlike Windows, Linux does not care where files are located, so a copy (whether you use cp or rsync, etc.) will work fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.