Re: /usr/local empty after upgrade
On Tue, Jul 6, 2010 at 11:58 PM, Greg Larkin glar...@freebsd.org wrote: Hi Mike, What did you have in your /usr/local directory prior to the upgrade? Had you installed any ports? What is the output of the following command: pkg_info it was only perl installed. That I can always rectified quickly... -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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
/usr/local empty after upgrade
Hi All, I have never encountered anything like this before and I am little puzzled. After upgrading my FreeBSD 8.0 RELEASE, I ended up with FreeBSD 8.1-PRERELEASE and an empty /usr/local directory. It wiped out my /usr/local directory! I did nothing out of the usual on this upgrade. Any one experienced the same thing? How do I safely get /usr/local populated again? -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
You sure you didn't have /usr on a different partition and forget to tell sysinstall? Sorry for top-posting, Android won't let me quote. There's a bug report on it! On 6 Jul 2010 10:38, Mike Barnard mike.barna...@gmail.com wrote: Hi All, I have never encountered anything like this before and I am little puzzled. After upgrading my FreeBSD 8.0 RELEASE, I ended up with FreeBSD 8.1-PRERELEASE and an empty /usr/local directory. It wiped out my /usr/local directory! I did nothing out of the usual on this upgrade. Any one experienced the same thing? How do I safely get /usr/local populated again? -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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 ___ 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: /usr/local empty after upgrade
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Barnard wrote: Hi All, I have never encountered anything like this before and I am little puzzled. After upgrading my FreeBSD 8.0 RELEASE, I ended up with FreeBSD 8.1-PRERELEASE and an empty /usr/local directory. It wiped out my /usr/local directory! I did nothing out of the usual on this upgrade. Any one experienced the same thing? How do I safely get /usr/local populated again? Hi Mike, It's possible that your disk device names changed during the upgrade and /etc/fstab can no longer mount the previous device on /usr/local. Do you see any error messages during the boot process? Please reply to the list with the output from the following commands: ls -l /dev/da* # Assuming SCSI disks ls -l /dev/ad* # Assuming ATA disks cat /etc/fstab That information may help figure out what happened to the devices during the upgrade. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMMz/I0sRouByUApARAtS0AJ9Ny8rx0AcIen2o5fiJAQTn04ugKQCglxei L7dLVcqJbKqB/B9pc3v1fWM= =AGrW -END PGP SIGNATURE- ___ 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: /usr/local empty after upgrade
On Tue, Jul 6, 2010 at 2:44 PM, Chris Rees utis...@gmail.com wrote: You sure you didn't have /usr on a different partition and forget to tell sysinstall? 100% sure... I have tried to rebuild world but I still end up with an empty /usr/local.. Prior to upgrading from 8.0-RELEASE, the directory has the usual files and directories, but after the upgrade, its empty. Good thing is that I had not installed any ports. I'd like to avoid a reinstall, which is why I was wondering if there is a way I can get this directory back with its files and directories. Sorry for top-posting, Android won't let me quote. There's a bug report on it! On 6 Jul 2010 10:38, Mike Barnard mike.barna...@gmail.com wrote: Hi All, I have never encountered anything like this before and I am little puzzled. After upgrading my FreeBSD 8.0 RELEASE, I ended up with FreeBSD 8.1-PRERELEASE and an empty /usr/local directory. It wiped out my /usr/local directory! I did nothing out of the usual on this upgrade. Any one experienced the same thing? How do I safely get /usr/local populated again? -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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 -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
Mike Barnard mike.barna...@gmail.com writes: 100% sure... I have tried to rebuild world but I still end up with an empty /usr/local.. Prior to upgrading from 8.0-RELEASE, the directory has the usual files and directories, but after the upgrade, its empty. Good thing is that I had not installed any ports. I'd like to avoid a reinstall, which is why I was wondering if there is a way I can get this directory back with its files and directories. mtree -p /usr/local /etc/mtree/BSD.local.dist (I thought buildworld did that for you, but apparently it doesn't. Probably because you can't put it somewhere else if you like.) ___ 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: /usr/local empty after upgrade
Hi Greg, Please see your request below Hi Mike, It's possible that your disk device names changed during the upgrade and /etc/fstab can no longer mount the previous device on /usr/local. Do you see any error messages during the boot process? no, I do not see any error during the boot process. Please reply to the list with the output from the following commands: ls -l /dev/da* # Assuming SCSI disks crw-r- 1 root operator0, 94 Jul 6 16:50 /dev/da0 crw-r- 1 root operator0, 96 Jul 6 16:50 /dev/da0s1 crw-r- 1 root operator0, 97 Jul 6 19:50 /dev/da0s1a crw-r- 1 root operator0, 98 Jul 6 16:50 /dev/da0s1b crw-r- 1 root operator0, 99 Jul 6 19:50 /dev/da0s1d crw-r- 1 root operator0, 100 Jul 6 19:50 /dev/da0s1e crw-r- 1 root operator0, 101 Jul 6 16:50 /dev/da0s1f crw-r- 1 root operator0, 106 Jul 6 19:50 /dev/da0s1f.journal crw-r- 1 root operator0, 102 Jul 6 16:50 /dev/da0s1g crw-r- 1 root operator0, 107 Jul 6 19:50 /dev/da0s1g.journal cat /etc/fstab # DeviceMountpoint FStype Options Dump Pass# /dev/da0s1b noneswapsw 0 0 /dev/da0s1a / ufs rw 1 1 /dev/da0s1g.journal /resource ufs rw,async2 2 /dev/da0s1e /tmpufs rw 2 2 /dev/da0s1f.journal /usrufs rw,async2 2 /dev/da0s1d /varufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 That information may help figure out what happened to the devices during the upgrade. unless I got the journaling wrong, the fstab and devices should work fine. Regards, -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
On Tue, Jul 6, 2010 at 6:26 PM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Mike Barnard mike.barna...@gmail.com writes: 100% sure... I have tried to rebuild world but I still end up with an empty /usr/local.. Prior to upgrading from 8.0-RELEASE, the directory has the usual files and directories, but after the upgrade, its empty. Good thing is that I had not installed any ports. I'd like to avoid a reinstall, which is why I was wondering if there is a way I can get this directory back with its files and directories. mtree -p /usr/local /etc/mtree/BSD.local.dist This is the command I have been looking for. I have dealt with a messed up /var but not a vanished local directory (I thought buildworld did that for you, but apparently it doesn't. Probably because you can't put it somewhere else if you like.) I thought so too. Either the journals are not done right or -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
Mike Barnard mike.barna...@gmail.com writes: On Tue, Jul 6, 2010 at 6:26 PM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: (I thought buildworld did that for you, but apparently it doesn't. Probably because you can't put it somewhere else if you like.) I thought so too. Either the journals are not done right or I meant to write can instead of can't in that last sentence. Sorry for the confusion... ___ 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: /usr/local empty after upgrade
mtree -p /usr/local /etc/mtree/BSD.local.dist This is the command I have been looking for hmmm... this give me no joy... mtree complains about the paths all missing, but does not create them. I can create files and directories in /usr/local manually. ## Creating a file in /usr/local $touch test $ls /usr/local/ test $df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/da0s1a1.9G480M1.3G26%/ devfs 1.0K1.0K 0B 100%/dev /dev/da0s1g.journal 67G4.0K 62G 0%/resource /dev/da0s1e496M 12K456M 0%/tmp /dev/da0s1f.journal 52G2.9G 45G 6%/usr /dev/da0s1d4.8G 99M4.4G 2%/var ## Creating a directory in /usr/local $mkdir test-dir $ls /usr/local testtest-dir ## editing the test file... $md5 -s /usr/local test $cat test MD5 (/usr/local) = ecb11dda71a57ccdbf63675d24260fe6 -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
Mike Barnard mike.barna...@gmail.com writes: mtree -p /usr/local /etc/mtree/BSD.local.dist This is the command I have been looking for hmmm... this give me no joy... mtree complains about the paths all missing, but does not create them. I can create files and directories in /usr/local manually. Looking at the manual for mtree(8), it looks like I missed the -U option. ___ 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: /usr/local empty after upgrade
On Tue, Jul 6, 2010 at 10:58 PM, Mike Barnard mike.barna...@gmail.comwrote: mtree -p /usr/local /etc/mtree/BSD.local.dist This is the command I have been looking for hmmm... this give me no joy... mtree complains about the paths all missing, but does not create them. I can create files and directories in /usr/local manually. sorry... RTFM -eU flags sorted me out... but I only get the directories an no files created now may be rebuilding world will work :-/ -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
Mike Barnard mike.barna...@gmail.com writes: sorry... RTFM -eU flags sorted me out... but I only get the directories an no files created now may be rebuilding world will work :-/ There are no files described in the mtree file. I can't think of any that should be there before you install ports... ___ 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: /usr/local empty after upgrade
On Tue, Jul 6, 2010 at 11:21 PM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Mike Barnard mike.barna...@gmail.com writes: sorry... RTFM -eU flags sorted me out... but I only get the directories an no files created now may be rebuilding world will work :-/ There are no files described in the mtree file. I can't think of any that should be there before you install ports... just perl that is missing, which I believe a reinstall will correct. Thanks for getting my memory back on track. -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ 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: /usr/local empty after upgrade
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Barnard wrote: Hi Greg, Please see your request below Hi Mike, It's possible that your disk device names changed during the upgrade and /etc/fstab can no longer mount the previous device on /usr/local. Do you see any error messages during the boot process? no, I do not see any error during the boot process. Please reply to the list with the output from the following commands: ls -l /dev/da* # Assuming SCSI disks crw-r- 1 root operator0, 94 Jul 6 16:50 /dev/da0 crw-r- 1 root operator0, 96 Jul 6 16:50 /dev/da0s1 crw-r- 1 root operator0, 97 Jul 6 19:50 /dev/da0s1a crw-r- 1 root operator0, 98 Jul 6 16:50 /dev/da0s1b crw-r- 1 root operator0, 99 Jul 6 19:50 /dev/da0s1d crw-r- 1 root operator0, 100 Jul 6 19:50 /dev/da0s1e crw-r- 1 root operator0, 101 Jul 6 16:50 /dev/da0s1f crw-r- 1 root operator0, 106 Jul 6 19:50 /dev/da0s1f.journal crw-r- 1 root operator0, 102 Jul 6 16:50 /dev/da0s1g crw-r- 1 root operator0, 107 Jul 6 19:50 /dev/da0s1g.journal cat /etc/fstab # DeviceMountpoint FStype Options Dump Pass# /dev/da0s1b noneswapsw 0 0 /dev/da0s1a / ufs rw 1 1 /dev/da0s1g.journal /resource ufs rw,async2 2 /dev/da0s1e /tmpufs rw 2 2 /dev/da0s1f.journal /usrufs rw,async2 2 /dev/da0s1d /varufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 That information may help figure out what happened to the devices during the upgrade. unless I got the journaling wrong, the fstab and devices should work fine. Regards, Hi Mike, What did you have in your /usr/local directory prior to the upgrade? Had you installed any ports? What is the output of the following command: pkg_info If it doesn't print anything, then you haven't installed any ports yet, and an empty /usr/local directory is normal. If you manually placed some files in there, that's a different story, and perhaps booting to single-user and running fsck on /usr would help. At first, I thought you might have /usr/local on its own partition and a device rename might have caused a mount failure. Were there any other problems with the files/directories in /usr, or was it just /usr/local that was emptied? Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMM5jk0sRouByUApARAvDSAKDMb03N2331UUhhbv3yGjv3fHSEBwCgkiF4 jpH3M13BqqyzsSehE88Hn+0= =Zk4T -END PGP SIGNATURE- ___ 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