[solved] Cannot boot - creating partition and installing FreeBSD is [solved]
On Linux I switched from GRUB legacy to GRUB 2. To transform menu.lst into grub.cfg: SYNOPSIS grub-menulst2cfg [INFILE [OUTFILE]] To boot FreeBSD: menuentry FreeBSD{ set root=(hd0,msdos1) chainloader +1 } ___ 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
getpwnam_r returns EINVAL on FreeBSD 8.3
After upgrading a server from FreeBSD 7.3 to FreeBSD 8.3 I noticed this bug. Since upgrading, getpwnam_r is acting inconsistently. If I look up a user that does not exist and the name is 16 characters or less, getpwnam_r returns 0 and the result is NULL. If the name is more than 16 characters, getpwnam_r returns EINVAL. Everything works correctly for users that exist. This only happens when the nsswitch.conf passwd: line contains files. You need to use files if you are using another module such as msql or ldap. The problem exists without the other modules listed. For example: passwd: files Below is a simple test program. Set passwd: to files in nsswitch.conf and run the program. Any idea how to fix this bug with getpwnam_r? #include stdio.h #include sys/types.h #include pwd.h main() { lookup(doesnotexist); lookup(doesnotexisty); } int lookup( char *name) { struct passwd pwd; char buffer[1024]; struct passwd *result; int err; printf(\nLooking up: %s\n, name); err = getpwnam_r(name, pwd, buffer, sizeof(buffer), result); if( err != 0 ){ printf(Return code: %d\n, err); }else if( result == 0 ){ printf(Returned no result!\n); }else{ printf(Returned: %s (%d)\n, result-pw_name, result-pw_uid); } } ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
On 29.11.2012 05:50, Carl Johnson wrote: Ralf Mardorf ralf.mard...@rocketmail.com writes: Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l You might want to try a chainloader boot from grub. The following is a chainloader rule that I have used, as well as a normal loader boot. I use the loader boot, but I also tested the chainloader boot. You will need a ufs2_stage1_5 file in your grub directory for a loader boot, and linux grub might not have it available. title FreeBSD, sda3 (oak) chainloader root(hd1,2) chainloader +1 boot title FreeBSD, sda3 (oak) /boot/loader root(hd1,2,a) kernel /boot/loader boot In case you have not got it working yet, I can offer a glimmer of hope by telling how I managed to multi boot Linux and FreeBSD on MBR logical partitions. By using the grub patch at: http://www.freebsd.org/cgi/query-pr.cgi?pr=158362 ports/158362: sysutils/grub [patch] allow GRUB to boot FreeBSD from an extended partition You must rebuild and reinstall grub (from Linux I guess). My install is fairly old and from the days when sysutils/grub at least was installable from within FreeBSD i386. The patch itself does not touch FreeBSD sources, only grub. So I expect it will build from any OS/machine that can build grub. When installed I can boot FreeBSD from an MBR logical partition like so: title FreeBSD CURRENT (amd64) (disk1, logical partition s11) root(hd0,10,a) kernel /boot/loader boot Depending upon how recent version of FreeBSD you have installed you may have to config the FreeBSD loader to find its root file system. 10-CURRENT should be okay. Best regards, Gyrd ^_^ ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
On Fri, 2012-11-30 at 13:08 +0100, Gyrd Thane Lange wrote: On 29.11.2012 05:50, Carl Johnson wrote: Ralf Mardorf ralf.mard...@rocketmail.com writes: Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l You might want to try a chainloader boot from grub. The following is a chainloader rule that I have used, as well as a normal loader boot. I use the loader boot, but I also tested the chainloader boot. You will need a ufs2_stage1_5 file in your grub directory for a loader boot, and linux grub might not have it available. title FreeBSD, sda3 (oak) chainloader root(hd1,2) chainloader +1 boot title FreeBSD, sda3 (oak) /boot/loader root(hd1,2,a) kernel /boot/loader boot In case you have not got it working yet, I can offer a glimmer of hope by telling how I managed to multi boot Linux and FreeBSD on MBR logical partitions. By using the grub patch at: http://www.freebsd.org/cgi/query-pr.cgi?pr=158362 ports/158362: sysutils/grub [patch] allow GRUB to boot FreeBSD from an extended partition You must rebuild and reinstall grub (from Linux I guess). My install is fairly old and from the days when sysutils/grub at least was installable from within FreeBSD i386. The patch itself does not touch FreeBSD sources, only grub. So I expect it will build from any OS/machine that can build grub. When installed I can boot FreeBSD from an MBR logical partition like so: title FreeBSD CURRENT (amd64) (disk1, logical partition s11) root(hd0,10,a) kernel /boot/loader boot Depending upon how recent version of FreeBSD you have installed you may have to config the FreeBSD loader to find its root file system. 10-CURRENT should be okay. Best regards, Gyrd ^_^ Hi :) I didn't work on my machine, but will continue today or tomorrow. FWIW I told the PC-BSD installer not to install a bootloader, do I have to install a FreeBSD loader now, or is it already installed? On Debian users mailing list I got some replies with recommendations too. Thank you! Ralf ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
On 30.11.2012 13:48, Ralf Mardorf wrote: On Fri, 2012-11-30 at 13:08 +0100, Gyrd Thane Lange wrote: On 29.11.2012 05:50, Carl Johnson wrote: Ralf Mardorf ralf.mard...@rocketmail.com writes: Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l You might want to try a chainloader boot from grub. The following is a chainloader rule that I have used, as well as a normal loader boot. I use the loader boot, but I also tested the chainloader boot. You will need a ufs2_stage1_5 file in your grub directory for a loader boot, and linux grub might not have it available. title FreeBSD, sda3 (oak) chainloader root(hd1,2) chainloader +1 boot title FreeBSD, sda3 (oak) /boot/loader root(hd1,2,a) kernel /boot/loader boot In case you have not got it working yet, I can offer a glimmer of hope by telling how I managed to multi boot Linux and FreeBSD on MBR logical partitions. By using the grub patch at: http://www.freebsd.org/cgi/query-pr.cgi?pr=158362 ports/158362: sysutils/grub [patch] allow GRUB to boot FreeBSD from an extended partition You must rebuild and reinstall grub (from Linux I guess). My install is fairly old and from the days when sysutils/grub at least was installable from within FreeBSD i386. The patch itself does not touch FreeBSD sources, only grub. So I expect it will build from any OS/machine that can build grub. When installed I can boot FreeBSD from an MBR logical partition like so: title FreeBSD CURRENT (amd64) (disk1, logical partition s11) root(hd0,10,a) kernel /boot/loader boot Depending upon how recent version of FreeBSD you have installed you may have to config the FreeBSD loader to find its root file system. 10-CURRENT should be okay. Best regards, Gyrd ^_^ Hi :) I didn't work on my machine, but will continue today or tomorrow. FWIW I told the PC-BSD installer not to install a bootloader, do I have to install a FreeBSD loader now, or is it already installed? It is already installed as /boot/loader. This is a later stage loader. Not to be confused with the bootstrap code in the boot sector of the entire disk (which you correctly kept as grub instead of overwriting). On Debian users mailing list I got some replies with recommendations too. Thank you! You're welcome, best of luck! Gyrd ^_^ Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will it be possible to update to FreeBSD 9.x or do they differ, similar as different Linux distros can differ? Regards, Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 28 Nov 2012, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? I tried a few experiments just now, and it still looks to me like the EBR is the problem. Unfortunately, I don't know how to work around it. Certainly it should be possible to do this. It's a matter of getting the partitioning tools to do it. Anything else I can try? Share sda10 with FreeBSD swap. Then use slice 1 for one bare FreeBSD filesystem with no subpartitioning at all. # gpart modify -i1 -t freebsd-ufs da0 It will require some work with the installer. Probably you'll have to newfs and mount it as mentioned before. After FreeBSD boots, figure out which is the swap partition and add that to /etc/fstab. spinymouse@q:~$ sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2fc6 Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 a5 FreeBSD /dev/sda2 * 121274746 625137344 251931299+ 5 Extended /dev/sda5 121274748 183751469312383617 HPFS/NTFS/exFAT /dev/sda6 183751533 24642103431334751 83 Linux /dev/sda7 246421098 30928337931431141 83 Linux /dev/sda8 309283443 36196761526342086+ 83 Linux /dev/sda9 361969664 43561779136824064 83 Linux /dev/sda10 435618603 440164934 2273166 82 Linux swap / Solaris /dev/sda11 440164998 56187337460854188+ 83 Linux /dev/sda12 561873438 569215079 3670821 83 Linux /dev/sda13 569215143 61551440923149633+ 83 Linux /dev/sda14 615514473 625137344 4811436 83 Linux ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 28 Nov 2012, Ralf Mardorf wrote: On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will it be possible to update to FreeBSD 9.x or do they differ, similar as different Linux distros can differ? PC-BSD is FreeBSD, and there is a 9.x version. I don't know what it uses for partitioning code, but if you value your data, back up first. ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 2012-11-28 at 09:25 -0700, Warren Block wrote: On Wed, 28 Nov 2012, Ralf Mardorf wrote: On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will it be possible to update to FreeBSD 9.x or do they differ, similar as different Linux distros can differ? PC-BSD is FreeBSD, and there is a 9.x version. I don't know what it uses for partitioning code, but if you value your data, back up first. I chose 8.2, to get another version for partitioning. However, I'll also test your recommendation from your previous mail. # gpart modify -i1 -t freebsd-ufs da0 And I'll avoid to use the cursor keys next time, to get a better log file. Thank you for your help, Ralf ___ 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
Cannot boot - creating partition and installing FreeBSD is [solved]
Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2fc6 Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 a5 FreeBSD /dev/sda2 * 121274746 625137344 251931299+ 5 Extended [snip] spinymouse@q:~$ sudo parted -l Model: ATA SAMSUNG HD321KJ (scsi) Disk /dev/sda: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End SizeType File system Flags 1 32.3kB 62.1GB 62.1GB primary freebsd-ufs 2 62.1GB 320GB 258GB extended boot [snip] From the FreeBSD 9.0 DVD shell: # gpart show = 63 625142385 ada0 MBR (298G) 63 121274622 1 freebsd (57G) 121274685 61- free - (30k) 121274746 503862599 2 ebr [active] (240G) 625137345 5103- free - (2.5M) = 63 976773105 ada1 MBR (465G) 63 42973812 1 linux-data (20G) 42973875 61- free - (30k) 42973936 933794129 2 ebr (445G) 976768065 5103- free - (2.5M) =0 121274622 ada0s1 BSD (57G) 04194304 1 freebsd-ufs (2.0G) 4194304 19922944 2 freebsd-swap (9.5G) 241172484194304 4 freebsd-ufs (2.0G) 28311552 92952576 5 freebsd-ufs (44G) 121264128 10494 - free - (5.1M) =0 503862599 ada0s2 EBR (240G) 0 62476724 1 ntfs (29G) 62476724 62669565 991695 linux-data (29G) 125146289 62862345 1986450 linux-data (30G) 188008634 52684236 2984265 linux-data (25G) 240692870 73650176 3820522 linux-data (35G) 314343046748 - free - (374k) 3143437944546395 4989585 linux-swap (2.2G) 318890189 121708440 5061750 linux-data (58G) 4405986297341705 6993630 linux-data (3.5G) 447940334 46299330 7110165 linux-data (22G) 4942396649622935 7845075 linux-data (4.6G) =0 933794129 ada1s2 EBR (445G) 0 42957749 1 linux-data (20G) 42957749 42765030 681870 linux-data (20G) 857227795092605 1360680 linux-swap (2.4G) 90815384 42154560 1441515 linux-data (20G) 132969944 43246980 2110635 linux-data (20G) 1762169241020340 2797095 linux-data (498M) 177237264 26476544 2813290 linux-data (12G) 203713808 100861952 3233553 linux-data (48G) 304575760514 - free - (257k) 304576274 209759742 4834545 linux-data (100G) 514336016963 - free - (481k) 514336979 419456061 8164080 linux-data (200G) 933793040 1089 - free - (544k) = 63 46299204 ada0s13 MBR (22G) 63 46299204 - free - (22G) = 63 46299204 ext2fs/backs MBR (22G) 63 46299204- free - (22G) Regards, Ralf ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
PS: spinymouse@q:/boot$ grep CONFIG_UFS_FS config-3.6.5-rt14 CONFIG_UFS_FS=m # CONFIG_UFS_FS_WRITE is not set spinymouse@q:/boot$ lsmod | grep ufs spinymouse@q:/boot$ sudo modprobe ufs [sudo] password for spinymouse: spinymouse@q:/boot$ lsmod | grep ufs ufs74797 0 So for write access I've got to build the kernel again. No problem, since I anyway build the kernel-rt myself. Still strange, when I try to mount it by using Nautilus I get: Unable to mount 62 GB Volume Error mounting /dev/sda1 at /media/spinymouse/disk: Command-line `mount -t ufs -o uhelper=udisks2,nodev,nosuid /dev/sda1 /media/spinymouse/disk' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so However, I'll ask on a Linux mailing list what to do. There's still the multi-boot issue. How to boot FreeBSD and Linux. ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
On Thu, 29 Nov 2012, Ralf Mardorf wrote: PS: spinymouse@q:/boot$ grep CONFIG_UFS_FS config-3.6.5-rt14 CONFIG_UFS_FS=m # CONFIG_UFS_FS_WRITE is not set spinymouse@q:/boot$ lsmod | grep ufs spinymouse@q:/boot$ sudo modprobe ufs [sudo] password for spinymouse: spinymouse@q:/boot$ lsmod | grep ufs ufs74797 0 So for write access I've got to build the kernel again. No problem, since I anyway build the kernel-rt myself. Still strange, when I try to mount it by using Nautilus I get: Unable to mount 62 GB Volume Error mounting /dev/sda1 at /media/spinymouse/disk: Command-line `mount -t ufs -o uhelper=udisks2,nodev,nosuid /dev/sda1 /media/spinymouse/disk' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so It's trying to mount the whole slice rather than individual FreeBSD partitions inside that slice. I don't know how--or if--Linux has a way to refer to those partitions. The FreeBSD notation would be ada0s1a, ada0s1b (swap), ada0s1d, ada0s1e. c refers to the whole disk, not an individual partition. There's still the multi-boot issue. How to boot FreeBSD and Linux. Grub can do it, as can others. Can't speak to the details, though. ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
Ralf Mardorf ralf.mard...@rocketmail.com writes: Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l You might want to try a chainloader boot from grub. The following is a chainloader rule that I have used, as well as a normal loader boot. I use the loader boot, but I also tested the chainloader boot. You will need a ufs2_stage1_5 file in your grub directory for a loader boot, and linux grub might not have it available. title FreeBSD, sda3 (oak) chainloader root(hd1,2) chainloader +1 boot title FreeBSD, sda3 (oak) /boot/loader root(hd1,2,a) kernel /boot/loader boot -- Carl Johnsonca...@peak.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: How to create a partition for FreeBSD 9.0?
All instructions failed. Is there a way to mount a linux partition or USB-stick and to redirect the output of the gpart commands to a log file? In linux after mounting a partition or usb-stick I would do it like that: spinymouse@q:~$ echo $ ls -l logfile spinymouse@q:~$ ls -l logfile spinymouse@q:~$ cat logfile $ ls -l total 2644 -rw-rwxr-- 1 test_user_q spinymouse2614 Nov 24 03:43 bak_q_arch-mail drwxr-xr-x 2 spinymouse spinymouse4096 Oct 13 22:47 Desktop drwxr-xr-x 2 spinymouse spinymouse4096 Nov 1 18:19 Documents drwxr-xr-x 2 spinymouse spinymouse4096 Nov 24 15:56 Downloads -rw-rw-r-- 1 spinymouse spinymouse 53724 Nov 24 14:39 freebsd_logo1.png -rw-rw-r-- 1 spinymouse spinymouse 127098 Nov 24 14:39 freebsd_logo1.xcf -rw-r--r-- 1 spinymouse spinymouse 2492653 Nov 12 09:54 hdsp.1.mix -rw-rw-r-- 1 spinymouse spinymouse 8 Nov 27 15:57 logfile drwx-- 7 spinymouse spinymouse4096 Nov 15 18:50 Spinymouse So how can I mount e.g. an USB stick? And could I then run something similar to # echo gpart show ada0s1 /path/to/usbstick/logfile # gpart show ada0s1 /path/to/usbstick/logfile # echo gpart add -t freebsd -i1 ada0 /path/to/usbstick/logfile # echo gpart add -t freebsd -i1 ada0 /path/to/usbstick/logfile etc.? I would like to post the output to the list. TIA Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Tue, 2012-11-27 at 16:13 +0100, Ralf Mardorf wrote: All instructions failed. Is there a way to mount a linux partition or USB-stick and to redirect the output of the gpart commands to a log file? In linux after mounting a partition or usb-stick I would do it like that: spinymouse@q:~$ echo $ ls -l logfile spinymouse@q:~$ ls -l logfile spinymouse@q:~$ cat logfile $ ls -l total 2644 -rw-rwxr-- 1 test_user_q spinymouse2614 Nov 24 03:43 bak_q_arch-mail drwxr-xr-x 2 spinymouse spinymouse4096 Oct 13 22:47 Desktop drwxr-xr-x 2 spinymouse spinymouse4096 Nov 1 18:19 Documents drwxr-xr-x 2 spinymouse spinymouse4096 Nov 24 15:56 Downloads -rw-rw-r-- 1 spinymouse spinymouse 53724 Nov 24 14:39 freebsd_logo1.png -rw-rw-r-- 1 spinymouse spinymouse 127098 Nov 24 14:39 freebsd_logo1.xcf -rw-r--r-- 1 spinymouse spinymouse 2492653 Nov 12 09:54 hdsp.1.mix -rw-rw-r-- 1 spinymouse spinymouse 8 Nov 27 15:57 logfile drwx-- 7 spinymouse spinymouse4096 Nov 15 18:50 Spinymouse So how can I mount e.g. an USB stick? And could I then run something similar to # echo gpart show ada0s1 /path/to/usbstick/logfile # gpart show ada0s1 /path/to/usbstick/logfile # echo gpart add -t freebsd -i1 ada0 /path/to/usbstick/logfile # echo gpart add -t freebsd -i1 ada0 /path/to/usbstick/logfile oops, but I guess you know what I mean etc.? I would like to post the output to the list. TIA Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Tue, 27 Nov 2012, Ralf Mardorf wrote: All instructions failed. Is there a way to mount a linux partition or USB-stick and to redirect the output of the gpart commands to a log file? In linux after mounting a partition or usb-stick I would do it like that: spinymouse@q:~$ echo $ ls -l logfile spinymouse@q:~$ ls -l logfile Too much work. Use script(1): $ script /tmp/session.log $ (do a bunch of stuff) $ exit And session.log will contain everything. Including control characters, so edit it before posting. So how can I mount e.g. an USB stick? This is in the Handbook somewhere, but a quick look didn't find it, so: # mount -t msdosfs /dev/da0s1 /mnt That assumes there is a FAT filesystem in the first partition of the memory stick, a common setup. Please don't use NTFS. ___ 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: How to create a partition for FreeBSD 9.0?
On Tuesday 27 November 2012 15:15:52 Ralf Mardorf wrote: And could I then run something similar to # echo gpart show ada0s1 /path/to/usbstick/logfile # gpart show ada0s1 /path/to/usbstick/logfile # echo gpart add -t freebsd -i1 ada0 /path/to/usbstick/logfile # echo gpart add -t freebsd -i1 ada0 /path/to/usbstick/logfile oops, but I guess you know what I mean etc.? I would like to post the output to the list. The neater way # script /path/to/usbstick/logfile # gpart show ada0 # gpart add -t freebsd -i1 ada0 # gpart show ada0 # CTRL+D Then /path/to/usbstick/logfile will contain a full log of your commands and output showing the partition information for ada0 before and after creating the new partition. -- Mike Clarke ___ 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: [Bulk] Re: How to create a partition for FreeBSD 9.0?
On Tue, 2012-11-27 at 09:05 -0700, Warren Block wrote: On Tue, 27 Nov 2012, Ralf Mardorf wrote: All instructions failed. Is there a way to mount a linux partition or USB-stick and to redirect the output of the gpart commands to a log file? In linux after mounting a partition or usb-stick I would do it like that: spinymouse@q:~$ echo $ ls -l logfile spinymouse@q:~$ ls -l logfile Too much work. Use script(1): $ script /tmp/session.log $ (do a bunch of stuff) $ exit And session.log will contain everything. Including control characters, so edit it before posting. So how can I mount e.g. an USB stick? This is in the Handbook somewhere, but a quick look didn't find it, so: # mount -t msdosfs /dev/da0s1 /mnt That assumes there is a FAT filesystem in the first partition of the memory stick, a common setup. Please don't use NTFS. Thank you :) I use USB sticks as they are, with FAT, if I e.g. need Linux permissions, I use an archive on the USB stick. Yes, I'll edit the logfile, before posting. Indeed script /tmp/session.log is better, than my stupid idea. Regards, Ralf ___ 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: [Bulk] Re: How to create a partition for FreeBSD 9.0?
# mount -t msdosfs /dev/da0s1 /mnt did not work. It has to be # mount -t msdosfs /dev/da0 /mnt This is from the log: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683- free - (57G) 121274746 503862599 2 ebr [active] (240G) 625137345 5103- free - (2.5M) # gpart add -t freebsd -i1 ada0 ada0s1 added Now it becomes complicated, since the log is a mess: = 63 625142385 ada0 MBR (298G) 63 121274622 1 freebsd (57G) 121274685 61- free - (30k) 121274746 503862599 2 ebr [active] (240G) 625137345 5103- free - (2.5M) # gpart show ada0s1 =0 121274622 ada0s1 EBR (57G) 0 121274622 - free - (57G) # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists # gpart create -s bsd da0s1 gpart: arg0 'da0s1': Invalid argument And now log is missing output: # gpart -t freebsd-ufs -a 4k -s 53g [???] However, since create already didn't work, the missing output anyway is unimportant. Regards, Ralf ___ 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: [Bulk] Re: How to create a partition for FreeBSD 9.0?
PS: In Linux the result does look like this: $ sudo fdisk -l /dev/sda | grep BSD /dev/sda1 63 12127468460637311 a5 FreeBSD $ sudo parted -l | grep pri 1 32.3kB 62.1GB 62.1GB primary ext3 1 32.3kB 22.0GB 22.0GB primary ext4 ___ 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: VPS FreeBSD Hosting
George == George Hartzell hartz...@alerce.com writes: George I'll second that. I have a smaller and a larger VPS at ARP, they've George been great. And I've been running 5 FreeBSD servers of various sizes there for something like two years (or has it been three?). All booting from ZFS as /. Fun. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ 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: [Bulk] Re: How to create a partition for FreeBSD 9.0?
On Tue, 27 Nov 2012, Ralf Mardorf wrote: This is from the log: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683- free - (57G) 121274746 503862599 2 ebr [active] (240G) 625137345 5103- free - (2.5M) # gpart add -t freebsd -i1 ada0 ada0s1 added Now it becomes complicated, since the log is a mess: = 63 625142385 ada0 MBR (298G) 63 121274622 1 freebsd (57G) 121274685 61- free - (30k) 121274746 503862599 2 ebr [active] (240G) 625137345 5103- free - (2.5M) That looks okay. # gpart show ada0s1 =0 121274622 ada0s1 EBR (57G) 0 121274622 - free - (57G) # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. ___ 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: How to create a partition for FreeBSD 9.0?
On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? FWIW on this machine are Linux installs only, used file systems are ext3, ext4 and ntfs [1]. Regards, Ralf [1] spinymouse@q:~$ sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2fc6 Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 a5 FreeBSD /dev/sda2 * 121274746 625137344 251931299+ 5 Extended /dev/sda5 121274748 183751469312383617 HPFS/NTFS/exFAT /dev/sda6 183751533 24642103431334751 83 Linux /dev/sda7 246421098 30928337931431141 83 Linux /dev/sda8 309283443 36196761526342086+ 83 Linux /dev/sda9 361969664 43561779136824064 83 Linux /dev/sda10 435618603 440164934 2273166 82 Linux swap / Solaris /dev/sda11 440164998 56187337460854188+ 83 Linux /dev/sda12 561873438 569215079 3670821 83 Linux /dev/sda13 569215143 61551440923149633+ 83 Linux /dev/sda14 615514473 625137344 4811436 83 Linux Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000525e5 Device Boot Start End Blocks Id System /dev/sdb1 634297387421486906 83 Linux /dev/sdb242973936 976768064 466897064+ 5 Extended /dev/sdb5429739388593168421478873+ 83 Linux /dev/sdb685931748 12869671421382483+ 83 Linux /dev/sdb7 128696778 133789319 2546271 82 Linux swap / Solaris /dev/sdb8 133789383 17594387921077248+ 83 Linux /dev/sdb9 175943943 21919085921623458+ 83 Linux /dev/sdb10 219190923 220211199 510138+ 83 Linux /dev/sdb11 220213248 24668774313237248 83 Linux /dev/sdb12 246689792 34754969550429952 83 Linux /dev/sdb13 347550273 557309951 104879839+ 83 Linux /dev/sdb14 557312000 976766975 209727488 83 Linux spinymouse@q:~$ sudo parted -l Model: ATA SAMSUNG HD321KJ (scsi) Disk /dev/sda: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End SizeType File system Flags 1 32.3kB 62.1GB 62.1GB primary ext3 2 62.1GB 320GB 258GB extended boot 5 62.1GB 94.1GB 32.0GB logical ntfs 6 94.1GB 126GB 32.1GB logical ext3 7 126GB 158GB 32.2GB logical ext3 8 158GB 185GB 27.0GB logical ext3 9 185GB 223GB 37.7GB logical ext3 10 223GB 225GB 2328MB logical linux-swap(v1) 11 225GB 288GB 62.3GB logical ext3 12 288GB 291GB 3759MB logical ext3 13 291GB 315GB 23.7GB logical ext3 14 315GB 320GB 4927MB logical ext3 Model: ATA SAMSUNG HD502HJ (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End SizeType File system Flags 1 32.3kB 22.0GB 22.0GB primary ext4 2 22.0GB 500GB 478GB extended 5 22.0GB 44.0GB 22.0GB logical ext3 6 44.0GB 65.9GB 21.9GB logical ext3 7 65.9GB 68.5GB 2607MB logical linux-swap(v1) 8 68.5GB 90.1GB 21.6GB logical ext4 9 90.1GB 112GB 22.1GB logical ext4 10 112GB 113GB 522MB logical ext4 11 113GB 126GB 13.6GB logical ext4 12 126GB 178GB 51.6GB logical ext4 13 178GB 285GB 107GB logical ext4 14 285GB 500GB 215GB logical ext4 ___ 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: VPS FreeBSD Hosting
On 11/25/12 22:07, Michael Sierchio wrote: Top-posting for brevity. I use EC2. You can start with Colin Percival's HVM instances - I run a Xen kernel using a modified version of his original scheme - which is to have a 1GB Linux partition running grub to boot from a FreeBSD disk. I'm happy to share an AMI with you, but you should try Colin's stuff. On Sun, Nov 25, 2012 at 1:08 PM, Jim Flowers jflow...@ezo.net wrote: I gave up maintaining my own hardware for providing cloud computing services about 10 years ago and have been using several dedicated server services with root-access FreeBSD since about 6.0. with good results. At the time VPS looked like too many problems. FreeBSD is now officially supported by Amazon (but still supplied by Colin) as well as Colin's defenestrated FreeBSD AMIs. http://aws.typepad.com/aws/2012/11/aws-marketplace-additional-operating-system-support.html https://aws.amazon.com/marketplace/pp/B00AA25MLK/ref=sp_mpg_product_title?ie=UTF8sr=0-2 However, these are only on the new 3rd generation of EC2 instances, which are heavy duty systems. For many uses micro instances are enough, but you still have to pay the Windows tax on those. I don't know whether Colin is working to change that, or if there are technical reasons why it's impossible. http://www.daemonology.net/freebsd-on-ec2/ ___ 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: VPS FreeBSD Hosting
Hello, We at SmartServ Hosting, http://www.smart-serv.net/, have been offering VPS containers supporting FreeBSD for over a year and previously ran all our services from FreeBSD on bare metal before moving into our virtualization environment where we continue to use FreeBSD for our core services. We have hosts available in US and France currently. On 11/25/2012 02:08 PM, Jim Flowers wrote: I gave up maintaining my own hardware for providing cloud computing services about 10 years ago and have been using several dedicated server services with root-access FreeBSD since about 6.0. with good results. At the time VPS looked like too many problems. Now, however, it looks like there are quite a number of mature VPS hosting services that are FreeBSD-centric at very attractive prices. Most offer KVM or VPS-instance access to allow rebooting and reinstallation. Can anyone comment on the providers and the technology in the context of having used them specifically for FreeBSD in the last few years? Good? Bad? Indifferent? Fairly modest duty - spam filtering, mailboxes, websites, storage, reverse proxy and the like. Oh yeah, some development. Thanks ___ 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: VPS FreeBSD Hosting
On 26/11/2012 20:48, Arthur Chance wrote: FreeBSD is now officially supported by Amazon (but still supplied by Colin) as well as Colin's defenestrated FreeBSD AMIs. I don't use them yet but while looking into cloud setups I found that rackspace have offered freebsd 9 images for us to build a server with since July. They don't offer it as a supported system on their managed solutions but they are happy for you to build your own server with it, even looks like you can use zfs. ___ 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: How to create a partition for FreeBSD 9.0?
On Sat, 2012-11-24 at 20:06 -0700, Warren Block wrote: On Sat, 24 Nov 2012, Ralf Mardorf wrote: I use the amd64 install DVD. With or without deleting, I can't format a bootable FreeBSD partition to ada0s1, aka Linux /dev/sda1. FWIW if I reinstall GRUB legacy to /dev/sda, the boot flag will be set for the extended partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB. Delete it, or set it to type 0xa5. I think the first is probably better for bsdinstall to see it as available. Expect boot loaders to be overwritten, so make a backup, preferably of everything. It already was deleted for the last attempts. Another day, fortunately I've got much time, so I'll read how to use the shell for partitioning. I don't know if I'm an idiot or if the installer is broken, most likely I'm an idiot + the installer is broken. Regards, Ralf ___ 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: freebsd-update - To 'Stable'?
--On 22 November 2012 17:41 +0100 Polytropon free...@edvax.de wrote: I'm looking at switching to 'freebsd-update' - is there an equivalent way to get it to update me to '-STABLE'? No. The freebsd-update program can only be used to follow the RELEASE branch, plus the security updates (RELEASE-pN). Following STABLE branch still requires you to update by source. Ok, as csup is 'deprecated' - I guess what I need to do is move over to Subversion instead? - As 'freebsd-update' is only going to get me release + security (-pX), not 'stable'. At the moment we have a local host that has the entire FreeBSD source tree on it - so we can just 'cherry pick' versions we need to update - I'd guess / hope a similar setup is possible, but with Subversion... -Karl [Off to look for a setup guide ;)] ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 25 Nov 2012 02:34:28 +0100, Ralf Mardorf wrote: On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote: I meant the really manual mode (CLI) as to be seen in Fig. 3-10, named Shell (that's why the confusion, sorry). http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html Manually Create Partitions doesn't work. The MD5sum for the ISO was ok and the burned DVD was verified. How does doesn't work appear? As far as I know, the difference to manual is that in _this_ method, you need to create your partitions yourself (the default behaviour in ye olde sysinstall); otherwise, I think one partition covering the whole slice will be created, this can be sub-optimum (especially in worse case scenarios). I did not test Shell until now and it's to late to search and read a howto. The Shell way should always work, even when the installer should know better. You can find details on how to use the CLI tools in Warren's article. When startup finished I push enter Install keyboard: German ISO-8859-1 hostname: freebsd [*] doc, games, lib32, ports, src Guided Partitioning Select the disk on which to install FreeBSD: ada0 Partition (not Entire Disk) That's the correct approach. Continuing doesn't work, or I don't know what to do. FWIW, I'll use MBR and if possible / only. Maybe it's because you have a totally non-standard content already on the disk (many Linusi, extended DOS partitions and so on, and the installer gets confused). That's why it would probably be easier to drop to the Shell command line and use either fdisk + bsdlabel _or_ gpart. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 2012-11-25 at 13:19 +0100, Polytropon wrote: How does doesn't work appear? My apologies that I didn't wrote all error messages, they were about non-bootable and other things. I guess it' s better to ignore this and to continue with ... Maybe it's because you have a totally non-standard content already on the disk (many Linusi, extended DOS partitions and so on, and the installer gets confused). That's why it would probably be easier to drop to the Shell command line and use either fdisk + bsdlabel _or_ gpart. ... gpart. Right now I'll shut down Linux and restart the installer and simply try, what I've written here: http://lists.freebsd.org/pipermail/freebsd-questions/2012-November/246767.html I'll wait a few minutes, perhaps you read it and say if this is ok. Regards, Ralf ___ 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: freebsd-update - To 'Stable'?
On Sun, 25 Nov 2012 12:06:06 +, Karl Pielorz wrote: --On 22 November 2012 17:41 +0100 Polytropon free...@edvax.de wrote: I'm looking at switching to 'freebsd-update' - is there an equivalent way to get it to update me to '-STABLE'? No. The freebsd-update program can only be used to follow the RELEASE branch, plus the security updates (RELEASE-pN). Following STABLE branch still requires you to update by source. Ok, as csup is 'deprecated' - I guess what I need to do is move over to Subversion instead? Sadly, yes. There still is no csup-equivalent (efficient and fast implementation distributed with the base OS) provided yet. And it's not just about being provided with the OS, but also about nice integration (like /etc/sup/* config files or the option to simply make update). - As 'freebsd-update' is only going to get me release + security (-pX), not 'stable'. Correct. You _can_ use this to compile your own non-GENERIC kernel, but it will always have the pre-STABLE content, just as the rest of /usr/src. At the moment we have a local host that has the entire FreeBSD source tree on it - so we can just 'cherry pick' versions we need to update - I'd guess / hope a similar setup is possible, but with Subversion... It should be possible, as the functionality of CVS and SVN can be seen as quite comparable. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
Wheres the FreeBSD PBR ? (was Re: Manually partitioning using gpart / wh)
On 2012.11.25 14:35, Ralf Mardorf wrote: I don't need it, but I could add it for what ever worst case emergency scenario and GRUB in the MBR anyway will work? I don't see how it could ever come in handy, and I'm not sure it wouldn't do any hamr either. The /boot/gptboot code to be written weighs 15kB, that could be big enough to mess up the filesystem on the partition. That /boot/gptboot code is designed to work on a special-purpose small GPT partition that doesn't hold a filesystem. So I would refrain from doing it. It would be useful for emergency purposes to write MBR-partition scheme-compatible bootcode to that partition instead, but I've yet to find out how to do it. gpart(8) seems to have the ability to do it, but it's manual page doesn't mention what file to pass to its -p option to do that. Maybe it's one of those /boot/boot1 or /boot/boot2 files I'm seeing on my system. Maybe someone can enlighten me on that. ___ 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: Wheres the FreeBSD PBR ? (was Re: Manually partitioning using gpart / wh)
On Sun, 2012-11-25 at 15:10 +0100, Lucas B. Cohen wrote: On 2012.11.25 14:35, Ralf Mardorf wrote: I don't need it, but I could add it for what ever worst case emergency scenario and GRUB in the MBR anyway will work? I don't see how it could ever come in handy, and I'm not sure it wouldn't do any hamr either. The /boot/gptboot code to be written weighs 15kB, that could be big enough to mess up the filesystem on the partition. That /boot/gptboot code is designed to work on a special-purpose small GPT partition that doesn't hold a filesystem. So I would refrain from doing it. It would be useful for emergency purposes to write MBR-partition scheme-compatible bootcode to that partition instead, but I've yet to find out how to do it. gpart(8) seems to have the ability to do it, but it's manual page doesn't mention what file to pass to its -p option to do that. Maybe it's one of those /boot/boot1 or /boot/boot2 files I'm seeing on my system. Maybe someone can enlighten me on that. Ok. I don't install it. Regards, Ralf -- At the moment I'm watching The Hitchhiker's Guide to the Galaxy, so I'll continue the install later today. ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 25 Nov 2012, Ralf Mardorf wrote: On Sun, 2012-11-25 at 13:19 +0100, Polytropon wrote: How does doesn't work appear? My apologies that I didn't wrote all error messages, they were about non-bootable and other things. I guess it' s better to ignore this and to continue with ... Maybe it's because you have a totally non-standard content already on the disk (many Linusi, extended DOS partitions and so on, and the installer gets confused). That's why it would probably be easier to drop to the Shell command line and use either fdisk + bsdlabel _or_ gpart. ... gpart. Right now I'll shut down Linux and restart the installer and simply try, what I've written here: http://lists.freebsd.org/pipermail/freebsd-questions/2012-November/246767.html I'll wait a few minutes, perhaps you read it and say if this is ok. No, it confuses GPT and MBR issues. I thought bsdinstall would install to an MBR partition. That would be the easiest way. If not... Make a full backup first. Assuming the first slice has been deleted. # gpart add -t freebsd -i1 ada0 Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the FreeBSD slice: # gpart create -s bsd da0s1 Create FreeBSD partitions. Sizes may be adjusted, but these will work. # gpart add -t freebsd-ufs -a 4k -s 2g da0s1 # gpart add -t freebsd-swap -a 4k -s 512m da0s1 # gpart add -t freebsd-ufs -a 4k -s 1g da0s1 # gpart add -t freebsd-ufs -a 4k -s 256m da0s1 # gpart add -t freebsd-ufs -a 4k da0s1 After you have done all this, you can go back and use the Partition selection in bsdinstall to enter types and mountpoints for each. Or you can newfs each and then mount them, setting the location in BSDINSTALL_CHROOT. ___ 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
VPS FreeBSD Hosting
I gave up maintaining my own hardware for providing cloud computing services about 10 years ago and have been using several dedicated server services with root-access FreeBSD since about 6.0. with good results. At the time VPS looked like too many problems. Now, however, it looks like there are quite a number of mature VPS hosting services that are FreeBSD-centric at very attractive prices. Most offer KVM or VPS-instance access to allow rebooting and reinstallation. Can anyone comment on the providers and the technology in the context of having used them specifically for FreeBSD in the last few years? Good? Bad? Indifferent? Fairly modest duty - spam filtering, mailboxes, websites, storage, reverse proxy and the like. Oh yeah, some development. Thanks ___ 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: How to create a partition for FreeBSD 9.0?
I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2 and te other data from HDD2 to HDD1. On Sun, 2012-11-25 at 13:43 -0700, Warren Block wrote: Assuming the first slice has been deleted. Correct. # gpart add -t freebsd -i1 ada0 Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the FreeBSD slice: # gpart create -s bsd da0s1 Create FreeBSD partitions. Sizes may be adjusted, but these will work. # gpart add -t freebsd-ufs -a 4k -s 2g da0s1 # gpart add -t freebsd-swap -a 4k -s 512m da0s1 # gpart add -t freebsd-ufs -a 4k -s 1g da0s1 # gpart add -t freebsd-ufs -a 4k -s 256m da0s1 # gpart add -t freebsd-ufs -a 4k da0s1 After you have done all this, you can go back and use the Partition selection in bsdinstall to enter types and mountpoints for each. Or you can newfs each and then mount them, setting the location in BSDINSTALL_CHROOT. I would prefer to continue with the installer. However, I guess for my needs just / is needed, so I guess # gpart add -t freebsd-swap -a 4k -s 512m da0s1 # gpart add -t freebsd-ufs -a 4k da0s1 is what I should run?! 512m (it doesn't matter to use m or M?) is enough swap? I've got 4GB RAM. On Linux I use 2 swaps each around 2GB, but they are not much used. For Linux there are no valid rules any more, how to set up the swap, or at least I don't know the rules. Thank you, Ralf ___ 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: FreeBSD needs Git to ensure repo integrity
grarpamp grarp...@gmail.com writes: Any of hundreds of committer and admin accounts could be compromised with the attacker silently editing the repo. FUD. Committer accounts don't have direct access to the repo. DES -- Dag-Erling Smørgrav - d...@des.no ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 25 Nov 2012 22:09:42 +0100, Ralf Mardorf wrote: I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2 and te other data from HDD2 to HDD1. Per definition, that's just a copy, not a backup. :-) I would prefer to continue with the installer. However, I guess for my needs just / is needed, so I guess # gpart add -t freebsd-swap -a 4k -s 512m da0s1 # gpart add -t freebsd-ufs -a 4k da0s1 is what I should run?! 512m (it doesn't matter to use m or M?) is enough swap? If you have sufficient disk space, going for about 2 GB swap won't be problematic (and offer you some free space for unexpected use of swap). From man gpart: Its size is given by the -s size option. SI unit suffixes are allowed. The SI unit suffix per definition is M, but if m also works, both seem to be valid. There's an example reading /sbin/gpart add -s 512M -t freebsd-ufs da0 in the EXAMPLES section. I've got 4GB RAM. On Linux I use 2 swaps each around 2GB, but they are not much used. For Linux there are no valid rules any more, how to set up the swap, or at least I don't know the rules. In fact, there are no definite rules anymore. The use of swap depends on too many factors (HDD or SSD, how many, RAID layout, RAM in machine, applications, ...) to make an easy rule. But better have swap you don't need than to need swap you don't have. :-) I still wonder how or why the new installer fails with the task discussed here. Basically, if there is free space on the disk, one should be able to use fdisk to allocate it to a FreeBSD slice (cf. DOS primary partition) and then use disklabel (bsdlabel) to create the required partitions inside this slice (/ and swap, in your case). There would be no need to write any boot codes or MBR stuff as GRUB will chainload the FreeBSD loader (hd0,a:/boot/loader). Modern technology... :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: VPS FreeBSD Hosting
On Sun, 25 Nov 2012, Jim Flowers wrote: I gave up maintaining my own hardware for providing cloud computing services about 10 years ago and have been using several dedicated server services with root-access FreeBSD since about 6.0. with good results. At the time VPS looked like too many problems. Now, however, it looks like there are quite a number of mature VPS hosting services that are FreeBSD-centric at very attractive prices. Most offer KVM or VPS-instance access to allow rebooting and reinstallation. Can anyone comment on the providers and the technology in the context of having used them specifically for FreeBSD in the last few years? Good? Bad? Indifferent? We have had good experience with pair.com and rootbsd.com. Both were used for websites. We never had any problems with either, so I can't report on their problem solving skills, but customer service from both was good for the handful of routine questions we had. dan feenberg Fairly modest duty - spam filtering, mailboxes, websites, storage, reverse proxy and the like. Oh yeah, some development. Thanks ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 25 Nov 2012, Ralf Mardorf wrote: I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2 and te other data from HDD2 to HDD1. On Sun, 2012-11-25 at 13:43 -0700, Warren Block wrote: Assuming the first slice has been deleted. Correct. # gpart add -t freebsd -i1 ada0 Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the FreeBSD slice: # gpart create -s bsd da0s1 Create FreeBSD partitions. Sizes may be adjusted, but these will work. # gpart add -t freebsd-ufs -a 4k -s 2g da0s1 # gpart add -t freebsd-swap -a 4k -s 512m da0s1 # gpart add -t freebsd-ufs -a 4k -s 1g da0s1 # gpart add -t freebsd-ufs -a 4k -s 256m da0s1 # gpart add -t freebsd-ufs -a 4k da0s1 After you have done all this, you can go back and use the Partition selection in bsdinstall to enter types and mountpoints for each. Or you can newfs each and then mount them, setting the location in BSDINSTALL_CHROOT. I would prefer to continue with the installer. However, I guess for my needs just / is needed, so I guess # gpart add -t freebsd-swap -a 4k -s 512m da0s1 # gpart add -t freebsd-ufs -a 4k da0s1 I think we just found in another thread that the UFS partition must be first, but it will have to have a size stated. 512m (it doesn't matter to use m or M?) is enough swap? I've got 4GB RAM. On Linux I use 2 swaps each around 2GB, but they are not much used. Use more if you like. It will not hurt, and might be useful in some situations. The m or g is not case-sensitive. So the command above to allocate 40G for a filesystem and the rest to swap would be # gpart add -t freebsd-ufs -a 4k -s 40g da0s1 # gpart add -t freebsd-swap -a 4k -s da0s1 Bootcode might also be needed on the FreeBSD slice, but I have not used grub, so don't know for sure. ___ 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
serial console issues with FreeBSD 9.0 (i386)
Hello While installing FreeBSD 9.0 i386 on a Soekris net6501 I ran into some problems regarding the serial console. Those problems and their workarounds are described below -- for the archives, in case someone runs into them as well. After having read section 27.6 Setting Up the Serial Console from the FreeBSD Handbook and the man pages related to boot(8) and loader(8) I decided to go for the option to configure the serial console using boot.config(5). I wrote the FreeBSD 9.0 i386 memstick image to a memory stick, mounted the root file system and created boot.config therein, containing '-h -S57600' on a single line (yes, without the quotes ;-)). But booting from this stick failed with boot 82 - Soekris comBIOS prompt /bInvalid format followed by a system reboot. However, this was not always reproducible; every now and then booting succeeded. Coincidentally I noticed that with the two boot(8) arguments swapped (i.e. with '-S57600 -h'), booting seems to always succeed: boot 82 /boot.config: -S57600 -h Consoles: serial port [...] A similar (same?) problem seems to exist when booting the installed system from hard disk: if /boot.config contains '-h -S57600', booting fails with boot - Soekris comBIOS prompt /b being output, after which the system seems to freeze -- at least no reboot and no disk access seem to happen. When swapping the order of boot(8) arguments (i.e. '-S57600 -h'), the system boots fine: boot /boot.config: -S57600 -h Consoles: serial port [...] At least according to its man page, boot(8) seems to require the console speed option to be passed as a last option -- or am I missing something? BTW, I just noticed that these boot failures only seem to happen with particular speed settings: while with 57600 and 38400 the problem takes place as described above, with 19200 and 9600 it does _not_, i.e. the system boots fine. Hmm, any hints? Cheers, Jukka -- This email fills a much-needed gap in the archives. ___ 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: VPS FreeBSD Hosting
On 25/11/2012 21:08, Jim Flowers wrote: Can anyone comment on the providers and the technology in the context of having used them specifically for FreeBSD in the last few years? Good? Bad? Indifferent? What part of the world are you in? In the US there's RootBSD; in Europe there are a few, including Goscomb. -- Bruce Cran ___ 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: VPS FreeBSD Hosting
Top-posting for brevity. I use EC2. You can start with Colin Percival's HVM instances - I run a Xen kernel using a modified version of his original scheme - which is to have a 1GB Linux partition running grub to boot from a FreeBSD disk. I'm happy to share an AMI with you, but you should try Colin's stuff. On Sun, Nov 25, 2012 at 1:08 PM, Jim Flowers jflow...@ezo.net wrote: I gave up maintaining my own hardware for providing cloud computing services about 10 years ago and have been using several dedicated server services with root-access FreeBSD since about 6.0. with good results. At the time VPS looked like too many problems. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Sat, 24 Nov 2012, Matthias Apitz wrote: El día Wednesday, November 21, 2012 a las 09:19:24PM -0700, Warren Block escribió: On Wed, 21 Nov 2012, Warren Block wrote: The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Hi Warren, When the page is opened with konqueror of KDE 3.5.10 the JS functions for Table Of Content generator are generating in an endless loop the links. That's... unexpected. It's a stock AsciiDoc-generated feature. The PDF version is at: http://www.wonkity.com/~wblock/docs/pdf/disksetup.pdf___ 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: Should newfs include -S 4096? was Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3
On Fri, 23 Nov 2012, free...@johnea.net wrote: One of the complications was getting old metadata off of the drive. After trying a couple of 'dd' invocations: # overwriting the first sector dd if=/dev/zero of=/dev/ada0 bs=512 count=1 # also tried overwriting the last sector diskinfo ada0 | cut -f4 3907029168 (subtract 34, per WB) (I actually just subtracted the trailing 68) dd if=/dev/zero of=/dev/ada0 seek=3907029100 This would still seem to not delete all of the metadata, since after issuing: gmirror label -b split gm0 /dev/ada0 gmirror load # repartition new mirror gpart create -s MBR mirror/gm0 # ignore mirror/gm0s1 added, but partition is not aligned on 4096 bytes after add gpart add -t freebsd -a 4k mirror/gm0 # create the bsdlabel partitions in slice 1 (s1) gpart create -s BSD mirror/gm0s1 I would see that the old gm0s1a and gm0s1b had reappeared, even though I had not yet issued the 'add -t freebsd-ufs'. I'm not sure if they came back with the 'add -t freebsd' or the 'create -s BSD'. Saved this since yesterday, thinking maybe I could come up with an idea, but so far I can't think what would cause that. It might not hurt to force a retaste after the dd. The only thing that seemed to fix it was: gpart destroy -F /dev/ada0 I also tried at one point: gpart destroy -F ada0 gpart create -s gpt ada0 gpart destroy -F ada0 The thing I wonder about now: Should newfs include -S 4096? I used: newfs -U /dev/mirror/gm0s1a Will this lead to 512 byte sector access to the disk through the file system? Will this impact performance or longevity of the mirror? It's a good question; I have not tried it. ___ 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
Multi-boot Linux + FreeBSD
Hi, as a long time Linux user I'll test FreeBSD, because I've got issues with my sound card on Linux. I'm already subscribed to FreeBSD multimedia. Perhaps later today I'll install 9.0 amd64. If possible I'll keep my Linux GRUB legacy. Can I use my menu.lst [1] and add a chainloader or something similar to boot FreeBSD from /dev/sda1? FWIW I made backups of my HDD's MBRs. I wonder if the installer will overwrite the MBR? I also would like to know, if there's a way to recover the partition table, including a primary FreeBSD partition/slice, if this ever should get broken and there should be no backup of the partition table be available. TIA, Ralf [1] $ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title Ubuntu Quantal,kernel 3.6.5-rt14 root (hd1,8) kernel /boot/vmlinuz-3.6.5-rt14 root=/dev/sdb9 ro quiet initrd /boot/initrd.img-3.6.5-rt14 title Ubuntu Quantal,kernel 3.5.0-18-lowlatency threadirqs root (hd1,8) kernel /boot/vmlinuz-3.5.0-18-lowlatency root=/dev/sdb9 ro quiet threadirqs initrd /boot/initrd.img-3.5.0-18-lowlatency title Ubuntu Quantal,kernel 3.5.0-18-lowlatency (recovery mode) root (hd1,8) kernel /boot/vmlinuz-3.5.0-18-lowlatency root=/dev/sdb9 ro single initrd /boot/initrd.img-3.5.0-18-lowlatency title Ubuntu Studio Quantal, Kernel 3.6.5-rt14 root=(hd1,12) kernel /boot/vmlinuz-3.6.5-rt14 root=/dev/sdb13 ro quiet initrd /boot/initrd.img-3.6.5-rt14 title Ubuntu Studio Quantal, Kernel 3.5.0-18-lowlatency threadirqs root=(hd1,12) kernel /boot/vmlinuz-3.5.0-18-lowlatency root=/dev/sdb13 ro quiet threadirqs initrd /boot/initrd.img-3.5.0-18-lowlatency title Ubuntu Studio Precise, Kernel 3.0.30 threadirqs root=(hd1,0) kernel /boot/vmlinuz-3.0.30 root=UUID=338316fb-364e-4a43-8deb-738127f878ce ro quiet threadirqs initrd /boot/initrd.img-3.0.30 title Ubuntu Studio Precise, Kernel 3.2.0-23-lowlatency threadirqs root=(hd1,0) kernel /boot/vmlinuz-3.2.0-23-lowlatency root=UUID=338316fb-364e-4a43-8deb-738127f878ce ro quiet threadirqs initrd /boot/initrd.img-3.2.0-23-lowlatency title AVlinux 5.0.3, Kernel 3.0.23-rt40 root=(hd1,10) kernel /boot/vmlinuz-3.0.23-rt40 root=/dev/sdb11 ro quiet initrd /boot/initrd.img-3.0.23-rt40 title AVlinux 5.0.3, Kernel 3.0.23-avl-7-pae threadirqs root=(hd1,10) kernel /boot/vmlinuz-3.0.23-avl-7-pae root=/dev/sdb11 ro threadirqs quiet initrd /boot/initrd.img-3.0.23-avl-7-pae title Edubuntu 10.10,Kernel 2.6.33.9-rt31 root=(hd1,7) kernel /boot/vmlinuz-2.6.33.9-rt31 root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro initrd /boot/initrd.img-2.6.33.9-rt31 title Ubuntu Studio Oz, Kernel 3.0.0-17-generic root=(hd1,5) kernel /boot/vmlinuz-3.0.0-17-generic root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6 initrd /boot/initrd.img-3.0.0-17-generic title Ubuntu Studio Oz, Kernel 3.0.0-20-generic root=(hd1,5) kernel /boot/vmlinuz-3.0.0-20-generic root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6 initrd /boot/initrd.img-3.0.0-20-generic title Arch Linux Rt root (hd0,8) kernel /boot/vmlinuz-linux-rt root=/dev/sda9 ro initrd /boot/initramfs-linux-rt.img title Arch Linux root (hd0,8) kernel /boot/vmlinuz-linux root=/dev/sda9 ro initrd /boot/initramfs-linux.img title Arch Linux Fallback root (hd0,8) kernel /boot/vmlinuz-linux root=/dev/sda9 ro initrd /boot/initramfs-linux-fallback.img title openSUSE 11.2, Kernel 2.6.31.6-rt19 root (hd0,6) kernel /boot/vmlinuz-2.6.31.6-rt19 root=/dev/sda7 initrd /boot/initrd-2.6.31.6-rt19 title Ubuntu Quantal memtest86+ root (hd1,8) kernel /boot/memtest86+.bin ___ 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
Is FreeBSD 9 Production Ready?
I am currently running FBSD 8.3-STABLE on a production server that provides http, dns, smtp, and so on for a small domain. This is not a high arrival rate environment but it does need to be rock solid (which FBSD 4-8 have been). I am contemplating moving to the FBSD 9 family. Is this branch ready for production or should I wait a while yet? I ordinarily avoid x.0 releases of anything and I know 9.1 is soon going to be with us. In a related note, if I do move to 9.x is it sufficient to grab the appropriate source tree and compile world and kernels, install and reboot? That is, it is reasonable to do an in-place upgrade. This is how I migrated 4-6, 6-7, and 7-8 and I am hoping this is till the case since a complete reinstall is painful and slow. TIA, -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ 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: Multi-boot Linux + FreeBSD
Hi Ralf, On 2012.11.24 17:06, Ralf Mardorf wrote: Perhaps later today I'll install 9.0 amd64. If possible I'll keep my Linux GRUB legacy. Can I use my menu.lst [1] and add a chainloader or something similar to boot FreeBSD from /dev/sda1? I don't know if GRUB v1 allows that, on a multiboot system I use GRUB 2 to either load FreeBSD's loader(8) : menuentry FreeBSD (Loader) { insmod part_bsd set root='hd0,msdos2,bsd1' echo Loading FreeBSD loader kfreebsd /boot/loader echo Starting FreeBSD loader } or to run its kernel directly, after having passed it optional device hints: menuentry FreeBSD (Direct Boot) { insmod ufs2 set root='hd0,msdos2,bsd1' echo Loading FreeBSD kernel kfreebsd /boot/kernel/kernel echo Loading FreeBSD environment kfreebsd_loadenv /boot/device.hints set kfreebsd.vfs.root.mountfrom=ufs:/dev/ada0s2 echo Booting FreeBSD } I'm not saying it's impossible, but I'm unable to chainload to the loader code on my system with this: menuentry FreeBSD (Chainload) { insmod chain set root='hd0,msdos2' chainloader +1 } FWIW I made backups of my HDD's MBRs. I wonder if the installer will overwrite the MBR? Always a good thing to have backups. From what I've experienced and read, 9.0-RELEASE's installer is not always predictable in that regard, it's probably safer to assume it'll won't do what you want, and just restore your MBR after the installation, to go back to using GRUB for dual-booting. Here's the pitfall, though: the MBR also holds the partition table. So make a fresh backup after you've created/reorganized the primary partitions (slices) on your disk using a tool you're familiar with. (Logical partitions and BSD partitions are stored differently, so they will survive an MBR restore, provided it doesn't modify the primary partition they're contained in.) I also would like to know, if there's a way to recover the partition table, including a primary FreeBSD partition/slice, if this ever should get broken and there should be no backup of the partition table be available. The partition table is held alongside the MBR, in the first logical sector of your disk. Restoring one will restore the other. For extra safety, you can save the output of partitioning tools like fdisk or GNU parted expressed in sectors. Hope this helps, ___ 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: Is FreeBSD 9 Production Ready?
On 2012.11.24 17:38, Tim Daneliuk wrote: I am contemplating moving to the FBSD 9 family. Is this branch ready for production or should I wait a while yet? This probably won't help much, but I wouldn't call any system production ready until I've tested it as thoroughly as possible and qualified it myself for the purpose I intend to use it. I wouldn't blindly trust and drop an operating system on production servers, no matter how good the feedback from outside my organization sounds. As far as FreeBSD release engineering goes, I believe all -RELEASE versions are aimed at maximum stability. But obviously no person or organization can ever test all possible hardware, software and settings combinations. ___ 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: Is FreeBSD 9 Production Ready?
On 11/24/2012 11:19 AM, Lucas B. Cohen wrote: I wouldn't blindly trust and drop an operating system on production servers, no matter how good the feedback from outside my organization sounds. In general, I'd agree with you. Certainly, that's been the case with Linux, AIX, and so on over the years. But I have had essentially no problems doing in-place major rev updates with FreeBSD thus far. The only breakage I am worried about now is whether the new compiler change breaks things that used to work just fine. For example, will my make.conf settings be properly observed by the new tool chain? -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ 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: RME audio card user new to FreeBSD
In article 1353768334.2641.21.camel@q you write: Thank you! You're welcome! On Sat, 2012-11-24 at 15:14 +0100, Juergen Lock wrote: Don't want to try 9.1RC3? I thought it would be better to start with something stable as a newbie and now burning already is in progress. Well I don't think there'll be many changes from RC3 to release, and you can use freebsd-update to get to -release after it's out anyway. (I think you can also back it up, but make sure you don't restore the slice table in the mbr too if you add the bsd slice from bsdinstall, only the actual bootcode.) I backup the first 512 bytes: dd if=/dev/sda of=MBR_sda-$BACKUP_NAME_ADD bs=512 count=1 So I should restore from byte 0 to byte 439 only if a restore should be needed? That does sound correct. (tho I haven't verified the exact number 439.) I assume that there's also a way to recover a broken partition table with BSD information if needed and no backup should be available? There is sysutils/scan_ffs in ports tho I didn't have to try it yet. HTH, :) Juergen PS: I have Cc'd the freebsd-questions list as this no longer really is a multimedia topic... (Yes I should have done that earlier, sorry.) ___ 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: Is FreeBSD 9 Production Ready?
Tim Daneliuk tun...@tundraware.com writes: On 11/24/2012 11:19 AM, Lucas B. Cohen wrote: I wouldn't blindly trust and drop an operating system on production servers, no matter how good the feedback from outside my organization sounds. In general, I'd agree with you. Certainly, that's been the case with Linux, AIX, and so on over the years. I have a very small server of my own for the house, and I generally update it to major versions within a few weeks of updating. I think I had it on RELENG_9 within two months of 9.0 being released. As far as I recall, I had very few problems making the jump. But I have had essentially no problems doing in-place major rev updates with FreeBSD thus far. The only breakage I am worried about now is whether the new compiler change breaks things that used to work just fine. For example, will my make.conf settings be properly observed by the new tool chain? I wouldn't use the new toolchain for this server. The old toolchain is still the default anyway. ___ 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: Multi-boot Linux + FreeBSD
While no expert, I would advise against running the kernel directly. The loader allows you to boot in single user which may come handy at times. On 24 Nov 2012, at 18:08, Lucas B. Cohen l...@bnrlabs.com wrote: Hi Ralf, On 2012.11.24 17:06, Ralf Mardorf wrote: Perhaps later today I'll install 9.0 amd64. If possible I'll keep my Linux GRUB legacy. Can I use my menu.lst [1] and add a chainloader or something similar to boot FreeBSD from /dev/sda1? I don't know if GRUB v1 allows that, on a multiboot system I use GRUB 2 to either load FreeBSD's loader(8) : menuentry FreeBSD (Loader) { insmod part_bsd set root='hd0,msdos2,bsd1' echo Loading FreeBSD loader kfreebsd /boot/loader echo Starting FreeBSD loader } or to run its kernel directly, after having passed it optional device hints: menuentry FreeBSD (Direct Boot) { insmod ufs2 set root='hd0,msdos2,bsd1' echo Loading FreeBSD kernel kfreebsd /boot/kernel/kernel echo Loading FreeBSD environment kfreebsd_loadenv /boot/device.hints set kfreebsd.vfs.root.mountfrom=ufs:/dev/ada0s2 echo Booting FreeBSD } I'm not saying it's impossible, but I'm unable to chainload to the loader code on my system with this: menuentry FreeBSD (Chainload) { insmod chain set root='hd0,msdos2' chainloader +1 } FWIW I made backups of my HDD's MBRs. I wonder if the installer will overwrite the MBR? Always a good thing to have backups. From what I've experienced and read, 9.0-RELEASE's installer is not always predictable in that regard, it's probably safer to assume it'll won't do what you want, and just restore your MBR after the installation, to go back to using GRUB for dual-booting. Here's the pitfall, though: the MBR also holds the partition table. So make a fresh backup after you've created/reorganized the primary partitions (slices) on your disk using a tool you're familiar with. (Logical partitions and BSD partitions are stored differently, so they will survive an MBR restore, provided it doesn't modify the primary partition they're contained in.) I also would like to know, if there's a way to recover the partition table, including a primary FreeBSD partition/slice, if this ever should get broken and there should be no backup of the partition table be available. The partition table is held alongside the MBR, in the first logical sector of your disk. Restoring one will restore the other. For extra safety, you can save the output of partitioning tools like fdisk or GNU parted expressed in sectors. Hope this helps, ___ 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: Multi-boot Linux + FreeBSD
Thank you Damien, Lucas and Juergen :) btw. the off topic on multimedia is my bad, I wasn't subscribed to FreeBSD questions. While reading howtos I missed http://www.freebsd.org/doc/faq/disks.html#grub-loader I'll add title FreeBSD 9.0 root (hd0,a) kernel /boot/loader to my menu.lst and then install FreeBSD. Regards, Ralf ___ 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: Is FreeBSD 9 Production Ready?
On 24/11/2012 16:38, Tim Daneliuk wrote: I am contemplating moving to the FBSD 9 family. Is this branch ready for production or should I wait a while yet? I ordinarily avoid x.0 releases of anything and I know 9.1 is soon going to be with us. 9-STABLE works for me. I've run into a few quite minor bugs, but certainly nothing really significant. Stability is rock-solid as ever. In a related note, if I do move to 9.x is it sufficient to grab the appropriate source tree and compile world and kernels, install and reboot? That is, it is reasonable to do an in-place upgrade. This is how I migrated 4-6, 6-7, and 7-8 and I am hoping this is till the case since a complete reinstall is painful and slow. Upgrading by compiling world+kernel from source is an effective method. Works just as well for 8-9 as for any of the previous upgrades you mention. It is not however sufficient to get you a completely upgraded system: you will still have to re-install all of your ports. Otherwise, as you end up trying to upgrade ports by ones and twos over time, you'll end up with a complete rat's nest of contradictory shared library dependencies and programs crashing left, right and centre. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
How to create a partition for FreeBSD 9.0?
I use the amd64 install DVD. With or without deleting, I can't format a bootable FreeBSD partition to ada0s1, aka Linux /dev/sda1. FWIW if I reinstall GRUB legacy to /dev/sda, the boot flag will be set for the extended partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB. Regards, Ralf PS: spinymouse@q:~$ sudo fdisk -l /dev/sda Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2fc6 Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 83 Linux /dev/sda2 * 121274746 625137344 251931299+ 5 Extended /dev/sda5 121274748 183751469312383617 HPFS/NTFS/exFAT /dev/sda6 183751533 24642103431334751 83 Linux /dev/sda7 246421098 30928337931431141 83 Linux /dev/sda8 309283443 36196761526342086+ 83 Linux /dev/sda9 361969664 43561779136824064 83 Linux /dev/sda10 435618603 440164934 2273166 82 Linux swap / Solaris /dev/sda11 440164998 56187337460854188+ 83 Linux /dev/sda12 561873438 569215079 3670821 83 Linux /dev/sda13 569215143 61551440923149633+ 83 Linux /dev/sda14 615514473 625137344 4811436 83 Linux spinymouse@q:~$ sudo fdisk -l /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000525e5 Device Boot Start End Blocks Id System /dev/sdb1 634297387421486906 83 Linux /dev/sdb242973936 976768064 466897064+ 5 Extended /dev/sdb5429739388593168421478873+ 83 Linux /dev/sdb685931748 12869671421382483+ 83 Linux /dev/sdb7 128696778 133789319 2546271 82 Linux swap / Solaris /dev/sdb8 133789383 17594387921077248+ 83 Linux /dev/sdb9 175943943 21919085921623458+ 83 Linux /dev/sdb10 219190923 220211199 510138+ 83 Linux /dev/sdb11 220213248 24668774313237248 83 Linux /dev/sdb12 246689792 34754969550429952 83 Linux /dev/sdb13 347550273 557309951 104879839+ 83 Linux /dev/sdb14 557312000 976766975 209727488 83 Linux spinymouse@q:~$ sudo grub-install /dev/sda Searching for GRUB installation directory ... found: /boot/grub Installing GRUB to /dev/sda as (hd0)... Installation finished. No error reported. This is the contents of the device map /boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb ___ 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: Is FreeBSD 9 Production Ready?
On 11/24/2012 03:48 PM, Matthew Seaman wrote: It is not however sufficient to get you a completely upgraded system: you will still have to re-install all of your ports. Otherwise, as you end up trying to upgrade ports by ones and twos over time, you'll end up with a complete rat's nest of contradictory shared library dependencies and programs crashing left, right and centre. So I am discovering. I moved the system to 9.1-PRE today with a source compile. After I then did a make remove-old, the system started complaining about missing libraries. So ... I temporarily fixed this with appropriate /etc/libmap.conf entires. I am now about to do a portupgrade -aARrvf to redo the ports. We'll see how that goes... -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ 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: How to create a partition for FreeBSD 9.0?
On Sat, 24 Nov 2012 23:14:40 +0100, Ralf Mardorf wrote: I use the amd64 install DVD. With or without deleting, I can't format a bootable FreeBSD partition to ada0s1, aka Linux /dev/sda1. You mention ada0s1. This is not a partition. It's called a slice (different term: DOS primary partition). You need to create partitions inside the slice (or one covering the whole slice, typically not recommended). To _format_ a partition (freebsd-ufs GPT, or MBR slice + partitions), newfs is the tool. I know this might sound confusing, taking DOS primary partitions, DOS extended partition and logical volume inside a DOS extended partition into account. Still it's helpful to know the proper BSD terminology for those things, and the understanding of _what_ a partition is (it's a part of a DOS primary partition, so to say - it works like the logical volume inside a DOS extended partition, but without requiring the DOS extended partition). FWIW if I reinstall GRUB legacy to /dev/sda, the boot flag will be set for the extended partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB. I think it would be better to delete the partition (not empty partition, but then no partition) and let the installer allocate the free space to a slice. Then you shouldn't need to bother with boot flags as you're probably going to chainload per GRUB. When you have created the partition, either by using gpart for the more convenient GPT or MBR approach (gpart supports this mechanism), or by using fdisk for the traditional MBR approach, you can create partitions inside this slice, for example a root partition, a swap partition, and maybe partitions for functional separation of OS and data components, such as /tmp, /var, /usr and /home. You can do this as mentioned with fdisk + bsdlabel (MBR approach) or gpart (GPT approach, but only if this is supported by the rest of your disk organisation). Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 83 Linux This is the partition you're going to install FreeBSD to? Good, just delete it and let the installer do the work. :-) You can also switch to manual mode and use the CLI tools to create a slice and partitions. It's not very complicated and should be possible from the Fixit live system (not tested). See this document for details on partitioning preparation and disk initialisation: http://www.wonkity.com/~wblock/docs/html/disksetup.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: How to create a partition for FreeBSD 9.0?
On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote: Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 83 Linux This is the partition you're going to install FreeBSD to? Good, just delete it and let the installer do the work. :-) Yes, but the install doesn't do it! I can delete it now, instead of trying to delete it with the installer and see if the installer will work then. To be continued ... Thank you, Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote: You can also switch to manual mode I did this first and it didn't work. Regards, Ralf PS: I very often receive mails two times :(, from the list and directly send to me. I notice that mailing list options for the MUA are broken. Is mailman misconfigured or did I miss something I should take care off? I don't have such issues with other mailing lists. ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 25 Nov 2012 00:07:09 +0100, Ralf Mardorf wrote: On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote: Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 83 Linux This is the partition you're going to install FreeBSD to? Good, just delete it and let the installer do the work. :-) Yes, but the install doesn't do it! I can delete it now, instead of trying to delete it with the installer and see if the installer will work then. That sounds good. The installer should be able to detect the free space and assign it to a slice (that can then used to create partitions inside it) or GPT partitions (until the free space is consumed). On Sun, 25 Nov 2012 00:14:49 +0100, Ralf Mardorf wrote: On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote: You can also switch to manual mode I did this first and it didn't work. I meant the really manual mode (CLI) as to be seen in Fig. 3-10, named Shell (that's why the confusion, sorry). http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html I have to admit that I'm not very familiar with the new installer (bsdinstall), I've been occassionally using the old installer (sysinstall) in the past, with less options where one could do something wrong. :-) It's important that you either make sure there is one free slice (means: max. 3 DOS primary partitions are defined, one slot is free), or use GPT (command line tool: gpart). This is what you should be able to do when using the Shell option, even though the guided and manual mode should work. What's exceptional in your case: You have defined a lot of partitions for Linux, maybe this confuses the new installer. :-) You also should decide _which_ partitioning approach works for you - MBR or (probably) GPT. This also depends on how you have organized your Linusi. The use of the CLI tools for this approach are documented in Warren's article I've mentioned in a previous message. PS: I very often receive mails two times :(, from the list and directly send to me. I notice that mailing list options for the MUA are broken. Is mailman misconfigured or did I miss something I should take care off? I don't have such issues with other mailing lists. Sorry, don't mind: This is obviously a problem on _my_ side, the reply all vs. reply to mailing-list. The list system should be working properly; you should receive this message now from the list (as it is intended). I'm just too stupid to use a computer. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
OT: How to create a partition for FreeBSD 9.0?
On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote: I'm just too stupid to use a computer. :-) I once wanted to delete a broken Linux, before restoring it from a backup, but by accident deleted the broken Linux + the only backup too. No drugs involved. In around 20 years using computers, I was able to pull off a feat like this for only one 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: Is FreeBSD 9 Production Ready?
Hi, On Sat, 24 Nov 2012 10:38:35 -0600 Tim Daneliuk tun...@tundraware.com wrote: I am currently running FBSD 8.3-STABLE on a production server that provides http, dns, smtp, and so on for a small domain. This is not a high arrival rate environment but it does need to be rock solid (which FBSD 4-8 have been). why would you like to break a running system? I am contemplating moving to the FBSD 9 family. Is this branch ready I would stay with 8.x until the end of its support and move only then to a new branch. It could be then 9.x or 10.y. I would then - but only then - prefer the 10.y branch. I retired my 7.4 only because of lightning strike this spring. Robustness is my main goal here. Any change which brings only the risk is avoided. Irony is now that I am writing you this on a 10.0 machine. Only 10 has had the support I needed for my new toy. 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
Re: Is FreeBSD 9 Production Ready?
On 25/11/2012 04:06, Tim Daneliuk wrote: But I have had essentially no problems doing in-place major rev updates with FreeBSD thus far. The only breakage I am worried about now is whether the new compiler change breaks things that used to work just fine. For example, will my make.conf settings be properly observed by the new tool chain? If you want to build with clang wait for 9.1 http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/165173 I have been running 9.0 built with clang for most of the year as my desktop machine without any other issues. As far as your make.conf goes that will depend on what you have in there. Most gcc flags will either work or be ignored. ___ 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: Is FreeBSD 9 Production Ready?
On 11/24/2012 05:58 PM, Erich Dollansky wrote: Hi, On Sat, 24 Nov 2012 10:38:35 -0600 Tim Daneliuk tun...@tundraware.com wrote: I am currently running FBSD 8.3-STABLE on a production server that provides http, dns, smtp, and so on for a small domain. This is not a high arrival rate environment but it does need to be rock solid (which FBSD 4-8 have been). why would you like to break a running system? That's exactly what I don't want to do. I am contemplating moving to the FBSD 9 family. Is this branch ready I would stay with 8.x until the end of its support and move only then to a new branch. It could be then 9.x or 10.y. I would then - but only then - prefer the 10.y branch. I retired my 7.4 only because of lightning strike this spring. Robustness is my main goal here. Any change which brings only the risk is avoided. I used to take this approach. However, I discovered the pain of fixing a configuration that jumped several major releases was way higher than tracking them each as they became stable. I did the 9.1-PRE upgrade today and - once the new system was compiled and ready to be installed - had only very minor conversion issues. In my case, the most painful part of conversion is the mail infrastructure. The server in question is the domain's mail server and it has a LOT of moving parts with custom configurations: sendmail, greylisting, mailscanner, spam assassin, mailman, SASL ... That is pretty much always what breaks. Doing smaller leaps tends to make this more tractable to control. Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ 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: Is FreeBSD 9 Production Ready?
On 11/24/2012 06:16 PM, Shane Ambler wrote: On 25/11/2012 04:06, Tim Daneliuk wrote: But I have had essentially no problems doing in-place major rev updates with FreeBSD thus far. The only breakage I am worried about now is whether the new compiler change breaks things that used to work just fine. For example, will my make.conf settings be properly observed by the new tool chain? If you want to build with clang wait for 9.1 http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/165173 I plan to stay conservative and only switch to clang when it is THE way to build everything. i.e., When GCC is finally retired for use in the base OS. Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote: I meant the really manual mode (CLI) as to be seen in Fig. 3-10, named Shell (that's why the confusion, sorry). http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html Manually Create Partitions doesn't work. The MD5sum for the ISO was ok and the burned DVD was verified. I did not test Shell until now and it's to late to search and read a howto. When startup finished I push enter Install keyboard: German ISO-8859-1 hostname: freebsd [*] doc, games, lib32, ports, src Guided Partitioning Select the disk on which to install FreeBSD: ada0 Partition (not Entire Disk) Continuing doesn't work, or I don't know what to do. FWIW, I'll use MBR and if possible / only. Regards, Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Sun, 2012-11-25 at 02:34 +0100, Ralf Mardorf wrote: On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote: I meant the really manual mode (CLI) as to be seen in Fig. 3-10, named Shell (that's why the confusion, sorry). PS: Don't worry, it was clear what you wanted to say. As a newbie regarding to this kind of partitioning, I just prefer to test the ncurses way first. ___ 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: Is FreeBSD 9 Production Ready?
On Sat, 24 Nov 2012, Tim Daneliuk wrote: On 11/24/2012 03:48 PM, Matthew Seaman wrote: It is not however sufficient to get you a completely upgraded system: you will still have to re-install all of your ports. Otherwise, as you end up trying to upgrade ports by ones and twos over time, you'll end up with a complete rat's nest of contradictory shared library dependencies and programs crashing left, right and centre. So I am discovering. I moved the system to 9.1-PRE today with a source compile. After I then did a make remove-old, the system started complaining about missing libraries. So ... I temporarily fixed this with appropriate /etc/libmap.conf entires. I am now about to do a portupgrade -aARrvf to redo the ports. We'll see how that goes... portupgrade -avf is equivalent (-r and -R are redundant with -a). Including -c helps to get the config screens out of the way up front. ___ 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: Is FreeBSD 9 Production Ready?
--On November 24, 2012 10:38:35 AM -0600 Tim Daneliuk tun...@tundraware.com wrote: I am currently running FBSD 8.3-STABLE on a production server that provides http, dns, smtp, and so on for a small domain. This is not a high arrival rate environment but it does need to be rock solid (which FBSD 4-8 have been). I am contemplating moving to the FBSD 9 family. Is this branch ready for production or should I wait a while yet? I ordinarily avoid x.0 releases of anything and I know 9.1 is soon going to be with us. In a related note, if I do move to 9.x is it sufficient to grab the appropriate source tree and compile world and kernels, install and reboot? That is, it is reasonable to do an in-place upgrade. This is how I migrated 4-6, 6-7, and 7-8 and I am hoping this is till the case since a complete reinstall is painful and slow. I upgraded to 9 on a server that is basically doing what yours is. I used freebsd-update and it did all the right things no problems. Been running on 9 without any issues pretty much since it came out. However, the only thing remotely fancy I'm doing is running root ZFS and link aggregation on my NIC's. ___ 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: How to create a partition for FreeBSD 9.0?
On Sat, 24 Nov 2012, Ralf Mardorf wrote: I use the amd64 install DVD. With or without deleting, I can't format a bootable FreeBSD partition to ada0s1, aka Linux /dev/sda1. FWIW if I reinstall GRUB legacy to /dev/sda, the boot flag will be set for the extended partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB. Delete it, or set it to type 0xa5. I think the first is probably better for bsdinstall to see it as available. Expect boot loaders to be overwritten, so make a backup, preferably of everything. ___ 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: Is FreeBSD 9 Production Ready?
On 24 November 2012, at 16:36, Tim Daneliuk wrote: On 11/24/2012 05:58 PM, Erich Dollansky wrote: Hi, On Sat, 24 Nov 2012 10:38:35 -0600 Tim Daneliuk tun...@tundraware.com wrote: I am currently running FBSD 8.3-STABLE on a production server that provides http, dns, smtp, and so on for a small domain. This is not a high arrival rate environment but it does need to be rock solid (which FBSD 4-8 have been). why would you like to break a running system? That's exactly what I don't want to do. I am contemplating moving to the FBSD 9 family. Is this branch ready I would stay with 8.x until the end of its support and move only then to a new branch. It could be then 9.x or 10.y. I would then - but only then - prefer the 10.y branch. I retired my 7.4 only because of lightning strike this spring. Robustness is my main goal here. Any change which brings only the risk is avoided. I used to take this approach. However, I discovered the pain of fixing a configuration that jumped several major releases was way higher than tracking them each as they became stable. I did the 9.1-PRE upgrade today and - once the new system was compiled and ready to be installed - had only very minor conversion issues. In my case, the most painful part of conversion is the mail infrastructure. The server in question is the domain's mail server and it has a LOT of moving parts with custom configurations: sendmail, greylisting, mailscanner, spam assassin, mailman, SASL ... That is pretty much always what breaks. Doing smaller leaps tends to make this more tractable to control. I am in a similar situation. Reliability is more important than anything else. I run similar mail configurations on one server, although I use different machines for incoming and outgoing mail. Jumps across versions have been more difficult. I have kept records of the steps I used for each upgrade and theose help me prepare for the next one. I am in the middle of jumping from 7.2 to 9.1. One machine is completely converted and working just fine. I had reliability problems with 9.0. It kept rebooting or crashing every few days. I am on 9.1-RC2 at the moment and its been up and working for 34 days now. I will upgrade it to 9.1 when its released. This one had to be upgraded early because it was new hardware. The old machine completely died. I have another server also running 9.1-RC2 but it is not moved into production yet. It is primarily a news server and has a large news cache that has to be moved. I am waiting for 9.1 for that. On some of my test machines I have found that 9.1 is the first release to support the built-in wireless NICs. The service command is really helpful. I frequently can't remember which service is in etc and which in /usr/local/etc. The largest problem I encountered in the upgrade was the disk structure. My disks were setup when using FreeBSD 3.5/3.7. As a result, the root partition is way too small today. I was able to shoe horn 7.2 in by deleting the kernel symbol files while they were being installed. 9.0/9.1 just didn't fit at all. Restructuring the disks is a time consuming job and fairly error prone in getting everything back that is needed to run production. There is also the issue that the default formatting uses SU+J which is not compatible with dump live filesystems. Now I am going to have to find the time to bring the systems down to remove journaling with no one on-site who has a clue what they are doing. I currently have 9.1-RCx running on 5 systems and have not had any stability issues with it. One system is in production but the others are lightly used. One of them is a 200 MHz machine with either 32 Meg or 64 Meg memory. It seems to be faster then when it ran 8.2 but I haven't actually done any measurements. ___ 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
Should newfs include -S 4096? was Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3
On 2012-11-20 21:10, Warren Block wrote: On Tue, 20 Nov 2012, free...@johnea.net wrote: On 2012-11-20 14:28, Gary Aitken wrote: On 11/20/12 13:34, free...@johnea.net wrote: freebsd-update upgrade -r 9.1-RC3 ... Not UFS No ada0 No boot Seems like it isn't supposed to work for 9.1-RC2 I previously used binary update to migrate from 9.0 to 9.1, via: freebsd-update upgrade -r 9.1-RC1 freebsd-update install reboot freebsd-update install reboot I'm starting to think having the swap partition in gm0s1a and the booting UFS partition in ada0s1b is the problem: http://forums.freebsd.org/showthread.php?t=31954 The Not UFS error comes immediately on boot. If I boot from rescue media, I can start the gmirror, mount it and chroot into it. The whole install seems fine except for the first stage boot loader finding the UFS partition. A handy bootloader config trick would be greatly appreciated! boot(8) says The automatic boot will attempt to load /boot/loader from partition `a' of either the floppy or the hard disk. You could try setting the correct device path in /boot/boot.config, but I suspect that won't be read until too late. gptboot looks for the first UFS partition. Maybe /boot/boot can be modified to do that also. I ended up booting from rescue media, removing one drive and stopping the gmirror, creating a new gmirror on the removed drive to place the UFS partition first, and performing a dump/restore to transfer the system. Then I was able to boot from the new gmitrror and add the second drive to it. One of the complications was getting old metadata off of the drive. After trying a couple of 'dd' invocations: # overwriting the first sector dd if=/dev/zero of=/dev/ada0 bs=512 count=1 # also tried overwriting the last sector diskinfo ada0 | cut -f4 3907029168 (subtract 34, per WB) (I actually just subtracted the trailing 68) dd if=/dev/zero of=/dev/ada0 seek=3907029100 This would still seem to not delete all of the metadata, since after issuing: gmirror label -b split gm0 /dev/ada0 gmirror load # repartition new mirror gpart create -s MBR mirror/gm0 # ignore mirror/gm0s1 added, but partition is not aligned on 4096 bytes after add gpart add -t freebsd -a 4k mirror/gm0 # create the bsdlabel partitions in slice 1 (s1) gpart create -s BSD mirror/gm0s1 I would see that the old gm0s1a and gm0s1b had reappeared, even though I had not yet issued the 'add -t freebsd-ufs'. I'm not sure if they came back with the 'add -t freebsd' or the 'create -s BSD'. The only thing that seemed to fix it was: gpart destroy -F /dev/ada0 I also tried at one point: gpart destroy -F ada0 gpart create -s gpt ada0 gpart destroy -F ada0 After that I could create the new partitions within the slice, with freebsd-ufs first: # size of ufs partition must be calculated, from 'diskinfo -v /dev/ada0': 2000398934016 # media size in bytes (1.8T) ; 1024*1024*1024 1073741824 ; 2000398934016/1073741824 1863.01668548583984375 # subtract 8G from 1863 = 1855G gpart add -t freebsd-ufs -a 4k -s 1855G mirror/gm0s1 gpart add -t freebsd-swap -a 4k mirror/gm0s1 Everything looks good with 4K alignment, and freebsd-ufs first: gpart show =63 3907029104 mirror/gm0 MBR (1.8T) 63 63 - free - (31k) 126 3907028979 1 freebsd [active] (1.8T) 3907029105 62 - free - (31k) = 0 3907028979 mirror/gm0s1 BSD (1.8T) 0 2- free - (1.0k) 2 3890216960 1 freebsd-ufs (1.8T) 389021696216812016 2 freebsd-swap (8.0G) 3907028978 1- free - (512B) After newfs, I was able to dump/restore to transfer the installed system from ada1 to gm0 (which is 9.1-RC3 now). The thing I wonder about now: Should newfs include -S 4096? I used: newfs -U /dev/mirror/gm0s1a Will this lead to 512 byte sector access to the disk through the file system? Will this impact performance or longevity of the mirror? Thanks again for the sage advice! johnea ___ 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
OT: has Black Friday ever been tried at FreeBSD ?
http://radio.woai.com/cc-common/news/sections/newsarticle.html?feed=104668article=10591459 ___ 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: FreeBSD on SSD on ASUS P5KPL-C
El día Wednesday, November 21, 2012 a las 09:19:24PM -0700, Warren Block escribió: On Wed, 21 Nov 2012, Warren Block wrote: The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Hi Warren, When the page is opened with konqueror of KDE 3.5.10 the JS functions for Table Of Content generator are generating in an endless loop the links. HIH matthias -- Matthias Apitz | /\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ 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: FreeBSD on SSD on ASUS P5KPL-C
Thank you very much for your work on this. I have found this conversation and your article very informative. I've already installed W7 on my SSD but I let the installation program create the windows (MBR) partition. I'm going to install FreeBSD 9.1 as soon as it is ready so I want to ask if it is straight forward if I follow your instructions for creating the bsd slice and partitions, or if I need to check anything in order to get the correct alignment? Thanks /Leslie Warren Block skrev 2012-11-22 05:19: On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html ___ 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: Build a Distro using FreeBSD?
On 22/11/2012 18:20, Ron Blake wrote: I wanna make a distro but linux is too buggy for me so i thought about FreeBSD how do i go about building my own distro? Also are we allowed to make custom distros using FreeBSD please get back to me with info on building a custom distro using FreeBSD thanks. Sure, you can make your own 'distro' based on FreeBSD if you want, and distribute it under whatever terms you like. The BSD license is very liberal in this regard: more so than the GPL even. However, a 'distro' is a Linux concept that doesn't really apply very well to FreeBSD. We have a base system incorporating kernel, system libraries and all essential applications already: there's no need to gather all those things together to distribute to end users. There are disto-like things in BSD-land: PC-BSD and pfsense are a couple of interesting examples. These are essentially FreeBSD plus various additional software packages tuned for specific purposes (desktop usage in the case of PC-BSD, firewalls for pfsense) and it's this sort of value-added system built on top of the basic FreeBSD OS that is most likely to be successful as a distribution. If you still want to create your own distro, start by learning how to make your own customized install media. See the release(7) man page for starters, but you'll have to put some work in to come up anything significantly above and beyond the standard base system. It's not something you can just sling together in an afternoon... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: Build a Distro using FreeBSD?
On Nov 22, 2012, at 11:25 AM, Matthew Seaman wrote: On 22/11/2012 18:20, Ron Blake wrote: I wanna make a distro but linux is too buggy for me so i thought about FreeBSD how do i go about building my own distro? Also are we allowed to make custom distros using FreeBSD please get back to me with info on building a custom distro using FreeBSD thanks. Sure, you can make your own 'distro' based on FreeBSD if you want, and distribute it under whatever terms you like. The BSD license is very liberal in this regard: more so than the GPL even. However, a 'distro' is a Linux concept that doesn't really apply very well to FreeBSD. We have a base system incorporating kernel, system libraries and all essential applications already: there's no need to gather all those things together to distribute to end users. There are disto-like things in BSD-land: PC-BSD and pfsense are a couple of interesting examples. These are essentially FreeBSD plus various additional software packages tuned for specific purposes (desktop usage in the case of PC-BSD, firewalls for pfsense) and it's this sort of value-added system built on top of the basic FreeBSD OS that is most likely to be successful as a distribution. If you still want to create your own distro, start by learning how to make your own customized install media. See the release(7) man page for starters, but you'll have to put some work in to come up anything significantly above and beyond the standard base system. It's not something you can just sling together in an afternoon… Matthew is right on all accounts. Once you feel that you've got a mental grasp of the release(7) process (link below): http://www.freebsd.org/cgi/man.cgi?query=releasesektion=7 If you find the need to make modifications to the source of the base operating system, try and digest my own recipe for creating DruidBSD from FreeBSD: http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/patches/README?revision=1.2view=markup My recipe relies on the release(7) process and my howto shows how one might go about maintaining things. -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On 22/11/2012 14:49, Warren Block wrote: On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Something I meant to ask before - is there any benefit to following the steps described in http://www.aisecure.net/2012/01/16/rootzfs/ Abbreviated the steps are - gpart add -t freebsd-zfs -l disk0 ada0 gnop create -S 4096 /dev/gpt/disk0 zpool create zroot /dev/gpt/disk0.nop zpool export zroot gnop destroy /dev/gpt/disk0.nop zpool import zroot The step of using gnop is meant to trick zfs into believing the disk has 4K sector size to improve performance, which I would think zfs would be able to figure out by talking to the disk. Does partitioning hide the sector size or would the step of aligning the partition start to a 4k sector unhide the 4k size? Or are these steps just a waste of 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: FreeBSD on SSD on ASUS P5KPL-C
On Fri, 23 Nov 2012, Shane Ambler wrote: On 22/11/2012 14:49, Warren Block wrote: On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Something I meant to ask before - is there any benefit to following the steps described in http://www.aisecure.net/2012/01/16/rootzfs/ My guide is based on using UFS. ZFS or other filesystems will also benefit from block alignment, but the methods to get there can be different. The step of using gnop is meant to trick zfs into believing the disk has 4K sector size to improve performance, which I would think zfs would be able to figure out by talking to the disk. Unless ZFS is put on a bare, unpartitioned disk, configuration for performance is better left to the user. It's a pain to correct automatic configs when they guess wrong. Does partitioning hide the sector size or would the step of aligning the partition start to a 4k sector unhide the 4k size? Or are these steps just a waste of time? It's not about hiding the device's native block size, it's about getting the filesystem to do aligned I/O so the device can just read or write a single 4K block instead of part of one and part of another. ___ 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
gpt booting (Was: Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3)
On 11/21/12 05:11, Warren Block wrote: gptboot looks for the first UFS partition. Maybe /boot/boot can be modified to do that also. It's a little more complicated than that Warren. AIUI gptboot first looks (in partition order) for partitions with both the bootme and bootonce attributes set. If it doesn't find any, or if they all failed to boot it then tries booting partitions with just the bootme attribute. It only boots the first UFS partition if no partitions have the bootme attribute set, and IIRC that is for compatibility with the 8.x gptboot which didn't know the boot* attributes. Confusingly, there's no manual page for gptboot to document this. It's sort of implicit in the gpart manual page, in the section on ATTRIBUTES for GPT, but the best way to understand it is to read the code for gptfind in /usr/src/sys/boot/common/gpt.c ___ 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: gpt booting (Was: Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3)
On Wed, 21 Nov 2012, Arthur Chance wrote: On 11/21/12 05:11, Warren Block wrote: gptboot looks for the first UFS partition. Maybe /boot/boot can be modified to do that also. It's a little more complicated than that Warren. AIUI gptboot first looks (in partition order) for partitions with both the bootme and bootonce attributes set. If it doesn't find any, or if they all failed to boot it then tries booting partitions with just the bootme attribute. It only boots the first UFS partition if no partitions have the bootme attribute set, and IIRC that is for compatibility with the 8.x gptboot which didn't know the boot* attributes. Confusingly, there's no manual page for gptboot to document this. It's sort of implicit in the gpart manual page, in the section on ATTRIBUTES for GPT, but the best way to understand it is to read the code for gptfind in /usr/src/sys/boot/common/gpt.c Well, yes. The point is that gptboot doesn't just assume that p2, say, is where the bootable UFS partition must be. I've also noted the lack of a gptboot man page, and it's on my long list of Things That Should Be Done. There was a thread on -doc: http://lists.freebsd.org/pipermail/freebsd-doc/2012-June/020060.html Help would be greatly appreciated. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Tue, 20 Nov 2012, Snow Mountains wrote: 2012/11/20 Warren Block wbl...@wonkity.com: On Tue, 20 Nov 2012, Snow Mountains wrote: Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sorry, typo. FreeBSD does not have to be the first slice. # gpart create -s bsd ada2s2 # gpart set -a active -i 1 ada2s2 Hm, still doesn't work. Look: # gpart destroy -F ada2 ada2 destroyed # gpart create -s mbr ada2 ada2 created # gpart bootcode -b /boot/mbr ada2 bootcode written to ada2 # gpart add -t ntfs -b 2048 -s 30g ada2 ada2s1 added # gpart create -s bsd ada2s2 gpart: arg0 'ada2s2': Invalid argument Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. Create the MBR partitioning scheme: # gpart create -s mbr ada2 Add MBR bootcode: # gpart bootcode -b /boot/mbr ada2 Add the Windows 7 partition, forcing it to start at block 2048 because -a is not going to do what is expected for slices because of decades-old CHS stuff: # gpart add -t ntfs -b 2048 -s 30g ada2 Create the FreeBSD slice: # gpart add -t freebsd ada2 # gpart create -s bsd ada2s2 Set this MBR slice active and add FreeBSD bootcode: # gpart set -a active -i 2 ada2 # gpart bootcode -b /boot/boot ada2s2 Add the FreeBSD partitions. -a will work here, aligning the partitions. # gpart add -t freebsd-ufs -a 4k -s 3g ada2s2 # gpart add -t freebsd-ufs -a 4k -s 1g ada2s2 # gpart add -t freebsd-ufs -a 4k ada2s2 Note: can't use GPT labels... since this is MBR. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html ___ 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
SSD for FreeBSD NAS device
Hello, I have just acquired an Intel R2312GZ4GC4 which I have equipped with a Adaptec RAID 51245 and 6 WD red disks of 3To - It'll come with 32Gb of Kingston ECC RAM. I am planing to use It as a backup device on a second hosting facility to backup couple of critical servers of mine. Item: Intel(R) Server System R2312GZ4GC4 Intel(R) Server System: integrated in a 2U chassis supporting 12x3.5* Hot-swap drives, 24 DIMMs, 2 750W Redundant Power Supplies, enterprise class IO, Intel(R) Remote Management Module 4 (AXXRMM4R) Integrated Intel(R) Server System with (1) Intel(R) Server Board S2600GZ4 in 2U chassis, (1) airduct, (1) Control panel on rack handle, Support for 2x SSD mounting on airduct, (12) 3.5†Hot Swap Drive Carriers with (1) Hot Swap Backplane, (3) SFF8087 to SFF8087 cables, (2) CPU heatsinks, Redundant and hotswap cooling fans, (2) risers with 3 x8 slots (2xFHFL 1xFHHL), (2) 750W AC Power Supply, Intel(R) Remote Management Module 4, (1 Set) Value rails Qty: 1 I will use ZFS as file system for both the root drive (SSD ?) - and the Adaptec RAID / JBOD controller (RAIDZ2 probably). I wanted to know what were your experiences on choosing an SSD HD as master boot device / root FS ? Do you think I should go for a redundant SSD drives (RAID 1) or does this offers limited interest in such config ? I have been reading comments about failure / problems here and there, but comments are not so fresh (one year is very old in SSD). So I wanted to have fresh infos and updates on your experiences with SSD on such mid size system. Thx. –– - Grégory Bernard Director - --- www.osnet.eu --- -- Your provider of OpenSource appliances -- –– OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO ___ 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: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]
Zach Leslie xaque...@gmail.com wrote: http://www.fossil-scm.org/ l I'm not fossil user, but it's BSD licensed in written in C. Also, this particular tool bails out on the unix philosophy, with its web gui, ticket tracker etc. Do one thing. Do it well. I would argue that git bails on that as well, but that's a different discussion. Whether or not fossil does one thing depends on which one thing you pick. If the one thing is version control, you're right. However version control is just one aspect of a larger task that does't have a common name. But if you look at systems designed for managing projects with source, you'll see they universally provide web uis, issue trackers, and wikis. Due you trash IDE's because they provide tools that are useful for doing software development instead of limiting themselves to being text editors? That fossil provides all of those things in a single relatively small program is a major win - at least for small projects (which is the fossil target). On the other hand, the fossil project does stay focused on the core task. They will reject a change proposal because it's not part of that task. That said, much as I like fossil (it's my goto VCS) I don't think it would be a good choice for FreeBSD. We're not a small project - we have people who are willing to devote time to things like an external wiki and isse tracker. Nuts, we have (had?) repos in four different VCSs! Those features in fossil are purposely kept simple since they're meant for doing one thing, not as general-purpose tools for lots of things. The issue tracker doesn't support branching issues, which is liable to cause problems in a large project. The FreeBSD wiki's are used for lots of things other than just project documents. The web ui - well, that's probably useable as is. But that one thing isn't a deal maker. -- Sent from my Android tablet with K-9 Mail. Please excuse my swyping. ___ 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: PPPoA section of FreeBSD Handbook
On Tue, 20 Nov 2012 11:51:51 +1100 andrew clarke wrote: On Tue 2012-11-20 11:49:38 UTC+1100, andrew clarke (m...@ozzmosis.com) wrote: In the meantime I've switched to using mpd5 (/usr/ports/net/mpd5) and /sbin/ipnat. So far, so good: # ifconfig ng0 ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 mtu 1492 inet 124.170.51.116 -- 203.215.7.251 netmask 0x Incidentally the PPPoA section of the FreeBSD is very out of date: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoa.html The ambiguously named net/pppoa port in section 28.6.1 has been marked as broken since 2009. (Ambiguous since it's only for a particular brand of USB ASDL modem.) In section 28.6.2 the example provided is a config file for mpd 4.x which does not work in mpd 5.x. net/mpd4 was deleted from the ports tree 11 months ago. net/mpd5 doesn't seem to support PPPoA, only PPPoE. I could find no reference to PPPoA in the manual or source code. Not many people really need that these days. PPPoA support is needed for obsolete USB modems which pass-through ATM for the host to terminate. There are also some pci modems supported by Linux, but I don't think they've been well supported on FreeBSD, if at all. These days there are better options that only require standards-based support in the host. Most PPPoA-based ISPs also support PPPoE over ATM - even if they don't advertise it or tell their low-level technical support. Alternatively you can: - use a NAT router that terminate PPPoA - use a router/modem that bridges PPPoA to PPPoE - use a router/modem that terminates PPPoA and passes the public IP address to the host ___ 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
Tuning modern (i.e. 9.x) FreeBSD Systems for 'servers' - any guides?
Hi, We've got a number of 9.x systems in service - replacing a number of older 6/7/8 ones. In the olden days (going back quite a while) you had to fiddle around with stuff like NMBCLUSTERS, MAXUSERS etc. In fact, if you have a look around Google it's littered with guides/articles for this stuff, which appears to be all very out of date. Does anyone have any links for 'modern' tuning guides - or is it simply not necessary with newer FreeBSD versions? (e.g. 9.x upwards) e.g. if the machine is amd64 w/6-8Gb of RAM - running GENERIC. The servers typically handle lots of TCP sessions - so I'm just concerned about what in the olden days would have been network buffers etc. Thanks, -Karl ___ 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: SSD for FreeBSD NAS device
In the last episode (Nov 20), bsd said: I have just acquired an Intel R2312GZ4GC4 which I have equipped with a Adaptec RAID 51245 and 6 WD red disks of 3To - It'll come with 32Gb of Kingston ECC RAM. I am planing to use It as a backup device on a second hosting facility to backup couple of critical servers of mine. [..] I wanted to know what were your experiences on choosing an SSD HD as master boot device / root FS ? Do you think I should go for a redundant SSD drives (RAID 1) or does this offers limited interest in such config ? For any critical server, don't think of RAID as an option, think of it as a requirement. -- Dan Nelson dnel...@allantgroup.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
The Opera browser on FreeBSD
I find two native FreeBSD ports for OPERA. With that I want to say, I am not using Linux-Opera anymore. But since some time, I had installed www/opera-devel and www/opera at the same time and played with them. Now I see, that opera has a greater release-level then opera-devel. That makes no sense. Bye. -- : : : ***Hinweis in eigener Sache: : Diese Nachricht ist nur und ausschließlich an den oder die Empfänger : gerichtet. : Weiterleiten oder veröffentlichen oder auf andere Weise Dritten zur : Kenntnis zu bringen, ist, auch in Teilen oder auszugsweise oder in : Zitaten, nicht statthaft. : Für Folgen, die aus der Verwendung von Inhalten einer durch mich : zugestellten oder weitergeleiteten Nachricht entstehen, übernehme : ich keinerlei Haftung! : Irrtümlich erhaltene Nachrichten sind bitte sofort zu löschen.*** : : |___(_nun_mit_FreeBSD:- 8.3-RELEASE @senyo_)__| | | frohes schaffen dank open source | | p...@weispit.eu | |___(_nun_mit_FreeBSD:- 8.3-RELEASE @senyo_)__| Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence. From: The UNIX-HATERS Handbook, ISBN 1-56884-203-1 ___ 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
boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3
Hello, I recently installed a 9.1-RC2 system using gmirror with MBR, and swap in first bsdlabel. orsbackup# gpart show =63 3907029104 mirror/gm0 MBR (1.8T) 63 63 - free - (31k) 126 3907028979 1 freebsd [active] (1.8T) 3907029105 62 - free - (31k) = 0 3907028979 mirror/gm0s1 BSD (1.8T) 0 2- free - (1.0k) 216777216 1 freebsd-swap (8.0G) 16777218 3890251760 2 freebsd-ufs (1.8T) 3907028978 1- free - (512B) The drive was setup with the following commands: orsbackup# gpart create -s MBR mirror/gm0 mirror/gm0 created orsbackup# gpart add -t freebsd -a 4k mirror/gm0 # ignored mirror/gm0s1 added, but partition is not aligned on 4096 bytes # create the bsdlabel partitions in slice 1 (s1) orsbackup# gpart create -s BSD mirror/gm0s1 orsbackup# gpart add -t freebsd-swap -a 4k -s 8g mirror/gm0s1 orsbackup# gpart add -t freebsd-ufs -a 4k mirror/gm0s1 # put bootcode on the MBR and mark the first slice active orsbackup# gpart bootcode -b /boot/mbr mirror/gm0 orsbackup# gpart set -a active -i 1 mirror/gm0 # put bootcode on the bsdlabel orsbackup# gpart bootcode -b /boot/boot mirror/gm0s1 The system rebooted several times without issue. This system is a testbed for 9.1 and is not yet deployed as a production server. I thought I'd update to 9.1-RC3, so I ran: freebsd-update upgrade -r 9.1-RC3 freebsd-update install reboot The system won't boot and complains about: Not UFS No ada0 No boot Before I charge ahead with reissuing the gpart bootcode commands I thought I'd: a) make others aware there may be issues in freebsd-update with the 9.1 release candidates b) ask about the best way to resolve this bootloader issue. Thanks you for any pointers in resolving this bootloader issue! johnea ___ 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: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3
On 11/20/12 13:34, free...@johnea.net wrote: Hello, I recently installed a 9.1-RC2 system using gmirror with MBR, and swap in first bsdlabel. orsbackup# gpart show =63 3907029104 mirror/gm0 MBR (1.8T) 63 63 - free - (31k) 126 3907028979 1 freebsd [active] (1.8T) 3907029105 62 - free - (31k) = 0 3907028979 mirror/gm0s1 BSD (1.8T) 0 2- free - (1.0k) 216777216 1 freebsd-swap (8.0G) 16777218 3890251760 2 freebsd-ufs (1.8T) 3907028978 1- free - (512B) The drive was setup with the following commands: orsbackup# gpart create -s MBR mirror/gm0 mirror/gm0 created orsbackup# gpart add -t freebsd -a 4k mirror/gm0 # ignored mirror/gm0s1 added, but partition is not aligned on 4096 bytes # create the bsdlabel partitions in slice 1 (s1) orsbackup# gpart create -s BSD mirror/gm0s1 orsbackup# gpart add -t freebsd-swap -a 4k -s 8g mirror/gm0s1 orsbackup# gpart add -t freebsd-ufs -a 4k mirror/gm0s1 # put bootcode on the MBR and mark the first slice active orsbackup# gpart bootcode -b /boot/mbr mirror/gm0 orsbackup# gpart set -a active -i 1 mirror/gm0 # put bootcode on the bsdlabel orsbackup# gpart bootcode -b /boot/boot mirror/gm0s1 The system rebooted several times without issue. This system is a testbed for 9.1 and is not yet deployed as a production server. I thought I'd update to 9.1-RC3, so I ran: freebsd-update upgrade -r 9.1-RC3 freebsd-update install reboot The system won't boot and complains about: Not UFS No ada0 No boot Before I charge ahead with reissuing the gpart bootcode commands I thought I'd: a) make others aware there may be issues in freebsd-update with the 9.1 release candidates b) ask about the best way to resolve this bootloader issue. Thanks you for any pointers in resolving this bootloader issue! johnea Not sure, but this might apply: The freebsd-update tool is used to fetch, install, and rollback binary updates to the FreeBSD base system. Note that updates are only available if they are being built for the FreeBSD release and architecture being used; in particular, the FreeBSD Security Team only builds updates for releases shipped in binary form by the FreeBSD Release Engineering Team, e.g., FreeBSD 7.3-RELEASE and FreeBSD 8.0-RELEASE, but not FreeBSD 6.3-STABLE or FreeBSD 9.0-CURRENT. Seems like it isn't supposed to work for 9.1-RC2 ___ 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: The Opera browser on FreeBSD
On 20 November 2012 13:23, peter weismann p...@weispit.eu wrote: I find two native FreeBSD ports for OPERA. With that I want to say, I am not using Linux-Opera anymore. But since some time, I had installed www/opera-devel and www/opera at the same time and played with them. Now I see, that opera has a greater release-level then opera-devel. That makes no sense. Yes, opera.com is rolling out releases fairly quickly these days, www/opera-devel doesn't get updated often enough to make much sense. What I do (when I wish to run test versions) is poke my tube machine on over to http://http://www.opera.com/browser/next/ pull down the correct file, then untar it into a directory, copy the profile/ directory over (if needed) run it from the local users directory. This way we don't have stray files clotting up /usr/local don't have to rely on the whims of the maintainer to update a rather fast-moving target. -- -- ___ 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: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3
On 2012-11-20 14:28, Gary Aitken wrote: On 11/20/12 13:34, free...@johnea.net wrote: freebsd-update upgrade -r 9.1-RC3 ... Not UFS No ada0 No boot Seems like it isn't supposed to work for 9.1-RC2 I previously used binary update to migrate from 9.0 to 9.1, via: freebsd-update upgrade -r 9.1-RC1 freebsd-update install reboot freebsd-update install reboot I'm starting to think having the swap partition in gm0s1a and the booting UFS partition in ada0s1b is the problem: http://forums.freebsd.org/showthread.php?t=31954 The Not UFS error comes immediately on boot. If I boot from rescue media, I can start the gmirror, mount it and chroot into it. The whole install seems fine except for the first stage boot loader finding the UFS partition. A handy bootloader config trick would be greatly appreciated! johnea ___ 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: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]
On Mon, Nov 19, 2012 at 07:08:13PM -0800, Zach Leslie wrote: http://www.fossil-scm.org/ I'm not fossil user, but it's BSD licensed in written in C. Baptise Daroussin probably could tell us more about fossil pro and cons. This misses one of of the main points raised in the original post. The proliferation of git as a revision control system. Also, this particular tool bails out on the unix philosophy, with its web gui, ticket tracker etc. Do one thing. Do it well. Look at the internal of fossil and how things are done in fossil and you would understand that the last sentence is totally wrong. Fossil has really nice features that could nicely fits with FreeBSD workflows and greatly improves it. It has most of the new shiny feature everyone can expect from a dvcs, but it also has it drawbacks: The converted repositories (I did convert docs, src and ports) with full history kept: branches, tags, etc. is huge and the first clone would be painful to do. On the other side you have multiple working copies open on the same clone which is really nice. Some of the operations can be slow, Jörg Sonnenberger wrote an analysis about this one the fossil wiki, but don't remember the link sorry. From my testing, apart from the do we really need a new scm question? I am a big fan of fossil and find it easier and cleaner than all the other scm I know, I use git for pkgng and other projects, I use a lot mercurial on some other area, and fossil remains my favorite :). But I really don't think it could fit FreeBSD's requirements as it is now. but there are lots of room of improvements. The learning curve to fossil is probably really easy. On of the last thing is that fossil lacks keyword expansion. That said I'm happy with svn on FreeBSD, I still from time to time do conversion of out different tree to fossil for fun, but no more and I won't advocate for any vcs change. Bapt pgppBxhkxmBDd.pgp Description: PGP signature
Re: SSD for FreeBSD NAS device
On 20/11/2012 20:54, bsd wrote: Hello, I have just acquired an Intel R2312GZ4GC4 which I have equipped with a Adaptec RAID 51245 and 6 WD red disks of 3To - It'll come with 32Gb of Kingston ECC RAM. I am planing to use It as a backup device on a second hosting facility to backup couple of critical servers of mine. Do you think I should go for a redundant SSD drives (RAID 1) or does this offers limited interest in such config ? The advantage of SSD drives is their speed, in a ZFS config they can help most in two ways, as cache devices to speed up disk access or as log devices to increase reliability. Personally for a backup server I would use the two SSD drives as a mirrored log device for the ZFS pool. Reliability over performance. Having said that if you haven't got them I wouldn't get them. For a busy fileserver in the office you want the extra performance. As an offsite backup server the time saved in performance is only going to impact a few times a day and will be outweighed by the network speed. The cost of the SSD drives could add more drives to increase space or redundancy - RAIDZ3 ? ___ 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: eGalax USB touch panel on ExoPC Slate vs. FreeBSD and X11
I am pleased to see others having success at getting tablet input to work. I tried and failed with 8.x on my Fujitsu T-1010. Question: The button emulation. Did you add that or was it already there? I want to use Squeak Smalltalk on a tablet and the three button mouse emulation is a big deal, especially without a keyboard. The button emulation was already there. The BIOS on the ExoPC Slate uses it itself: when you power up the tablet, there are two areas you can press to enter the BIOS setup or the boot select menu. You can use the touch panel to set the BIOS options or choose the boot path and then tap the screen to select. The simulated button presses via screen taps are the only thing that work with the ums(4) driver out of the box. If you look at the HID collection dump from the mouse emulation mode, you can see it supports an X axis, Y axis and two button inputs. The touch screen synthesizes the button inputs internally based on tap patterns. Which leads me to my next question. What are you using for input? Is anyone working on handwriting recognition or does Apple still have the patents locked up? My goal is to be as much as possible like the Newton. Initially I was using a USB keyboard. The ExoPC Slate has two USB ports on the side. I have this old Targus USB I/O expander that also provides PS/2 keyboard and mouse inputs, along with RS-232 port, printer port and USB ethernet (Pegasus chipset, aue(4) driver). At minimum, USB keyboard is required in order to install FreeBSD. I also the USB thumbdrive installer to load the OS. After that I used the USB ethernet to load papckages. Once I had the OS installed, I switched to using a bluetooth keyboard. It's less clunky without the extra wires. Note that this was intended to be Intel's developer reference platform for the Meego OS (which is basically just another flavor of Linux). It came with Meego installed (it's now dual-booting Meego and FreeBSD). Meego includes an on-screen keyboard input widget which is something that plain X11 lacks. So for now, I need a physical keyboard. In addition to the eGalax touch screen, the Slate has: Atom N450 1.66Ghz CPU (can run i386 or amd64 versions of FreeBSD) 2GB RAM 64GB SSD storage Atheros 9285 WiFi Atheros bluetooth Intel Pineview graphics (1388x768 resolution) The bluetooth requires a binary blob firmware image to be loaded and I had to jigger the Intel xf86 video driver a little but it's all working now. -Bill On Fri, Nov 16, 2012 at 9:04 AM, Bill Paul wp...@freebsd.org wrote: Well... apparently I was able to get this to work on my own. To recap, I have an ExoPC Slate running FreeBSD 9.0 and xorg 1.7 with an eGalax USB HID touch screen. Out of the box, ums(4) claims it but doesn't like it. After investigating a bit more, I found that the screen has multiple HID collections associated with it: Collection type=Application page=Digitizer usage=Touch_Screen Collection type=Physical page=Digitizer usage=Finger Collection type=Application page=Generic_Desktop usage=Pointer Collection type=Physical page=Generic_Desktop usage=Pointer Collection type=Application page=Microsoft usage=0x0001 Collection type=Application page=Digitizer usage=Touch_Screen Collection type=Physical page=Digitizer usage=Stylus Collection type=Application page=Digitizer usage=Device_Configuration Collection type=Physical page=Digitizer usage=Finger The ums(4) driver is trying to use the 'Pointer' collection, but I think it may be getting confused by the X/Y ranges: Collection type=Application page=Generic_Desktop usage=Pointer Collection type=Physical page=Generic_Desktop usage=Pointer Input rid=1 size=1 count=1 page=Button usage=Button_1, logical range 0..1, physical range 1..2047 Input rid=1 size=1 count=1 page=Button usage=Button_2, logical range 0..1, physical range 1..2047 Input rid=1 size=16 count=1 page=Generic_Desktop usage=X, logical range 0..4095, physical range 0..4095 Input rid=1 size=16 count=1 page=Generic_Desktop usage=Y, logical range 0..4095, physical range 0..4095 End collection End collection There are two problems. First, the ranges are a little unusual. I think other mouse devices only have ranges from -127 to +127. Second, the input flags for the X and Y axis entries are 0x2 (HI_VARIABLE) and not HI_RELATIVE, which is what the usm(4) driver expects. This causes it to ignore the X and Y axis entries and only handle the button entries. I tried changing the code to accept just the HI_VARIABLE flag, but that still didn't make the cursor move. In any case, I was wrong that the problem is that the FreeBSD ums(4) driver doesn't handle gestures: it's just not flexible enough to handle this oddball pointer design. Anyway, go get it to work with X as a standard pointer device, I finally ended up doing the following: 1) Edited the uhid_probe() function in sys/dev/usb/input/uhid.c
Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3
On Tue, 20 Nov 2012, free...@johnea.net wrote: On 2012-11-20 14:28, Gary Aitken wrote: On 11/20/12 13:34, free...@johnea.net wrote: freebsd-update upgrade -r 9.1-RC3 ... Not UFS No ada0 No boot Seems like it isn't supposed to work for 9.1-RC2 I previously used binary update to migrate from 9.0 to 9.1, via: freebsd-update upgrade -r 9.1-RC1 freebsd-update install reboot freebsd-update install reboot I'm starting to think having the swap partition in gm0s1a and the booting UFS partition in ada0s1b is the problem: http://forums.freebsd.org/showthread.php?t=31954 The Not UFS error comes immediately on boot. If I boot from rescue media, I can start the gmirror, mount it and chroot into it. The whole install seems fine except for the first stage boot loader finding the UFS partition. A handy bootloader config trick would be greatly appreciated! boot(8) says The automatic boot will attempt to load /boot/loader from partition `a' of either the floppy or the hard disk. You could try setting the correct device path in /boot/boot.config, but I suspect that won't be read until too late. gptboot looks for the first UFS partition. Maybe /boot/boot can be modified to do that also. ___ 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: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]
19.11.2012 14:34, Ivan Voras wrote: On 17/11/2012 22:48, Chris Rees wrote: (and is GPL btw) Since we're discussing it, Mercurial is BSDL-ed, and apparently has proper crypto signing using GPG: http://mercurial.selenic.com/wiki/FAQ#FAQ.2FTechnicalDetails.How_do_Mercurial_hashes_get_calculated.3F :%s/BSD/LGP/ http://mercurial.selenic.com/about/ -- Sphinx of black quartz, judge my vow. ___ 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: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]
On Mon, Nov 19, 2012 at 4:34 AM, Ivan Voras ivo...@freebsd.org wrote: On 17/11/2012 22:48, Chris Rees wrote: (and is GPL btw) Since we're discussing it, Mercurial is BSDL-ed, and apparently has proper crypto signing using GPG: http://mercurial.selenic.com/wiki/FAQ#FAQ.2FTechnicalDetails.How_do_Mercurial_hashes_get_calculated.3F http://selenic.com/repo/hg/file/fd903f89e42b http://selenic.com/repo/hg/file/fd903f89e42b/COPYING GNU GENERAL PUBLIC LICENSE http://selenic.com/repo/hg/file/fd903f89e42b/COPYING#l2Version 2, June 1991 http://selenic.com/repo/hg/file/fd903f89e42b/COPYING#l3 In their repository , it is GPL v2 . Is there any other place which specifies its license as BSDL ? Thank you very much . Mehmet Erol Sanliturk ___ 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