Re: .sh check for numeric content
On Wed, 23 Jun 2010 23:32:57 -0400 (EDT) Karl Vogel vogelke+u...@pobox.com articulated: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to A contain numeric values. How do I code a test to verify the A content is numeric? The script below will work with the Bourne or Korn shell. Results for 0 1 12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric I had used this snippet in a script to test for numeric input. It was part of a function in a Bash script. case ${1} in [[:digit:]] ) IS_DIGIT=1 ;; * ) IS_DIGIT=0 printf \n\a\t *WARNING* \tYou must enter a digit\n\n ;; esac -- Jerry ✌ freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Why do we want intelligent terminals when there are so many stupid users? ___ 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
Problem using Portmaster to upgrade installed ports via packages only
Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Then I typed this linde into a console : % sudo portmaster -PP -a -x openoffice I past the output : === The following actions will be taken if you choose to proceed: Upgrade automounter-1.4.2 to automounter-1.4.3 Upgrade liveMedia-2010.05.29,1 to liveMedia-2010.06.11,1 Upgrade portmaster-2.29 to portmaster-2.32 Upgrade bash-4.1.5_2 to bash-4.1.7 Upgrade iso-codes-3.16_1 to iso-codes-3.17 Upgrade p5-libwww-5.834 to p5-libwww-5.836 Upgrade tiff-3.9.3 to tiff-3.9.4 Upgrade filezilla-3.3.2.1_2 to filezilla-3.3.3 Upgrade gnupg-2.0.14_2 to gnupg-2.0.15 Upgrade libassuan-1.0.5 to libassuan-2.0.0 Upgrade wine-1.2.r3,1 to wine-1.2.r4,1 === Proceed? y/n [y] === Starting install for for ports that need updating === === Launching child to update automounter-1.4.2 === Port directory: /usr/ports/sysutils/automounter === Checking package repository for latest available version === The newest available package (automounter-1.3.4) is older than the version in ports (automounter-1.4.3) === Try --packages-if-newer, or do not use -PP/--packages-only === Aborting update === Update for automounter-1.4.2 failed === Aborting update The strange thing is the 'automounter-1.4.3' package is available on the FTP repository configured for PACKAGESITE. Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) without success : ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Thanks in advance for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD and UDF DVD/CDrom
Hi, I'm trying to install Windows 7 on Virtualbox for testing, but the W7 is a DVD in UDF format. On this computer booting gentoo and ubuntu I can mount the DVD without any problem, but on FreeBSD 8.0 after kldloading udf and trying to mount udf using: mount_udf /dev/acd0t0s1 /cdrom or mount -t udf /dev/acd0t0s1 /cdrom: mount_udf: /dev/acd0t01: Invalid argument And running dmesg: kernel: FSD does not lie within the partition! So my question is is possible to mount an UDF disk on FreeBSD or is me that is doing something wrong ? Thank You MV ___ 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: .sh check for numeric content
On Thu, Jun 24, 2010 at 12:52:48PM +0800, Aiza wrote: Hello, But when I tried this format [ expr ${dup_times} : [0-9]*$ ] || echo value is not numeric I get the error message no mater what the value is. What am I doing wrong? Even if [ at first glance seems like a special syntax of the shell, it really is just an alternative name or way of calling test(1): $ ls -l $(which test [) -rwxr-xr-x 1 root root 42584 2009-10-06 13:07 /usr/bin/[ -rwxr-xr-x 1 root root 30284 2009-10-06 13:07 /usr/bin/test (this actually is from a Linux system) You can read about the checks test(1) can perform and its syntax in its manual page. It will give you a nice and concise overview of what can be archived in this [ $EXPRESSION ] syntax, and what checks are left to be performed in other ways. Hope this helps. Regards, Thomas ___ 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: .sh check for numeric content
On Thu, 24 Jun 2010 05:19:53 +0200 Thomas Keusch f...@bsd-solutions-duesseldorf.de wrote: t...@eternity:~$ b=5 t...@eternity:~$ case $b in [0-9] ) echo numeric ;; * ) echo alpha ;; esac numeric t...@eternity:~$ Works for me. Now try it with 10. ___ 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 and UDF DVD/CDrom
On 6/24/2010 5:06 AM, M. Vale wrote: Hi, I'm trying to install Windows 7 on Virtualbox for testing, but the W7 is a DVD in UDF format. On this computer booting gentoo and ubuntu I can mount the DVD without any problem, but on FreeBSD 8.0 after kldloading udf and trying to mount udf using: mount_udf /dev/acd0t0s1 /cdrom or mount -t udf /dev/acd0t0s1 /cdrom: mount_udf: /dev/acd0t01: Invalid argument And running dmesg: kernel: FSD does not lie within the partition! So my question is is possible to mount an UDF disk on FreeBSD or is me that is doing something wrong ? Thank You MV ___ 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 Try using mount_cd9660 instead... it worked for me even on a udf disk Derek ___ 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: .sh check for numeric content
On Thu, Jun 24, 2010 at 12:31:13PM +0200, Thomas wrote: Hello, Even if [ at first glance seems like a special syntax of the shell, it really is just an alternative name or way of calling test(1): $ ls -l $(which test [) -rwxr-xr-x 1 root root 42584 2009-10-06 13:07 /usr/bin/[ -rwxr-xr-x 1 root root 30284 2009-10-06 13:07 /usr/bin/test I just noticed how this snippet doesn't prove my point very well :) Hope this did not confuse you too much, just ignore the ls part. From now on I'll refrain from posting until I've had my coffee and am fully awake.. Regards, Thomas ___ 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
Virtualization with USB on Freebsd 8
Good morning/afternoon/evening, Do you know of any virtualisation solution that would allow USB devices when using Freebsd-8 as host ? We do indeed have virtualbox-OSE, but without USB support Basically I would use that to fire-up a WinXP session allowing my to sync various USB devices that I cannot sync using my Freebsd box (iPod, GPS etc.) Thanks in advance, -Steven ___ 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: .sh check for numeric content
On Thu, Jun 24, 2010 at 11:58:05AM +0100, RW wrote: On Thu, 24 Jun 2010 05:19:53 +0200 Thomas Keusch f...@bsd-solutions-duesseldorf.de wrote: t...@eternity:~$ b=5 t...@eternity:~$ case $b in [0-9] ) echo numeric ;; * ) echo alpha ;; esac numeric t...@eternity:~$ Works for me. Now try it with 10. 10 is not valid input according to the problem/pseudocode (in the forum) that the above code was posted as a solution for. I tend to lend a hand, not the whole arm. If this doesn't solve the problem 100% for the OP, it surely enables him to quickly spot a solution (at least using the case statement) when he sees it, be it in results from researching via google, or in actual system scripts installed on his system. Give a man a fish, ... and all that. Don't get me wrong, I'm not at all against posting more complete solutions for more complex problems, but I do indeed think that lending a hand while still requiring a little thought and maybe tinkering on the side of the OP is what ultimately enables him ( newcomers in general) to learn and grow. Spoonfeeding solutions to trivial (and trivially researched questions) is counterproductive on so many levels. Regards, Thomas ___ 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
i386 wine on amd64 - DRI a lost cause?
I have a full i386 tree installed at /jail/wine (ignore the 'jail' in the name, I'll run it as a plain chroot if necessary) created with 'make buildworld TARGET=i386'. I've built and installed wine into the jail/chroot and it works fine. The problem: I can't get any kind of DRI to work in the jail/chroot. DRI is working fine on the host system. Any program that attempts to use DRI in the chroot/jail immediately segfaults. I built and installed a 32 bit version of graphics/dri into the jail/chroot as glxinfo reported that direct rendering was disabled due to missing files. I then made /dev/dri visible in the jail/chroot. Can an i386 version of DRI not talk to an amd64 kernel? Is there some other way I should be doing this? I'm using a radeon card that uses r300_dri.so, if that's at all significant. Regards, xw PS: Please CC as I'm not subscribed. ___ 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 and UDF DVD/CDrom
On Thursday 24 June 2010 11:06:59 M. Vale wrote: So my question is is possible to mount an UDF disk on FreeBSD or is me that is doing something wrong ? FreeBSD doesn't support the most recent UDF specification which is why it won't work -- 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: Problem using Portmaster to upgrade installed ports via packages only
Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Then I typed this linde into a console : % sudo portmaster -PP -a -x openoffice I past the output : === The following actions will be taken if you choose to proceed: Upgrade automounter-1.4.2 to automounter-1.4.3 Upgrade liveMedia-2010.05.29,1 to liveMedia-2010.06.11,1 Upgrade portmaster-2.29 to portmaster-2.32 Upgrade bash-4.1.5_2 to bash-4.1.7 Upgrade iso-codes-3.16_1 to iso-codes-3.17 Upgrade p5-libwww-5.834 to p5-libwww-5.836 Upgrade tiff-3.9.3 to tiff-3.9.4 Upgrade filezilla-3.3.2.1_2 to filezilla-3.3.3 Upgrade gnupg-2.0.14_2 to gnupg-2.0.15 Upgrade libassuan-1.0.5 to libassuan-2.0.0 Upgrade wine-1.2.r3,1 to wine-1.2.r4,1 === Proceed? y/n [y] === Starting install for for ports that need updating === === Launching child to update automounter-1.4.2 === Port directory: /usr/ports/sysutils/automounter === Checking package repository for latest available version === The newest available package (automounter-1.3.4) is older than the version in ports (automounter-1.4.3) === Try --packages-if-newer, or do not use -PP/--packages-only === Aborting update === Update for automounter-1.4.2 failed === Aborting update The strange thing is the 'automounter-1.4.3' package is available on the FTP repository configured for PACKAGESITE. Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) without success : ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Thanks in advance for your help. You should be able to use: ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable portmaster will trim trailing /, /Latest, /All. But be aware that as 8-STABLE gets farther away from 8.0-RELEASE, some of the packages there may not work with your 8.0-RELEASE-pX version, because your version only incorporates critical fixes to 8.0-RELEASE, and not all of the changes in 8-STABLE. Do you have any old packages for automounter in your local package directory? If so, remove them and then re-try the update. It's possible that an old local package may confuse portmaster into thinking that the local package is the latest available package. If the problem still occurs, send a verbose output to the list, using portmaster -v b. ___ 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: .sh check for numeric content
On Thu, 24 Jun 2010 13:50:14 +0200 Thomas Keusch f...@bsd-solutions-duesseldorf.de wrote: 10 is not valid input according to the problem/pseudocode (in the forum) that the above code was posted as a solution for. And if you were answering in that forum that would be a good point. Spoonfeeding solutions to trivial (and trivially researched questions) is counterproductive on so many levels. You gave him an answer to a different question. When I suggested he skip it, you countered with a test-case that you apparently knew was misleading. There's a diffence between not spoon-feeding and deliberately sending someone off in the wrong direction. ___ 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 and UDF DVD/CDrom
Why do you want to mount your Windows DVD image? Why not using /dev/cd0 in your VirtualBox? P.s. Bruce, sorry for doubled mail, did not see that i haven't sent it to the mailing list till the last moment. 2010/6/24, Bruce Cran br...@cran.org.uk: On Thursday 24 June 2010 11:06:59 M. Vale wrote: So my question is is possible to mount an UDF disk on FreeBSD or is me that is doing something wrong ? FreeBSD doesn't support the most recent UDF specification which is why it won't work -- 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 -- with best regards, Krutov Mikle ___ 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: i386 wine on amd64 - DRI a lost cause?
You need 32bit libGL and all mesa stuff to have dri with i386 apps on amd64 system. Also i've used http://msnp.ru/file/wine-fbsd64.zip port, not the by-hand-way while using amd64. Worked for me on both radeon and nvidia card. 2010/6/24, xorquew...@googlemail.com xorquew...@googlemail.com: I have a full i386 tree installed at /jail/wine (ignore the 'jail' in the name, I'll run it as a plain chroot if necessary) created with 'make buildworld TARGET=i386'. I've built and installed wine into the jail/chroot and it works fine. The problem: I can't get any kind of DRI to work in the jail/chroot. DRI is working fine on the host system. Any program that attempts to use DRI in the chroot/jail immediately segfaults. I built and installed a 32 bit version of graphics/dri into the jail/chroot as glxinfo reported that direct rendering was disabled due to missing files. I then made /dev/dri visible in the jail/chroot. Can an i386 version of DRI not talk to an amd64 kernel? Is there some other way I should be doing this? I'm using a radeon card that uses r300_dri.so, if that's at all significant. Regards, xw PS: Please CC as I'm not subscribed. ___ 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 -- with best regards, Krutov Mikle ___ 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: X11 problem
On Tue, Jun 22, 2010 at 12:00 PM, Maciej Suszko mac...@suszko.eu wrote: Gary Kline kl...@thought.org wrote: guys, what do i need to rebuild to fix this problem to get X working on my server:: ethic# startx xauth: creating new authority file /root/.serverauth.1054 /libexec/ld-elf.so.1: Shared object libhal.so.1 not found, required by X giving up. xinit: No such file or directory (errno 2): unable to connect to X server xinit: No such process (errno 3): Server error. ethic# Or just reinstall hal ___ 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: Virtualization with USB on Freebsd 8
On Jun 24 18:58, step...@theched.org wrote: Good morning/afternoon/evening, Do you know of any virtualisation solution that would allow USB devices when using Freebsd-8 as host ? We do indeed have virtualbox-OSE, but without USB support Basically I would use that to fire-up a WinXP session allowing my to sync various USB devices that I cannot sync using my Freebsd box (iPod, GPS etc.) Thanks in advance, -Steven Not sure about other USB devices, but I use virtualbox-ose on FreeBSD host, and Windows 7 sees the USB wireless keyboard and mouse without any fiddling. But perhaps that's because FreeBSD also sees them and virtualizes them. ___ 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 -- Sterling (Chip) Camden http://camdensoftware.com | http://chipstips.com | http://chipsquips.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: .sh check for numeric content
On Jun 24 05:08, Jerry wrote: On Wed, 23 Jun 2010 23:32:57 -0400 (EDT) Karl Vogel vogelke+u...@pobox.com articulated: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to A contain numeric values. How do I code a test to verify the A content is numeric? The script below will work with the Bourne or Korn shell. Results for 0 1 12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric I had used this snippet in a script to test for numeric input. It was part of a function in a Bash script. case ${1} in [[:digit:]] ) IS_DIGIT=1 ;; * ) IS_DIGIT=0 printf \n\a\t *WARNING* \tYou must enter a digit\n\n ;; esac That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case statement. -- Jerry ??? freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Why do we want intelligent terminals when there are so many stupid users? ___ 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 -- Sterling (Chip) Camden http://camdensoftware.com | http://chipstips.com | http://chipsquips.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Virtualization with USB on Freebsd 8
On Thu, Jun 24, 2010 at 6:58 AM, step...@theched.org wrote: Good morning/afternoon/evening, Do you know of any virtualisation solution that would allow USB devices when using Freebsd-8 as host ? We do indeed have virtualbox-OSE, but without USB support Basically I would use that to fire-up a WinXP session allowing my to sync various USB devices that I cannot sync using my Freebsd box (iPod, GPS etc.) you can't access to them from vm :( -- Jorge Andrés Medina Oliva. ___ 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: .sh check for numeric content
On Thu, 24 Jun 2010 09:14:39 -0700 Chip Camden sterl...@camdensoftware.com articulated: [snip] That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case statement. I use Bash myself. I am not sure what other shells support this context. In any case, I simply supplied a possible solution. I leave it up to the OP to determine if it is suitable for his/her environment. -- Jerry ✌ freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ 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: .sh check for numeric content
vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to contain A numeric values. How do I code a test to verify the content is numeric? The script below will work with the Bourne or Korn shell. Results for 0 1 12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric You might want to try testing 123..45. I tried changing: if expr $arg : [0-9]*[\.0-9]*$ /dev/null to: if expr $arg : [0-9]*\.*[0-9]*$ /dev/null but it still claims that it is numeric, so *I* must be missing something. -- 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: Problem running fdisk via sysinstall
Nick, that worked! I zero'd the whole disk, then everything worked like normal. Thanks, Mark On Wed, Jun 23, 2010 at 07:15:13PM -0600, Mark Costlow wrote: Since I don't have any other ideas yet, I'll give that a try. I'll let you know if it works tomorrow if it has finished by then :-) Mark On Wed, Jun 23, 2010 at 07:46:38PM -0400, Nicholas Mills wrote: Mark, I'm certainly no expert, but I think I can point you in the right direction. The system appears to be attempting to read from a GPT stored on the disk from when you used it on Linux. I'm not sure of the specifics, but I do know that some GPT info is stored near the end of the drive. The easy (but slow) solution would be to use dd to write zeros to the entire drive (da1). Hope this helps, Nick On Wed, Jun 23, 2010 at 7:28 PM, Mark Costlow [1]che...@swcp.com wrote: I hope this question isn't too stupid. I have a machine with a 3Ware RAID card, with 4 SATA drives attached. 2 drives are 250GB in a RAID1 volume, and act as the boot disk with a standard freebsd partiction map (/, /var, /usr, and swap on this disk). The other 2 drives are 1TB in a RAID1 volume, intended to be mounted as a separate data partition. At boot both volumes are recognized: Jun 22 18:38:51 ebi7 kernel: da0 at twa0 bus 0 target 0 lun 0 Jun 22 18:38:51 ebi7 kernel: da0: AMCC 9550SX-4LP DISK 3.08 Fixed Direct Access SCSI-5 device Jun 22 18:38:51 ebi7 kernel: da0: 100.000MB/s transfers Jun 22 18:38:51 ebi7 kernel: da0: 238408MB (488259584 512 byte sectors: 255H 63S/T 30392C) Jun 22 18:38:51 ebi7 kernel: da1 at twa0 bus 0 target 1 lun 0 Jun 22 18:38:51 ebi7 kernel: da1: AMCC 9550SX-4LP DISK 3.08 Fixed Direct Access SCSI-5 device Jun 22 18:38:51 ebi7 kernel: da1: 100.000MB/s transfers Jun 22 18:38:51 ebi7 kernel: da1: 953664MB (1953103872 512 byte sectors: 255H 63S/T 121575C) da0 is fine, and the system boots off of it with no problem. When I try to add da1 to the system, I get the following: * Run systinstall, Configure, Fdisk, select da1 * Get the friendly warning about the large geometry, click Yes * Hit A to use entire disk. Hit W to save, click Yes, select None for boot record. * Fdisk says: Wrote FDISK partition information out successfully. * Per handbook, get out of sysinstall and re-run it, then try to Label. In the label editor, it knows nothing about da1 (the device can be selected when going into the label editor, but I can't create any partitions). At the time when Fdisk says Wrote FDISK partition information out, successfully. this gets logged to /var/log/messages: Jun 23 17:11:18 ebi7 kernel: GEOM: da1: corrupt or invalid GPT detected. Jun 23 17:11:18 ebi7 kernel: GEOM: da1: GPT rejected -- may not be recoverable. I've tried several variations, including running the command-line equivalents, but keep hitting this same error (fdisk thinks everything is good, but the GPT error is logged). I've also noticed that /dev/da1 exists, but there is no /dev/da1s1 or /dev/da1s1e ... I'm not sure when those should get created. And the final possibly-relevant tidbit: these drives used to be part of a different RAID on a linux system. They've been re-initialized into the RAID card on this system, and I've zero'd the first 1k of the volume with dd, so I don't *think* that should be a factor. I've worked with about a dozen systems with the same hardware in the configuration outlined above and haven't seen this problem before. But I'm usually using fresh new disks so maybe it matters. I've googled this issue and found several people reporting similar symptoms over the years, but haven't found any posted solutions aside from telling people to read geom(8). Any hints or clue-by-fours? Mark -- Mark Costlow| Southwest Cyberport | Fax: +1-505-232-7975 [2]che...@swcp.com | Web: [3]www.swcp.com | Voice: +1-505-232-7992 [4]abq-strange.com -- Interesting photos taken in Albuquerque, NM Last post: Shoe Pole - 2009-07-07 20:18:22 ___ [5]freebsd-questi...@freebsd.org mailing list [6]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [7]freebsd-questions-unsubscr...@freebsd.org References 1. mailto:che...@swcp.com 2. mailto:che...@swcp.com 3. http://www.swcp.com/ 4. http://abq-strange.com/ 5. mailto:freebsd-questions@freebsd.org 6. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 7.
Re: Problem running fdisk via sysinstall
On Wed, Jun 23, 2010 at 11:17:50PM -0500, Adam Vande More wrote: On Wed, Jun 23, 2010 at 6:28 PM, Mark Costlow [1]che...@swcp.com wrote: I hope this question isn't too stupid. Any hints or clue-by-fours? What's the output of 'gpart show'? Zeroing the whole drive fixed the problem. Before that, gpart show displayed info for da0, but nothing at all for da1. Thanks, Mark -- Mark Costlow| Southwest Cyberport | Fax: +1-505-232-7975 che...@swcp.com | Web: www.swcp.com | Voice: +1-505-232-7992 abq-strange.com -- Interesting photos taken in Albuquerque, NM Last post: Shoe Pole - 2009-07-07 20:18:22 ___ 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: Problem running fdisk via sysinstall
Excellent, I'm glad everything worked out. It may have been a leftover secondary GPT. From g_part_gpt.c: /* No primary? Check that there's a secondary. */ buf = g_read_data(cp, pp-mediasize - pp-sectorsize, pp-sectorsize, error); This would seem to suggest that the secondary GPT is stored in the last block of the drive. Zeroing that block would probably have worked too. On Thu, Jun 24, 2010 at 12:41 PM, Mark Costlow che...@swcp.com wrote: Nick, that worked! I zero'd the whole disk, then everything worked like normal. Thanks, Mark On Wed, Jun 23, 2010 at 07:15:13PM -0600, Mark Costlow wrote: Since I don't have any other ideas yet, I'll give that a try. I'll let you know if it works tomorrow if it has finished by then :-) Mark On Wed, Jun 23, 2010 at 07:46:38PM -0400, Nicholas Mills wrote: Mark, I'm certainly no expert, but I think I can point you in the right direction. The system appears to be attempting to read from a GPT stored on the disk from when you used it on Linux. I'm not sure of the specifics, but I do know that some GPT info is stored near the end of the drive. The easy (but slow) solution would be to use dd to write zeros to the entire drive (da1). Hope this helps, Nick On Wed, Jun 23, 2010 at 7:28 PM, Mark Costlow [1]che...@swcp.com wrote: I hope this question isn't too stupid. I have a machine with a 3Ware RAID card, with 4 SATA drives attached. 2 drives are 250GB in a RAID1 volume, and act as the boot disk with a standard freebsd partiction map (/, /var, /usr, and swap on this disk). The other 2 drives are 1TB in a RAID1 volume, intended to be mounted as a separate data partition. At boot both volumes are recognized: Jun 22 18:38:51 ebi7 kernel: da0 at twa0 bus 0 target 0 lun 0 Jun 22 18:38:51 ebi7 kernel: da0: AMCC 9550SX-4LP DISK 3.08 Fixed Direct Access SCSI-5 device Jun 22 18:38:51 ebi7 kernel: da0: 100.000MB/s transfers Jun 22 18:38:51 ebi7 kernel: da0: 238408MB (488259584 512 byte sectors: 255H 63S/T 30392C) Jun 22 18:38:51 ebi7 kernel: da1 at twa0 bus 0 target 1 lun 0 Jun 22 18:38:51 ebi7 kernel: da1: AMCC 9550SX-4LP DISK 3.08 Fixed Direct Access SCSI-5 device Jun 22 18:38:51 ebi7 kernel: da1: 100.000MB/s transfers Jun 22 18:38:51 ebi7 kernel: da1: 953664MB (1953103872 512 byte sectors: 255H 63S/T 121575C) da0 is fine, and the system boots off of it with no problem. When I try to add da1 to the system, I get the following: * Run systinstall, Configure, Fdisk, select da1 * Get the friendly warning about the large geometry, click Yes * Hit A to use entire disk. Hit W to save, click Yes, select None for boot record. * Fdisk says: Wrote FDISK partition information out successfully. * Per handbook, get out of sysinstall and re-run it, then try to Label. In the label editor, it knows nothing about da1 (the device can be selected when going into the label editor, but I can't create any partitions). At the time when Fdisk says Wrote FDISK partition information out, successfully. this gets logged to /var/log/messages: Jun 23 17:11:18 ebi7 kernel: GEOM: da1: corrupt or invalid GPT detected. Jun 23 17:11:18 ebi7 kernel: GEOM: da1: GPT rejected -- may not be recoverable. I've tried several variations, including running the command-line equivalents, but keep hitting this same error (fdisk thinks everything is good, but the GPT error is logged). I've also noticed that /dev/da1 exists, but there is no /dev/da1s1 or /dev/da1s1e ... I'm not sure when those should get created. And the final possibly-relevant tidbit: these drives used to be part of a different RAID on a linux system. They've been re-initialized into the RAID card on this system, and I've zero'd the first 1k of the volume with dd, so I don't *think* that should be a factor. I've worked with about a dozen systems with the same hardware in the configuration outlined above and haven't seen this problem before. But I'm usually using fresh new disks so maybe it matters. I've googled this issue and found several people reporting similar symptoms over the years, but haven't found any posted solutions aside from telling people to read geom(8). Any hints or clue-by-fours? Mark -- Mark Costlow| Southwest Cyberport | Fax: +1-505-232-7975 [2]che...@swcp.com | Web: [3]www.swcp.com | Voice: +1-505-232-7992 [4]abq-strange.com -- Interesting photos taken in Albuquerque, NM Last post: Shoe Pole - 2009-07-07 20:18:22
Re: .sh check for numeric content
Carl Johnson ca...@peak.org writes: vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to contain A numeric values. How do I code a test to verify the content is numeric? The script below will work with the Bourne or Korn shell. Results for 0 1 12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric You might want to try testing 123..45. I tried changing: if expr $arg : [0-9]*[\.0-9]*$ /dev/null to: if expr $arg : [0-9]*\.*[0-9]*$ /dev/null but it still claims that it is numeric, so *I* must be missing something. I just realized that I had a stupid mistake there and should have used: if expr $arg : [0-9]*\.[0-9]*$ /dev/null -- 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: .sh check for numeric content
Carl Johnson ca...@peak.org writes: Carl Johnson ca...@peak.org writes: vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to contain A numeric values. How do I code a test to verify the content is numeric? The script below will work with the Bourne or Korn shell. Results for 0 1 12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric You might want to try testing 123..45. I tried changing: if expr $arg : [0-9]*[\.0-9]*$ /dev/null to: if expr $arg : [0-9]*\.*[0-9]*$ /dev/null but it still claims that it is numeric, so *I* must be missing something. I just realized that I had a stupid mistake there and should have used: if expr $arg : [0-9]*\.[0-9]*$ /dev/null And of course that was another stupid mistake that I didn't test properly. I really wanted 0 or 1 decimal points, so I wanted '\.\?', except that FreeBSD expr doesn't recognize '\?'. I finally ended up with the following which seems to work as *I* expected it to work: if expr $arg : [1-9]*\.\{0,1\}[0-9]*$ /dev/null -- 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: check for numeric content in a shell script (FreeBSD sh)
in message 87d3vgmj1s@cjlinux.localnet, wrote Carl Johnson thusly... Carl Johnson ca...@peak.org writes: Carl Johnson ca...@peak.org writes: vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose A to contain A numeric values. How do I code a test to verify the content A is numeric? The script below will work with the Bourne or Korn shell. Results for 0 1 12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric You might want to try testing 123..45. I tried changing: if expr $arg : [0-9]*[\.0-9]*$ /dev/null to: if expr $arg : [0-9]*\.*[0-9]*$ /dev/null but it still claims that it is numeric, so *I* must be missing something. I just realized that I had a stupid mistake there and should have used: if expr $arg : [0-9]*\.[0-9]*$ /dev/null And of course that was another stupid mistake that I didn't test properly. I really wanted 0 or 1 decimal points, so I wanted '\.\?', except that FreeBSD expr doesn't recognize '\?'. I finally ended up with the following which seems to work as *I* expected it to work: if expr $arg : [1-9]*\.\{0,1\}[0-9]*$ /dev/null That regex considers . a number but not 0.9 (this one seems to be due to typo) nor a negative number. I would personally to use egrep or awk (printf %s ${arg} | egrep ${regex} [0]) instead of expr. - parv [0] Compact regex # Matches a number, either positive (without '+' sign) or # negative, which is either a whole number; or a real number # ending with decimal point, or a real number with or without # leading digits before the decimal point. ^ -? ( [0-9] [.]? [0-9]* | [0-9]? [.] [0-9]+ ) $ ...by removing whitespace before use. -- ___ 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: check for numeric content in a shell script (FreeBSD sh)
in message 20100624183407.ga49...@holstein.holy.cow, wrote p...@pair.com thusly... # Matches a number, either positive (without '+' sign) or # negative, which is either a whole number; or a real number # ending with decimal point, or a real number with or without # leading digits before the decimal point. . ^ . ^ plural ^ -? ( [0-9] [.]? [0-9]* | [0-9]? [.] [0-9]+ .^ .^ oops Please change the immediately above regex portion to ... [0-9]* [.] [0-9]+ - parv ) $ -- ___ 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
Problem with system install with Toshiba MK2565GSX SATA disk
Hello, I am trying to install a toshiba HD on an appliance, the Toshiba is a MK2565GSX of 250GB described here:http://www3.toshiba.co.jp/storage/english/spec/hdd25/65.htm#spec02 The system I am trying to install is pfSense (FBSD 7.2). I am not a 100% sure about the disk geometry… as It is not quite clear. What is sure is that disk has 488 397 168 sectors… Normally It should have 484 521 cylinder 16 heads and 63 sectors, but I am not certain this setting is ok… If I have a look at the BIOS setting after install, It tells me that disk has 65535 cylinder, 16 head, 255 sector which is not quite the same as the above… If I use a simple install I generally end up with an error on my HD after boot, once he tries to mount the disk… Kernel is loaded ok, up until he reaches the disk da0 then there is an error: ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=18446744073709551553 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a […] Then I do not have access to the device using manual system mounting… What would be your advise? Any idea what is precisely going wrong? Thank you very much. G.B. Gregober --- PGP ID -- 0x1BA3C2FD bsd @at@ todoo.biz ___ 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
sudo last login message and how to turn it off FreeBSD8.0
I have actually seen this on some FreeBSD6.3 systems and thought it was a querk. It may still be a querk but it has started again on an 8.0 system. I think I am doing something to cause it, but I am not sure. When one executes a sudo command, I get a last login message which reflects the last time I ran sudo. Example: [mar...@pilot ~]$ sudo whoami Password: Last login: Thu Jun 24 13:07:20 from pilot.it.okstate root There is another FreeBSD8.0 system here that has not yet behaved this way so I did something to the test system to make it start. Any ideas as to what to look at? Thank you. Martin McCormick ___ 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 start smartd on Quantum drive
Hello, Running FreeBSD 8.0. I cloned using 'dump' a very old and failing Fujitsu drive that was mounted as /dev/ad0 to a Quantum drive that was mounted at the time of dumping as /dev/ad3. I used the method of cloning described in http://forums.freebsd.org/showthread.php?t=11680. There is a second drive that was mounted as /dev/ad2. After the clone was completed and the system was reconfigured taking out the failing drive and inserting the replacement drive as a master drive. Upon booting in the new drive configuration, I received the following message that it couldn't boot from /dev/ad0s1a: , | Timecounter TSC frequency 1294237239 Hz quality 80 | Timecounters tick every 1.000 msec | Trying to mount root from ufs:/dev/ad0s1a | ROOT MOUNT ERROR | If you have invalid mount options, reboot, and first try the following | from the loader prompt: | | set vfs.root.mountfrom.options=rw | | and then remove invalid entries from /etc/fstab | | Loader variables: | vfs.root.mountfrom=ufs:/dev/ad0s1a | vfs.root.mountfrom.options=rw ` I found from dmesg that I had the following mounted disks: ad2: 26147MB QUANTUM FIREBALLP KX27.3 A1S.3700 at ata1-master UDMA66 ad3: 76293MB Seagate ST380011A 8.16 at ata1-slave UDMA100 I ended up with a mountroot command prompt. After fiddling around, I finally was able to change the boot order so that it boots from /dev/ad2s1. I also had to edit the /etc/fstab. After rebooting, I was able to boot up the system successfully except that I now received an error message that smartd couldn't start monitoring /dev/ad2 as follows: ad2: FAILURE - SMART status=51READY,DSC,ERROR error=4ABORTED Ok, check log: r...@ftp:/root# tail /var/log/messages ..snip.. Jun 24 10:26:48 ftp kernel: Trying to mount root from ufs:/dev/ad2s1a Jun 24 10:26:48 ftp kernel: GEOM: ufsid/47336891c9952d8a: geometry does not match label (255h,63s != 16h,63s). Jun 24 10:26:52 ftp kernel: ad2: FAILURE - SMART status=51READY,DSC,ERROR error=4ABORTED Jun 24 10:26:52 ftp smartd[786]: Unable to register ATA device /dev/ad2 at line 41 of file /usr/local/etc/smartd.conf Jun 24 10:26:52 ftp smartd[786]: Unable to register device /dev/ad2 (no Directive -d removable). Exiting. Jun 24 10:26:52 ftp root: /etc/rc: WARNING: failed to start smartd ..snip.. r...@ftp:/root# Listing relevant info in smartd.conf: # First (primary) ATA/IDE hard disk. Monitor all attributes, enable # automatic online data collection, automatic Attribute autosave, and # start a short self-test every day between 2-3am, and a long self test # Saturdays between 3-4am. #/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/ad2 -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/ad3 -a -o on -S on -s (S/../.././02|L/../../6/03) fsck'ing all volumes on /dev/ad2 comes up clean. Trying to start smartd from command prompt: r...@ftp:/root# smartctl -s on /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF ENABLE/DISABLE COMMANDS SECTION === Error SMART Enable failed Smartctl: SMART Enable Failed. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. r...@ftp:/root# smartctl -s on -T verypermissive /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF ENABLE/DISABLE COMMANDS SECTION === Error SMART Enable failed Smartctl: SMART Enable Failed. r...@ftp:/root# smartctl -i /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Quantum Fireball Plus KX series Device Model: QUANTUM FIREBALLP KX27.3 Serial Number:158002833918 Firmware Version: A1S.3700 User Capacity:27,417,755,648 bytes Device is:In smartctl database [for details use: -P show] ATA Version is: 4 ATA Standard is: ATA/ATAPI-4 T13 1153D revision 15 Local Time is:Thu Jun 24 11:12:35 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled SMART Disabled. Use option -s with argument 'on' to enable it. r...@ftp:/root# smartctl -t short /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net SMART Disabled. Use option -s with argument 'on' to enable it. r...@ftp:/root# smartctl -a /dev/ad2 smartctl 5.39.1 2010-01-28 r3054 [FreeBSD 8.0-STABLE i386] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Quantum Fireball Plus KX series Device Model: QUANTUM FIREBALLP KX27.3
Re: sudo last login message and how to turn it off FreeBSD8.0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/06/2010 19:41:04, Martin McCormick wrote: When one executes a sudo command, I get a last login message which reflects the last time I ran sudo. Example: Any ideas as to what to look at? /usr/local/etc/pam.d/sudo probably. The 'last login' message usually comes from login(1), but I don't see why sudo(8) would invoke login unless you were running 'sudo -i ...' Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwjqvcACgkQ8Mjk52CukIwujgCeMHtly4qM+OBb0DeuqkhEW6se syAAniA6VgJ86bUgWHS90TVDb9d73i1k =gz+A -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: check for numeric content in a shell script (FreeBSD sh)
On Jun 24 08:39, Parv wrote: in message 20100624183407.ga49...@holstein.holy.cow, wrote p...@pair.com thusly... # Matches a number, either positive (without '+' sign) or # negative, which is either a whole number; or a real number # ending with decimal point, or a real number with or without # leading digits before the decimal point. . ^ . ^ plural ^ -? ( [0-9] [.]? [0-9]* | [0-9]? [.] [0-9]+ .^ .^ oops Please change the immediately above regex portion to ... [0-9]* [.] [0-9]+ - parv We still need to be able to handle numbers without a decimal. Try this: [0-9]*\.?[0-9]+ The question mark says 0 or 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 -- Sterling (Chip) Camden http://camdensoftware.com | http://chipstips.com | http://chipsquips.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
disk controllers - FreeBSD
Dear FreeBSD Support Dept., I'm buying a Dell PowerEdge R210 server to install FreeBSD. The server may have the following disk controllers: - PERC H200 (6 Gb/s) OR - SAS6iR (6 Gb/s) I wonder if the disk drive controllers are compatible with FreeBSD? Thanks in advance for your attention. Atenciosamente / Best Regards, Mariangela S Meirelles Mundo Provedor Fone +55 11 3884-4301 ___ 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: sharing code between the various *BSDs
On Tue, Jun 22, 2010 at 12:13 AM, Chris Rees utis...@gmail.com wrote: Politics... too bad politics get in the way of progress. :( Sorry for top-posting, Android won't let me quote. There's a bug report on it! On 21 Jun 2010 23:12, Alexander Best alexbes...@uni-muenster.de wrote: hi there, i can't remember where i read this the other day, but i found this to be a great idea. basically the idea was to have one code pool which all the *bsd flavours share and also to which every *bsd committer has access and can make changes. especially code in /bin, /sbin, usr/bin, /usr/sbin or /usr/share (probably other places too) would benefit from this a lot. right now most of the work that gets done in one of these places by lets say dragonfly won't make it into freebsd or netbsd for a long time. or what's even worse: sometimes people document problems or bugs which have already been fixed in some other *bsd. if somebody fixes the problem that's just wasted time because it's been done beforehand. would this be even possible or not at all? -- Alexander Best ___ 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 -- Alexander Best ___ 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
since when did alt-shift-tab quit working?
I thought it was the kludged state of my desktop, but the 8-release server I just brought up fresh yesterday is doing it too: alt-tab works, alt-shift-tab does not. For those of us who are not into gnome/kde/cutesy menus panels, this is a major PITA. No doubt it came in from linux-land with the latest xorg revision, and I'm going to have to add another esoteric knob to my xorg.conf... Steve ___ 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: .sh check for numeric content
Jerry wrote: On Thu, 24 Jun 2010 09:14:39 -0700 Chip Camden sterl...@camdensoftware.com articulated: [snip] That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case statement. I use Bash myself. I am not sure what other shells support this context. In any case, I simply supplied a possible solution. I leave it up to the OP to determine if it is suitable for his/her environment. The subject clearly tells you what shell the o/p is using. ___ 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: .sh check for numeric content
On Fri, 25 Jun 2010 05:17:17 +0800 Aiza aiz...@comclark.com articulated: Jerry wrote: On Thu, 24 Jun 2010 09:14:39 -0700 Chip Camden sterl...@camdensoftware.com articulated: [snip] That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case statement. I use Bash myself. I am not sure what other shells support this context. In any case, I simply supplied a possible solution. I leave it up to the OP to determine if it is suitable for his/her environment. The subject clearly tells you what shell the o/p is using. Actually, .sh does not appear to be a definitive declaration of the scripting language. However, if you deemed that to be a definitive declaration for the scripting language the OP was using, then fine. In any case, as I previously posted, it was left up to the OP to decide if the proposed solution was suitable for their needs. After reading all of the babble concerning what should be a relatively easy operation, perhaps the OP might want to consider switching to Bash. -- Jerry ✌ freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Q: What's the difference between an Irish wedding and an Irish wake? A: One more drunk. ___ 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: since when did alt-shift-tab quit working?
On Jun 24 14:17, Steve Franks wrote: I thought it was the kludged state of my desktop, but the 8-release server I just brought up fresh yesterday is doing it too: alt-tab works, alt-shift-tab does not. For those of us who are not into gnome/kde/cutesy menus panels, this is a major PITA. No doubt it came in from linux-land with the latest xorg revision, and I'm going to have to add another esoteric knob to my xorg.conf... Steve ___ 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 What window manager are you using? With xmonad, you have complete control over those keystrokes. -- Sterling (Chip) Camden http://camdensoftware.com | http://chipstips.com | http://chipsquips.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: disk controllers - FreeBSD
I have PERC and works fine! On Thu, Jun 24, 2010 at 2:56 PM, Mariangela Meirelles mariang...@mundo.com.br wrote: Dear FreeBSD Support Dept., I'm buying a Dell PowerEdge R210 server to install FreeBSD. The server may have the following disk controllers: - PERC H200 (6 Gb/s) OR - SAS6iR (6 Gb/s) I wonder if the disk drive controllers are compatible with FreeBSD? Thanks in advance for your attention. Atenciosamente / Best Regards, Mariangela S Meirelles Mundo Provedor Fone +55 11 3884-4301 ___ 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 -- Jorge Andrés Medina Oliva. ___ 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: Problem using Portmaster to upgrade installed ports via packages only
On 06/24/10 06:10, b. f. wrote: Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Then I typed this linde into a console : % sudo portmaster -PP -a -x openoffice There is a procedure for using sudo with portmaster described in the man page. That procedure is preferable because it uses your user environment for everything except where root privileges are actually necessary. What I suspect is happening here is that sudo is stripping your environment which means that portmaster never sees the PACKAGESITE variable. I tried it just now with csh, setting the environment variable as you did, but using portmaster with sudo in the way described in the man page and it worked fine. If you would prefer to continue using 'sudo portmaster' that's fine, but you'll need to place the relevant information (such as PACKAGESITE) in ~/.portmasterrc or /usr/local/etc/portmaster.rc. BTW, if you're going to go this route, you're probably better off with PACKAGEROOT, but either way should work. See the man page for more information. Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) without success : ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ Spelling counts. :) hth, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover!http://SupersetSolutions.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: since when did alt-shift-tab quit working?
On Thu, 24 Jun 2010, Steve Franks wrote: I thought it was the kludged state of my desktop, but the 8-release server I just brought up fresh yesterday is doing it too: alt-tab works, alt-shift-tab does not. What, exactly, do you mean by does not work? It works here by moving backward through the list of open windows, instead of forward as with alt-tab. Or are you talking about a console? For those of us who are not into gnome/kde/cutesy menus panels, this is a major PITA. No doubt it came in from linux-land with the latest xorg revision, and I'm going to have to add another esoteric knob to my xorg.conf... Or maybe change settings in your (unspecified) window manager. It's really hard to tell without any detail about the problem or the environment. ___ 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: i386 wine on amd64 - DRI a lost cause?
On 2010-06-24 18:57:35, Mikle Krutov wrote: You need 32bit libGL and all mesa stuff to have dri with i386 apps on amd64 system. Also i've used http://msnp.ru/file/wine-fbsd64.zip port, not the by-hand-way while using amd64. Worked for me on both radeon and nvidia card. Yes, I have those. Here's a list of all ports installed in the i386 jail (they were built in the jail itself so are definitely 32 bit): bash-4.0.35 The GNU Project's Bourne Again SHell damageproto-1.1.0_2 Damage extension headers dri-7.4.4,2 OpenGL hardware acceleration drivers for the DRI dri2proto-2.1 DRI2 prototype headers expat-2.0.1_1 XML 1.0 parser written in C fixesproto-4.0 Fixes extension headers fontconfig-2.8.0,1 An XML-based font configuration API for X Windows freetype2-2.3.11A free and portable TrueType font rendering engine gettext-0.17_1 GNU gettext package inputproto-1.5.0Input extension headers jpeg-8_1IJG's jpeg compression utilities kbproto-1.0.3 KB extension headers lcms-1.19_1,1 Light Color Management System -- a color management library libGL-7.4.4 OpenGL library that renders using GLX or DRI libGLU-7.4.4OpenGL utility library libICE-1.0.4_1,1Inter Client Exchange library for X11 libSM-1.1.0_1,1 Session Management library for X11 libX11-1.2.1_1,1X11 library libXau-1.0.4Authentication Protocol library for X11 libXdamage-1.1.1X Damage extension library libXdmcp-1.0.2_1X Display Manager Control Protocol library libXext-1.0.5,1 X11 Extension library libXfixes-4.0.3_1 X Fixes extension library libXi-1.2.1,1 X Input extension library libXmu-1.0.4,1 X Miscellaneous Utilities libraries libXpm-3.5.7X Pixmap library libXrender-0.9.4_1 X Render extension library libXt-1.0.5_1 X Toolkit library libXxf86vm-1.0.2X Vidmode Extension libdrm-2.4.12 Userspace interface to kernel Direct Rendering Module servi libglut-7.4.4 OpenGL utility toolkit libiconv-1.13.1_1 A character set conversion library libpthread-stubs-0.3_3 This library provides weak aliases for pthread functions libxcb-1.5 The X protocol C-language Binding (XCB) library libxml2-2.7.6_1 XML parser library for GNOME mesa-demos-7.4.4OpenGL demos distributed with Mesa pkg-config-0.23_1 A utility to retrieve information about installed libraries png-1.2.43 Library for manipulating PNG images renderproto-0.9.3 RenderProto protocol headers wine-1.1.40,1 Microsoft Windows compatibility layer for Unix-like systems xextproto-7.0.5 XExt extension headers xf86vidmodeproto-2.2.2 XFree86-VidModeExtension extension headers xproto-7.0.15 X11 protocol headers This is sort of worrying then: Why am I seeing segfaults? I'd expect to see executable format errors if there were 64 bit binaries being used somewhere rather than straight crashes. Regards, xw ___ 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
Icelandic FTP server doesn't work? I don't think it's been up for a while?
Hi, I just wanted to notify you that the Icelandic ftp mirror site doesn't seam to be working. ftp.is.freebsd.org Best regards, Svavar Ingi -- Bestu kveðjur / Best regards, Svavar Ingi Hermannsson, Ráðgjafi - Senior Consultant BSc. CS, LA 27001, CISA, CISM, SCSA, MCP sva...@security.is http://www.linkedin.com/in/SvavarIngiHermannsson http://www.xing.com/profile/SvavarIngi_Hermannsson ___ 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
pkg_add
I checked the pkg_add manpage for where does pkg_add look for the named pkg distribution file? It says the env PKG_PATH holds it but env command does not show that variable. Is it /usr/packages or /usr/ports/packages? How can I see the value of PKG_PATH? What is the path of where the pkg distribution file are suppose to reside. ___ 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: pkg_add
uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 echo $PKG_PATH PKG_PATH: Undefined variable. cat .cshrc |grep -i package setenv PACKAGESITE ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/ So you should use PACKAGESITE instead of PKG_PATH you mentioned . Fbsd1 wrote: I checked the pkg_add manpage for where does pkg_add look for the named pkg distribution file? It says the env PKG_PATH holds it but env command does not show that variable. Is it /usr/packages or /usr/ports/packages? How can I see the value of PKG_PATH? What is the path of where the pkg distribution file are suppose to reside. ___ 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 - e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/pkg_add-tp28988075p28988141.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add
On 6/24/10 9:01 PM, zaxis wrote: uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 echo $PKG_PATH PKG_PATH: Undefined variable. cat .cshrc |grep -i package setenv PACKAGESITE ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/ So you should use PACKAGESITE instead of PKG_PATH you mentioned . Not entirely true. Using the above FTP URL, PKG_PATH will look for ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/ Regards, -- Glen Barber ___ 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 it appropriate to mount /var and /usr on ext2fs partition ?
df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s3a496M119M337M26%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad4s3e496M6.7M449M 1%/tmp /dev/ad4s3f 14G7.8G5.4G59%/usr /dev/ad4s3d1.4G171M1.1G13%/var /dev/ad4s7 30G3.5G 26G12%/media/F /dev/ad4s8 30G172M 28G 1%/media/G mount /dev/ad4s3a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad4s3e on /tmp (ufs, local, soft-updates) /dev/ad4s3f on /usr (ufs, local, soft-updates) /dev/ad4s3d on /var (ufs, local, soft-updates) /dev/ad4s7 on /media/F (msdosfs, local) /dev/ad4s8 on /media/G (ext2fs, local) The /dev/ad4s8 is an empty partition. Now i want to move /var and /usr to it. Do i need to format /dev/ad4s8 to UFS ? Sincerely! - e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Is-it-appropriate-to-mount--var-and--usr-on-ext2fs-partition---tp28988313p28988313.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add
Glen Barber wrote: On 6/24/10 9:01 PM, zaxis wrote: uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 echo $PKG_PATH PKG_PATH: Undefined variable. cat .cshrc |grep -i package setenv PACKAGESITE ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/ So you should use PACKAGESITE instead of PKG_PATH you mentioned . Not entirely true. Using the above FTP URL, PKG_PATH will look for ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/ Regards, No I am not looking for the remote path to fetch the package distribution file from. When doing pkg_add -Kr pkgname will save the downloaded distribution pkg file. My question is where is this file saved at on my host by default. /usr/packages 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: sudo last login message and how to turn it off FreeBSD8.0
On Thu, 24 Jun 2010 13:41:04 -0500 Martin McCormick mar...@dc.cis.okstate.edu wrote: I have actually seen this on some FreeBSD6.3 systems and thought it was a querk. It may still be a querk but it has started again on an 8.0 system. I think I am doing something to cause it, but I am not sure. When one executes a sudo command, I get a last login message which reflects the last time I ran sudo. Example: [mar...@pilot ~]$ sudo whoami Password: Last login: Thu Jun 24 13:07:20 from pilot.it.okstate root There is another FreeBSD8.0 system here that has not yet behaved this way so I did something to the test system to make it start. Any ideas as to what to look at? I experienced the same problem and I just disabled /var/log/{userlog,lastlog}: # ls -ltro /var/log/|grep uchg -rw--- 1 root wheel uappnd,uchg,uunlnk 1 May 9 08:59 userlog -rw-r--r-- 1 root wheel uappnd,uchg,uunlnk 1 May 9 18:50 lastlog Hope this helps. Regards, -- Anh Ky Huynh ___ 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: pkg_add
On 6/24/10 9:49 PM, Fbsd1 wrote: Glen Barber wrote: Using the above FTP URL, PKG_PATH will look for ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/ Regards, No I am not looking for the remote path to fetch the package distribution file from. When doing pkg_add -Kr pkgname will save the downloaded distribution pkg file. My question is where is this file saved at on my host by default. /usr/packages maybe /usr/ports/packages, assuming it exists. If not, it will save to the port directory. Regards, -- Glen Barber ___ 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: pkg_add
On 6/24/10 10:02 PM, Glen Barber wrote: On 6/24/10 9:49 PM, Fbsd1 wrote: Glen Barber wrote: Using the above FTP URL, PKG_PATH will look for ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/ Regards, No I am not looking for the remote path to fetch the package distribution file from. When doing pkg_add -Kr pkgname will save the downloaded distribution pkg file. My question is where is this file saved at on my host by default. /usr/packages maybe /usr/ports/packages, assuming it exists. If not, it will save to the port directory. Actually, to quote pkg_add(1): -K, --keep Keep any downloaded package in PKGDIR if it is defined or in current directory by default. Therefore, if PKGDIR is not defined, it should use $PWD. PKGDIR and PKG_PATH are two entirely different environment variables. Regards, -- Glen Barber ___ 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: check for numeric content in a shell script (FreeBSD sh)
p...@pair.com writes: if expr $arg : [1-9]*\.\{0,1\}[0-9]*$ /dev/null That regex considers . a number but not 0.9 (this one seems to be due to typo) nor a negative number. I had been pointing out an error in the regular expression that someone else had posted, but I obviously didn't do any better. I would personally to use egrep or awk (printf %s ${arg} | egrep ${regex} [0]) instead of expr. I would probably just perl for the whole thing, especially seeing the limitations in trying to use expr. Thanks for pointing out another approach. -- 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: .sh check for numeric content
On Thu, Jun 24, 2010 at 05:51:20PM -0400, Jerry wrote: In any case, as I previously posted, it was left up to the OP to decide if the proposed solution was suitable for their needs. After reading all of the babble concerning what should be a relatively easy operation, perhaps the OP might want to consider switching to Bash. If we're going to start telling him what language to use, we might as well tell him to use an actual *programming* language (e.g. Perl). Otherwise, perhaps we should try to stick to what he wants to use. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpqqt5lqE2BZ.pgp Description: PGP signature
Re: Problem with system install with Toshiba MK2565GSX SATA disk
Looks like the problem was related to BIOS setting. I have changed the setting of disk detection from AUTO to LBA and this has allowed me to boot on the disk. One more question: With the disk I am using FBSD seems to have two possibility for the partition table size (or at least depending on different boot, It is offering me sometimes the 1st option and other time the second one): 1. 30401 cylinders | 255 heads | 63 sectors 2. 484521 cylinders | 16 heads | 63 sectors Global dis size is 250GB (LBA 488397168) Le 24 juin 2010 à 20:37, bsd a écrit : Hello, I am trying to install a toshiba HD on an appliance, the Toshiba is a MK2565GSX of 250GB described here:http://www3.toshiba.co.jp/storage/english/spec/hdd25/65.htm#spec02 The system I am trying to install is pfSense (FBSD 7.2). I am not a 100% sure about the disk geometry… as It is not quite clear. What is sure is that disk has 488 397 168 sectors… Normally It should have 484 521 cylinder 16 heads and 63 sectors, but I am not certain this setting is ok… If I have a look at the BIOS setting after install, It tells me that disk has 65535 cylinder, 16 head, 255 sector which is not quite the same as the above… If I use a simple install I generally end up with an error on my HD after boot, once he tries to mount the disk… Kernel is loaded ok, up until he reaches the disk da0 then there is an error: ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=18446744073709551553 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a Trying to mount root from ufs:/dev/ad1s1a […] Then I do not have access to the device using manual system mounting… What would be your advise? Any idea what is precisely going wrong? Thank you very much. G.B. Gregober --- PGP ID -- 0x1BA3C2FD bsd @at@ todoo.biz ___ 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 Gregober --- PGP ID -- 0x1BA3C2FD bsd @at@ todoo.biz ___ 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