Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Fdisk BSD lables
       [not found] <35C47C72.2073@intac.com>
@ 1998-08-02 16:51 ` Larry Creech
  0 siblings, 0 replies; only message in thread
From: Larry Creech @ 1998-08-02 16:51 UTC (permalink / raw)
  To: axp-list

I got fdisk working, I had to mamually compute and insert the drive data 
to prevent the core dumps. Do I need to install a boot strap (command 
"i") and make a boot partition (type d). I'm doing this remote, so I won't 
actually try it till tomorrow. Here is the complete fdisk session If anyone 
cares:


[root@gpspc-lcc /root]# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 134 heads, 62 sectors, 1019 cylinders
Units = cylinders of 8308 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/sda1            2        2        3     8308   83  Linux native
/dev/sda2            4        4      989  4095844   83  Linux native
/dev/sda3          990      990     1019   124620   82  Linux swap

Command (m for help): b

BSD disklabel command (m for help): p

1 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
Floating point exception (core dumped)
[root@gpspc-lcc /root]# fdisk /dev/sda

Command (m for help): b

BSD disklabel command (m for help): e
bytes/sector (512): 
sectors/track (0): 62
tracks/cylinder (0): 134
cylinders (0): 1019
sectors/cylinder (8308): 
rpm (0): 7200
interleave (0): 
trackskew (0): 
cylinderskew (0): 
headswitch (0): 
track-to-track seek (0): 

BSD disklabel command (m for help): p

1 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    40000      512      ext2                        # (Cyl.    1*- 5*)

BSD disklabel command (m for help): d
Partition (a-a): a

BSD disklabel command (m for help): p

0 partitions:
#        size   offset    fstype   [fsize bsize   cpg]

BSD disklabel command (m for help): n
Partition (a-h): a
First cylinder (1-1020): 1
Last cylinder or +size or +sizeM or +sizeK (1-1020): +4m
Value out of range.
Last cylinder or +size or +sizeM or +sizeK (1-1020): +4M
Value out of range.
Last cylinder or +size or +sizeM or +sizeK (1-1020): 4

BSD disklabel command (m for help): p

1 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    33232        0    unused        0     0         # (Cyl.    1 - 4)

BSD disklabel command (m for help): n
Partition (a-h): b
First cylinder (1-1020): 5
Last cylinder or +size or +sizeM or +sizeK (1-1020): 990

BSD disklabel command (m for help): n
Partition (a-h): c
First cylinder (1-1020): 991
Last cylinder or +size or +sizeM or +sizeK (1-1020): 1020

BSD disklabel command (m for help): t
Partition (a-c): c
Hex code (type L to list codes): 1

BSD disklabel command (m for help): t
Partition (a-c): a
hex code (type L to list codes): l

 0  unused           4  System V         8  ext2             c  
ISO-9660       
 1  swap             5  4.1BSD           9  4.4LFS           d  
boot           
 2  Version 6        6  Eighth Edition   a  unknown          e  
ADOS           
 3  Version 7        7  4.2BSD           b  HPFS             f  
HFS            
Hex code (type L to list codes): 8

BSD disklabel command (m for help): t
Partition (a-c): b
Hex code (type L to list codes): 8

BSD disklabel command (m for help): p

3 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    33232        0      ext2                        # (Cyl.    1 - 4)
  b:  8191688    33232      ext2                        # (Cyl.    5 - 
990)
  c:   249240  8224920      swap                        # (Cyl.  991 - 
1020)

BSD disklabel command (m for help): i
Bootstrap: sdboot -> bootsd (sd): 
/usr/ucb/mdec/sdboot: No such file or directory


On Sun, 2 Aug 1998, Brian Wood wrote:

> Larry Creech wrote:
> > 
> > Now that I know that fdisk will do BSD partitions with the "b" option,
> > how do you use it? If I try the "p" to list the partitions it core dumps.
> > The format using the "n" command is alien, so is the start (1-1) and end
> > (1-1). Someone have some advice on this? I would like to preserve my
> > current partitions and just convert it to BSD. The man page is lame and
> > the README didn't reference BSD either.
> 
> I set up my friend's AS200 using the SRM HowTo, which, unfortunately,
> did not happen to mention that you needed BSD-style partitions,
> 
> Once I figured that out though, everything worked fine. I had no trouble
> with fdisk, it certainly never dumped core. This was with RedHat 5.1 but
> I wound up using the 5.0 ramdisk.img because the 5.1 one did not work. I
> created the BSD partitions but "p" still showed the normal ones. I found
> I had to make the BSD partitions and then delete the original ones by
> going back to standard mode.
> 
> Unfortunately I no longer have that machine around to play with since I
> gave it back to my friend.
> 
> 
> -- 
> Brian E.W. Wood - beww@intac.com
> "Very Funny Scotty, Now BEAM DOWN MY CLOTHES"
> 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-08-02 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <35C47C72.2073@intac.com>
1998-08-02 16:51 ` Fdisk BSD lables Larry Creech

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