Re: shrinking a filesystem using resize_ffs(8)

2024-02-01 Thread Jan Schaumann
Michael van Elst wrote: > jscha...@netmeister.org (Jan Schaumann) writes: > >$ sudo newfs -C 2 /dev/rvnd0a > > There is no '-C'. Maybe -O 2 ? Yes. :-) > But resize_ffs doesn't support shrinking FFS2 and should > complain when you try. > You tell resize_fsck the new size with -s and then >

Re: shrinking a filesystem using resize_ffs(8)

2024-02-01 Thread Michael van Elst
jscha...@netmeister.org (Jan Schaumann) writes: >Hi, Hi, >$ sudo newfs -C 2 /dev/rvnd0a There is no '-C'. Maybe -O 2 ? But resize_ffs doesn't support shrinking FFS2 and should complain when you try. >[ back to two '1048576' sized partitions ] >$ sudo fsck_ffs -y -f /dev/rvnd0b >[ all ok ]

shrinking a filesystem using resize_ffs(8)

2024-02-01 Thread Jan Schaumann
Hi, I'm trying to shrink a filesystem using resize_ffs(8), but I keep getting an error: resize_ffs: read failed: Invalid argument Here's the setup: I start out with a 1GB disk with two 512MB partitions: $ sudo disklabel vnd0 [...] #sizeoffset fstype [fsize bsize cpg/sgs] a: