NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: back to "Drive ID Changed"
Thanks. I will try that.
On Mon, May 31, 2021 at 5:24 PM RVP <rvp%sdf.org@localhost> wrote:
>
> On Mon, 31 May 2021, Todd Gruhn wrote:
>
> > Here is my fstab. It still does not work.
> >
> > # NetBSD /etc/fstab
> > # See /usr/share/examples/fstab/ for more examples.
> >
> > ROOT.a=NetBSD_9.2 / ffs rw,noatime 1 1
> > ROOT.b=NetBSD_swap none swap sw,dp
> >
>
> The correct syntax is: NAME=GPT_LABEL
> Here's my /etc/fstab:
>
> NAME=NetBSD_9.2 / ffs rw,noatime 1 1
> NAME=NetBSD_swap none swap sw,dp
> kernfs /kern kernfs rw
> ptyfs /dev/pts ptyfs rw
> procfs /proc procfs rw
> /dev/cd0a /cdrom cd9660 ro,noauto
> tmpfs /var/shm tmpfs rw,-m1777,-sram%25
> tmpfs /tmp tmpfs rw,-m1777,-sram%50
>
> Judging by the device names (wd0a, ...) in your fstab, you have a
> BSD disklabel on wd0 instead of GPT. With the standard GENERIC
> kernel, the NAME=LABEL method only works with GPT-partitioned wedges
> See dk(4) and fstab(5).
>
> You'll have to create GPT partitions on wd0.
>
> Note that the NAME=LABEL also works in /boot.cfg (see boot(8)):
>
> $ fgrep NAME= /boot.cfg
> menu=Boot normally:gop 0;boot NAME=NetBSD_9.2:netbsd
> $
>
> > I just executed:
> >
> > gpt create wd1
> >
> > I got:
> > gpt: /dev/rwd1: Device already contains a GPT. Destroy it first.
> >
> > Aparrently part of this already done with gpt...
> >
>
> Create partitions with labels. You need a minimum of 3 partitions
> for a bootable NetBSD GPT disk (on a new drive):
>
> gpt add -a 1m -l NetBSD_EFI -t efi -s 300m wd1
> gpt add -a 1m -l NetBSD_9.2 -t ffs -s 20g wd1
> gpt add -a 1m -l NetBSD_swap -t swap -s 5g wd1
> gpt show wd1
>
> If you already have GPT partitions, you an (re)label them with
> `gpt label ...'
>
> -RVP
>
Home |
Main Index |
Thread Index |
Old Index