From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19006 invoked from network); 2 Aug 1998 16:51:36 -0000 Received: from lonestar.rcclub.org (205.175.220.226) by mail2.redhat.com with SMTP; 2 Aug 1998 16:51:36 -0000 Received: from LoneStar.rcclub.org (LoneStar.rcclub.org [205.175.220.226]) by LoneStar.rcclub.org (8.8.8/8.6.9) with SMTP id LAA25408 for ; Sun, 2 Aug 1998 11:51:37 -0500 Date: Sun, 2 Aug 1998 11:51:37 -0500 (CDT) From: Larry Creech To: axp-list@redhat.com Subject: Fdisk BSD lables In-Reply-To: <35C47C72.2073@intac.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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" >