*BSD News Article 52995


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!usenet.eel.ufl.edu!usenet.cis.ufl.edu!usenet.ufl.edu!jfh
From: jfh@cis.ufl.edu (James F. Hranicky)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: floppy disklabel problems
Date: 13 Oct 1995 14:44:25 GMT
Organization: University of Florida, Computer Science Department
Lines: 71
Distribution: world
Message-ID: <45lu09$buo@no-names.nerdc.ufl.edu>
NNTP-Posting-Host: aviator.cis.ufl.edu
Keywords: floppy disklabel bootable
Originator: jfh@aviator.cis.ufl.edu


Howdy,

I'm trying to set up a bootable floppy under 2.0.5R. For some
reason, though, disklabel seems to label the disk incorrectly:

--------
[root@bounce-bsd:/root] # fdformat /dev/rfd0
Format 1440K floppy `/dev/rfd0'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.
[root@bounce-bsd:/root] # disklabel -w -B -b /usr/mdec/fdboot -s 
/usr/mdec/bootfd /dev/rfd0a floppy
[root@bounce-bsd:/root] # disklabel -r /dev/fd0a
# /dev/fd0a:
type: unknown
disk: fd1440
label: 
flags:
bytes/sector: 512
sectors/track: 18
tracks/cylinder: 2
sectors/cylinder: 36
cylinders: 80
sectors/unit: 2880
rpm: 300
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

3 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:     2880        0    unused      512  4096         # (Cyl.    0 - 79)
  b:     2880        0    unused      512  4096         # (Cyl.    0 - 79)
  c:     2880        0    unused      512  4096         # (Cyl.    0 - 79)
--------

And the errors from newfs:

------
[root@bounce-bsd:/root] # newfs /dev/rfd0a
Warning: calculated sectors per cylinder (4096) disagrees with disk label (36)
Warning: Block size and bytes per inode restrict cylinders per group to 5.
Warning: 1216 sector(s) in last cylinder unallocated
/dev/rfd0a:     2880 sectors in 1 cylinders of 1 tracks, 4096 sectors
        1.4MB in 1 cyl groups (5 c/g, 10.00MB/g, 4448 i/g)
super-block backups (for fsck -b #) at:
 32,
------

The info from df :

[root@bounce-bsd:/root] # mount /dev/fd0a /mnt
[root@bounce-bsd:/root] # df /mnt
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/fd0a         855        0      786     0%    /mnt


Am I doing something wrong? I can't even fit a kernel on here.
Is there something else I'm supposed to do?

-------------------------------------------------------------------------------
|                       Jim Hranicky, Systems Administrator                   |
|  Computer & Information Sciences & Engineering Department, Univ of Florida  |
| E314E CSE Building             jfh@cis.ufl.edu         Phone (904) 392-1057 |
|                          http://www.cis.ufl.edu/~jfh                        |
-------------------------------------------------------------------------------