LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2004, 04:29 AM   #1
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
Partimage or ??? HELP!


I use mandrake 9.2 and tried to compile 2.6.1 kernel with no sucess (just after lilo system crashed). So i said "ok,no prob i'll restore my system with the image i made with partimage". But with NO lluck.

I made a partition of my linux using partimage 0.6.3 using system rescuecd a week (or so) before trying 2 compile my kernel. I restore it allright (no bugs or stuff).But when i rebooted i got a picture like that"

" L99 99 99 99 99 99 99 .."

and system hang!

The only solution left 2 me was 2 insert winxp cd go to console and fixmbr . (As u guessed i have a winxp partition also)
I am posting this message now from WinXP(which i hate like all MS products!).
I have formatted my linux partition with partition magic and installed mandrake 9.2 all the way from the beginning!

Here comes the big question:

How can i save and restore in case of emergency my linux parttition without having the same problem again??????Should i have used something in partitimage that i didn't(like mbr?)?SHould i use another program?

Thanx !
 
Old 01-25-2004, 02:35 PM   #2
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
this got me going when i had the same prob:
http://www.cpqlinux.com/ddbackup.html

although i like
dump -0f /path/to/partition_backup.dump /dev/sda2
or whatever since dump doesn`t grab empty space on a partition but reads an unmounted device from a boot disk. i suppose partimage does something similar but it doesn`t identify individual partitions on some of my computers. of course ymmv.

to be sure i always have a dd of the whole sys drive on another hd somewhere, as that hasn`t failed me yet.

Last edited by bdp; 01-25-2004 at 02:45 PM.
 
Old 01-31-2004, 07:19 PM   #3
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
nice! can i split the partition image so it can fit on cd's?

how do i restore my partition in case of ... ?
 
Old 01-31-2004, 09:10 PM   #4
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
splitting: i think dump does this since natively since it's good for tape backups but unsure about dd. the prog 'split' does this also.

restore,dd: go opposite direction with it, in this ex the whole drive, adapt at will:
archive : dd if=/dev/sda of=/mnt/temp/sda.dump
restore : dd if=/mnt/temp/sda.dump of=/dev/sda

restore,dump: restore -rf /mnt/temp/sda1.dump /dev/sda1

the man pages are very good for these commands.
 
Old 02-01-2004, 03:00 AM   #5
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Thanks a lot! I'll check them out!
 
Old 02-07-2004, 04:08 AM   #6
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
So what should i use ? dd or dump(interested in backing up linux partition , not the win one)? Does both dd and dumb grab the mbr? i wanna make backup files splitted into 702 mb files so they can fit in cd's! how will i do that ?

PS Ihave dual boot (winxp pro and mandrake 9.2). WinXP is first in my hd. Here is my fdisk -l
"
[root@localhost george]# fdisk -l

Disk /dev/ide/host0/bus0/target0/lun0/disc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 1601 12860001 c Win95 FAT32 (LBA)
/dev/ide/host0/bus0/target0/lun0/part2 1733 9729 64235902+ f Win95 Ext'd (LBA)
/dev/ide/host0/bus0/target0/lun0/part4 1602 1732 1052257+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part5 1733 8454 53994433+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part6 8455 9729 10241406 b Win95 FAT32

Partition table entries are not in disk order

Disk /dev/ide/host0/bus0/target1/lun0/disc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target1/lun0/part2 * 2 4865 39070080 f Win95 Ext'd (LBA)
/dev/ide/host0/bus0/target1/lun0/part5 2 4865 39070048+ b Win95 FAT32
"

what command should i realy use to compress and split the data to 702 mb parts? How should i do that? And how can i restore it in case of ...... ?

Last edited by Braveheart1980; 02-07-2004 at 04:28 AM.
 
Old 02-07-2004, 11:20 PM   #7
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
from http://www.cpqlinux.com/ddbackup.html ,
dd grabs the mbr when you do a
dd if=/dev/sda bs=512 count=1 of=/path/to/mbrBackup.dd

and dump doesn't ever grab the mbr afaik.
but dump does smarter backups of individual partitions.

as far as just grabbing a few partitions to backup, dd will grab all bits in a partition whereas dump only grabs what's used so backups are generally smaller. i'd say you should try both and see how it goes.

once you have a backup file you like, gzip it then use split to break it into pieces of desired size then burn. but i found my system backups on cd's were never any good when i needed them for whatever reason.

in terms of commands for your fdisk -l output i won't guess since i learned to avoid extended partitions from dos and thus use only primary partitions in linux, i don't know if it's different than what i do with my drives.

for restoring, boot to a boot disk and i'd do something like
dd if=/mnt/test/sdb1.dd of=/dev/sdb1
to restore sdb1 if using dd. man dump for details on that one, you format first and cd to where you want the restore root to be, then use the restore command.

if you really want to be sure, get another hd the size of your system one and dd the whole thing onto it and let it sit on a shelf until you need it, that always saves me in the end.

cheers, -bp
 
Old 02-08-2004, 03:38 AM   #8
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Cause i don't have THAT much disk space free i'll try backing up my linux partition with partimage and the mbr with dd. Put them all in cd's and hope that in the case of ..... whatever i'll have to restore the partitions with partimage and restore the mbr too with the dd command.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partimage salv236 Linux - Software 1 01-24-2005 08:51 AM
Partimage tbayer Linux - Software 3 12-17-2004 11:10 PM
partimage help bungle_42 Linux - Software 11 06-17-2004 09:40 AM
Help with Partimage?? maestro52 Linux - Software 6 01-17-2004 06:03 AM
Help with Partimage please sluggo Linux - General 3 11-25-2003 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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