LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 10-18-2015, 05:48 AM   #1
mrkqatif
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Rep: Reputation: Disabled
Exclamation 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.
  1. Are there any programs/tools that I can use to duplicate my system onto a USB?
  2. Is there a "How to" guide to achieve this task?
  3. 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.

I appreciate any help offered here.

Last edited by mrkqatif; 10-18-2015 at 11:06 AM.
 
Old 10-19-2015, 01:25 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.

Last edited by ondoho; 10-19-2015 at 01:27 AM.
 
Old 10-19-2015, 08:07 AM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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.
 
Old 10-19-2015, 08:09 AM   #4
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Look here:

http://www.techrepublic.com/article/...ng-systemback/

Sadly remastersys has been abandoned for quite some time. A very few distros still use it though, wattOS being one...
 
Old 10-19-2015, 08:29 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
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.
 
Old 10-22-2015, 03:07 AM   #6
mrkqatif
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks everyone. I will work on it this weekend and report back.
 
Old 10-30-2015, 03:33 PM   #7
mrkqatif
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.

Regards,
 
Old 10-31-2015, 05:42 PM   #8
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,819

Rep: Reputation: 229Reputation: 229Reputation: 229
I don't think you can copy and install Mint...

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.

https://susestudio.com/
https://en.wikipedia.org/wiki/SUSE_Studio
https://doc.opensuse.org/projects/kiwi/doc/

If you want to know why you can't make an image of your installed Mint, put it on a USB and boot it, Google "initrd".

Last edited by thorkelljarl; 10-31-2015 at 06:03 PM.
 
Old 10-31-2015, 06:49 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
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.
 
Old 11-01-2015, 01:15 AM   #10
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
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.
 
Old 11-01-2015, 07:49 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
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.
 
Old 11-01-2015, 08:04 AM   #12
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
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...

Last edited by NGIB; 11-01-2015 at 08:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tried to Make a bootable Linux mint usb but can't boot back into windows. deedi01 Linux - Newbie 8 05-04-2015 08:16 PM
bootable usb on laptop and netbook prudra Linux - Laptop and Netbook 11 05-08-2013 04:00 PM
Require a bootable Linux Abuntu USB Flash Stick for HP Laptop with no Harddrive NewbeeLinuxDumbee Linux - Newbie 2 08-10-2012 04:16 PM
LXer: Creating A Bootable USB Device On Linux Mint 11 LXer Syndicated Linux News 0 09-26-2011 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 07:16 PM.

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