Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Good practice for Ubuntu setup

  1. #1
    Join Date
    Aug 2016
    Beans
    25

    Good practice for Ubuntu setup

    I have a dual partition, one with Windows 8 and the other Ubuntu 16.04.

    I want help in creating the best setup and good practice so if anything happens like I accidentally delete system files by mistake, I can restore the partition from image or clone.

    First, for the Ubuntu OS, I have 2 partitions 100GB each. I plan one for the OS and other to move the Home folder in. Question, how big should the OS partition be? What is the minimum to run Ubuntu smoothly?

    Second, I think it would be good practice to make a backup of the freshly installed Ubuntu. I have two options, cloning or imaging. Question, is there much difference between the 2 ways? If I want to restore everything back to the freshly installed Ubuntu OS, without all the fuss, would a clone be better or would an image suffice? (not sure if imaging would screw up booting!?)

    Thanks!

  2. #2
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Good practice for Ubuntu setup

    Quote Originally Posted by petenoob View Post
    I have a dual partition, one with Windows 8 and the other Ubuntu 16.04.
    I can't help you with the Windows stuff because I stopped dual booting it years ago. I should warn you that there are some complexities involved in dual booting with Windows, but others will have to advise you about the specifics.
    I want help in creating the best setup and good practice so if anything happens like I accidentally delete system files by mistake, I can restore the partition from image or clone.
    In all my years using Linux and Ubuntu, I've never bothered to image or clone my system. Whenever I've done something so stupid as to make the OS unrecoverable, I just reinstall the OS from scratch. It takes only 20 minutes on my main box and a slightly longer 25 minutes on even my old underpowered laptops. It's so easy that I just don't see the benefit of cloning or imaging with all of the attendant risk (doing it wrong could hose your Windows install), or obsolescence (you are taking a snapshot that is bound to quickly age and become outdated with Ubuntu's almost daily upgrades).

    The whole cloning thing was originally required (and made valuable) because of the limitations of proprietary software. A lot of such software use up a license each time you install it. So, in the event of a disk crash, it makes sense to just restore a clone onto a new disk. But that consideration is nonexistent in Linux, so the value of cloning lies only in the convenience. Since your intent is to clone or image a system right after a pristine install, even the convenience aspect is of very limited value and I just don't see the point. Unlike proprietary handcuffware, installing a new Linux system―along with all of the apps you are likely to want―doesn't cost you anything in either money or extra time.
    First, for the Ubuntu OS, I have 2 partitions 100GB each. I plan one for the OS and other to move the Home folder in. Question, how big should the OS partition be? What is the minimum to run Ubuntu smoothly?
    My system partition is 30 GB of which I use only 7.5 GB. Granted, I don't have huge apps like games loaded, but even with games, the app tends to be reasonable: the disk hog is all of the data, and that usually resides on /home. So, you generally don't need a large system partition, but you can never have enough data. It is important to remember that /home doesn't have to be especially large either. On my system, /home is actually left in my system partition and I have created another partition only for data. I offload all of my important data onto this partition and then symlink them all back to each proper /home directory. I only have to backup this /data partition and don't even bother with anything else.
    Second, I think it would be good practice to make a backup of the freshly installed Ubuntu. I have two options, cloning or imaging. Question, is there much difference between the 2 ways? If I want to restore everything back to the freshly installed Ubuntu OS, without all the fuss, would a clone be better or would an image suffice? (not sure if imaging would screw up booting!?)

    Thanks!
    Others can help you if you are intent on cloning or imaging. I don't want you to think that my suggestions are the only way to go. I know that may Linux gurus are sold on cloning and imaging, so they can advise you on the various benefits and pitfalls to watch out for.

  3. #3
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,966

    Re: Good practice for Ubuntu setup

    Quote Originally Posted by petenoob View Post
    I want help in creating the best setup and good practice so if anything happens like I accidentally delete system files by mistake, I can restore the partition from image or clone.
    Agree with DuckHook.

    Three good habits are Versioned Backups of your data, creating a system that is Easy to Reproduce on bare metal, and learning you own Good Security Habits.

    Ubuntu includes excellent tools for versioned backups. Add to your plan a method of backing regularly to an external (and/or offsite) device that won't be destroyed by the same fire/flood/pet.

    Easy to Reproduce can use images, can use clones...or can simply use a set of written notes. Ubuntu is *easy* to reinstall. Complex imaged/cloned systems can be difficult to upgrade. I backup only data. On the rare occasions hardware needs to be repaired or reinstalled, a fresh LiveUSB installer takes only a few minutes.

    Good Security Habits has many excellent threads in this forum already.

    Limiting yourself to 'image or clone' closes the door on some very good, simple, robust, easily-supported options.

  4. #4
    Join Date
    Aug 2016
    Beans
    25

    Re: Good practice for Ubuntu setup

    Thanks for your posts. Cloning or imaging, to me, is just simple straight forward no nonsense type of backing up. I don't like typing things in and directing, moving and point to files and folders by code, it is just annoying and even more annoying when I get it wrong. I just got familiar what clonezilla and now very comfortable reading and saving images of my Ubunut OS. I am very surprised by how short the process takes, about 10 minutes for a 10gb system file.

    Yes, I am cloning a fresh install but also a fresh install of all the other programs I prefer too, like image editor, media player, file manager etc ... Also, I have install a webserver with a CMS/LMS setup, and I not familiar with it and has screwed it up many times already. In a nutshell, I do not have to mess around and install everything again from a new Ubuntu install. So I imaged all that in one neat package and can restore everything if anything goes wrong. I don't know if it is the best way but it works.

    Thanks guys, I really appreciate your input.
    Last edited by petenoob; September 13th, 2016 at 03:58 AM.

  5. #5
    Join Date
    Aug 2016
    Beans
    25

    Re: Good practice for Ubuntu setup

    Anyway how to tag this thread as solved?

  6. #6
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Good practice for Ubuntu setup

    Great to hear that you've arrived at a solution that works for you. Linux is all about choice.

    You can mark threads *SOLVED* using the Thread Tools option in the menu bar at the top of this thread.

    Good Luck and Happy Ubuntuing!

  7. #7
    Join Date
    Apr 2009
    Location
    UK Lake District
    Beans
    3,092
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Good practice for Ubuntu setup

    I have read many times of those who 'Image/Clone' their entire HDD/SSD
    Only later do they find it doesn't restore properly.
    The entire process is time consuming and unwieldy for a regular backup situation

    Personally I have made entire copies of drives using DD. though this has been with rescue in play on drives that are failing
    And recently for customers who want to transfer from a HDD to SSD
    You have to be careful with DD!
    But it's worked 100% for me so far, where other clone tools have not.

    My own system is just backed up by copying files from source to backup drive and I too would reinstall should that be required.
    Ubuntu 18.04

  8. #8
    Join Date
    Aug 2016
    Beans
    25

    Re: Good practice for Ubuntu setup

    So I was trying out ways of backup files and folders and this is what I got from the end of the Ubuntu Backup. Looks like a failure!

    https://s18.postimg.io/wnak62f1l/Scr...3_16_17_09.png

    I am starting to get nervous about backups in general!

  9. #9
    Join Date
    Aug 2016
    Beans
    25

    Re: Good practice for Ubuntu setup

    Quote Originally Posted by carl4926 View Post
    I have read many times of those who 'Image/Clone' their entire HDD/SSD
    Only later do they find it doesn't restore properly.
    The entire process is time consuming and unwieldy for a regular backup situation

    Personally I have made entire copies of drives using DD. though this has been with rescue in play on drives that are failing
    And recently for customers who want to transfer from a HDD to SSD
    You have to be careful with DD!
    But it's worked 100% for me so far, where other clone tools have not.

    My own system is just backed up by copying files from source to backup drive and I too would reinstall should that be required.
    I have terrible fat fingers. I like Ubuntu (haven't played with Windows for 2 weeks now) but definitely a steep learning curve. To me, playing with DD in terminal is playing with fire!

  10. #10
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Good practice for Ubuntu setup

    Yes, dd is a very powerful but also dangerous tool, because it does what you tell it to do without questions. So if you tell it to wipe your family pictures ... and it can be one single typing error away. dd deserves the nicknames 'disk destroyer' and 'data destroyer'. I made mkusb to put a safety belt around it. mkusb can be used to backup whole drives too, but it is much better to use Clonezilla for that purpose.

    I agree with the previous posters, that there are many other alternatives to backup a system. I make complete cloned copies once in a great while, but on a regular schedule I sync my data partition with Unison and backup my home partition with a simple rsync script.

    Finally, it is very important to test your backup to a 'third drive'. You should only rely on a backup system, that you have tested.
    Last edited by sudodus; September 13th, 2016 at 04:03 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •