LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-05-2007, 12:39 PM   #16
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15

yes, i had 3 partitions and cfdisk shows them correctly(the size is the same). Only fdisk shows this extended partition.
 
Old 05-05-2007, 12:48 PM   #17
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,485

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
I think you have created an erroneous W95 extended partition.
Try using cfdisk to delete the hdc2 partition.
 
Old 05-05-2007, 01:02 PM   #18
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
are u sure it would not delete cylinders from 877 to 4870?
 
Old 05-05-2007, 01:06 PM   #19
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,485

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
It will not delete any of your data from the disk. It will only change the contents of the MBR. You can always change it back if it does not work.
 
Old 05-05-2007, 01:15 PM   #20
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
could u tell me how to backup mbr in slackware?
Or i should just copy the partition table file somewhere?

Last edited by K05T9; 05-05-2007 at 01:18 PM.
 
Old 05-05-2007, 01:20 PM   #21
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,485

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
From http://www.linuxquestions.org/questi...06#post1848006

Quote:
In this example, sda is the source. Sdb is the target. Do not reverse the intended source and target. Surprisingly many people do. Notrunc means 'do not truncate the output file'. Noerror means to keep going if there is an error. Normally dd stops at any error.
Copy MBR only of a hard drive: [/color]
Code:

dd if=/dev/sda of=/home/sam/MBR.image bs=446 count=1

This will copy the first 446 bytes of the hard drive to a file. If you haven't already guessed, reversing the objects of if and of, in the dd command line reverses the direction of the write.
 
Old 05-05-2007, 01:36 PM   #22
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
if i delete extended partition, it deletes all partitions except first one.
 
Old 05-05-2007, 01:44 PM   #23
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
i guess the boot sector of primary windows partition is broken, and i need to repair it somehow.
 
Old 05-05-2007, 06:52 PM   #24
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,445

Rep: Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068
First, do *not* go deleting any partitions. That partition layout is fine.
Quote:
When i load windows, it just does not find the partition and asks to reboot.
What does this mean ???.
Explain fully - are these messages from Windows or grub ???. That is, is Windoze booting successfully (from grub) but then dying ???.
 
Old 05-05-2007, 06:59 PM   #25
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
i see boot screen. choose windows. and error message shows up, don't remember exactly, but it's mbr error.
I can go for restart if it is so important, but, believe me, it's not windows error.

Last edited by K05T9; 05-05-2007 at 07:03 PM.
 
Old 05-05-2007, 07:39 PM   #26
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,445

Rep: Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068
Forget I mentioned grub
Have you tried running a lilo command to make sure that is o.k. ???.
 
Old 05-05-2007, 07:43 PM   #27
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
i tried lilo.
Oh, there's an error message: a disk read error occured

Last edited by K05T9; 05-05-2007 at 07:49 PM.
 
Old 05-05-2007, 08:10 PM   #28
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
there is a quite big post about this problem
http://www.hardwareanalysis.com/cont...c/19004/?o=280
 
Old 05-06-2007, 05:26 AM   #29
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 129

Rep: Reputation: 16
Quote:
Originally Posted by allend
Yes, there is a problem.
hdc1 starts at 1 and ends at 876.
hdc2 starts at 877 and ends at 4870. - This end point is wrong.
hdc5 starts at 877 and ends at 4159. - This start point is wrong.
hdc6 starts at 4160 and ends at 4870.
NO! It's RIGHT!

hdc2 is extended partition and "embraces" hdc5 and hdc6!

to fix:
from Slackware. Check if a mbr backup exists in /boot in file like boot.xxxx
from Windows. Put your cd, boot in recovery console. fixmbr and fixboot (I don't remember the exact commands) fixmbr /? to learn. With fixmbr from Windows (probably with Slackware too) you gone LOOSE access to slackware. So, you are gonna need to boot with slack cd 1. I chroot to my root partition and ran lilo again.

mkdir /mnt/myslack
mount /dev/hdc6 /mnt/myslack
chroot /mnt/myslack
vi /etc/lilo.conf (if needed)
lilo

probably you are ok now..

Make a backup of your MBR because it's annoying to do all this stuff.
 
Old 05-06-2007, 10:40 AM   #30
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,392
Blog Entries: 3

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
Quote:
Originally Posted by ludist
NO! It's RIGHT!

hdc2 is extended partition and "embraces" hdc5 and hdc6!

to fix:
from Slackware. Check if a mbr backup exists in /boot in file like boot.xxxx
from Windows. Put your cd, boot in recovery console. fixmbr and fixboot (I don't remember the exact commands) fixmbr /? to learn. With fixmbr from Windows (probably with Slackware too) you gone LOOSE access to slackware. So, you are gonna need to boot with slack cd 1. I chroot to my root partition and ran lilo again.

mkdir /mnt/myslack
mount /dev/hdc6 /mnt/myslack
chroot /mnt/myslack
vi /etc/lilo.conf (if needed)
lilo

probably you are ok now..

Make a backup of your MBR because it's annoying to do all this stuff.
Hi,

I agree with your solution in part. I would add for the 'lilo';
Code:
#lilo -v -t -b /dev/hda     #change to the user /dev/hd
                            #-t will test lilo 'do man lilo'
#lilo -v -b /dev/hda        #write lilo to MBR /dev/hda
The OP should 'man lilo' and 'man lilo.conf' for more information.
As for the fixmbr
command Microsoft shows the format. For the fixboot
command example.

If the OP uses the Microsoft commands then these will restore the windows. Then the OP will need to use the chroot series for the Slackware that 'ludist' suggests to get the bootloader working again.

Note: A lot of newbies confuse the use of the extended partitions. If you create a extended partition on /dev/hda as /dev/hda3 the first partition within the extended /dev/hda3 will be /hda5. This would be so in any of the partitions that you would create as extended, be it /hda1, /hda2, /hda3 or /hda4. The first partition within the extended will be /hda5 on the defined extended device.


You could reference the partition section of the 'The Linux System Administrator's Guide: Version 0.7'.

Last edited by onebuck; 05-06-2007 at 10:44 AM.
 
  


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
Does a Windows XP repair install overwrite the MBR? BigFoot13 Linux - General 11 05-06-2007 02:40 PM
want to nuke the MBR & create new MBR di11rod Linux - Software 9 12-30-2006 09:25 AM
Restoring MBR :partitions are detected only after the reboot after MBR restoration? sharathksin Linux - Newbie 2 04-14-2006 08:48 AM
Using the installation CD to boot and repair the MBR in Mandrake 10 dvela Mandriva 5 08-19-2004 10:17 AM
How to repair win-destroyed MBR without a floppy J_Szucs Linux - Newbie 7 12-25-2002 06:51 PM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration