Re: From FIXIT: (was:Re: System down, won't come up
On Sun, Sep 03, 2006 at 09:19:10AM +0100, Matthew Seaman wrote: > Gary Kline wrote: > > > fixit mode. What I really want is to get the data files off > > and over to another servr. Havng /etc/* and maybe /var/db/pkg/* > > would be a big help. Then I could reinstall 5.3 ->5.5 and > > finally over to 6.1. > > Why go via 5.5 if you're upgrading by installing a new system on the > machine? Just go straight to 6.1. Good point. > > Stuff you should backup before doing that: > > /etc --- absolutely vital Yep; and I do have a Tao.tbz; but it is sitting right in /usr/tmp, on tao. () > /usr/local/etc --- ditto: most people have put hours of work into > port configuration files which would be painful > to have to recreate. > /var --- lots of programs keep their state in files in > /var, not to mention stuff like MYSQL DB files. > /home or /usr/home - depending on how your disk is laid out. > /root > > Other stuff you might need to backup: > > /usr/local/www --- if you run web sites of this machine > /usr/X11R6/lib/X11/{xdm,app-defaults,...} > --- if you've customised stuff under there > > /boot/loader.conf > /usr/src/sys/i386/conf/HOSTNAME > --- these two should be mostly for reference as > their contents have changed significantly with > changes to the system. > /usr/local/share/snmp/{snmp.conf,snmpd.conf} > --- only if you run net-snmpd: for some reason it > keeps its config files here instead of under > /usr/local/etc > > That covers all of the locations I know of where hand customised files > can generally be found (on machines I admin, at least). Everything else > should be replacable by running a 'make world' cycle or by using the ports. > No doubt other people do things differently, so will have a slightly different > list... > Every night I tar -y my website files up and sent them remote. --Whenever-I-remember, I tar up the /etc directories and ship them to local servers. (I *really* do gotta get a plan. Never expect 5.4 to [ct]rap out! What a wakeup call) Oh: /boot/loader.conf is something to consider too. Thanks much. gary > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW > -- Gary Kline [EMAIL PROTECTED] www.thought.org Public service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From FIXIT: (was:Re: System down, won't come up
Gary Kline wrote: On Sat, Sep 02, 2006 at 10:25:01PM -0400, Jerold McAllister wrote: Gary Kline writes: On Sat, Sep 02, 2006 at 08:33:44AM -0700, Atom Powers wrote: If it's only the data you want, try a FreeSBIE boot disk. That will give you access to the file system/network, so you can recover your data. Where can I get this FreeSBIE boot disk? Is it a floppy or can I burn a CDROM? I have a "burner" on my new Ubuntu box, but have never burned anything but an audio CD. This is one of the myriad things I've never heard of, but sounds like it should be shipped with each CD boxed set... It is. I think all you have to do is boot the regular CD and select live system or something like that (I don't remember the exact label in the menu, but it should be apparent. Then you can mount the other disk[s] and try to rescue things. The key is "try to rescue". After fscking my filesystems I tried a reboot and ran into the fatal trap. Now I'm back i fixit mode. What I really want is to get the data files off and over to another servr. Havng /etc/* and maybe /var/db/pkg/* would be a big help. Then I could reinstall 5.3 ->5.5 and finally over to 6.1. If anybody nearby who understands the FreeSBIE boot disk can stop by in the next week or two, that'd be great. Are there ways to scp from the # Fixit environment? Or ways to recompile kernel and world frm here? Try chrooting in the FreeBSIE environment on the mounted device, e.g.: mkdir /mnt/fbsd_root mount /dev/da0s1a /mnt/fbsd_root #mount other filesystems here--make sure that the path is relative to /mnt/fbsd_root and follows the same sort of rules as specified in /mnt/fbsd_root/etc/fstab! chroot /mnt/fbsd_root /bin/tcsh # insert your shell of choice available here. You need to make sure that all devices are mounted properly ('/', '/usr/', '/var', etc), and the /dev filesystems are mounted in the chroot environment before continuing. This is basically what users do when installing Gentoo Linux, and I don't think that you should have an issue with it when trying to upgrade and fix your FreeBSD system because the principle is the same. Not sure how to do the devfs filesystems, but I'm sure someone has an idea of how it's done; IIRC it was done by the kernel somehow. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From FIXIT: (was:Re: System down, won't come up
Gary Kline wrote: > fixit mode. What I really want is to get the data files off > and over to another servr. Havng /etc/* and maybe /var/db/pkg/* > would be a big help. Then I could reinstall 5.3 ->5.5 and > finally over to 6.1. Why go via 5.5 if you're upgrading by installing a new system on the machine? Just go straight to 6.1. Stuff you should backup before doing that: /etc --- absolutely vital /usr/local/etc --- ditto: most people have put hours of work into port configuration files which would be painful to have to recreate. /var --- lots of programs keep their state in files in /var, not to mention stuff like MYSQL DB files. /home or /usr/home - depending on how your disk is laid out. /root Other stuff you might need to backup: /usr/local/www --- if you run web sites of this machine /usr/X11R6/lib/X11/{xdm,app-defaults,...} --- if you've customised stuff under there /boot/loader.conf /usr/src/sys/i386/conf/HOSTNAME --- these two should be mostly for reference as their contents have changed significantly with changes to the system. /usr/local/share/snmp/{snmp.conf,snmpd.conf} --- only if you run net-snmpd: for some reason it keeps its config files here instead of under /usr/local/etc That covers all of the locations I know of where hand customised files can generally be found (on machines I admin, at least). Everything else should be replacable by running a 'make world' cycle or by using the ports. No doubt other people do things differently, so will have a slightly different list... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature