NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to make /etc/fstab "portable"?
Hi,
From: Benny Siegert <bsiegert%gmail.com@localhost>, Date: Mon, 8 Feb 2016 12:03:57 +0100
> Hi!
>
> This may be a stupid question but: Is there a way to make the entry
> for the root filesystem in /etc/fstab just match whatever the kernel
> used as the root FS?
>
> I prepared a NetBSD image using Anita. When I transfer it to a
> different hypervisor, the root FS is on sd0a, not wd0a, so the boot
> stops when trying to run fsck. I would like it to run fsck, just using
> whatever FS it is already using.
>From fstab(5) of NetBSD/amd64 current, NAME may be useful.
However I have no experience about non-GPT disk.
And I do not understand naming rule about non-GPT disk partitions.
EXAMPLES
To use “NAME” on a non-GPT disk, use:
NAME=sb2k5Root/a / ffs rw,log 1 1
NAME=sb2k5Root/b none swap sw,dp 0 0
For a gpt(8) disk, use:
NAME=firstpartition / ffs rw,log 1 1
NAME=secondpartition none swap sw,dp 0 0
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index