Subject: Re: mounting partitions
To: Vojko Kercan <vojkokercan@gmail.com>
From: Johnny Billquist <bqt@update.uu.se>
List: netbsd-help
Date: 03/05/2006 13:28:46
First of all, there is really no point in your partitions 1 and 2. They 
serve no purpose at all, except to confuse you.

Second, your partitions h and i are indeed small, but I guess that's the 
way you've chosen to have them, and so they will be. I suspect that you 
believe that they should match your partitions 1 and 2. They can do that 
if you want to, but it's not done automatically, even though it seems 
you think it would.

Start over. If you absolutely want a bios partition table, create just 
one big partition that holds the whole part of the disk that you intend 
to use for NetBSD, and after that, basically ignore the bios partition 
table.
After that, create the NetBSD disklabel, with the partition layout that 
you'd like. Then you do the newfs of all the partitions, and then you 
mount them.

	Johnny


Vojko Kercan wrote:
> Below is my partition table (partition 0 is wher NetBSD 3.0 is installed):
> 
> 0: NetBSD (sysid 169)
>     start 63, size 188747622 (92162 MB, Cyls 0-11749), Active
> 1: NetBSD (sysid 169)
>     start 188747685, size 62926605 (30726 MB, Cyls 11749-15666)
> 2: NetBSD (sysid 169)
>     start 251674290, size 69998670 (34179 MB, Cyls 15666-20023/55/1)
> 3: <UNUSED>
> 
> Disklabel output is in attachment (smaller output is below):
> 
> 16 partitions:
> #        size             offset             fstype
> a:  16778160        63                  4.2BSD
> b:   4195296         16778223     swap
> c:   188747622    63                  unused
> d:   321672960     0                    unused
> e:  83886768        20973519      4.2BSD
> f:   31457664       104860287    4.2BSD
> g:  52429734      136317951     4.2BSD
> h:         16384      188747685    4.2BSD
> i:           16384      251674290    4.2BSD
> 
> /etc/fstab output:
> 
> /dev/wd0a / ffs rw 1 1
> /dev/wd0b none swap sw 0 0
> /dev/wd0e /usr ffs rw 1 2
> /dev/wd0f /var ffs rw 1 2
> /dev/wd0g /home ffs rw 1 2
> /dev/wd0b /tmp mfs rw,-s=263088
> kernfs /kern kernfs rw
> procfs /proc procfs rw,noauto
> 
> Judging by above outputs, to mount the remaining partitions (1 and 2) I should:
> mount /dev/wd0h and mount /dev/wd0i, yet mount produces an error
> "incorrect super block".
> 
> Am I looking at the things correctly? What am I missing here? Isn't it
> strange that partitions h and i are so small? Is this OK?
> 
> Many thanks in advance, Vojko.

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: bqt@update.uu.se           ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol