Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Problem after using BSD labeling for install of RH 5.2 - Help!
@ 1999-08-05 13:09 Matt Tilley
  1999-08-05 18:55 ` Suyudi Koeswanto
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Tilley @ 1999-08-05 13:09 UTC (permalink / raw)
  To: axp-list

Help!

Sorry for the long post, however I'm trying to give all of the info that one might need.  In quick summary the problem is that if I partition the disk using BSD style (RH 5.2 install on a Dec Alpha 200), I can't set-up my filesystems (in this case - keeping this as simple as I can, I only had /, swap and /usr that I wanted to set-up) - after sizing the disk with the partitions (three), toggling swap and ext2 (on / and usr) and coming back into the GUI install, I'm informed that the disk appears to be corrupt and I need to initialize it.  There are two options here - initialize or skip the disk.  If I skip the disk than I can't do my install (tried).  If I initialize the disk then I immediately get booted out of the install (vicous circle here).  In addition, I'm not happy with the information shown after sizing my paritions (it doesn't appear to accurately depict what it is I'm trying to do).

The disk is a Seagate ST15150N drive (a 4GB disk).

Here are the details:

Reading the FAQ's, and being told to use BSD labeling, I headed in that direction.  However I'm running into problems using BSD labeling and would like to know if anyone can tell me what step(s) I'm missing.

My problem is what happens when I do this.  Selecting /dev/sda (SCSI ID of 1), I use "b" directly after selecting "fdisk" (vs. disk druid) to put me into BSD style.  Following instructions to delete all partitions (even "c", which I don't understand (why would I delete "c" when this seems to define the disk as a whole (from my SunOS days)).  Verify that all partitions are gone ("p" to verify).

Next, "n" and made partition "a".  Started on cylinder 2 to allow room for aboot. Range shown is 1 - 1018.  Now I must select from inputting either the last cylinder, +size, +sizeM or +sizeK (the given cylinder range to select from at this point is (1 -1018).  I chose:  +128M  (for 128 MB for my root partition).
Here is what I now see:

           size             offset        fstype        fsize    bsize    cpg
a:        247380        8246        unused        0        0      # (Cyl. 4*-    114*)

My first question is what is the "*" for after the cylinder number?

Next, "n" and made partition "b" (going to be swap).  First Cylinder I put 114 (thinking that it should start where the last left off (from what I remember from Solaris SunOS days).  Select "+64M" for the size, resulting in this output from "p":

           size                  offset        fstype        fsize    bsize     cpg
a:        247380            8246        unused        0        0                        # (Cyl. 4*-    114*)
b:        4294159188    931798     unused        0        0                        # (Cyl. 413*- 55)

Why do the cylinders, as well as the size look so messed up? I see what looks like from the spec sheet
(http://www.seagate.com/support/disc/specs/st15150n.shtml) that this drive has 3,711 user CYLINDERS.  However, each time I select from the size perimeters given, the range of what I would perceive to be the cylinder is 1 - 1018,
why is this?  What are the correct number of cylinders that I have to select from?  Can I divide up the 1018 by 4 GB to achieve a decent measure of how I can divide up the disk?  

if +64 MB is measured from cyl 4 to 114, than I should be able to select 118 cylinders past 115 for another +64 MB (right?).  Deleting "b" and selecting 230 for the last cylinder that I want this partition to land on yields this result:

           size                  offset        fstype        fsize    bsize     cpg
a:        247380            8246        unused        0        0                      # (Cyl. 4*-    114*)
b:        956936        940044     unused        0        0                         # (Cyl. 416*- 840)

This seems more reasonable, but if the size is cumulative, wouldn't the size be  494760 (and not 956936)?  Also, if there are only 1018 cylinders and I've only utilized 128 MB, why would I already be close to 1,000 with only a
fraction of the disk used?

I decided to try to continue the install.  First partition was started on the second cylinder and was set for +64MB.  The second was set by taking the number of cylinders shown for the "a" partition and doubling it (root = 64 MB, swap now equals 64 MB).  The third was taken by allocating +1000M (1 GB).  Here are the results:

#	size		offset		fstype	fsize	bsize	cpq

a:	247380		8246		unused	0	0		# (Cyl. 4*- 114*)
b:	956536		940044		unused	0	0		#(Cyl 416*- 840*)
c:	4290085664	6926640		unused	0	0		#(Cyl. 3065* - 905*)

Then changed fstype of "B" to swap; and the ext2 to the other two partitions (don't know whether this is right or wrong).  Wrote out to disk.  Needed to initialize the disk (setup RH 5.2 program said that I needed to do it because partition "a" was corrupt.)  Then:  "install exited abnormally * received signal 11; but system shut down safely (may safely reboot system).

Reboot system and tried to install on disk setup that I just did.  Verified that file system lay out was same as I just setup * but system continues to crash (after trying to initialize the disk) in the same manner!!!!

Next, out of shear frustration I reentered the install program, used fdisk (non-BSD style) and set up three partitions (/, swap and usr) just to see if I could continue on.  Wrote table.  Then switched to BSD style ("b") and verified that the table existed there as I created it above.  Then continued with the install * now I could set up my mount points (/ and usr), as well as defining my swap.  But this was done with the non-BSD style labeling (I think that it didn't see the disk as corrupted because I had used fdisk w/o BSD (even though I verified that my BSD format was still valid by "b" and "p").  I then continued the install (time to install packages * after making "ext2" filesystems on /dev/sda1 and sda3).  Looks like install will finish this time.  

What should I have done to be able to utilize BSD style formating successfully?  What do I need to do to get swriteboot to work correctly (am guessing that the answer here is that I need to install on my BSD style of labeling).  Here are the things that I tried with swriteboot.  I do see the syntax for swriteboot (shown by not entering any arguments), but couldn't see anything obvious.  

Next, tried doing swrite for aboot:

Swriteboot *fl /dev/sda /boot/bootlx
#message received:  swriteboot: partition number must be in range 1-8#
#
#swriteboot /dev/sda /boot/bootlx *f3
open disk device: No such file or directory
swriteboot *fl /dev/sda /boot/bootlx *f3
# partition number range error message again (see above)
#

I believe that swriteboot is writing boot information to the disk (/dev/sda) in the space that was provided (by starting the install on cylinder 2).  What is the signifance of /boot/bootlx?  This is not the kernel, so it must be the bootfile - is the bootfile being copied to the first cylinder - and if it is, can I see the bootfile (not to examine it, but just to be able to identify the location on the CD) on my 5.2 Install CD?

Kind of lost at the moment.......

- Thanks for any help or suggestions.  

- Matt





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem after using BSD labeling for install of RH 5.2 - Help!
@ 1999-08-05 13:39 Larry Sendlosky
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Sendlosky @ 1999-08-05 13:39 UTC (permalink / raw)
  To: axp-list


try this:

start the install again, when you get to the part where you use fdisk, switch
the the "console" with a '#' prompt. Alt-F4 I think. Then do a

dd if=/dev/zero of=/dev/sda count=8  (substitute /dev/sda with your disk if
                                      needed).

this will wipe out partition info. Then go back to the install console
and do fdisk. Make sure you start partition a at cylinder 2!!! Then
make partitions b,g, and h or b,d,e,f depending on your taste.

larry

______________________________________________________________________
 Larry Sendlosky			 	            AMT
 larry@scrugs.lkg.dec.com (978) 506-6640                    Compaq
----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem after using BSD labeling for install of RH 5.2 - Help!
  1999-08-05 13:09 Problem after using BSD labeling for install of RH 5.2 - Help! Matt Tilley
@ 1999-08-05 18:55 ` Suyudi Koeswanto
  0 siblings, 0 replies; 3+ messages in thread
From: Suyudi Koeswanto @ 1999-08-05 18:55 UTC (permalink / raw)
  To: axp-list

On Thu, Aug 05, 1999 at 09:09:09AM -0400, Matt Tilley wrote:
> 
> My first question is what is the "*" for after the cylinder number?
> 
The "*" means that it doesn't end in the cyl 114 as, exactly cyl 114. It
means that like a fraction of cyl 114. This happens because the cyl that is
shown there in fdisk are not the actual cyl. So fdisk has to convert
between the actualy cyl and that (might be called) logical cyl.

> Next, "n" and made partition "b" (going to be swap).  First Cylinder I put 114 (thinking that it should start where the last left off (from what I remember from Solaris SunOS days).  Select "+64M" for the size, resulting in this output from "p":
> 
This is wrong, it will overlap with the first partition and that's why
you're getting this bogus size on the b label. You should start with the
next cyl. And yes, you will loose some sectors if you start the b label on
cyl 115 since the label a might not use the whole 114 cyl (remember we're
talking about the logical cyl here).

> why is this?  What are the correct number of cylinders that I have to select from?  Can I divide up the 1018 by 4 GB to achieve a decent measure of how I can divide up the disk?  
> 
because it's not the actuall cyl.

> What should I have done to be able to utilize BSD style formating successfully?  What do I need to do to get swriteboot to work correctly (am guessing that the answer here is that I need to install on my BSD style of labeling).  Here are the things that I tried with swriteboot.  I do see the syntax for swriteboot (shown by not entering any arguments), but couldn't see anything obvious.  
> 
I suggest you use sector as the base unit instead of that logical cyl, you
can do that before pressing b to go to the BSD disklabel menu, press u to
change the unit to sectors. 

> Swriteboot *fl /dev/sda /boot/bootlx
> #message received:  swriteboot: partition number must be in range 1-8#
> #
i'm not sure about that "*" there. Also, since you're not making any
partition on the first cyl, you do not need to supply -f1 nor -f3 (since
you don't make any whole disk label).

Just create something like this:
 a:	Do not start at cyl 0/1, starts at >=2
 b:	start's at the NEXT sector (if a ends at sec 1000, starts at 1001)
 c:	same thing (and note this is not whole disk label! just use this as
	/usr)

and set a = swap, b and c = ext2 ( / and /usr respectively)

> #swriteboot /dev/sda /boot/bootlx *f3
> open disk device: No such file or directory
> swriteboot *fl /dev/sda /boot/bootlx *f3
> # partition number range error message again (see above)
> #
> 
with that setup above (a, b, c) you don't even need to specify -f1 or -f3
those are if you create a partition a (unused) starts at cyl 0/1 and start
with partition b as swap etc, that you need -f1 to overwrite the first
partition with bootlx. And -f3 also not needed unless you have whole disk
partition.

> I believe that swriteboot is writing boot information to the disk (/dev/sda) in the space that was provided (by starting the install on cylinder 2).  What is the signifance of /boot/bootlx?  This is not the kernel, so it must be the bootfile - is the bootfile being copied to the first cylinder - and if it is, can I see the bootfile (not to examine it, but just to be able to identify the location on the CD) on my 5.2 Install CD?
> 
swriteboot writes on the first cyl on the /dev/sda. Not in your first
partition. Bootlx is just the bootloader (correct me if I'm wront) i think
it contains aboot.

u!d
------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-08-05 18:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-05 13:09 Problem after using BSD labeling for install of RH 5.2 - Help! Matt Tilley
1999-08-05 18:55 ` Suyudi Koeswanto
  -- strict thread matches above, loose matches on Subject: below --
1999-08-05 13:39 Larry Sendlosky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox