How I took my machine down and fixed it.
I had a bit of a unique experience with my FreeBSD 5.2.1 server, and I thought I'd share it because I found a lot of my questions difficult to answer. I have a Via C3 800 processor on this particular server, and I thought I'd recompile with the cpu flag set in make.conf. dmesg reports this: CPU: VIA C3 Ezra (800.03-MHz 686-class CPU) So I set the flag to i686 (I would later learn that this processor only supports the i586/mmx flag) and did a make buildworld. No problem here, but when I did make installworld, things went very wrong. Errors and core dumps (illegal instruction) started raining down, and then I lost power and when I powered up, the server was a goner. So I tried to log in from the serial console, but NOTHING worked. In single user mode, I couldn't even run ls. This is a big problem. To begin fixing the system, I downloaded 5.2.1's disc2 iso and tried to log into the live filesystem shell, but sysinstall couldn't mount the CD. I searched around and realized that I was using a CD drive that supports DMA, so I had to turn that on before booting up: OK set hw.ata.ata_dma=1 OK set hw.ata.atapi_dma=1 OK boot Now I could get into the live filesystem, and I felt pretty good about my plan. I wanted to overwrite /bin, /sbin, /usr/bin and /usr/sbin (as well as libexet, etc) from the live disc. So first I had to mount the drives. I tried to mount my root slice first and was greeted with some problems: mount -w /dev/ad0s1a /mnt/root Resulted in: Operation Not Permitted But I could mount my usr slice. Again, with a bit of research, I realized that since these slices were dirty, they needed to be fsck'd before I could mount them. I tried fsck, but that complained about a lack of fstab. So I had to do a: fsck_ffs -y /dev/ad0s1a On each slice before I could mount. Mounting worked fine once I had done this, so I tried to start copying files, and was greeted with more errors. This time, again: Operation Not Permitted For each copy. This seemed really confusing to me, and after a lot of internet research, I found that I needed to unset the system immutable flag. chflags -R noschg /mnt/root ..etc Now I could copy files from the fixit disc, and I was able to reboot and do a proper make build/installworld with i586/mmx. So my system is back after many hours of frustration. Hope this can help someone else out there. Yours, Ben Polidore ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Diskless Operation Question
I have a dedicated FreeBSD 5.1 server, and I am experimenting with a WinXP / diskless-FreeBSD dual boot workstation. I have followed the instructions in the handbook and I get to a point that makes me think I have done somthing wrong with my diskless kernel. The workstation boots with an etherboot floppy, finds the dhcp server and downloads the kernel from NFS. It seems to contemplate loading the kernel for about 5 seconds then reboots. I have seen postings in the archives about recompiling the kernel with the proper CPUTYPE in /etc/make.conf. I have tried this and it makes no difference. The only thing I have been considering is that I have a bunch of modules that were compiled installed w/o CPUTYPE=p3, as they were imported with clone_root. So the only solution I can think of is to recompile/install these modules with the proper CPUTYPE, but I'm not sure how to have make installkernel put the modules / kernel in /misc/diskless/boot instead of /boot? I won't need to do this with userland, will I? This would make diskless operation impossible for my situation. Below is a more detailed breakdown of what I am trying to do and some pieces of my config files. TIA- Ben Polidore [EMAIL PROTECTED] --Hardware My server: Via C3 800 CPU: VIA C3 Samuel 2 (800.03-MHz 686-class CPU) Origin = CentaurHauls Id = 0x678 Stepping = 8 Features=0x803035FPU,DE,TSC,MSR,MTRR,PGE,MMX (from dmesg) My workstation: Pentium III 933 --Configs *dhcpd.conf: option swap-path code 128 = string; option swap-size code 129 = integer 32; #snip host inferior { hardware ethernet 00:03:6d:00:18:40; fixed-address 10.0.0.100; next-server 10.0.0.1; filename /misc/diskless/kernel; option root-path 10.0.0.1:/misc/diskless; option swap-path 10.0.0.1:/misc/diskless/netswap; option swap-size 128000; } *kernel config for DISKLESS: machine i386 #cpuI486_CPU #cpuI586_CPU cpu I686_CPU ident DISKLESS maxusers0 options INET#InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options MD_ROOT #MD is a potential root device options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server options NFS_ROOT#NFS usable as root device, requires options BOOTP options BOOTP_NFSROOT options BOOTP_COMPAT #that's all that seems pertinent -I have diskless root at /misc/diskless: [EMAIL PROTECTED]:~]# ls /misc/diskless/ bin confkernel sbintmp bootdev mnt stand usr cdrom etc procswap.10.0.0.100 var compat homerootsys -I compiled DISKLESS kernel like so: make buildkernel KERNCONF=DISKLESS CPUTYPE=p3 #i also had CPUTYPE=p3 in make.conf ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
4.7
The release engineering web page says that 4.7 came out 10/1, but the main web page still says that the current release is 4.6.2 and it doesn't appear that RELENG_4_7_0_RELEASE exists on cvsup.freebsd.org. What's the deal? -Ben Polidore [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message