LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-21-2013, 06:43 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Safely playing with my system


So, I currently have a fairly stable system which I am quite happy with, however I would like to try some things that are somewhat tedious and dangerous to a stable system, such as rebuilding glibc to get the newest version. My question is, could I do this to essentually make a sandbox of my system. In other words:
  • mount a empty partition.
  • use dd to copy my entire filesystem to this new partition.
  • bind the virtual filesystems to my current virtual filesystems and chroot
  • or
  • update grub so I could boot in to it.

would eithter of theese work?
 
Old 06-21-2013, 08:57 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Why not just install a virtual engine such as Virtual Box and do your testing in VM?
 
Old 06-22-2013, 04:25 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I, in contrast, prefer not to use a VM. Snapshot was invented for this.
LVM has support for snapshot as does btrfs. If you're a bit adventurous and happy to play around in gentoo, btrfs would be my suggestion. Rebooting with a snap is a doddle. Distros such as Fedora have this built-in. Just roll-back after a misadventure with an update.
Just make sure you have enough space in the filesystem - BTDTGTS.
 
Old 06-22-2013, 11:16 AM   #4
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
The reason I would prefer not to use a VM is that if everything works correctly I would prefer to install the new system over my current.
I'm not sure how I would do that with a VM.
 
Old 06-22-2013, 07:44 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Quote:
Originally Posted by mreff555 View Post
The reason I would prefer not to use a VM is that if everything works correctly I would prefer to install the new system over my current.

I'm not sure how I would do that with a VM.
You wouldn't.

It seems to me that, in the long run, though, testing in a VM and then implementing the changes on your host machine might be less work.

It was just a thought.
 
Old 06-23-2013, 08:20 AM   #6
wroom
Member
 
Registered: Dec 2009
Location: Sweden
Posts: 159

Rep: Reputation: 31
One way to do this if you don't want a virtual setup, is to start with two blank drive and then install clonezilla on one of the disks and then install the "tinkering system" on the other disk.
With boot menu you select which disk to boot from. Either the system you are working on, or the clonezilla to backup/restore the "tinkering system".

Clonezilla can do disk to image backups/restores and only copy the used "clusters" of the disk, which makes it rather fast.
You also get a rescue shell fairly rich with support for drivers and filesystems by booting into command prompt on clonezilla.

No matter if you have a simple system in one single partition, or if you have a linux software raid setup over several disks/partitions and with LVM on top, clonezilla does the job.

If you have your bootable clonezilla drive on USB, then you can simply turn it off and your tinkering system can run without knowing of the other drive and without potentially damaging your backups.

I use clonezilla pretty often, for image backups, offline tinkering with filesystems and raid setups, and for deployment.
In most cases i boot clonezilla from network (PXE) and do backup/restore to a NAS server holding the backup files. Some systems don't boot from net, and then i have a disk in an external adapter with ESATA and USB to work with.

It works for Linux as well as Windows systems.

Try it: http://clonezilla.org/
 
  


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
What command can you use to safely shut down the Linux system immediately Mikemahone Linux - Newbie 4 06-06-2013 12:04 PM
how to safely remove linux partition from a dual boot system? parv Linux - Newbie 7 05-01-2012 09:59 AM
Safely powring down the system the-yikes Slackware 2 02-05-2007 07:16 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-09-2005 11:38 PM

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

All times are GMT -5. The time now is 05:01 AM.

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