NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: disks, partitions, slices, etc.



En Fri, Oct 09, 2026 at 03:44:53PM +0100, Chavdar Ivanov escribió:
> On Fri, 9 Oct 2026 at 13:23, Ramiro Aceves <ea1abz%gmail.com@localhost> wrote:
> >
> > En Fri, Oct 09, 2026 at 12:59:31PM +0100, Chavdar Ivanov escribió:
> > >
> > >
> > >  On Linux:
> > > mkfs.ext2 -L commons /dev/sda4            # optionally -O ^dir_index,^ext_attr
> > >
> > > On NetBSD:
> > > dkctl ld0 listwedges                      # find the wedge, e.g. dk3 /
> > > GUID b5bff367-...
> > > mount -t ext2fs NAME=b5bff367-4977-4887-bea0-7e42f7a04fe4 /mnt
> > >
> > > In fstab:
> > > NAME=b5bff367-4977-4887-bea0-7e42f7a04fe4  /commons  ext2fs  rw  0 0
> > >
> > > To repair: use Linux e2fsck or pkgsrc e2fsck -- never
> > > /sbin/fsck_ext2fs on 11/-current
> > >
> > > Setting a GPT partition label (`gpt label -i 4 -l commons ld0` on
> > > NetBSD, or `sgdisk -c 4:commons` on Linux) gives you `NAME=commons` in
> > > fstab.
> > >
> >
> > Many thanks Chavdar for the recipes!
> 
> Attached is a suggestion for three PRs - I am not going to file them,
> as they were dome partially with the help of an LLM,
> but if someone is interested, he can verify and file them. I have
> verified the conclusions myself. Choose your pill.

Thank you Chavdar for the suggested PRs, with or without the help of 
the AI, the fact is that NetBSD creation and fixing of ext2 filesystems
do not work properly as several people have experienced. Only someone  who understand the ins and outs of the 
operating system could fix it. With my lack of understanding the only thing 
I can do is helping to find bugs. I am not qualified to fill out a PR without understanding it.

Thanks so much.
Ramiro.

> 
> > Regards.
> > Ramiro.
> >
> >
> > > --
> > > ----
> 
> Chavdar
> 
> -- 


Home | Main Index | Thread Index | Old Index