Re: Removing UFS label from root
On Sun, Sep 9, 2012 at 8:00 PM, Warren Block wrote: > On Sun, 9 Sep 2012, Kevin Oberman wrote: > >> On Sun, Sep 9, 2012 at 6:49 PM, Warren Block wrote: >>> >>> On Sun, 9 Sep 2012, Warren Block wrote: >>> On Sun, 9 Sep 2012, Kevin Oberman wrote: > I added a label to my root fs some time ago. I really prefer the gpt > label and I have added it, but I can't figure out how to remove the > ufs label. > > I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an > "unable to write superblock" error. This is before mounting the drive > RW, but it is, of course, mounted RO. This worked in a VM when I tested it just now. Maybe running fsck on that filesystem first will help. >> >> >> Already tried that. >> >> I know I was able to label it originally, so it does seem like >> something must have changed, but I don't know what. I did use gpart to >> expand my /usr partition and then used growfs to expand the FS, but I >> did nothing to root and I was able to remove the labels on all of the >> other partitions. > > > Might there be a duplicate filesystem label of "root" on ada0 or another > disk? No joy. I checked all ufs partitions and none are "root" except for /dev/ada1p2. All partitions on ada0 are ntfs. (It's my Windows disk.) But, thanks for trying, Warren. I appreciate it. -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Removing UFS label from root
On Sun, 9 Sep 2012, Kevin Oberman wrote: On Sun, Sep 9, 2012 at 6:49 PM, Warren Block wrote: On Sun, 9 Sep 2012, Warren Block wrote: On Sun, 9 Sep 2012, Kevin Oberman wrote: I added a label to my root fs some time ago. I really prefer the gpt label and I have added it, but I can't figure out how to remove the ufs label. I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an "unable to write superblock" error. This is before mounting the drive RW, but it is, of course, mounted RO. This worked in a VM when I tested it just now. Maybe running fsck on that filesystem first will help. Already tried that. I know I was able to label it originally, so it does seem like something must have changed, but I don't know what. I did use gpart to expand my /usr partition and then used growfs to expand the FS, but I did nothing to root and I was able to remove the labels on all of the other partitions. Might there be a duplicate filesystem label of "root" on ada0 or another disk? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Removing UFS label from root
On Sun, Sep 9, 2012 at 6:49 PM, Warren Block wrote: > On Sun, 9 Sep 2012, Warren Block wrote: > >> On Sun, 9 Sep 2012, Kevin Oberman wrote: >> >>> I added a label to my root fs some time ago. I really prefer the gpt >>> label and I have added it, but I can't figure out how to remove the >>> ufs label. >>> >>> I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an >>> "unable to write superblock" error. This is before mounting the drive >>> RW, but it is, of course, mounted RO. >> >> >> This worked in a VM when I tested it just now. Maybe running fsck on that >> filesystem first will help. Already tried that. I know I was able to label it originally, so it does seem like something must have changed, but I don't know what. I did use gpart to expand my /usr partition and then used growfs to expand the FS, but I did nothing to root and I was able to remove the labels on all of the other partitions. > Alternative thought: is ada1p2 actually a UFS filesystem? Well, the fact that it has a ufs label, fstab show ufs and fsck runs fsck_ufs are strong hints. 2. Name: ada1p2 Mediasize: 1073741824 (1.0G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e2 rawuuid: 43f0eafd-ba3a-11e0-b70a-f0def166a11e rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: root length: 1073741824 offset: 86016 type: freebsd-ufs index: 2 end: 2097319 start: 168 -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Removing UFS label from root
On Sun, 9 Sep 2012, Warren Block wrote: On Sun, 9 Sep 2012, Kevin Oberman wrote: I added a label to my root fs some time ago. I really prefer the gpt label and I have added it, but I can't figure out how to remove the ufs label. I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an "unable to write superblock" error. This is before mounting the drive RW, but it is, of course, mounted RO. This worked in a VM when I tested it just now. Maybe running fsck on that filesystem first will help. Alternative thought: is ada1p2 actually a UFS filesystem? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Removing UFS label from root
On Sun, 9 Sep 2012, Kevin Oberman wrote: I added a label to my root fs some time ago. I really prefer the gpt label and I have added it, but I can't figure out how to remove the ufs label. I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an "unable to write superblock" error. This is before mounting the drive RW, but it is, of course, mounted RO. This worked in a VM when I tested it just now. Maybe running fsck on that filesystem first will help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Removing UFS label from root
Hi, On Sun, 9 Sep 2012 17:47:43 -0700 Kevin Oberman wrote: > I added a label to my root fs some time ago. I really prefer the gpt > label and I have added it, but I can't figure out how to remove the > ufs label. > > I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an > "unable to write superblock" error. This is before mounting the drive > RW, but it is, of course, mounted RO. I tried setting the "allow > foot-shooting" debug flag, but it did not help. > > Is my only hope to boot a live system? (I have no CD, so I guess I > could try a a thumb drive.) as media size is growing, I started to make now every backup copy bootable. Big devices get then the full FreeBSD system. Erich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Removing UFS label from root
I added a label to my root fs some time ago. I really prefer the gpt label and I have added it, but I can't figure out how to remove the ufs label. I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an "unable to write superblock" error. This is before mounting the drive RW, but it is, of course, mounted RO. I tried setting the "allow foot-shooting" debug flag, but it did not help. Is my only hope to boot a live system? (I have no CD, so I guess I could try a a thumb drive.) -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"