SCSI harddisk partitioning problem

Felix Kühling fxkuehl at gmx.de
Fri Oct 25 19:07:41 CEST 2002


Hi,

I tried to install Debian Woody on a PIII system with two SCSI discs
using FAI. I used fai 2.3.4 downloaded from sourceforge.

This is the disk configuration I used:
disk_config sda

primary /	512		rw, errors=remount-ro	; reiser
primary swap	2048	
primary /usr	5000-6000	rw			; reiser	
primary /var    1000-		rw			; reiser

Unfortunately I don't have a log from that install. It complained about
too many primary partitions and aborted, even though there are exactly 4
primary partitions in the configuration. I used the same configuration
(except with hda instead of sda) for IDE systems before, without
problems.

I also tried an installation using both harddisks:
disk_config sda

primary /	512		rw, errors=remount-ro	; reiser
primary swap	2048	
primary /usr	1000-		rw			; reiser	

disk_config sdb

primary swap	2048
primary /var	1000-		rw			; reiser

Then it successfully created all partions but later tried to format
the non-existing sda4 with reiserfs ... and aborted.

I was able to fix the problem by commenting out a single line in
/sbin/setup_harddisks:
--- setup_harddisks.old Fri Oct 25 18:50:08 2002
+++ setup_harddisks     Fri Oct 25 18:52:14 2002
@@ -393,7 +393,7 @@
                    ($MPPrimary{$extmp} eq "yes") && ($NoMoreLogicals = 1);
                    $MPPrimary{$mountpoint} = "yes";
                    $PrimPartNo++;
-                   ($PrimPartNo == 3) && ($disk =~ /^sd/) && ($PrimPartNo++);
+                   #($PrimPartNo == 3) && ($disk =~ /^sd/) && ($PrimPartNo++);
                     ($PrimPartNo >4 ) && die "ERROR: Too much primary partitions (max 4).".
                                 " All logicals together need one primary too.\n";
                    $MountpointPart{$mountpoint} = PartName($disk,$PrimPartNo);

I don't know anything about perl, so I couldn't figure out what it is
actually supposed to do, but for me it was just causing trouble. I hope
this information helps finding a proper solution for the problem.

Best regards,
   Felix

               __\|/__    ___     ___     ___
__Tschüß_______\_6 6_/___/__ \___/__ \___/___\___You can do anything,___
_____Felix_______\Ä/\ \_____\ \_____\ \______U___just not everything____
  fxkuehl at gmx.de    >o<__/   \___/   \___/        at the same time!



More information about the linux-fai mailing list