Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2002 16:37:52 -0700
From:      walt <wa1ter@hotmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: GEOM and NetBSD partitions/disklabels
Message-ID:  <3DAA03D0.5010900@hotmail.com>
References:  <aocs4l$bta$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
BOUWSMA Beery wrote:

> ...That is, your kernel can mount the NetBSD partitions with their 16
> partitions within, even if `disklabel' doesn't work yet...

Heh, I just mounted the NBSD partition using an un-patched FBSD kernel
with GEOM, even though disklabel (recompiled) refuses to list it.
Here's what I see:

#l /mnt
ls: altroot: Bad file descriptor
ls: bsd: Bad file descriptor
ls: bsd.old: Bad file descriptor
ls: dev: Bad file descriptor
ls: fbsd: Bad file descriptor
ls: mnt: Bad file descriptor
ls: usr: Bad file descriptor
ls: var: Value too large to be stored in data type
total 1498363071
drwxr-xr-x     16 root        wheel                                  512 Aug  4  2001 ./
drwxr-xr-x     23 root        wheel                                  512 Oct 13 16:18 ../
-rw-r--r--      2 root        wheel                                  669 Apr 28  2001 .cshrc
-rw-r--r--      2 root        wheel                                  148 Apr 28  2001 
.profile
-rw-r--r--      1 root        wheel                              3947412 Jul 25  2001 
GENERIC
dr-x-w--wt  18770 root        wheel                  3473181757988490561 Oct  4  2013 bin/
-r-xr-xr-x      1 root        wheel                                53248 Jul 25  2001 boot*
drwxr-xr-x      2 root        wheel                                  512 Jul 25  2001 cdrom/
c--Sr-xrwt   9248 1348826468  544437612   109, 0x69740062 Dec  8  2023 etc*
cr-Sr-srwt   9248 544175136   744846197   120, 0x726f0020 Sep  6  1996 home*
dr-xrwsrwx  17996 1045        1783648768                               0 Dec 31  1969 root/
br-sr-sr-T  24930 1634890872  1931506787   32, 0x20200020 Jan 29  1987 sbin*
d--Srwxr--  19796 1801675106  1970238055             2314861471017813320 Nov  4  2006 stand/
lrwxr-xr-x      1 root        wheel                                   11 Jul 25  2001 
sys@ -> usr/src/sys
br--r----T  28015 1886718585  544175136   108, 0x2079006e Nov 14  2022 tmp

What a mess.  I hope I can un-bork any damage I may have done.


> (I have no problem mounting rw when needed; note that you also will need
> to modify NetBSD's fsck as needed to be done in FreeBSD-stable or use an
> alternate superblock under NetBSD after a FreeBSD rw mount...

Thanks for the reminder.  I'd completely forgotten about that problem.
Now I'll go and re-apply phk's patch (which was undone by cvsup) and try
again.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DAA03D0.5010900>