Duplicate Linux Mint from my Laptop to a Bootable USB
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Duplicate Linux Mint from my Laptop to a Bootable USB
Greetings,
I am a new user of Linux mint. I installed Linux Mint 17.2 on an HP laptop. the laptop has Windows 8.1 also. Since the installation, I've been using Linux almost all the time.
Now, I am replacing this old laptop with an Asus Zenbook UX305 (Core M) which has Windows 10 on an SSD. I want to copy/duplicate my Linux installation (with all the customization and additionall programs) from the old laptop onto a USB. I want to be able to boot my Linux Mint from this USB on other computers and run while saving my sessions on this USB. I also want to be able to install Linux Mint from this USB onto the new latop ans possibly other computers.
Are there any programs/tools that I can use to duplicate my system onto a USB?
Is there a "How to" guide to achieve this task?
What sort of homework do I need to do/read before I attempt this task?
I hope this is the right forum for this question/request. If not, please advise me of which form is the appropriate one.
it might be possible to simply copy the whole partition with dd.
so, let's say your mint installation is on /dev/sdX2, and your usb stick is /dev/sdY1, you'd do:
- first you have to re-format your usb stick to ext4 (i usually use gparted).
then:
Code:
sudo dd if=/dev/sdX2 of=/dev/sdY1
be very, very careful with dd, never just copy-paste commands and make 300 sure you got the drive letters+numbers right.
you might want to understand what a partition is, first.
you have to replace 'X' and 'Y' with the appropriate letters, usually a,b,c.
this might work, or it might not, but it's worth a try.
be prepared to run into driver problems (most commonly graphics).
you might have to adapt your installation to use some sort of fallback graphic driver (used to be vesa), if you're planning to use the usb on multiple devices.
I think using dd will lead to an unbootable USB stick. The is a script called remastersys that can create a bootable image of an existing system. It's old, and I'm not sure if it's still maintained, but it used to work on Debian-based systems including Ubuntu and Linux Mint.
You might consider using clonezilla or redobackup if the usb is equal to or larger. If for example you have a 1Tb internal drive and a 500g usb then you would have to shrink the 1Tb partitions down to equal or below the 500G then clone it.
Same goes for gparted or partimage then you'd have to install a boot loader like grub.
There may be some issues cloning too. A dd command is kind of dangerous for a newbie. It also copies specific files that may need to be generic.
Hello again,
I was not able to create the duplicate. I couldn't get Remastersys to complete the task successfully. I tried to boot the new laptop from the original copy I have, the laptop did not boot. It may be because the bios configuration. I will try to figure that out and report here.
The only linux distribution that I know of that can make an installation medium that is a duplicate of an existing installation for further installation(not just cloning) is openSUSE, using Studio.
Studio uses KIWI to make an installable image file based on the installation file packages used in an existing openSUSE installation. This becomes a custom openSUSE package set to install elsewhere. This would seem to exclude data files in the existing /home directory.
The only linux distribution that I know of that can make an installation medium that is a duplicate of an existing installation for further installation(not just cloning) is openSUSE, using Studio.
PCLinuxOS has had MyLiveCD for years, description below:
Quote:
MyLiveCD is a script that allows you to build a bootable LiveCD/DVD
of your existing installation. It compresses a 2.5 gig install to
700 mb CD or around a 10 gig install to 4 gig DVD. Maximum compressed
image cannot exceed 4 gigs. It features automatic hardware detection
and decompresses the image on the fly with almost no performace impact.
If I remember the Remastersys options, the one which included the /home directory was more of a backup without an installer. Another option included the installer. If you find a way to create an iso of your system, you will need to install the installer software first as installed systems don't have an installer, obviously.
Remastersys was/is integrated with the Ubuntu installer Ubiquity and as such won't work on every distro even if it's Buntu based.
I recommended Systemback because it does not have this limitation and is more "generic" although I believe it's limited to Buntu based distros as well.
Remastersys was/is integrated with the Ubuntu installer Ubiquity and as such won't work on every distro even if it's Buntu based.
There were actually two versions, one for Debian and one for Ubuntu and derivatives. Never used the Debian myself but the Ubuntu verson worked on a number of the major derivatives; Mint, Kubuntu, Lubuntu, Peppermint and some others. Probably didn't work on all of them though.
There were actually two versions, one for Debian and one for Ubuntu and derivatives. Never used the Debian myself but the Ubuntu verson worked on a number of the major derivatives; Mint, Kubuntu, Lubuntu, Peppermint and some others. Probably didn't work on all of them though.
You're correct but I never got the Debian version to work reliably myself. The only 100 reliable system I've seen in Debian is Snapshot which is in MX-14/antiX and it works perfectly as the native installer is designed for this feature. The last "official" version of remastersys was for Buntu 12.04 I believe. Some authors have tweaked and patched it so it works on later versions though...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.