Greetings, I've tried to re-label an existing (and up to date) 8-STABLE installation's root partition. This failed, tunefs reports it cannot write the super block. I have attempted this sequence: 1. reboot (through BIOS and loader) directly into single-user mode (boot -s) 2. sysctl kern.geom.debugflags=16 3. tunefs -L root /dev/ada0s4a # that's the dev I mount the root # partition from Still no joy => tunefs cannot update the super block. Remounting / as rw doesn't help, as expected. The root fs uses softupdates but no journalling -- what other hoops do I need to jump through to create labels for my root ufs file system? Thanks. Best regards, Matthias
1. Change your root fstab record to /dev/ada0s4a (not label!), reboot to single mode and try to re-label partition. 2. Try boot from live CD or installation CD (fixup console) and label file system without mounting 2011/6/8 Matthias Andree <matthias.andree@gmx.de>:> Greetings, > > I've tried to re-label an existing (and up to date) 8-STABLE > installation's root partition. ?This failed, tunefs reports it cannot > write the super block. > > I have attempted this sequence: > > 1. reboot (through BIOS and loader) directly into single-user mode > (boot -s) > 2. sysctl kern.geom.debugflags=16 > 3. tunefs -L root /dev/ada0s4a ? ?# that's the dev I mount the root > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# partition from > > Still no joy => tunefs cannot update the super block. > > Remounting / as rw doesn't help, as expected. > > The root fs uses softupdates but no journalling -- what other hoops do I > need to jump through to create labels for my root ufs file system? > > Thanks. > > Best regards, > Matthias > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >------- wbr, Nickolas
Am 08.06.2011 15:11, schrieb nickolasbug@gmail.com:> 1. Change your root fstab record to /dev/ada0s4a (not label!), reboot > to single mode and try to re-label partition.Indeed not mounting from the label was (apparently) the key to solve this. Thank you. In fact the successful procedure was: - from boot menu, escape to loader prompt - set vfs.root.mountfrom=ufs:/dev/ada0s4a - boot -s - tunefs -L mylabel /dev/ada0s4a - mount -a - edit /etc/fstab to use /dev/ufs/mylabel as device for / - shutdown -r now Best regards, Matthias
On Wed, Jun 08, 2011 at 04:02:43PM +0200, Matthias Andree wrote:> Am 08.06.2011 15:11, schrieb nickolasbug@gmail.com: > > 1. Change your root fstab record to /dev/ada0s4a (not label!), reboot > > to single mode and try to re-label partition. > > Indeed not mounting from the label was (apparently) the key to solve > this. Thank you. > > In fact the successful procedure was: > > - from boot menu, escape to loader prompt > - set vfs.root.mountfrom=ufs:/dev/ada0s4a > - boot -s > - tunefs -L mylabel /dev/ada0s4a > - mount -a > - edit /etc/fstab to use /dev/ufs/mylabel as device for / > - shutdown -r nowI have the exact same question except not with regards to labels but toggling TRIM capability on the root filesystem. - Start system - At loader, boot single-user (option 4) - At prompt choose /bin/sh - mount -a - tunefs -t enable /dev/ada0s1a --- fails - sysctl kern.geom.debugflags=16 - tunefs -t enable /dev/ada0s1a --- works - tunefs -p /dev/ada0s1a -- shows TRIM enabled - reboot - Boot into single-user, multi-user, whatever - tunefs -p /dev/ada0s1a -- shows TRIM disabled -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |