JaxNakamura

joined 2 years ago
[–] JaxNakamura@programming.dev 3 points 1 year ago* (last edited 1 year ago)

Transferring /home directory without reinstalling Linux?

After running low on storage space on Windows 10 I have considered upgrading to a larger drive, 2-4 TiB. With my switch to Linux I’d like to know if there is an easy way to take all my files from my previous drive into the new one with all the correct paths configured, without reinstalling Linux?

I can see this meaning a number of different things:

  1. you want to move your home directory to a separate partition: You can just create a new partition and move your stuff there. People have suggested rsync, and that's fine. Personally, I'd use mc (midnight commander) for that because it's easier.

  2. you want to know how to transfer your future home partition to a future bigger drive: You could do as above, or you could use clonezilla for that.

  3. you want to transfer files from your old Windows setup to your new Linux system: You can just mount an NTFS partition and do as described under point 1. I'd be wary to write to an NTFS partition, but reading from it works just fine.

[–] JaxNakamura@programming.dev 1 points 1 year ago

Hmm, I'm fewer sure of that.

[–] JaxNakamura@programming.dev 2 points 1 year ago (1 children)

A reboot will make whatever processes that are still using those deleted files let go of them. Maybe that solves your problem. If not, ncdu will help you find large files and directories.

[–] JaxNakamura@programming.dev 1 points 1 year ago

It's the sum total. SSD's would have become the success they are today if it were localized.

[–] JaxNakamura@programming.dev 6 points 1 year ago (1 children)

Can confirm, have a cat and don't have that issue. Because I lock the screen when leaving the machine unattended.

[–] JaxNakamura@programming.dev 1 points 1 year ago

Even LibreOffice can only recover what has been saved. And if autosave is off, there might be less to recover than desirable. Again, that's a UXD problem.

[–] JaxNakamura@programming.dev 1 points 1 year ago* (last edited 1 year ago) (1 children)

That's why I lock my machine before walking away. That's + L for those who don't know.

[–] JaxNakamura@programming.dev 1 points 1 year ago (2 children)

Btw automatically saving is a generally undesirable feature as it could reduce the lifetime of ssds, slowdown the system if the file Is big or stored on slow media like network.

I don't know what kind of files you write regularly, but even the smallest and cheapest PCIe 3.0 NVMe drive can store data at 600 megabytes per second or more. That's plenty fast enough for my office documents at least. And you can rewrite the entire contents of the drive a hundred times or more before it fails. So I wouldn't lose any sleep over having autosave on.

[–] JaxNakamura@programming.dev 1 points 2 years ago* (last edited 2 years ago)

That's correct. It's not just limited to computers or only two devices though.

[–] JaxNakamura@programming.dev 1 points 2 years ago

I disagree that it is bad design. It's cheap and I also find it ugly, but it does get the job done just fine.

[–] JaxNakamura@programming.dev 2 points 2 years ago (1 children)

If you need any proof that pyramid schemes will never go away, just look at the number of downvotes.

[–] JaxNakamura@programming.dev 1 points 2 years ago* (last edited 2 years ago)

And if you plan on trying different distributions, use Ventoy. It will create a bootable USB memory stick that you can copy your various ISO files to. When booting from it, you can then select which ISO to boot. Saves you from overwriting the same memory stick time and time again. Or having multiple memory sticks, one for each ISO.

view more: ‹ prev next ›