Clone Desktop setup

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
weyland

Clone Desktop setup

Post by weyland »

I have a Rosa Mate HDD installation set up exactly as I like, and I'd like to have the same configuration on a new Rosa Mate installation on SSD on the same machine, which will become my main Linux instance.

What's the best way to do that?

I mean desktop, panels, workspaces, installed software, settings, startup programs, etc.

/var and /home on HDD, everything else on the SSD.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pjotr
Level 24
Level 24
Posts: 20116
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Clone Desktop setup

Post by Pjotr »

User settings: make the hidden settings in your home folder visible (Ctrl h), and copy everything onto a USB thumb drive or external USB hard disk. Paste them back in the home folder of your new installation. In order to prevent complications, make sure that both the old and the new user names are identical.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Kendoori
Level 5
Level 5
Posts: 748
Joined: Thu Jul 09, 2009 12:51 pm
Location: Sanibel, FL USA

Re: Clone Desktop setup

Post by Kendoori »

Another option is to use Clonezilla and just clone the drive. Is the SSD same size or bigger than HDD? if so, it's very straight forward in Clonezilla (http://clonezilla.org/downloads.php), there's an option to do disk to disk. If it's a laptop you would need an external enclosure to do this...
weyland

Re: Clone Desktop setup

Post by weyland »

Pjotr wrote:User settings: make the hidden settings in your home folder visible (Ctrl h), and copy everything onto a USB thumb drive or external USB hard disk. Paste them back in the home folder of your new installation. In order to prevent complications, make sure that both the old and the new user names are identical.
Thank you, Pjotr.

I copied all the hidden files to an HDD. 1.6GB. Some files wouldn't copy.

I guess I'd better install all the extra software I need before copying the old settings into the new /home. Is that right?
weyland

Re: Clone Desktop setup

Post by weyland »

Kendoori wrote:Another option is to use Clonezilla and just clone the drive. Is the SSD same size or bigger than HDD? if so, it's very straight forward in Clonezilla (http://clonezilla.org/downloads.php), there's an option to do disk to disk. If it's a laptop you would need an external enclosure to do this...
Thanks, Kendoori.

Problem is that the old Mate is all on a single HDD, whereas the new one is spread across an SSD and an HDD. It's the user interface and installed software I want to clone, not the entire old system in a single chunk. Maybe it isn't possible to do it other than the hard way.
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

The easiest way to preserve as much as possible is to rsync the original / partition to the new / partition on the SSD. That will not only transfer your hidden files (configurations) but will also include other useful things, like all the .deb files in /var/cache/apt/archives. (You have to be prepared to re-install any PPA's.) Then you install the new Mint to the new / partition, without formatting the partition.

Instructions for using grsync to mirror the / partition to the new one are here → http://forums.linuxmint.com/viewtopic.p ... 9#p1128247

Setting up /var and /home (and swap) on the hard drive can be done after installation, by editing /etc/fstab.
Do you currently have a separate /home partition on the hard drive? That would change the procedure a bit.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:The easiest way to preserve as much as possible is to rsync the original / partition to the new / partition on the SSD. That will not only transfer your hidden files (configurations) but will also include other useful things, like all the .deb files in /var/cache/apt/archives. (You have to be prepared to re-install any PPA's.) Then you install the new Mint to the new / partition, without formatting the partition.

Instructions for using grsync to mirror the / partition to the new one are here → http://forums.linuxmint.com/viewtopic.p ... 9#p1128247

Setting up /var and /home (and swap) on the hard drive can be done after installation, by editing /etc/fstab.
Do you currently have a separate /home partition on the hard drive? That would change the procedure a bit.
Thank you, a.t. Seems like that's the way to go. (The separate /home partition is empty, so that's not a problem.)
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

Old Ruler just posted a complete and easy to follow tutorial on how to do it with rsync →
http://forums.linuxmint.com/viewtopic.php?f=42&t=216469
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

weyland wrote:Thank you, a.t. Seems like that's the way to go. (The separate /home partition is empty, so that's not a problem.)
If it is a separate /home partition, then it is not empty. Where is the .dmrc file located? On the separate /home partition? You can't log in without that file (and other hidden files), depending on your procedure.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:
weyland wrote:Thank you, a.t. Seems like that's the way to go. (The separate /home partition is empty, so that's not a problem.)
If it is a separate /home partition, then it is not empty. Where is the .dmrc file located? On the separate /home partition? You can't log in without that file (and other hidden files), depending on your procedure.
What I meant was that it's never been used. I can format the entire SSD and the separate /var and /home partitions on the HDD before I do anything else.

I'll report back when I've done the whole rsync thing. Thanks again.
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:Old Ruler just posted a complete and easy to follow tutorial on how to do it with rsync →
http://forums.linuxmint.com/viewtopic.php?f=42&t=216469
Thanks for that excellent script, Old Ruler.

It all worked flawlessly until I tried to boot. Took about 20 minutes for a 60GB installation.

Image

THIS seemed to work fine, but it still wouldn't boot. THIS wouldn't boot either, unfortunately (unrelated problem, I dare say).

So I hit the nut with a sledgehammer and installed a new Mint instance on a HDD. Now I can boot the rsync'ed system on the SSD.

Any ideas how that problem could happen?
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

There is no way to be sure why it failed without a Boot Info Script report, or similar info.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:There is no way to be sure why it failed without a Boot Info Script report, or similar info.
Will that be in a log somewhere?
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

Install boot-info-script:

Code: Select all

sudo apt-get install boot-info-script
Then run the script:

Code: Select all

sudo bootinfoscript --stdout | pastebin
Post the resulting URL link that displays in the terminal.

If you are just running the script for your own information (not for the forum) you can eliminate the " --stdout | pastebin" and just run

Code: Select all

sudo bootinfoscript
Having said that, you have installed a new Mint that allows you to boot the rsync'ed Mint. So boot into the rsync'ed Mint and run

Code: Select all

sudo update-grub
and

Code: Select all

sudo grub-install /dev/sdX
(where X is your hard drive - sda? sdb?)

If you are worried about replacing the current Grub, you can plug in a flash drive and install the rsync'ed Mint's Grub to the MBR of that drive, as a test to make sure it works, before installing it to the MBR of the SSD.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
rdonnelly
Level 5
Level 5
Posts: 528
Joined: Thu Nov 27, 2008 9:38 pm

Re: Clone Desktop setup

Post by rdonnelly »

I usually delete the .dmrc, and .xauthority while I am on the live desktop before install, and just set /home as your /home with no formatting. You end up with the same desktop on the first boot. I guess dependencies can be questionable. But if I want fresh, I take a screen shot of my desktop before install, then recreate, it and move over the files from my old /home backup.
Using Mint since 2008
*Mint 18.2 KDE
*ASUS 970 PRO GAMING/AURA AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.1
*AMD FX-8370 with AMD Wraith cooler Vishera 8-Core 4.0 GHz (4.3 GHz Turbo)
*G.SKILL Ripjaws X Series 16GB DDR3 SDRAM
*nVIDIA GEFORCE GT 610 2GB
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:Install boot-info-script:

Code: Select all

sudo apt-get install boot-info-script
...
I've run that script, on the system I'm using now (which is on the SSD and running fine). The failed UUID in the error message isn't there. Is that what I'm looking for?

All I have to do now is move /home and /var to an HDD. Possibly /tmp as well? swap is already on an HDD.
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

weyland wrote: I've run that script, on the system I'm using now (which is on the SSD and running fine). The failed UUID in the error message isn't there. Is that what I'm looking for?
Please post the URL link to the Boot Info script so that we can see what you are looking at:

Code: Select all

sudo bootinfoscript --stdout | pastebin
It might be that editing fstab is all that is needed.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:
weyland wrote: I've run that script, on the system I'm using now (which is on the SSD and running fine). The failed UUID in the error message isn't there. Is that what I'm looking for?
Please post the URL link to the Boot Info script so that we can see what you are looking at:

Code: Select all

sudo bootinfoscript --stdout | pastebin
It might be that editing fstab is all that is needed.
If you insist. It's a big and messy system, which has been played with at one time or another by various seekers-after-truth including my son. But now it's all mine -- MINE, I tell you! And I'm in the process of tidying and streamlining. I've now got / on the SSD, and /home, /var, /tmp, and swap on an HDD. Seems to be working fine, and it's noticeably snappier most of the time, including boot.

The link below reflects the system before I migrated the non-root stuff (using THIS).

http://paste.linuxmint.com/view/jjmq
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Clone Desktop setup

Post by austin.texas »

You are right, it is big and messy. Worse than mine, even. In fact, it is so big that it exceeds the 32768 byte limit for uploading a file to the paste.linuxmint.com pastebin, so only the first 757 lines are displayed.
It does not include the fstab or the grub.cfg for Mint 17.3 on sdc1, which is essential info for figuring out what the error message is about.
If you have the entire text on your hard drive you can open it in a text editor, like gedit, and search for the UUID displayed in the error message.
When you followed Old Ruler's tutorial, did you miss "update-initramfs -u", perhaps?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
weyland

Re: Clone Desktop setup

Post by weyland »

austin.texas wrote:You are right, it is big and messy. Worse than mine, even. In fact, it is so big that it exceeds the 32768 byte limit for uploading a file to the paste.linuxmint.com pastebin, so only the first 757 lines are displayed.
It does not include the fstab or the grub.cfg for Mint 17.3 on sdc1, which is essential info for figuring out what the error message is about.
If you have the entire text on your hard drive you can open it in a text editor, like gedit, and search for the UUID displayed in the error message.
When you followed Old Ruler's tutorial, did you miss "update-initramfs -u", perhaps?
That big? That'll teach me. Maybe.

I've checked the printed tutorial I made before begining. I had ticked update-initramfs -u. Didn't miss it. I don't have the entire text.
Locked

Return to “MATE”