LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2011, 05:48 PM   #1
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
How to make a recovery partition windows like of my root folder[ubuntu]


I want to make it now because it is still under the size of a dvd 3.7GB and i want to put it safe on a dvd to restore fast and not have to customize anything in case of a disaster , like me running dd again )

maybe clonezilla or something ... would be nice if it is compressed ..

Last edited by silvyus_06; 01-01-2011 at 05:51 PM.
 
Old 01-01-2011, 07:28 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,090
Blog Entries: 3

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
who cares what is in root. we care about what you have installed. in the root tree. create a /home partition let it all crash. then reinstall. or do as i did I made my hole root system minus (home) a squashfs file then when I want to install it on any system I just unsquashfs the file add a home directory and I am up. use puppy linux to do it with then keep puppy to put your image on any system.

If you are going to build and compile stuff out side of your distro repository create the image. or build the packages and keep them in your home folder. if you are just going to just use the 40,000 or so pre-built packages
in your distro then when you install the system create a partition /home then just reinstall.
Quote:
/dev/sda1 is / <--stands for root tree
/dev/sda2 is /home <--home of all user data
/dev/sda3 swap
hope this helps. this is why linux is around let the tree fall but home is still there. It is a big deal.
I have 8 distros sharing home. and trust me I have home backed up on another hard drive. Home holds your users and they are the ones you worry about the data.
not the operating system. you can always reinstall just do a custom partition and do not format /dev/your_drive_partition_with_home on it.
from a admin point the users data is worth more than the root and system. systems can be reinstalled all to easy.If my users loose there data I am in big trouble.
not every user on my system wants slackware or Ubuntu etc. Multiple distro's one home different home users with with different user ID's.
Keep the lab happy.

Here is my /etc/fstab file from one of my systems.
Quote:
/dev/sda4 swap swap defaults 0 0
/dev/sdb3 / ext4 defaults 1 1
/dev/sdb6 /home ext4 defaults 1 2
/dev/sdb1 /mnt/sdb1 ext4 defaults 1 2
/dev/sda1 /mnt/sda1 ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

Last edited by Drakeo; 01-01-2011 at 07:39 PM.
 
Old 01-01-2011, 07:34 PM   #3
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,788

Rep: Reputation: 211Reputation: 211Reputation: 211
More information...

Why do you want to do this?

You can reinstall your linux distribution easily enough. Your files and your personal setting will be on your /home partition, provided you have installed linux with a seperate /home, allowing you to reinstall the same linux that you are using, but not partitioning /home, and winding up with a duplicate of what you had before. The effect is the same as of having restored your linux installation.

In addition, you have, or should have, a backup copy of your system files that will allow you in fact to restore your system, and do so much more easily and much more surely than fooling around with a linux equivalent of a Windows Restore disk.

Last edited by thorkelljarl; 01-01-2011 at 07:55 PM.
 
Old 01-01-2011, 07:53 PM   #4
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by thorkelljarl View Post
More information...

So you want to make a bootable recovery disk from your Recovery partition. If you have Windows 7, you should be able to burn a copy on several DVDs from the Windows 7 installation. What Windows do you have if you do not have Win 7?

If you were to clone the Recovery partition you have, you could restore it to its previous place, but you might not be able to get it to boot. It might depend upon the system you are running. What machine is it?
i use a ubuntu machine . i don't have windows anymore ...

i don't have any recovery partition . that is what i want to do , but put the backup files on my dvd

@Drakeo - thanks alot for the info . I already have a separate home , but i put many applets on my taskbars , installed many programs , a game and stuff , and i like my / partition .

i understand user files go to /home . that's why i did it . but if i reinstall i will always have to put all my programs back and i have a slow connection . i suppose the programs install in root , right ? and the program's config files go in home , or something like that.

i will be googling over how to make the squashfs . i saw that on the ubuntu's live cd they put a squashfs wich is the biggest file . i suppse that's the sysstem ?

I would be happy if more information of the squashfs would be given here.
 
Old 01-01-2011, 08:02 PM   #5
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Mint/Debian
Posts: 447

Rep: Reputation: 32
https://help.ubuntu.com/community/Ba...pleBackupSuite
 
Old 01-01-2011, 08:10 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
I boot System Rescue CD and use partimage to create a backup onto an external disk. I could then later copy those to a CD or DVD if I wanted to do that.
 
Old 01-01-2011, 08:21 PM   #7
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Mojojo View Post
that's a really nice useful program , i will do a new APTonCd to have it there , in the .iso file !

This may come in handy , i even bookmarked it's page for future reference .

But this is still , not what i'm looking for . I want to make a backup of my / partition and put it on a dvd , and when something goes wrong , i take my latest backup of / and restore it to / .

Is that possible ?

I'm still waiting any info over the squashfs.

And also , as a last question , i have lots of applets on my taskbars ( or gnome bars, you call it ) . Will the order of those be lost if i reinstall ?

EDIT:
@stress_junkie - now i see your post . i am downloading that right now . Still , while that is downloading , can i do anything of that kind with clonezilla ?

Last edited by silvyus_06; 01-01-2011 at 08:28 PM.
 
Old 01-01-2011, 09:28 PM   #8
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
I finished downloading the system rescue cd ...

Tried to see if the iso is not corrupt or anything by boting it in virtualbox . (when i saw gentoo linux while it was booting it scared me ) )


Before i burn it to a cd , i just want to be double sure ..

it is better than clonezilla , right ?

It is going to make a .pimg file that is going to be the image of my partition ..

Whenever i want to restore , i make it boot to ram and then click to restore it to the exact same partition where it was and it is supposed to work, right ?

is the partition going to be bootable ?
 
Old 01-01-2011, 09:42 PM   #9
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Quote:
Originally Posted by silvyus_06 View Post
Tried to see if the iso is not corrupt or anything by boting it in virtualbox . (when i saw gentoo linux while it was booting it scared me ) )
System Rescue CD is built on Gentoo.

Quote:
Originally Posted by silvyus_06 View Post
Before i burn it to a cd , i just want to be double sure ..

it is better than clonezilla , right ?
It is more versatile than Clonezilla because you can use it to do more things than just backup and restore.

Quote:
Originally Posted by silvyus_06 View Post
It is going to make a .pimg file that is going to be the image of my partition ..
It will make an archive with any name that you choose. The archive will be broken up into 2 GB parts so that they will burn onto a CD. All of the files in a set will end in a three digit number. The first one will end in 000, the next will end in 001, etc.

Quote:
Originally Posted by silvyus_06 View Post
Whenever i want to restore , i make it boot to ram and then click to restore it to the exact same partition where it was and it is supposed to work, right ?
You boot into RAM and you will see a shell prompt. You type
Code:
partimage
to start partimage.

Partimage will provide a graphic interface.

Quote:
Originally Posted by silvyus_06 View Post
is the partition going to be bootable ?
Partimage automatically saves the disk's MBR which you can restore from the backup file. You have to tell it to restore the MBR.

In the case that the disk is okay and you just want to restore Linux then Linux will boot after you restore it onto the same disk that was used to make the backup.

If you have to replace the disk then you will have to create the partitions using cfdisk, then run partimage to restore Linux and the MBR.

Actually since the MBR has the partition table I do this to restore onto a new disk drive.
1) Use partimage to restore the MBR.
2) Use cfdisk to make better partitions.
3) Use partimage to restore the system
4) Run mkswap on the swap partition

So it is not a one step operation if you restore onto a new disk.

It is a one step operation if you are restoring to a disk that already had Linux because Linux broke for some reason.

Last edited by stress_junkie; 01-01-2011 at 09:46 PM.
 
1 members found this post helpful.
Old 01-02-2011, 12:13 AM   #10
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
thanks a lot for the detailed response .

One last question ... How can 2GB fit onto a CD...

And also , another last question ...

Quote:
Limitations

Partimage does not support ext4 or btrfs filesystems.
from http://www.partimage.org/Main_Page

i use ext4 ... in this case , is clonezilla more suitable ?
 
Old 01-02-2011, 07:12 AM   #11
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Quote:
Originally Posted by silvyus_06 View Post
One last question ... How can 2GB fit onto a CD...
Ooops. I wasn't thinking. The 2 GB limit applies to single layer DVDs.

Quote:
Originally Posted by silvyus_06 View Post
from http://www.partimage.org/Main_Page
i use ext4 ... in this case , is clonezilla more suitable ?
I didn't know that. I installed my Ubuntu on an ext3 file system

I just looked at the Clonezilla web page. It appears to be able to handle any file system type. Also ext4 is supported for copying only used blocks.

It appears that Clonezilla is a better solution for you.

Last edited by stress_junkie; 01-02-2011 at 09:11 AM.
 
Old 01-02-2011, 06:38 PM   #12
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
@ stress_junkie i see that clonezilla only puts the image file in the source partition and is very hard to move it to another partition (i want to move it to a 200GB ntfs partition ) and the instructions seem very , very hard .. like chinese (!)

is there any danger if i try to copy the partition using the ext3 drivers of partimage ?

PS : lol man i downloaded system rescuecd just to find out that i had partimage on my hiren boot cd :\

EDIT : i don't know why my post got deleted .. anyways :

when using clonezilla to backup to my NTFS partition (the biggest one )

Before starting it says : ALL DATA ON THE PARTITION WILL BE LOST

does it really delete anything or just wants to scare me ... (because if it does , it really did ...)

Last edited by silvyus_06; 01-02-2011 at 09:33 PM. Reason: my recent post got deleted so i put this here...
 
Old 01-03-2011, 01:47 PM   #13
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
update : that happened to me because i was using device to device , not device to image ..

now when i select everything as desired in device to image option , when everything starts , i want to put the image on my 4GB usb flash drive to copy it afterwards to a dvd . but then it gives some error , says something about questioning me : is the disk full , but i formated the ntfs drive to fat32 and it didnt work and then to fat16 again it didn't work i don't know what to do .

it says to check /var/lib/ and a file , but if i press eneter , it shuts down , and if i don't press nothing , it stays like that . help me please.
thanks
 
Old 01-04-2011, 08:44 AM   #14
ashish_neekhra
Member
 
Registered: Nov 2007
Posts: 67

Rep: Reputation: 4
One of the easy way use dd to make a image of your current partition & then revert it if you loose some data. Follow these instructions.
 
Old 01-04-2011, 03:53 PM   #15
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
hey guys . thank you everyone . i used stress_junkie's idea about partimage . at first i was scared about the idea to try to copy ext4 filesystem using ext3 drivers. but since a few failed attempts to do that using clonezilla i entered the partimage and made the backup . i am still impressed how it compressed the whole thing to half


as of dd , now i used the puppy linux off my usb and saw that i can make it use dd to copy my hdd if i want . i will read that tutorial for my knowledge anyways . (it has an option there )

so i guess i'm getting geekier everyday .

one last question (lol , 3rd last question ) )

will it [partimage ] also compress to half my /home partition ( which is almost full of .iso files and media files ( mp3.)) )

or the old " media files get compressed better only with codecs " remains available

EDIT :
whoa the information on that blog is surprisingly awesome i like it alot i learned alot about dd.

Last edited by silvyus_06; 01-04-2011 at 09:01 PM.
 
  


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
Unrecognized root partition filesystem, need help with data recovery carlito11973 Linux - Hardware 3 11-10-2010 08:50 PM
Debian-Lenny: How To-make a recovery disk or partition? xiqtem Linux - Newbie 1 04-11-2009 08:03 PM
Need to copy a windows recovery partition from one HD to another. Chaves Slackware 3 09-03-2008 07:49 PM
Can I make Ubuntu mount the windows partition on startup? Dernhelm Linux - Newbie 3 06-28-2008 04:10 PM
Using linux to make a windows recovery image parkejr Linux - General 1 08-14-2003 04:15 AM


All times are GMT -5. The time now is 10:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration