Re: 4.2/amd64 disklabel wrongly detects fat32 file system as 4.2BSD

2007-10-25 Thread Theo de Raadt
 I noticed one problem with the disklabel output while installing 4.2
 It automatically detected the file system in my first slice which is
 fat32 wrongly as 4.2BSD

disklabel does not automatically detect filesystem types.

in the past, you have SPECIFICALLY said it was a 4.2 filesystem on
that partition.

 But fdisk detected it correctly during the install phase

fdisk does not detect filesystems, either.

 After the install I got inside the System to investigate.
 The file system is indeed fat32 as you can see I mounted it with
 mount_msdos successfully and listed it.
 fdisk output also says the same.
 Any Idea why disklabel reports it falsely to be a 4.2BSD filesystem?

because in the past you set it so.



Re: 4.2/amd64 disklabel wrongly detects fat32 file system as 4.2BSD

2007-10-25 Thread Siju George
On 10/25/07, Theo de Raadt [EMAIL PROTECTED] wrote:
  I noticed one problem with the disklabel output while installing 4.2
  It automatically detected the file system in my first slice which is
  fat32 wrongly as 4.2BSD

 disklabel does not automatically detect filesystem types.


Thank you so much for the reply :-)

I went through the disklabel(5) and disklabel(8) man pages meanwhile.
And this is what I understood.

The disklabel information is ( created and ) located on a place called
LABELSECTOR 
usually sector 0 during the first OpenBSD install. usually it is on sector 0

So in my case

1: A6   1216   0  1 -   2431 254 63 [19535040:19535040 ] OpenBSD

it is located on sector 0 of head 0 of cylinder 1216.

initially when the disk label was created file systems of partitions
i,j,k,l,m were not marked anything

==
6 partitions:
#size   offset  fstype [fsize bsize  cpg]
 a: 18309312 19535040  4.2BSD   2048 163841
 b:  1225728 37844352swap
 c: 781653600  unused  0 0
 i: 19534977   63  4.2BSD   2048 16384  328
 j: 15631245 39070080  ext2fs
 k:   995967 54701388 unknown
 l: 11711322 55697418  ext2fs
 m: 10747422 67408803  ext2fs
===

And then I marked them Specifically some how as 4.2BSD ex2fs etc.
I don't remember well how.

Now that I am Installing 4.2 on the same slice as where 4.0 resided
earlier disklabel is reading the data from sector 0 of head 0 of
cylinder 1216.

or am I totally confused and need to read a book that speaks about
disklabel and disk basics? :-)



 in the past, you have SPECIFICALLY said it was a 4.2 filesystem on
 that partition.


It is really cool if I did that :-)
I don't remember ho but

Thank you so much

Kind Regards

Siju