Bug 103031

Summary: No operating system found
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Marco Michna <mmichna>
Component: BasesystemAssignee: Jiri Srain <jsrain>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P5 - None CC: aj, burnus, duwe, exigentsky, linuxblacksmith, nix, peter
Version: Beta 4 Plus   
Target Milestone: ---   
Hardware: i386   
OS: SUSE Other   
Whiteboard:
Found By: Component Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 97395    
Attachments: Copy of MBR
YaST2 logs
YaST2 logs
New MBR without bs=446
log from failed install
C program to check and maybe fix the problem
YaST logs; rather large as this is an update with existing logs from the old system
Disk Image
blkid output
fdisk -l output
save_y2logs
/var/log/YaST2 tar ball
dd if=/dev/hda of=mbr bs=512 count=1

Description Marco Michna 2005-08-09 13:56:39 UTC
I can't boot into the system anymore after I had updated my Laptop from 9.3 to    
10.0. It displays "No operating system found"
Comment 1 Torsten Duwe 2005-08-10 10:33:29 UTC
This is a different one from #100728, as we have seen. Very strange... 
Comment 2 Torsten Duwe 2005-08-11 09:28:45 UTC
*** Bug 104034 has been marked as a duplicate of this bug. ***
Comment 3 Jiri Srain 2005-08-11 11:01:15 UTC
*** Bug 103011 has been marked as a duplicate of this bug. ***
Comment 4 Linux Smith 2005-08-12 02:57:19 UTC
Created attachment 45848 [details]
Copy of MBR

Used # dd if=/dev/hda of=/foo/mbr.iso bs=446 count=1 to capture image
Comment 5 Linux Smith 2005-08-12 03:00:41 UTC
Created attachment 45849 [details]
YaST2 logs

Last 2 posts from Bug 103011.  Atatched are the YaST2 logs
Comment 6 Linux Smith 2005-08-12 03:02:51 UTC
Created attachment 45850 [details]
YaST2 logs

Last 2 posts from Bug 103011.  Atatched are the YaST2 logs
Comment 7 Torsten Duwe 2005-08-12 13:31:41 UTC
good news / bad news: 
 
Using the HD image of the failing machine in qemu works flawlessly. 
So this is not a problem of the MBR code alone but only with interaction from 
the BIOS. The exact circumstances remain to be determined. 
Comment 8 Bryan Perry 2005-08-12 13:48:26 UTC
I am seeing this same issue on a Toshiba Portege laptop that only has 1 internal
hard drive. I have attempted the install several times, and even fdisk'd the
drive between 2 installs with no change in results. Is there any information I
can provide to help?
Comment 9 Torsten Duwe 2005-08-12 13:59:30 UTC
Generally, it looks like BIOS information is required here. 
I assume the behaviour on some int 0x13 calls makes a difference. 
 
To get a working system meanwhile, Marco "Daemon" Michna has reported a /boot 
partition at the beginning of the disk saves the day. 
Comment 10 mack sessoms 2005-08-12 17:05:13 UTC
I noticed that the install copies the packages from cd1 to disk, thinks its done
and then reboots.  Never does ask for disk 2,3 or 4.  I am seeing this problem
on a compaq evo 500 desktop.
Comment 11 Torsten Duwe 2005-08-12 17:23:00 UTC
That's a different issue. This bug is about the system failing to reboot. 
 
Could people affected attach their whole MBR, please (see dd command above, 
but WITHOUT the bs=446, result must be a 512-byte file), in addition to what 
the BIOS setup's main page says about those disk's geometry? 
 
Comment 12 Linux Smith 2005-08-12 17:27:57 UTC
(In reply to comment #10)
> I noticed that the install copies the packages from cd1 to disk, thinks its done
> and then reboots.  Never does ask for disk 2,3 or 4.  I am seeing this problem
> on a compaq evo 500 desktop.

My experience shows that is correct behavior.  If it was able to boot, it would
complete the install by running through the rest of the disk, prompting for
root's password, user creation, configure H/W, etc..
Comment 13 Linux Smith 2005-08-12 17:43:17 UTC
Created attachment 45942 [details]
New MBR without bs=446

Used # dd if=/dev/hda of=/foo/mbr.iso count=1 to capture image

Output on screen:
Rescue:/ # dd if=/dev/hda of=/foo/mbr1.iso count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.023333 seconds, 21.9 kB/s
Comment 14 Linux Smith 2005-08-12 17:53:31 UTC
AMIBIOS SETUP - STANDARD CMOS SETUP

Pri Master:
Type - User
Size - 3249Mb
Cyln - 6296
Head - 16
WPcom - 0
Sec - 63
LBA Mode - On
Blk Mode - On
PIO Mode - 4
32Bit Mode - Off
Comment 15 Linux Smith 2005-08-12 17:57:41 UTC
(In reply to comment #7)
> good news / bad news: 
>  
> Using the HD image of the failing machine in qemu works flawlessly. 
> So this is not a problem of the MBR code alone but only with interaction from 
> the BIOS. The exact circumstances remain to be determined. 

Not sure if this helps any, but SuSE 9.3 Pro does NOT have this problem.
Comment 16 Linux Smith 2005-08-12 19:11:47 UTC
(In reply to comment #9)
 
> To get a working system meanwhile, Marco "Daemon" Michna has reported a /boot 
> partition at the beginning of the disk saves the day. 

Just noticed that if I change SWAP to use /dev/hda2 and / to use /dev/hda1, the
install is able to finish with no error messages.  The install was automatically
partitioning swap to be /dev/hda1 and / to be /dev/hda2.  I have tested this
using both /dev/hdc and /dev/hda.
Comment 17 Richard Bos 2005-08-13 20:25:32 UTC
*** Bug 104566 has been marked as a duplicate of this bug. ***
Comment 18 Peter Nixon 2005-08-14 15:05:48 UTC
As per my bug report 104566 here is the recovery procedure: 
  
* Boot from CD1  
* Select "Rescue System" from the boot menu  
* Pick a keyboard map when it asks  
* Login as "root"  
* Type "mkdir suntel"  
* Type "fdisk -l /dev/hda" (or /dev/sda etc) to list your partition table  
* Mount the correct "Linux" root partition which in my case is /dev/hda3 to   
the suntel directory with "mount /dev/hda3 suntel"  
* type "chroot suntel"  
* type "mount /proc"  
* type "grub-install /dev/hda" (or /dev/sda or whatever your boot hard disk   
is)  
* type "umount /proc"  
* type "exit"  
* type "umount suntel"  
* eject CD1 from your drive  
* type "reboot"  
  
Your system should not boot correctly into linux and continue the rest of   
the installations (CDs 2-4) 
 
Note: That this uses the version of grub from your newly updated hard disk to 
re-write the MBR so therefore grub does know how to deal with the hard disks 
and partition structure... Weird problem. 
 
I had this problem on my IBM R50e notebook. 
Comment 19 mack sessoms 2005-08-15 13:42:12 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > I noticed that the install copies the packages from cd1 to disk, thinks its done
> > and then reboots.  Never does ask for disk 2,3 or 4.  I am seeing this problem
> > on a compaq evo 500 desktop.
> 
> My experience shows that is correct behavior.  If it was able to boot, it would
> complete the install by running through the rest of the disk, prompting for
> root's password, user creation, configure H/W, etc..

It never asks me for root password, user creation, etc.  Just reboots, then No
operating system found.
Comment 20 Klaus Kämpf 2005-08-16 09:03:09 UTC
Created attachment 46137 [details]
log from failed install
Comment 21 Klaus Kämpf 2005-08-16 09:04:56 UTC
Thomas, Arvin, the ycp code complains about a wrong list index at line 584: 
StorageDevices.ycp:198 invalid index 0 (max -1) in YCPValue 
YCPListRep::value(int) const 
Comment 22 Klaus Kämpf 2005-08-16 09:06:01 UTC
Adrian just experienced the same bug on his laptop. 
Comment 23 Klaus Kämpf 2005-08-16 09:07:13 UTC
Sorry, discard comments 20-22, wrong bug :-( 
Comment 24 mack sessoms 2005-08-16 12:33:29 UTC
(In reply to comment #16)
> (In reply to comment #9)
>  
> > To get a working system meanwhile, Marco "Daemon" Michna has reported a /boot 
> > partition at the beginning of the disk saves the day. 
> 
> Just noticed that if I change SWAP to use /dev/hda2 and / to use /dev/hda1, the
> install is able to finish with no error messages.  The install was automatically
> partitioning swap to be /dev/hda1 and / to be /dev/hda2.  I have tested this
> using both /dev/hdc and /dev/hda.

I switched my partitioning in this way and it worked for me as well.
Comment 25 Torsten Duwe 2005-08-16 15:18:32 UTC
The solution seems to be: 
 
1st: check what the BIOS thinks the disk's geometry is. 
     See the main setup screen or alike, or, once linux is running, 
     insmod edd and see /sys/firmware/edd/int13_dev80/legacy_* 
 
2nd: make sure the active partition's LBA matches the C/H/S address. 
     use fdisk "x"pert menu to adjust it to the BIOS' geometry. After 
     "r"eturn to the main menu, "l"ist will inform you of potential 
     problems.  
 
This all probably doesn't matter as long as the BIOS' LBA read works 
perfectly, but the default case is that the BIOS is broken in one way or the 
other. Sometimes LBA read is affected... 
 
Jiri, can we implement the above in any way? Note that only the C/H/S address 
of "our" Linux partition needs to be changed to match the LBA, a few bits to 
change in the MBR. 
Comment 26 Jiri Srain 2005-08-17 07:20:39 UTC
Torsten, I need a non-interactive solution, fdisk is unusable for me. 
 
As far as I understand your comment, the solution means to modify the contents 
of MBR in some cases, but it is not specified how to do it. Also, we shouldn't 
modify it if it contains generic code, or vendor-specific code. 
 
Could you, please, provide a script, which does it all? Or at least which 
detects the wrong situation (in which I would fallback to boot loader in MBR)? 
Comment 27 Torsten Duwe 2005-08-17 09:36:22 UTC
What do you use to manipulate the partition table? Just point me at the code 
and I'll hack something up. 
Comment 28 Torsten Duwe 2005-08-17 14:35:16 UTC
Created attachment 46324 [details]
C program to check and maybe fix the problem

Can everyone experiencing this problem compile and run this test program,
please?
Comment 29 Torsten Duwe 2005-08-17 14:37:51 UTC
If this program does not report an error on the active partition, your problem 
lies somewhere else. 
Comment 30 Linux Smith 2005-08-17 21:50:42 UTC
(In reply to comment #28)
> Created an attachment (id=46324) [edit]
> C program to check and maybe fix the problem
> 
> Can everyone experiencing this problem compile and run this test program,
> please? 

Not sure how you want to test this.  When I ran this from a server in rescue
mode, it produced the following errors.

./FixCHS.c: line 8: unsigned: command not found
./FixCHS.c: line 98: unexpected EOF while looking for matching `''
./FixCHS.c: line 156: syntax error: unexpected end of file
Comment 31 Jiri Srain 2005-08-18 08:36:32 UTC
Torsten, how and when am I supposed to run the program? It doesn't seem to 
write anything to MBR... 
Comment 32 Torsten Duwe 2005-08-18 09:59:12 UTC
Jiri: As I wrote in a private e-mail Wed, 17 Aug 2005 15:49:08 +0200: 
"The write is still #ifdef'ed out and commented out..." 
So that nobody gets hurt until it's at least a few times tested. 
 
The usage is e.g "FixCHS /dev/hda 2" assumed that you boot off the primary 
P-ATA master, second partition. Always give it a whole disk as 1st arg. 
Optionally number 1-4 for a primary part to fix (with the write enabled in the 
source, of course ;-) Otherwise it will only report. 
 
"Linux": the magic word is "... compile ...". I used 
"gcc -m32 -O2 -Wall -o FixCHS FixCHS.c" to achieve this. You'll need to do 
this from an installed system, as the rescue most likely has no compiler. 
 
Comment 33 Jiri Srain 2005-08-18 12:28:06 UTC
OK, also am I supposed not to change anything now? How do you want it to be 
tested? 
 
Otherwise, I need to know when do you want me to run it (before GRUB is 
installed, after GRUB is installed, doesn't matter,...) 
Comment 34 Torsten Duwe 2005-08-18 12:47:38 UTC
Take out the #ifdef notyet and the "/* */" comment chars. 
Compile a 32-Bit binary. (See above gcc command) 
Get it into the installation environment. 
Run it any time before the reboot with the int13-0x80 disk as first arg, and 
the number of the linux partition you installed grub on as the second, 
IFF you installed a generic MBR and activated the former partition. 
 
Running the program shouldn't hurt, unless there's some weird other MBR code 
that has different requirements (The one Windoze installs works the same as 
the one we use!) 
Comment 35 Linux Smith 2005-08-18 15:49:53 UTC
Ok, sorry about not seeing the compile piece.  :)  Compiled FixCHS.c as mention
in comment #32, (used "gcc -m32 -O2 -Wall -o FixCHS FixCHS.c"), on another
machine running SUSE10.  I copied FixCHS to a floppy.  I reinstalled and stop
the first reboot.  Mounted the floppy and ran the program.

/media/floppy # ./FixCHS /dev/hdc 2
Partition 2 mismatch
[ 00 01 21 ] [5f 01 41 ] (Fixed)

/media/floppy # fdisk -l
Disk /dev/hdc: 3249 MB, 3249340416 bytes
255 heads, 63 sectors/track, 395 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1          33      265041   82  Linux swap / Solaris
/dev/hdc2   *          34         395     2907765   83  Linux

Rebooted and still get "No Operating System" message.

Is this how you wanted it tested?
Comment 36 Torsten Duwe 2005-08-18 16:04:56 UTC
Yes. Thanks. The writing code is disabled, for safety reasons, so the "Fixed" 
is a fake, it doesn't change anything. The next beta will run this program in 
"armed" mode. 
 
BTW, isn't this system booting off /dev/hda? 
 
Comment 37 Torsten Duwe 2005-08-18 16:12:28 UTC
If you're daring you can edit FixCHS.c according to comment #34's first line, 
to arm the program. 
Comment 38 Linux Smith 2005-08-18 16:24:48 UTC
(In reply to comment #36)
 
>  
> BTW, isn't this system booting off /dev/hda? 
>  

I have 2 PC's that are identical except one has the IDE drive as master on
secondary (/dev/hdc), and the other has the IDE drive as master on primary
(/dev/hda).  On both boxes I get the same results.  

BTW since these are test boxes, I am willing to try whatever I can to help out.
Comment 39 Linux Smith 2005-08-18 18:02:18 UTC
(In reply to comment #37)
> If you're daring you can edit FixCHS.c according to comment #34's first line, 
> to arm the program. 

Sorry, but I guess I am missing something.  I tried comment #34 of, "Take out
the #ifdef notyet and the "/* */" comment chars.", but I get the following error.

Modified:

#ifdef notyet
              /* write(fd, buf, 512); */
#endif

To:

              write(fd, buf, 512);
#endif

results:
dellc600:~/temp # gcc -m32 -O2 -Wall -o FixCHS FixCHS.c
FixCHS.c:145:2: error: #endif without #if

If I remove the lines "#ifdef notyet" and "#endif", and change "/* write(fd,
buf, 512); */" to "write(fd, buf, 512);" it compiles without any errors.

Now when I run it, I still get the fixed message.  But when I reboot, I get the
follwing error on both the hdc and hda PC's:

GRUB Loading stage1.5.


GRUB loading, please wait...
Error 17

and a blinking cursor

Did I modify FixCHS.c correctly?
Comment 40 Torsten Duwe 2005-08-18 22:50:06 UTC
Yes, perfectly. You're now 2 steps further into the boot process. 
Does the partition in question still contain a valid file system? 
 
Anyway, for you the original problem is solved; a new install (be it the whole 
installation or just the boot loader) should fail no more. 
Comment 41 Jiri Srain 2005-08-19 12:22:54 UTC
YaST now calls the armed version of the script while installing if 
- the generic code is being written to MBR 
and 
- a partition is activated 
 
This should solve the problem. 
 
Done in SVN, will go to Beta3. 
Comment 42 Torsten Duwe 2005-08-19 13:09:07 UTC
Stop the Press! 
 
This is cruicial: 
 
@@ -66,6 +66,8 @@ 
 check_part(int n, int do_fix) 
 { 
   int c, h, s; 
+  unsigned LBA; 
+   
    
   part_entry * parttab = (part_entry *)(buf+PARTTAB_OFFSET); 
   n--; 
@@ -75,7 +77,9 @@ 
   if(parttab[n].sysId == 0)    /* unused partition */ 
     return 0; 
  
-  set_hsc(h,s,c,parttab[n].lstart); 
+  LBA = parttab[n].lstart; 
+   
+  set_hsc(h,s,c,LBA); 
 
 
I'll mail you the current source. 
Comment 43 Linux Smith 2005-08-19 14:03:07 UTC
(In reply to comment #40)
> Yes, perfectly. You're now 2 steps further into the boot process. 
> Does the partition in question still contain a valid file system? 
>  
What is the best way to test if you have a valid file system?

I tried to reinstall, and right after agreeing to the license agreement I get a
popup window with the follwing text.

The partitioning on disk /dev/hda is not readable by partitioning tool parted,
which is used to change the partition table.

You can use the partitions on disk /dev/hda as they are.  You can format them
and assign mount points to them, but you cannot add, edit, resize or remove
partitions from that disk with this tool.

And I have an OK button.

On my /dev/hdc PC, I had to use fdisk to delete everything to get it back to a
working state.  After fdisking the drive I can then change the partitions in YaST.
Comment 44 Torsten Duwe 2005-08-19 14:24:06 UTC
The pop-up is because the serious bug in my code that the patch in comment #42 
(sic!) fixes. And this is also why I called it "daring" in comment #37. 
 
It should help to delete and re-create the partition in question, preferably 
with a tool that respects the BIOS' c/h/s mapping. 
Comment 45 Linux Smith 2005-08-19 14:45:33 UTC
No problem... Let me know if you would like for me to try any additional test or
patches.
Comment 46 Peter Nixon 2005-08-19 15:08:59 UTC
Please note that modifying the grub setup in yast from a fully working SUSE 10  
Beta 1 system also leaves my machine unable to boot with the same problem. The  
procedure in Comment #18 once again fixes the problem. Why is yast not  
correctly running grub-install /hard/disk ???  
Comment 47 Olaf Hering 2005-08-23 06:39:32 UTC
this FixCHS is now part of yast2-bootloader.
To compile it, a 32bit devel enviroment is required.
This moves yast2-bootloader past baselibs-32bit and extends the rebuild cycle
unneccessary.
Please move that simple C file to some other package, I'm sure it will never change.

remind me why it has to be 32bit anyway? I see unsigned int and unsigned char there.
Comment 48 Jiri Srain 2005-08-23 06:46:32 UTC
Hmm, any suggestion to which package? I could put it into master-boot-code,  
but this one is shipped with the BSD license (and FixMBR contains a piece of  
fdisk code - according to comments).  
  
Torsten, would it be possible to put it into the GRUB package? Well, it  
doesn't make sense either, as it is needed for LILO as well, but creating a  
new package is not possible (according to schedule). 
 
And no, I don't know why it has to be 32-bit, but as it fiddles with the MBR 
code, I guess there is a reason. 
  
Torsten, any idea?  
Comment 49 Torsten Duwe 2005-08-23 09:54:25 UTC
master-boot-code is perfect. The snippet from fdisk is buggy anyways, a 
rewrite more than welcome (I'll do it myself, no prob). 
 
This would ease the merge with #105828 a lot ! 
 
Comment 50 Torsten Duwe 2005-08-23 11:12:51 UTC
Updated Code with sane Copyright in your Inbox, Jiri. Please put into 
master-boot-code! 
 
Comment 51 Jiri Srain 2005-08-23 12:01:34 UTC
Updated master-boot-code package has been checked in already, yast2-bootloader 
without FixCHS is in SVN and will be submitted after beta3 is out. 
Comment 52 Jiri Srain 2005-08-23 12:23:08 UTC
*** Bug 106593 has been marked as a duplicate of this bug. ***
Comment 53 Joachim Werner 2005-08-28 17:14:29 UTC
Is this one supposed to be fixed in beta3 or AFTER beta3? 
 
I've just encountered the problem with an SL 9.2.9 late beta to SL 10.0 beta3 
update. 
 
"No operating system" after the reboot. 
 
Making this a blocker in case it is supposed to be fixed for beta3. 
 
Should I attach any logs? 
Comment 54 Jiri Srain 2005-08-29 08:00:11 UTC
Yes, attach the logs, please. 
Comment 55 Olaf Hering 2005-08-29 08:06:00 UTC
at least the output of

dd if=/dev/hda of=disk.img bs=1024 count=1
fdisk -l
blkid
Comment 56 Larry Ewing 2005-08-30 23:50:08 UTC
I'm seeing this with beta2 and beta3 on an ibm thinkpad t42p.  I believe beta1
installed without problems.
Comment 57 Alex Radu 2005-08-31 08:19:33 UTC
I was just about to report the same problem. The trouble is with my Toshiba
Tecra A4.
Comment 58 Jiri Srain 2005-08-31 08:54:35 UTC
Can someone, please, provide information requested in comments #54 and #55 
(from Beta3 or Beta4 once it is out)? I cannot reproduce it and without logs I 
cannot find what's wrong or fix it.  
Comment 59 Joachim Werner 2005-08-31 16:42:06 UTC
I'll post my YaST log folder and the info from #55 in a minute. 
Comment 60 Joachim Werner 2005-08-31 17:31:28 UTC
Created attachment 48344 [details]
YaST logs; rather large as this is an update with existing logs from the old system
Comment 61 Joachim Werner 2005-08-31 17:32:06 UTC
Created attachment 48345 [details]
Disk Image
Comment 62 Joachim Werner 2005-08-31 17:32:34 UTC
Created attachment 48346 [details]
blkid output
Comment 63 Joachim Werner 2005-08-31 17:33:01 UTC
Created attachment 48347 [details]
fdisk -l output
Comment 64 Christoph Thiel 2005-08-31 22:34:37 UTC
*** Bug 114429 has been marked as a duplicate of this bug. ***
Comment 65 Jiri Srain 2005-09-01 08:51:31 UTC
*** Bug 103761 has been marked as a duplicate of this bug. ***
Comment 66 Christoph Thiel 2005-09-01 13:05:29 UTC
Actually there is no info missing in this bug. Fixed packages have been
submitted for RC1. Let's leave this bug open until we tested the fix.
Comment 67 Jiri Srain 2005-09-02 08:25:13 UTC
OK, as the fixed package has been submitted, I'm marking this bug as  
resolved/fixed. 
 
Please, reopen (and attach new logs) if you still have problems. 
Comment 68 Forgotten User ZhJd0F0L3x 2005-09-05 14:44:06 UTC
still happens with beta4plus
Comment 69 Forgotten User ZhJd0F0L3x 2005-09-05 14:48:24 UTC
what logs do you want / need?
This was a fresh installation, /dev/hda1 is swap, /dev/hda2 is /root, no other
partitions, no windows on the machine.
Comment 70 Jiri Srain 2005-09-05 14:53:31 UTC
If you already rebooted, then tar /var/log/YaST2. If you are before reboot, 
tar both /var/log/YaST2 and /mnt/var/log/YaST2. 
Comment 71 Forgotten User ZhJd0F0L3x 2005-09-05 14:55:59 UTC
Created attachment 48815 [details]
save_y2logs

of course i rebooted, otherise we would not have seen "no operating system" ;-)

Logs salvaged with rescue system.
Comment 72 Jiri Srain 2005-09-05 15:19:23 UTC
Hmm, this is the result of the policy "Do not touch MBR if there is generic  
code or unknown code". In this case, Torsten's script detected Generic MBR,  
thus MBR wasn't touched.  
  
So, Torsten, what to do? Run FixMBR even if code in MBR wasn't touched? Is it 
safe? Doesn't it make things even worse? 
Comment 73 Torsten Duwe 2005-09-05 15:39:20 UTC
Nope, FixCHS on _our_ partitions is always a good idea (all of them :-). fdisk 
is broken (admitted in its manpage), and for parted I don't know. With 
LBA-enforcing boot mechanisms this isn't so much of a problem, but we have to 
deal with a lot of legacy stuff in this area. 
 
I would only recommend against running FixCHS for partition types of ancient 
OSes, that might rely on a particular C/H/S; OTOH, these will ensure for 
themselves that the mapping is correct and FixCHS shouldn't be needed on these 
anyways. 
Comment 74 Torsten Duwe 2005-09-05 15:40:54 UTC
BTW, it's a good idea not to waste the first cylinders in a primary partition 
as swap... 
Comment 75 Forgotten User ZhJd0F0L3x 2005-09-05 16:01:07 UTC
That's the Yast recommended setup. Our new trainee installed the system, i'm
pretty sure he did nothing special.
Comment 76 Peter Nixon 2005-09-06 09:27:50 UTC
I was under the impression that it was a good idea to use the first cylinders 
in a partition for swap as it was faster... 
Comment 77 Torsten Duwe 2005-09-06 10:40:34 UTC
Indeed (assumed you meant to say "disk"). But as we race drivers say: 
"To finish first, you have to finish first." A system that doesn't boot isn't 
fast ;-) And once you start to swap, you're _a_lot_ slower than  with a little 
more memory. 
Comment 78 Peter Nixon 2005-09-06 10:59:35 UTC
Yes. I meant disk.  
I also agree that a system that doesnt boot isnt fast, however Linux (LILO and  
Grub) have supported "swap as first partition" configuration since at least 
1998. I dont see why this should change now... 
RAM is also cheap, and preferred of course, however in the real world most 
systems at some time in their life have to rely on swap. Why would you make it 
less efficient that necessary? 
Comment 79 Jiri Srain 2005-09-06 12:02:44 UTC
Torsten, I now (just committed to SVN) run fix_chs on each partition which is 
being activated regardles whether the MBR itself is changed. 
 
Hope it is what you wanted (if not, please, reopen ASAP). 
 
Resolving as FIXED. 
Comment 80 Adrian Schröter 2005-09-07 07:40:29 UTC
does still happen with RC1 here  
Comment 81 Jiri Srain 2005-09-07 09:12:07 UTC
And RC1 logs? I need to know whether fix_chs was run. 
 
Also attach the resulting MBR, please. 
Comment 82 Adrian Schröter 2005-09-07 09:38:19 UTC
Created attachment 49022 [details]
/var/log/YaST2 tar ball
Comment 83 Adrian Schröter 2005-09-07 09:39:03 UTC
Created attachment 49023 [details]
dd if=/dev/hda of=mbr bs=512 count=1
Comment 84 Adrian Schröter 2005-09-07 09:39:51 UTC
system is still in this state, if you need further informations or tests  
Comment 85 Jiri Srain 2005-09-07 10:16:26 UTC
Thanks. Torsten, how can I fix this?  
  
Running command /usr/sbin/fix_chs /dev/hda 2  
Command output: $["exit":1, "stderr":"fix_chs: edd module loaded?\n chdir  
to /sys/firmware/edd/int13_dev80: No such file or directory\n", "stdout":""]  
  
(hope it is readable for you) 
 
Is "modprobe edd" sufficient? 
 
BTW: Is it important whether the script is run before or after code in MBR is 
eventually replaced? 
Comment 86 Torsten Duwe 2005-09-07 11:05:09 UTC
First: _*This*_ bug _is_ fixed.   
For further proceeding: Jiri, yes, modprobe edd does the trick. This modules  
asks the BIOS what _it_ thinks the geometry is, the only relevant geo for  
booting :-/  
  
AJ, Adrian: your prob has a 50% chance to be a duplicate of Bug #115330 .  
I'll now check with Seife whether it is. 
Comment 87 Richard Bos 2005-09-08 20:38:08 UTC
RC1 installed without (unexpected) manual intervention. 
Before I had to create and install the grub menu manually, this 
it was just there :)) 
 
I would propose to mark the bug as verified.