LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2016, 06:10 AM   #1
clunga
LQ Newbie
 
Registered: Jan 2016
Location: Rome
Distribution: Ubuntu 14.04 & 15.10
Posts: 14

Rep: Reputation: Disabled
Question [SOLVED]Making an iso of a root partition


Hi to everybody, wishing you a good we
I am a newbie and therefore often make irreversible mistakes and the result is total reinstallation.
I operate with Ubuntu 14.04 installed on an external HD 1TB USB3 , with 4 partitions . Therefore I have sda for the PC windows XP and a sdb with:

1 ext4 for the root / ( 20GB only 8 utilized)
2 swap for the swap area 5GB
3 ext4 for /home 180GB
4 ntfs 795 GB for storing

For my personal reasons I would like to make an iso ( naturally from live)of partition 1 to save it in partition 4 and restore it (in a simple way, I do not need cdroms and I can make them just in case of crash) to bring back my system to the original status. I am not really concerned about /home.
I hope in your advise and help.
PS Systemback and other systems have given me real problems.More than reluctant to use them, even if iso is time consuming, reinstallation is even more.

Last edited by clunga; 01-23-2016 at 04:14 AM.
 
Old 01-16-2016, 06:21 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The tool to make an ISO file is mkisofs.

You could also use something like clonezilla to make a compressed copy of partition 1, though I am not sure if clonezilla can copy to a local NTFS.
 
Old 01-16-2016, 07:19 AM   #3
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
I'm not sure an ISO is the best tool for the job. They're meant for optical media. What if you tried making another partition and just mounting it occasionally and copying all your files over? That's probably what I would do. Then you can get a system running on whatever your distribution's media is, copy from one drive to the other, and chroot and reinstall GRUB.
 
Old 01-16-2016, 10:10 AM   #4
clunga
LQ Newbie
 
Registered: Jan 2016
Location: Rome
Distribution: Ubuntu 14.04 & 15.10
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by oldtechaa View Post
I'm not sure an ISO is the best tool for the job. They're meant for optical media. What if you tried making another partition and just mounting it occasionally and copying all your files over? That's probably what I would do. Then you can get a system running on whatever your distribution's media is, copy from one drive to the other, and chroot and reinstall GRUB.
I do not understand it, but it sounds very interesting. Let me explain what I understood.
I resize the NTFS partition and obtain 20GB which I use as a new partition in ext4. Good! and from there?
I look forward to your answer, I am intrigued!
PS We are talking about copying all files belonging to the root

Last edited by clunga; 01-16-2016 at 10:11 AM.
 
Old 01-16-2016, 10:21 AM   #5
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
There is a tool that does what you ask - it's called Systemback:

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

Since you run Buntu 14.04, there's also Pinguybuilder:

http://pinguyos.com/2015/09/pinguy-b...upremix-buntu/
 
Old 01-16-2016, 11:59 AM   #6
clunga
LQ Newbie
 
Registered: Jan 2016
Location: Rome
Distribution: Ubuntu 14.04 & 15.10
Posts: 14

Original Poster
Rep: Reputation: Disabled
There is a tool that does what you ask - it's called Systemback:

http://www.techrepublic.com/article/...ng-systemback/
Systemback has given me very negative results in the restoring. I will look into the other article and let you know.
Thanks
 
Old 01-16-2016, 02:31 PM   #7
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Both are kernel sensitive. Many of these systems use AUFS and this is not available by default in newer kernels, I think overlayfs is the standard now. I boot into my 3.13 stock kernel when I want to back up the system...
 
Old 01-16-2016, 08:44 PM   #8
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
Quote:
Originally Posted by clunga View Post
I do not understand it, but it sounds very interesting. Let me explain what I understood.
I resize the NTFS partition and obtain 20GB which I use as a new partition in ext4. Good! and from there?
I look forward to your answer, I am intrigued!
PS We are talking about copying all files belonging to the root
Yes, you get the gist. The only thing I would worry about is copying your root partition without copying the contents of your home partition. Then again, I suppose you could write a script that collects all folder names in the root directory, cuts /home out, and copies them recursively. Unfortunately, my script writing skills are hardly existent, so I hope someone could chime in on that one. Otherwise, I'll see what I could do (although then someone will probably show me up with a one-liner for the job.)
 
Old 01-23-2016, 04:12 AM   #9
clunga
LQ Newbie
 
Registered: Jan 2016
Location: Rome
Distribution: Ubuntu 14.04 & 15.10
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks, very clear.
 
  


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
Is there any benefit of making a separate partition for home, root and boot partition Vexe Linux - Hardware 18 02-23-2013 11:00 AM
[SOLVED] AptOnCD not making proper iso? Or How to add iso as cdrom source? deskt0plinux Ubuntu 2 11-13-2012 12:41 AM
Can I install .iso from one partition direct to another partition (by-pass CD burn) ? pppaaarrrkkk Linux - Newbie 1 09-10-2008 06:21 AM
making cd iso into dvd iso dachinster Slackware 8 10-20-2006 11:40 AM
mount a .iso or extract a .iso behind user witout access to root easytarget Linux - Newbie 3 09-29-2002 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 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