accessing NetBSD filesystem

Anatoli Klassen anatoli at aksoft.net
Sun Dec 25 05:54:49 PST 2005


Hanspeter Roth wrote:

> Fdisk shows sysid 165 (0xa5) for partition 3. This is where FreeBSD
> is installed. And Fdisk shows sysid 169 (0xa9) for partition 4. This
> is where NetBSD is installed.
> In /dev there are ad0s3 and ad0s3[a-g] but there is only a ad0s4.
> So how can filesystems of my NetBSD in ad0s4 be accessed?
> 

AFAIK you can access only the 'a' partition of the NetBSD slice.
Just mount it.

If you need other partitions, try to use following module:

http://www.26th.net/public/projects/freebsd/geom_nbsd/geom_nbsd.tgz

1. Download, unpack, go it to the dir.
2. Say "make".
3. Sys "kldload ./geom_nbsd.ko"
4. All /dev/ad0s3[a-g] should appear.
5. Now mount all partitions as usual.

The module is tested on 6.x and CURRENT. One known bug - it's impossible 
to unload it, you have to reboot for this.


More information about the freebsd-hackers mailing list