Subject: Re: [Ext2 Mount] Newbie Question
To: William Pomian <willish@free.fr>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 04/21/2001 09:56:56
On Sat, 18 Apr 2020, William Pomian wrote:

> So I add f:  as you told me :
> >#        size   offset     fstype   [fsize bsize   cpg]
> >   a:  1091601       63     4.2BSD     1024  8192    16   # (Cyl.    0*- 1082)
> >   b:  2099664  1091664       swap                        # (Cyl. 1083 - 3165)
> >  c:  8191953       63     unused        0     0         # (Cyl.    0*- 8126)
> >  d: 90069840        0     unused        0     0         # (Cyl.    0 - 89354)
> >  e:  5000688  3191328   System V                        # (Cyl. 3166 - 8126)
> >  f: 81871776  8192016     ext2fs        0     0
>
> And when saving, disklabel tell me now :
> > disklabel: line 27: warning, unknown filesystem type: ext2fs

The type must be "Linux Ext2". (The type strings are in
/usr/include/sys/disklabel.h.)

> And unfortunatly :
> > root# mount_ext2fs /dev/wd0f /mnt/
> > mount_ext2fs: /dev/wd0f on /mnt/: Device not configured

By the way, "mount_ext2fs" has gone away in NetBSD-current, "mount -t
ext2fs /dev/wd0f /mnt" should work with all systems.

> And when I re-edit disklabel I have :
> >  f: 81871776  8192016     unused        0     0         # (Cyl. 8127 - 89348)
>
> I can't let fsize and bsize fields empty. When I do that, disklabel tell me :
> > disklabel: line 27: too few fields

If you must put numbers in with "Linux Ext2" to satisfy disklabel, the
defaults would probably be OK (1024 8192 16). I believe these fields
are only referred to when creating file systems with "newfs", and
"cpg" is not referred to even then.


Frederick