LinuxQuestions.org
Review your favorite Linux distribution.
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 03-14-2004, 05:54 AM   #1
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
!Backup partition problem !


I would really appreciate some help here! I use mandrake 9.2. Here's my problem

I have 4 partitions in my 80 gb hard disk drive
(1) winxp ntfs formatted
(2) a game partition (to install winxp games) in fat32
(3) the linux swap partition
(4) the main linux partition in ext3

I have another disk (40 gb) formated as fat32 with mp3 only

I backup the whole disk with norton ghost 2003(which says it supports ext2/3/ etc). I make my image ok. I then insert my system rescue cd (downloaded from www.sysresccd.org ) and reboot. I mount my mp3 hd in a temp folder and then i grab the mbr of my 80 gb hd with the command dd if=/dev/hda bs=512 count =1 of=/path/to/mp3/disk/mbr.dd.

When i try 2 restore my system i restore it with the image i created pretty fine and quick.BUT when i reboot i c only some 99 99 99 . So i thought norton ghost didn't grab my mbr (although i used the image boot option). I insert the rescue cd , rebooted , mounted the mp3 hd , and restored my mbr with the dd command : dd if=/path/to/mp3/disk/mbr.dd bs=512 count =1 of=/dev/hda) . I reboot and ... the screen with the 99 99 99 again!

Being desperate i inserted the winxp cd and went 2 console mode from where i issued the fixmbr command. Rebooted and my winxp partition worked right. I then inserted my mandrake 9.2 cd and rebooted. I went through the classical installation screens in mandrake and the installation told me 2 upgrade to 9.2. I said yes , finished the installation in a couple of seconds and rebooted. My system then worked right with dual boot etc etc.(What the mandrake did in the upgrade proccess i found out later : it downgraded my updated from mandrake ftp rpm's !)

What am i doin' wrong? Why can't i make an image of my hd properly?What should i do?

Instead of doing all that fuss with the winxp cd's and mandrake etc etc could i just insert my rescue cd mount my 80 gb hd and just issue the /sbin/lilo command 2 write 2 my mbr?

PS1 The whole story happens exactly the same when i use partition magic 8.0 in winxp 2 resize my partitions . ( ihave 2 fixmbr with winxp cd , insert mandrake etc etc as mentioned before)

PS2 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 S ystem
/dev/ide/host0/bus0/target0/lun0/part1 * 1 791 6353676 7 H PFS/NTFS
/dev/ide/host0/bus0/target0/lun0/part2 792 2194 11269597+ f W in95 Ext'd (LBA)
/dev/ide/host0/bus0/target0/lun0/part3 2195 9729 60524887+ 83 L inux
/dev/ide/host0/bus0/target0/lun0/part5 792 2066 10241406 b W in95 FAT32
/dev/ide/host0/bus0/target0/lun0/part6 2067 2194 1028128+ 82 L inux swap

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 S ystem
/dev/ide/host0/bus0/target1/lun0/part1 1 4865 39078081 c W in95 FAT32 (LBA)


PS3 My fstab :

/dev/hda3 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda5 /mnt/Games vfat umask=0,codepage=869,iocharset=iso8859-7 0 0
/dev/hdb1 /mnt/MP3 vfat umask=0,codepage=869,iocharset=iso8859-7 0 0
none /mnt/cdrom supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-7 0 0
none /mnt/cdrom2 supermount dev=/dev/hdd,fs=udf:iso9660,ro,--,iocharset=iso8859-7 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,sync,codepage=869,iocharset=iso8859-7 0 0
none /mnt/removable supermount dev=/dev/sda1,fs=ext2:vfat,--,kudzu,codepage=869,iocharset=iso8859-7 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,ro,iocharset=iso8859-7 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
 
Old 03-14-2004, 07:32 AM   #2
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Anyone?
 
Old 03-14-2004, 08:21 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I have used Norton Ghost many times to restore NTFS and Linux images with no problem. I do normally boot into Linux with a boot floppy or rescue cd and restore the boot loader. My boot loader of choice happens to be grub but you can restore the lilo as well.

When using Ghost, you don't need to restore the entire mbr which includes the boot loader and the partition table. The only time I restore the entire mbr is before restoring an image with Partimage. That is because Partimage doesn't yet have a feature to create the partitions.

So, in your situation the restore went fine and all you needed to do was get back into Linux and restore the boot loader. If you are using lilo, the command is /sbin/lilo -L

Last edited by homey; 03-14-2004 at 08:39 AM.
 
Old 03-14-2004, 08:29 AM   #4
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
So after the disk restoration i boot with my rescue cd ( or a boot disk ) mount my 80 gb hd to a folder ( let's say /mnt/temp1) and i execute this command : /mnt/temp1/sbin/lilo -l .
Right?

Last edited by Braveheart1980; 03-14-2004 at 08:31 AM.
 
Old 03-14-2004, 08:37 AM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
All that you need to mount is the ( / ) root partition of Linux. If that is /dev/hda3 ,as it seems from looking at your /etc/fstab, then you would use the command:
mount /dev/hda3 /mnt/temp1
Then type:
chroot /mnt/temp1
Then type:
cd /mnt/temp1
Then type:
/sbin/lilo -L


That should do it. Reboot and see if your boot loader does it's thing.

Edit: I haven't used lilo for a while. I think that is supposed to be an upper case ( ell ) as in LLama or Lucy.

Last edited by homey; 03-14-2004 at 08:41 AM.
 
Old 03-14-2004, 08:39 AM   #6
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Thanks a lot homey . I'll give it a try .

BTW what does chroot does?
 
Old 03-14-2004, 08:46 AM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I love computers and the acronyms! My dad called it alphabet soup. But anywho, I suspect that chroot stands for Change Root. That makes your mounted partition the active root partition so you can run commands which are native to that system. In this case, Lilo.

PS: Don't forget to use the upper case L with the lilo command.
 
Old 03-14-2004, 08:50 AM   #8
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Thanks a lot homey!!!
 
Old 03-14-2004, 08:52 AM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You're welcome!
 
Old 03-14-2004, 09:11 AM   #10
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Just another thing homey : How do i make a boot disk?

I've tried 2 do it with mandrake control center but during the making of the boot disk process it tells me that there isn't enough free disk space in my floppy . How could that be since it's a 1440 floppy which is just formatted?
 
Old 03-14-2004, 09:19 AM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
The newer kernels are getting too big to fit onto a floppy. I don't know what you could do about that other than using cd#1 to boot into rescue mode.

Also, I have second thoughts about your not needing to restore the entire mbr. Because you have extended partitions, there is a danger of you not recreating them in the correct order or whatnot. Therefore, ignore everything I said about not restoring the partition table and go ahead with doing that.

But after the restore, you would just need to fix the boot loader.
 
Old 03-14-2004, 09:26 AM   #12
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
ok. i'l try 2 restore my mbr prior 2 running lilo.

I am having the same problem with partition resizing or when i make a new partition. I mean that when i resize or create a new partition with partition magic 8.0 and when it finishes and reboots i get the 99 99 99 screen. What should i do then? The previously captured mbr doesn't match the new one. What should i do then?
 
Old 03-14-2004, 09:33 AM   #13
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Another thing. I 've just inserted my mandrake cd 1 and went to rescue mode. Then it gave me some options. One was to re install boot loader. Would that do the trick?
 
Old 03-14-2004, 09:34 AM   #14
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Bummer! Norton Ghost allows you to change the size of partitions at the time of restore but if you want to do that DO NOT RESTORE THE PARTITION TABLE FROM THE MBR as that will mess things up real bad.
 
Old 03-14-2004, 07:13 PM   #15
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
So what can i do when i resize/create partitions with partition magic ? follow the above mentioned procedur without restoring the mbr?
 
  


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
backup partition table twantrd *BSD 1 08-20-2005 07:01 PM
Windows partition backup/restore golinari Linux - General 6 02-20-2005 02:26 PM
partition backup jackren Linux - Software 1 10-09-2004 11:03 AM
Using dd to backup a partition. cjrao Linux - Newbie 1 08-29-2004 12:51 AM
Why can't I restore a partition table backup containing a reiser partition? oldweasel Linux - Software 2 05-23-2004 12:11 AM

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

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