LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-07-2023, 02:08 AM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
I am not sure if I need to make a clone of my os and reinstall my os or just copy home?


I am contemplating a fresh install of my os, should I clone it or will just backing up the contents of my home directory allow me to transplant things across after the reinstall. This will not be a dual boot.

I found after installing a particular program things went awry, and is the sole motivation for reinstall.

Also is Gparted enough to get cloning done? Thanks in adavnce

Last edited by linux-man; 08-07-2023 at 03:28 AM.
 
Old 08-07-2023, 02:22 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,498

Rep: Reputation: Disabled
If you have the opportunity to do a back up, do it; you only need your personal files, then re install, & copy back your data.

Some distros will re install just the system, allowing you to reuse your original /home; but it is still good practice to have a back up of your personal data.
 
Old 08-07-2023, 03:29 AM   #3
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
If you have the opportunity to do a back up, do it; you only need your personal files, then re install, & copy back your data.

Some distros will re install just the system, allowing you to reuse your original /home; but it is still good practice to have a back up of your personal data.
Do the programs that I installed get transferred over with /home back up?
 
Old 08-07-2023, 04:01 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,878

Rep: Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316
Quote:
Originally Posted by linux-man View Post
Do the programs that I installed get transferred over with /home back up?
It depends on your setup. Usually /home does not hold installed programs, but again, it depends on you.
If you have a single program which "went awry" you need to fix that, and do not reinstall the whole system.
 
Old 08-07-2023, 06:07 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,498

Rep: Reputation: Disabled
You could try using
Code:
sudo apt-get --fix-broken install
Before resorting to re installing.
 
Old 08-08-2023, 08:47 PM   #6
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
It depends on your setup. Usually /home does not hold installed programs, but again, it depends on you.
If you have a single program which "went awry" you need to fix that, and do not reinstall the whole system.
Is there a way to tell whether my setup does or doesn't contain programs I installed within home or not?
 
Old 02-11-2024, 10:20 PM   #7
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Usually /home does not hold installed programs,
Is there a way to tell if home does or doesn't hold my installed programs?
 
Old 02-12-2024, 01:48 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,878

Rep: Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316
Quote:
Originally Posted by linux-man View Post
Is there a way to tell if home does or doesn't hold my installed programs?
Yes, ask if someone installed something in your home. Usually it is intentional, so the one who installed it should know it. Do you run anything from your home dir?
But anyway, without knowing any details hard to say more.
 
Old 02-12-2024, 12:04 PM   #9
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 482

Rep: Reputation: 179Reputation: 179
No need to clone. Just rsync all your data folders (if outside of /home) and /home to one or more external backup drives. Verify that backup(s) did occur. Then, just install the new version of the distro (clean install). Add your users as usual in order that you did them before so the user ids are same. Once the new OS is installed and updated, then restore the data folders and /home folders back. Should be good to go. Anyway, that is the way I handle it as I use Thunderbird Email and Firefox and all my setting are stored in the /home/<user> folder. I Don't want to lose any of that! After that occurs, I am back to the way I was except on a 'new' system. Obviously any applications that you had originally installed from repository (like with: sudo apt install <application>) will have to be 're-installed'. Hope that helps.
 
Old 02-12-2024, 12:24 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
I only back up my home folder. That said, I have a script in my home folder that builds a file documenting certain settings, and another file with a list of all installed packages. That way after I reinstall I can examine that backup, restore missing settings, add any special packages for the functions and features I treasure.

BTW: making a clone of your OS would clone the problem, so you would ahve to have done that before the problem started.
Do you have images or backups form before the problem was caused?
 
Old 02-12-2024, 03:35 PM   #11
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Yes, ask if someone installed something in your home.
I am the sole user.

Quote:
Originally Posted by pan64 View Post
Usually it is intentional, so the one who installed it should know it. Do you run anything from your home dir?
I don't know, is there a way I can check to see if something is running from home dir?

You did mention in post #4
Quote:
Usually /home does not hold installed programs, but again, it depends on you
I most likely would have stuck to default settings during install procedure and I assume that programs are not installed on my /home directory, not sure though.

Quote:
Originally Posted by pan64 View Post
But anyway, without knowing any details hard to say more.
What other details do you need?
 
Old 02-12-2024, 03:46 PM   #12
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rclark View Post
No need to clone.
If there's no need to clone why is it always advocated? I've never cloned before but it comes across as an arduous process over what you are suggesting.

Quote:
Originally Posted by rclark View Post
Just rsync all your data folders (if outside of /home) and /home to one or more external backup drives.
Is the data folder labelled literally 'data folder', so I start searching for it in /home and if it's not there then search where? What's beyond /home? Root?

Quote:
Originally Posted by rclark View Post
Add your users as usual in order that you did them before so the user ids are same.
Quote:
Originally Posted by rclark View Post
all my setting are stored in the /home/<user> folder.
Even your programs?

Quote:
Originally Posted by rclark View Post
...any applications that you had originally installed from repository (like with: sudo apt install <application>) will have to be 're-installed'.
What's preventing these from being from being rsync too?

Last edited by linux-man; 02-12-2024 at 03:55 PM.
 
Old 02-12-2024, 03:54 PM   #13
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
I only back up my home folder. That said, I have a script in my home folder that builds a file documenting certain settings, and another file with a list of all installed packages. That way after I reinstall I can examine that backup, restore missing settings, add any special packages for the functions and features I treasure.
What language did you use to script it?
Why didn't you script it in a way that would accommodate a few of your treasured features/special packages?

Quote:
Originally Posted by wpeckham View Post
Do you have images or backups form before the problem was caused?
Not that I am aware of, I am inspired by contingency.
 
Old 02-12-2024, 04:31 PM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,878

Rep: Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316Reputation: 7316
Quote:
Originally Posted by linux-man View Post
I am the sole user.

I don't know, is there a way I can check to see if something is running from home dir?

You did mention in post #4 I most likely would have stuck to default settings during install procedure and I assume that programs are not installed on my /home directory, not sure though.
Theoretically it is quite simple. By default nothing is installed in your home.
The only exception is if you have installed something as user, not as root (like python packages).

Last edited by pan64; 02-13-2024 at 03:12 AM.
 
Old 02-12-2024, 04:46 PM   #15
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 482

Rep: Reputation: 179Reputation: 179
I use cloning when moving from current Disk A to another newer disk B... Example, from a old SATA HDD drive to a brand new NVMe SSD drive I want to run current system off of. Once cloned, remove old disk, install new disk and off an running. Same OS just a different disk. This is different than just backing up data you want to keep. Rsync is a program that backs up just the folders/files you want to keep. Note: The cloning process can save you, if you just want to get back to where you were at time the clone was built. However you'd lose any changes made since the time you 'cloned' it.

What I mean by <data> folder/file is any folder that you might have data you want to keep. For example, I might create a folder called development under root folder. Ie. /development/ This is not under the /home folder so it would a 'data' folder I want to backup. Remember, when you do a clean install, the disk will be wiped clean. So you need to save the files you want (pictures, databases, documents, etc.) . I suspect from your response you store everything under your /home/<user> folder, so backing up /home is all you need to do.

Most program settings are setup per user. So 'your' settings (like for libreOffice, screen saver, background color, task bar color, Email, browser bookmarks, etc) are in your /home/<user> folder. On the other hand Ethernet settings, samba, nfs, etc. are 'global' settings which are usually found under /etc/. Most times the global settings are easy to re-create. If not, you go find them and store in your /home/<user> directory so you can copy back. Like samba.conf as an example. From the sounds of it, you probably don't have any custom setups here (inferred from info you have relayed), so don't need to worry about them.

As for programs. They are normally stored in other system folders /usr/bin or some such. There is no need to back them up as there will be new 'versions' in the newer OS you are going to install. You don't want to mix old and new (you'll get library mis-matches, etc. Big problems) . Ie. Bottom line, after clean install, re-install the apps you are missing. That said, most distros have an 'upgrade' process that upgrades the system in place. This is the only way you 'may' get away with not having to re-install used apps. This is completely different from a clean install.

Hope that helps.

Last edited by rclark; 02-12-2024 at 05:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone and boot from clone geelsu Linux - Server 5 12-17-2018 12:03 PM
LXer: Open-spec SBC is a clone of a clone of a clone of a Raspberry Pi 3 LXer Syndicated Linux News 0 04-25-2018 04:56 PM
I'm not sure how this happened but I'm sure there is a lesson in there somewhere mreff555 Linux - Newbie 6 09-24-2012 02:09 AM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 04:15 PM
bugzilla: to clone, or not to clone? The00Dustin Linux - Newbie 1 05-24-2008 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration