Jump to content

Tips&Tricks Reinstalling operating systems in 5 minutes.


aru
 Share

Recommended Posts

 

ramfree17

Moderator

Joined: 18 Apr 2002

Posts: 1262

Location: Philippines

 

Post Posted: Wed Aug 14, 2002 4:50 pm Post subject: Reinstalling operating systems in 5 minutes.

_________________________________________________________________

 

 

use partimage. the one included in 8.2 DE works just fine.

 

i recently acquired a 60GB maxtor (keep your mouth shut JM, i think i read from somewhere how you feel about maxtor drives Very Happy ) that corrupts windows (yey!). unfortunately windows couldnt be driven off in this pc so i will have to reinstall it and waste a few hours in the process. why not image it? and so off i go...

 

- make sure that you have re-installed your other os on the most 'pristine' but usable state that you could. in my case it was loaded with updated drives, zonealarm, MS office, opera and an antivirus making them all installed in drive c (/dev/hda1).

 

- reinstall your bootloader. that frigging os wiped it again and im making sure it does it for the last time. Twisted Evil . use your installation disc to mount a rescue kernel and reinstall your favorite bootloader (LiLo in my case).

 

- log-in, su to root (NEVER, and i mean absolutely NEVER log in as root!) and unmount the partition that you will image

 

Code:

# umount /mnt/win_c

 

or

 

Code:

# umount /dev/hda1

 

.

 

(make sure you have installed the partimage when you do the next step. Very Happy )

 

- issue

 

Code:

# partimage -M -d save /dev/hda1 /path/to/saved.image

 

meaning

* -M means you wont backup the MBR. this makes it work for me and omitting this one produces an error.

* -d means no comments. omit this one if you are the forgetful type.

* save is the partimage directive

* the other two parameters is the target partition and destination file.

 

now for the fun part: restoring the image

 

- log-in, su to root (NEVER, and i mean absolutely NEVER log in as root!) and issue the following

 

Code:

 # partimage restore /dev/hda1 /path/to/saved.image/code]

 

you could read the manpage of partimage (recommended action as it is a short manpage. Smile )for more options but the one i did restored the image in about 3 minutes. and i dont have to hunt for the installation discs just to reinstall the bootloader! Cool

 

ciao!

 

[color=red]

 

[b]DOlson[/b]

Moderator

Joined: 16 Apr 2002

Posts: 2393

Location: Canada

Post Posted: Wed Aug 14, 2002 10:25 pm Post subject: Re:

Reinstalling operating systems in 5 minutes.

_________________________________________________________________

 

[/color]

 

Uhhh... Maxtor drives work just fine for me, but then JM probably thinks WD drives are the best thing since induced vomitting...

 

Anyhow, all jesting aside, this is very similar to Norton Ghost, but I am just wondering if I can make a bootdisk with this program on it, so that I can just boot from a disk or CD and reimage my drive that way. If not, then how are you supposed to backup your Linux install, since you can't unmount it while it's running? But maybe this is all in the manpage.

 

Sometime, I may give this all a go and post a quick tutorial on my website because I am still a huge fan of Norton Ghost, and have never thought to look for an alternative... Anyhow, ttyl.

 

[color=red]

 

[b]spider[/b]

Frequent user

Joined: 21 Jul 2002

Posts: 65

Post Posted: Thu Aug 15, 2002 3:54 am Post subject:

_________________________________________________________________

 

[/color]

 

but when I used partimag to backup my root partition which is 3.5G, it took me about an hour!

 

I use bz2 compression. is that the reason?

 

[color=red]

 

[b]cannonfodder[/b]

Moderator

Joined: 16 Apr 2002

Posts: 1056

Location: Rochester, NY, USA

Post Posted: Thu Aug 15, 2002 4:10 am Post subject:

_________________________________________________________________

 

[/color]

 

DOlson, take a peek at the download page for partimage and you will see a link to a downloadable ISO image containing partimage...

 

[color=red]

 

[b]ramfree17[/b]

Moderator

Joined: 18 Apr 2002

Posts: 1262

Location: Philippines

Post Posted: Thu Aug 15, 2002 4:23 am Post subject:

_________________________________________________________________

 

[/color]

 

[b]spider wrote:[/b]

[i]but when I used partimag to backup my root partition which is 3.5G,it took me about an hour!

I use bz2 compression. is that the reason? [/i]

 

hehehe, the title is [b]Reinstalling[/b] which i think implies restoring from backup. Wink

 

and yes, bz2 compression is the slowest. using gzip compression is acceptable though (tradeoff between speed and image size).

 

[b]ScapeGoats wrote:[/b]

[i]Anyhow, all jesting aside, this is very similar to Norton Ghost[/i]

 

that's the idea. but doesnt norton ghost require you to boot in dos or something ( i havent use it, and using partimage was my first try at imaging so that's a statement on how easy its usage is Very Happy )? if that is the case then ill stick with partimage since the mess-up with my harddrive cant touch my linux system Cool and i can restore windows from there.

 

ciao!

 

[color=red]

 

[b]spider[/b]

Frequent user

Joined: 21 Jul 2002

Posts: 65

Post Posted: Thu Aug 15, 2002 8:12 am Post subject:

_________________________________________________________________

 

[/color]

 

hehehe, the title is [b]Reinstalling[/b] which i

think implies restoring from backup. Wink

Thanks , it's the point Wink

 

[color=red]

 

 

[b]DOlson[/b]

Moderator

Joined: 16 Apr 2002

Posts: 2393

Location: Canada

Post Posted: Thu Aug 15, 2002 10:45 am Post subject:

_________________________________________________________________

 

[/color]

 

I use Norton Ghost to restore my Windows partition. This keeps Grub in my MBR. Works great. But Partimage is sounding nice... Gonna get that ISO. Thanks cannonfodder!

 

[color=red]

 

[b]cannonfodder[/b]

Moderator

Joined: 16 Apr 2002

Posts: 1056

Location: Rochester, NY, USA

Post Posted: Sun Aug 18, 2002 2:40 am Post subject:

_________________________________________________________________

 

[/color]

 

Your welcome Smile I believe partimage supports MBR restoring. Gotta warn you all though, there have a been a few times where I've restored a win2k and it wouldn't work. Not sure why. Same partition/hard drive.

 

[color=red]

 

[b]michael[/b]

Frequent user

Joined: 14 Jul 2002

Posts: 92

Post Posted: Sun Sep 01, 2002 8:50 pm Post subject: maxtor HD 60gb

it ...!!

_________________________________________________________________

 

[/color]

 

I have maxtor 60gb it work find with me and I have no problem with it.

 

[color=red]

 

[b]ramfree17[/b]

Moderator

Joined: 18 Apr 2002

Posts: 1262

Location: Philippines

Post Posted: Sun Sep 01, 2002 9:37 pm Post subject: Re: maxtor HD

60gb it ...!!

_________________________________________________________________

 

[/color]

 

linux runs fine but windows barfs every now and then. Smile

 

ciao!

 

[color=red]

 

[b]Vdubjunkie[/b]

Newbie

Joined: 07 Sep 2002

Posts: 19

Post Posted: Sat Sep 07, 2002 11:46 am Post subject:

_________________________________________________________________

 

[/color]

 

Twisted Evil

 

Maxtor, WD, Seagate, IBM, Quantum are all very good drives. Drives have come a long way! However, I mean for your life, STAY AWAY from FUJITSU drives like the life of your OS and/or data depended on it.. it does!

 

by the way.. on the subject. thanks for pointing out this util. Will have to check it out.

 

[color=red]

 

[b]ramfree17[/b]

Moderator

Joined: 18 Apr 2002

Posts: 1262

Location: Philippines

Post Posted: Mon Sep 09, 2002 3:40 pm Post subject:

_________________________________________________________________

 

[/color]

 

this is where it is stated that your mileage might vary. if some has found WD drives very good, i for one find fujitsu drives fairly good. i still have my 2GB fujitsu drive that serves as my portable floppy from and to work. i dont own a car and commute (and in here that means a lot of tension on the drives) and the drive is still fine. its been with me for 4 years now...

 

ciao!

 

[color=red]

 

[b]cybervegan[/b]

Newbie

Joined: 10 Oct 2002

Posts: 6

Location: Wirral, UK

Post Posted: Mon Oct 14, 2002 6:36 pm Post subject: What about DD?

_________________________________________________________________

 

[/color]

 

I have used DD to do this kind of thing successfully for years. Proably doesn't have all the features of partimg but does the trick:

 

to backup an entire disk drive image to tape (or another disk for that matter)...

 

dd if=/dev/hda bs=1048576 of=/dev/st0

 

to restore from backup...

 

dd if=/dev/st0 bs=1048756 of=/dev/hda

 

If you want to get smart, you can do:

 

dd if=/dev/hda bs=1048576 | gzip > /dev/st0

 

gunzip < /dev/st0 | dd if=/dev/st0 bs=1048756 of=/dev/hda

 

works for me!

 

 

 

[i][b]Editor's note:[/b] This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).[/i]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...