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 want to keep a large amount of files (1TB) I have on a linux install that I no longer require. The files are on a USB 3 2TB drive where the OS is installed alongside it. I no longer require said install but keep the files downloaded still and use it as a Samba share whilst still keeping the ext4 file system if possible. I don't have another hard drive I can copy this amount of data to so that is not possible.
What's the most elegeant/easy method to do this please?
a 3TB disk will bring out the magpie in any of us. I have heard of people storing gigabytes of information considering it 'valuable'. Linux is in development, so all software goes out of date. Photos, videos, etc are avidly recorded and stored, but rarely are they avidly watched. In short most of this data fails the test of time.
You sound as if you are doing just fine with the data, and I don't know what your problem is. Maybe you would be able to do a rm-rf on the linux install if you are sure it will not be needed.
What is the most elegant/easy method to do what, exactly? Keep the files that are on your external HDD on your external HDD and continue using it as you already are?
Just move everything in /path/to/mount/point/home/user/downloads to a new directory on the root level of the drive (/path/to/mount/point/data or something) and then "rm -fr" all other directories on the drive.
Last edited by suicidaleggroll; 03-02-2015 at 12:59 PM.
You can also use the approach
rm -rf /{bin,dev,etc,lib,lib64, . . . . . ,var}
That will leave you /home. then get picky there. I would personally move your downloads to another partition and just use rm -rf , but be very careful to move to the right directory. Root is "God" in a system. If you run rm -rf on /, you are in for a reinstall, and all your data is gone. Don't do a 'Sodom & Gomorrah'(the ultimate rm -rf on your own system.
I much prefer no leading slashes on a rm -rf. rm -rf sbin - yes. rm -rf /sbin - never.
Last edited by business_kid; 03-03-2015 at 03:33 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.