Re: Handling failed mount (media not connected)
--- Robert Huff [EMAIL PROTECTED] wrote: L Goodwin writes: My backup script (sh) works fine except when the backup drive (USB Flash drive) is not plugged in. I'm using mount_msdosfs to mount the backup drive. What is the best way to handle mount_msdosfs error? If the drive is not mounted, I want to detect the failure and execute error-handling code. First approximation, using sh: ls /dev | grep da4s1 if [ $? -eq 0 ]; then # drive is available else # drive is not available if (Replace da4s1 with whatever the flash drive gets created as.) Oh, yeah. Thanks, Robert! Now, sendmail has stopped working again (was working last night). Now, sendmail thinks on it for awhile, then returns 0, but mailq returns /var/spool/mqueue is emptyTotal requests: 0 I was testing outgoing email by disconnecting the network cable. Now, nothing (also tried with it connected). Robert Huff Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sysinstall: No Floppy Devices Found
--- Dan Mahoney, System Admin [EMAIL PROTECTED] wrote: On Tue, 16 Jan 2007, Kevin Kobb wrote: I have found that when I do an install with an install.cfg file on a floppy, I must insert the floppy right after the system begins to boot from CD. If I don't when I tell sysinstall to read the floppy I get an error. On a related note, sysinstall often errors out while trying to read from the CD-ROM (with FreeBSD disk in it). When read errors occur, sysinstal behaves erratically. You never know what will be displayed or how it will handle the situation (sometimes it looks like it aborted, but when you press Enter, it goes ahead with the install). BTW, this is in FreeBSD 6.2. As a work around, if I go into the options and select rescan for hardware devices (not sure if that is the exact wording) after inserting the floppy disk, it will work OK as well. Might be worth a try. No luck. I've rescanned time after time, and get nothing. No sloppy devices show up in dmesg, cannot use mount_msdosfs to access the floppy, etc. This is truly, truly frustrating, as I am trying to follow THESE instructions: http://3ware.com/KB/article.aspx?id=14850 I've even tried installing to an external (non-raid) drive in an attempt to use that drive as a really big floppy. The boot loader doesn't know how to see the BSD partition on it, and apparently can only see raw bios drives. Another possible approach was to try and boot from the single drive and then use sysinstall to install onto the RAID array, but I've had issues with that before. As an aside, the module HAS to be loaded before the boot process, so I can't use kldload to load the module from a fixit floppy or something like that. My workaround at the moment is that I am downloading a snapshot ISO of -STABLE It might be nice if the loading modules from floppy procedure (while rarely required) was better documented. -Dan -- It's three o'clock in the morning. It's too late for 'oops'. After Locate Updates, don't even go there. -Paul Baecker January 3, 2k Indeed, sometime after 3AM Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Handling failed mount (media not connected)
--- Garrett Cooper [EMAIL PROTECTED] wrote: Robert Huff wrote: L Goodwin writes: My backup script (sh) works fine except when the backup drive (USB Flash drive) is not plugged in. I'm using mount_msdosfs to mount the backup drive. What is the best way to handle mount_msdosfs error? If the drive is not mounted, I want to detect the failure and execute error-handling code. First approximation, using sh: ls /dev | grep da4s1 if [ $? -eq 0 ]; then # drive is available else # drive is not available if (Replace da4s1 with whatever the flash drive gets created as.) Robert Huff Possibly better (using sh again..): #!/bin/sh error_handling_func() { err_code=$1; shift; # do something here... exit $err_code; } # This assumes that you have: #1. cam/pass support built into the kernel. #2. your USB device is interpreted as a SCSI device (which should be the case). #3. your USB device is unique / identifiable by a string. camcontrol | grep 'Device string' || error_handling_func $? # do something here since it passed.. Also, FWIW conditionals are actually done like: if {statement} ; then elif {statement}; then else fi in Bourne shells. Also, mount_msdosfs should return a non-zero exit code. Thanks, Garrett. I was wondering about the [] vs. {} (every code example I've seen uses the square brackets). It's been 10 years since I did any serious shell scripting. I finally installed the MAN and INFO pages on the server I'm working on yesterday -- much faster than accessing them online! I'd like to see all MAN pages show return values and where any output goes, and more examples that cover each combination of the former in a real-world scenario. If *NIX/BSD is going to take on Windows, they need to be better in every significant way (which includes better documentation for those who are not already experts). Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Handling failed mount (media not connected)
My backup script (sh) works fine except when the backup drive (USB Flash drive) is not plugged in. I'm using mount_msdosfs to mount the backup drive. What is the best way to handle mount_msdosfs error? If the drive is not mounted, I want to detect the failure and execute error-handling code. I tried executing it in a subshell, which works when it FAILS, but not when it WORKS. Also tried trap mount command 0, but it did not help. Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem mounting I-Stick2 USB flash drive
--- Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Aug 31), L Goodwin said: Under FreeBDS 6.2, the following command works for a 256MBMemorex Mini TravelDrive, but not for a 256MB Intelligent Stick (I-Stick): mount_msdosfs /dev/da3s1 /mnt It fails with mount_msdosfs: /dev/da3s1: No such file or directory. What does ls -l /dev/da3* print? Maybe the filesystem is on a different slice. Or, if there's no slices, try mounting /dev/da3 directly. Mounting /dev/da3 directly worked (thought I had tried that last night, but must not have). Thanks! I don't understand why there is a difference between the two flash drives (both are FAT). Is there a way to accurately predict what the mount point should be on these? Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem mounting I-Stick2 USB flash drive
--- Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Sep 01), L Goodwin said: --- Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Aug 31), L Goodwin said: Under FreeBDS 6.2, the following command works for a 256MBMemorex Mini TravelDrive, but not for a 256MB Intelligent Stick (I-Stick): mount_msdosfs /dev/da3s1 /mnt It fails with mount_msdosfs: /dev/da3s1: No such file or directory. What does ls -l /dev/da3* print? Maybe the filesystem is on a different slice. Or, if there's no slices, try mounting /dev/da3 directly. Mounting /dev/da3 directly worked (thought I had tried that last night, but must not have). Thanks! I don't understand why there is a difference between the two flash drives (both are FAT). Is there a way to accurately predict what the mount point should be on these? Not really. An external drive could have filesystems on one or more slices if there's an fdisk partition table, or if it's unpartitioned (like a floppy disk), there will be a single filesystem on the raw disk device itself. One thing you can do is load the glabel module, which will scan new devices and create device nodes based on the filesystem's label. Then you can just mount whatever label appears in /dev/msdosfs/. Cool! Thanks! -- Dan Nelson [EMAIL PROTECTED] Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
--- Bill Moran [EMAIL PROTECTED] wrote: In response to L Goodwin [EMAIL PROTECTED]: --- Bill Moran [EMAIL PROTECTED] wrote: L Goodwin [EMAIL PROTECTED] wrote: Chuck, I'd prefer to have the script handle the mailing so I can test the script (with email send) manually, independent of cron. Why? What is your reason for overcomplicating this task by refusing to use the facilities built into the system? Still looking for specifics on setting this up and a bourne shell script example that sends an email. Thanks! Use mail(1). That's what it's there for. Huh? I want to use cron to run the script, but want more control over when and where email gets sent. The business reasons are sound. Anyway, a script that sends email is not complicated, so how can I be overcomplicating anything? Two lines of code vs. 1 line is overcomplicated. While your description of the reasons is somewhat vague, I still feel that cron's internal mailer can handle the chore. What control over who gets the mail do you need that can't be accomplished either by setting an env variable in the crontab, or by adding aliases to sendmail's config? Also, recent posts to freebsd-questions on the subject of sending email from cron seemed to favor having the script handle the mailing instead of cron. I haven't seen those mails, and can't comment on them. Anyway, I do not want the client to receive an email if the backup fails. Then don't send the mail to the client, just change who it goes to: [EMAIL PROTECTED] Bill, I'm just trying to figure stuff out here. I'm sorry if my ignorance offends you. I don't know how others feel about it, but I'd prefer not to get negative, condescending replies to my sincerely aimed questions. After all, this is a forum for questions, isn't it? Please don't mistake terseness for condescending. I didn't feel I was being condescending, and did not intend to be. What I did was: a) Comment that I feel you're taking the wrong approach to solving your problem. b) Give you a direct answer. What more could you ask for? I apologize if my language implied a negative tone. It was not intended that way. Apology accepted. Sorry if I overreacted -- the last few days have been less fruitful than I'd hoped. Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
--- Ian Smith [EMAIL PROTECTED] wrote: On Thu, 30 Aug 2007 18:14:55 -0700 (PDT) L Goodwin [EMAIL PROTECTED] wrote: --- Derek Ragona [EMAIL PROTECTED] wrote: [ slashing mercilessly ] --- Chuck Swiger [EMAIL PROTECTED] wrote: [..] Although, it is entirely reasonable to consider using Postfix instead. Here is a sample script that you can use as a template: === #!/bin/sh #define any commands you will use MAILFILE=mymailfile MAILFILE2=mymailfile2 [EMAIL PROTECTED] [EMAIL PROTECTED] MAIL=/usr/bin/mail AWK=/usr/bin/awk CAT=/bin/cat TR=/usr/bin/tr TEMPDIR=/tmp #make sure we have paths export PATH=$PATH:/usr/local/sbin:/usr/local/bin cd $TEMPDIR $CAT /etc/passwd | $AWK -F : '{ print $5 }' $MAILFILE $TR -cd \012-\172 $MAILFILE $MAILFILE2 $MAIL -s My list of real user names subject $SENDTO -c $CCTO $MAILFILE2 === Derek, your example brings up another question. Should I be calling mail or sendmail, and which mail or sendmail should I invoke if there is more than one of either? Chuck's example calls sendmail in a path that does not exist on my system (my sendmail is in /usr/sbin/). I usually invoke whichever one is first in my path. Use whatever works for you, and it never hurts to be specific :) One more question. Is it ok to run the script (and send the email) as user root, or should I create a user account with more limited permissions -- if so, what limits should I set? There are so many ways of doing this .. here's another that we'd use to mail out accounts to members monthly, from text files generated by some php and mysql magic on another box, by another guy. Note that this is enforced to be run by user 'subs' (here uid 996), so that's who these messages are 'From:'. A script run from cron need not be so paranoid about checking things .. this was hand-run 'when ready'. #!/bin/sh # sendacts 7Jan00 smithi .. mail out SubsBot messages .. cleanup 2Oct02 # each *.act file begins with To:, Cc:, X-mailer: etc lines maildir=/home/subs/bills/$1 # preexisting dir as parameter eg '2000-01' mailrun=./command.txt # perline format: 'sendmail -t userX.act 21' if [ `id -u` != 996 ]; then echo $0 must be run as user subs .. 'su subs' and retry .. elif [ $1 = ]; then echo usage: $0 directory elif [ ! -d $maildir ]; then echo $maildir does not exist .. mkdir first, unpack zipfile there elif [ ! -w $maildir ]; then echo $maildir is not writeable .. an older locked one, perhaps? else cd $maildir if [ ! -f $mailrun ]; then echo can't find ${maildir}/${mailrun} .. zipfile not unpacked? elif [ -f ./mailout.done ]; then echo 'rm ${maildir}/mailout.done' if you wanna repeat mailout? else umask 27 echo $0 sending mail: ; cat $mailrun . $mailrun touch ./mailout.done ; echo $0 done exit 0 fi fi exit 1 with ./command.txt containing a line per recipient such as: sendmail -t user1.act 21 sendmail -t user2.act 21 [..] sendmail -t userN.act 21 and with the *.act files beginning such as: To: [EMAIL PROTECTED] Subject: August 2006 Account for Ian Smith Cc: [EMAIL PROTECTED] Reply-to: [EMAIL PROTECTED] X-Mailer: subsbot v0.9 beta 8.90 :) Hello Ian Smith, [..] HTH, Ian Thanks for sharing your example, Ian. They all help! Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
--- Chuck Swiger [EMAIL PROTECTED] wrote: On Aug 30, 2007, at 6:14 PM, L Goodwin wrote: [ ... ] Should I be calling mail or sendmail, and which mail or sendmail should I invoke if there is more than one of either? Chuck's example calls sendmail in a path that does not exist on my system (my sendmail is in /usr/sbin/). I usually invoke whichever one is first in my path. As others have said, there is more than one way to do the same task, but you asked to run sendmail in particular, rather than something else. The path I used was that to the actual sendmail binary, rather than the /usr/sbin wrapper which (on the particular machine I used, anyway) would invoke Postfix instead. You can find more details from man mailwrapper. Thanks, Chuck! That's the man page I needed to see... One more question. Is it ok to run the script (and send the email) as user root, or should I create a user account with more limited permissions -- if so, what limits should I set? The simple answer is that you should try not to run things as root when you can do them as a normal user. If you wish the email to contain arbitrary envelope from-addresses, be aware that only root can do so without a warning message unless you use this FEATURE (see / usr/share/sendmail/cf/README): use_ct_file Read the file /etc/mail/trusted-users file to get the names of users that will be ``trusted'', that is, able to set their envelope from address using -f without generating a warning message. The actual filename can be overridden by redefining confCT_FILE. Someone else has already provided another example of a controlled access email script which checks for the right UID. -- -Chuck Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OpenBSD administrator needed ASAP
I was contacted today by someone in the Seattle area (East side) who is looking for someone to manage an OpenBSD server. I remember there being at least one person on this list who is based in that area. If you are a qualified person for this job, please contact me and I'll pass your information on to them (no charge). Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
m0n0wall on Firebox II vs. Trend Micro firewall on ZyXel P-334 router
I found this interesting account of someone installing the (freebsd-based) m0n0wall firewall on an old WatchGuard Firebox II firewall using a discarded 8MB compact flash card: http://www.ls-net.com/m0n0wall-watchguard/ I happen to have a Firebox II sitting around, and was wondering what the benefit might be of doing this conversion vs. just using the Trend Micro firewall on a ZyXel P-334 router. I was also wondering if the Firebox II might be put to any other/additional uses? It's a cool little red box containing a PII/200, 2 PCI slots and an expansion port that I don't know anything about, but I expect I can get an adapter that will enable me to plug a 1.2Gig laptop HDD into it. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem mounting I-Stick2 USB flash drive
Under FreeBDS 6.2, the following command works for a 256MBMemorex Mini TravelDrive, but not for a 256MB Intelligent Stick (I-Stick): mount_msdosfs /dev/da3s1 /mnt It fails with mount_msdosfs: /dev/da3s1: No such file or directory. When I plug in the I-Stick, I get: umass0: USB Flash Disk, rev 2.00/2.00, addr 2 da3 at umass-sim0 bus 0 target 0 lun 0 da3: I-Stick2 IntelligentStick 2.00 Removable Direct Access SCSI-2 device da3: 1.000MB/s transfers da3: 249MB (511488 512 byte sectors: 64H 32S/T 249C) When I unplug the I-Stick I get: umass0: at uhum0 port 1 (addr 2) disconnected (da3:umass-sim0:0:0:0): lost device (da3:umass-sim0:0:0:0): removing device entry I verified that /dev/da3 exists, and I can mount the Memorex USB drive using the same command every time. Both drives are FAT filesystem. Any idea what the problem might be? Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
I and most of my clients who have hosted web sites have just the one domain name. Does it make sense to use the same domain name that your hosted web site uses for your LAN? --- Derek Ragona [EMAIL PROTECTED] wrote: Pick a domain you own, or buy a new one. They is why there are so many domain possibilities these days, like .info, .biz, etc. in addition to the regular .com, .net, .org Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Workgroup not available. The network name cannot be found. on Windows 2000 Pro SP4
--- Steve Bertrand [EMAIL PROTECTED] wrote: L Goodwin wrote: This is what I was hoping for. Thanks all! Well, even though this is a FreeBSD list and not a Microsoft list, was the problem resolved? What fixed it? BTW, I did my second successful FreeBSD installation this week on a server that I could not get it to run on for the longest time. :-) Great! Now Google for Samba, and start posting your pre-and-post FreeBSD installation questions here ;) Actually, both of the FreeBSD servers I've set up so far are Samba servers. Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Configuring FreeBSD 6.2 to use sendmail for sending only
I have a file server running FreeBSD 6.2 with software RAID1 and a Samba share running on a workgroup-based LAN with a dedicated router/firewall. I wrote a shell script that backs up the file server. I would like to modify this script to email a notification message to a public email address. Seems like sendmail should do the job nicely, but I've never set it up before. What specific steps (including network-specific) need to be performed to get sendmail working for outgoing mail only in a secure manner? Also, any example shell scripts to use as a starting point would be appreciated. Thanks! Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
--- Derek Ragona [EMAIL PROTECTED] wrote: At 04:20 PM 8/30/2007, L Goodwin wrote: I and most of my clients who have hosted web sites have just the one domain name. Does it make sense to use the same domain name that your hosted web site uses for your LAN? Sure does, no reason not to. The only issue may be having unique machine names, but that shouldn't really be too tough. Do you mean avoid giving any machines on your LAN the same hostname as the (hosted) web server, mail server and ftp server? I don't even know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
Chuck, I'd prefer to have the script handle the mailing so I can test the script (with email send) manually, independent of cron. Still looking for specifics on setting this up and a bourne shell script example that sends an email. Thanks! --- Chuck Swiger [EMAIL PROTECTED] wrote: On Aug 30, 2007, at 3:12 PM, L Goodwin wrote: I wrote a shell script that backs up the file server. I would like to modify this script to email a notification message to a public email address. Use cron, which will automatically email out the results of your script to any email address you like. Seems like sendmail should do the job nicely, but I've never set it up before. What specific steps (including network-specific) need to be performed to get sendmail working for outgoing mail only in a secure manner? Please see the fine Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html Although, it is entirely reasonable to consider using Postfix instead. -- -Chuck Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
--- Bill Moran [EMAIL PROTECTED] wrote: L Goodwin [EMAIL PROTECTED] wrote: Chuck, I'd prefer to have the script handle the mailing so I can test the script (with email send) manually, independent of cron. Why? What is your reason for overcomplicating this task by refusing to use the facilities built into the system? Still looking for specifics on setting this up and a bourne shell script example that sends an email. Thanks! Use mail(1). That's what it's there for. Huh? I want to use cron to run the script, but want more control over when and where email gets sent. The business reasons are sound. Anyway, a script that sends email is not complicated, so how can I be overcomplicating anything? Also, recent posts to freebsd-questions on the subject of sending email from cron seemed to favor having the script handle the mailing instead of cron. Anyway, I do not want the client to receive an email if the backup fails. Bill, I'm just trying to figure stuff out here. I'm sorry if my ignorance offends you. I don't know how others feel about it, but I'd prefer not to get negative, condescending replies to my sincerely aimed questions. After all, this is a forum for questions, isn't it? Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
--- Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2007-08-30 17:01, L Goodwin [EMAIL PROTECTED] wrote: --- Chuck Swiger [EMAIL PROTECTED] wrote: Please see the fine Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html Although, it is entirely reasonable to consider using Postfix instead. Chuck, I'd prefer to have the script handle the mailing so I can test the script (with email send) manually, independent of cron. Still looking for specifics on setting this up and a bourne shell script example that sends an email. Thanks! Hmmm, why? A specialized MTA which does only one thing (send outgoing email), comforms to SMTP-related standards, supports authentication mechanisms, and more importantly does _only_ this job and does it _correctly_ is always going to be better than a local 'hack', like a script. Both Sendmail (part of the base system) and Postfix (suggested by Chuck), can do this and a lot more. Why do you have to send mail with a bourne shell script, but _avoid_ the tools and practices supported by the system already? - Giorgos Um... I just want to pass an email message (complete with From, To, Subject and message body) to a mail handler (sendmail), as I stated in the original post. Anyway, Chuck kindly provided sample code. The only thing I'd like to do differently is to not use a temp file to store the message. Otherwise, I'm happy. Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
--- Derek Ragona [EMAIL PROTECTED] wrote: At 06:29 PM 8/30/2007, L Goodwin wrote: --- Derek Ragona [EMAIL PROTECTED] wrote: At 04:20 PM 8/30/2007, L Goodwin wrote: I and most of my clients who have hosted web sites have just the one domain name. Does it make sense to use the same domain name that your hosted web site uses for your LAN? Sure does, no reason not to. The only issue may be having unique machine names, but that shouldn't really be too tough. Do you mean avoid giving any machines on your LAN the same hostname as the (hosted) web server, mail server and ftp server? I don't even know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. Correct, only use host names that are unique. Most use some names that help identify the machine by the dept, user, etc. Thanks for clearing that up, Derek. It's hard to know something until you actually _know_ it! :-) Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configuring FreeBSD 6.2 to use sendmail for sending only
--- Derek Ragona [EMAIL PROTECTED] wrote: At 07:01 PM 8/30/2007, L Goodwin wrote: Chuck, I'd prefer to have the script handle the mailing so I can test the script (with email send) manually, independent of cron. Still looking for specifics on setting this up and a bourne shell script example that sends an email. Thanks! --- Chuck Swiger [EMAIL PROTECTED] wrote: On Aug 30, 2007, at 3:12 PM, L Goodwin wrote: I wrote a shell script that backs up the file server. I would like to modify this script to email a notification message to a public email address. Use cron, which will automatically email out the results of your script to any email address you like. Seems like sendmail should do the job nicely, but I've never set it up before. What specific steps (including network-specific) need to be performed to get sendmail working for outgoing mail only in a secure manner? Please see the fine Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html Although, it is entirely reasonable to consider using Postfix instead. -- -Chuck Here is a sample script that you can use as a template: === #!/bin/sh #define any commands you will use MAILFILE=mymailfile MAILFILE2=mymailfile2 [EMAIL PROTECTED] [EMAIL PROTECTED] MAIL=/usr/bin/mail AWK=/usr/bin/awk CAT=/bin/cat TR=/usr/bin/tr TEMPDIR=/tmp #make sure we have paths export PATH=$PATH:/usr/local/sbin:/usr/local/bin cd $TEMPDIR $CAT /etc/passwd | $AWK -F : '{ print $5 }' $MAILFILE $TR -cd \012-\172 $MAILFILE $MAILFILE2 $MAIL -s My list of real user names subject $SENDTO -c $CCTO $MAILFILE2 === Derek, your example brings up another question. Should I be calling mail or sendmail, and which mail or sendmail should I invoke if there is more than one of either? Chuck's example calls sendmail in a path that does not exist on my system (my sendmail is in /usr/sbin/). I usually invoke whichever one is first in my path. One more question. Is it ok to run the script (and send the email) as user root, or should I create a user account with more limited permissions -- if so, what limits should I set? Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
--- Jeffrey Goldberg [EMAIL PROTECTED] wrote: On Aug 30, 2007, at 6:29 PM, L Goodwin wrote: Do you mean avoid giving any machines on your LAN the same hostname as the (hosted) web server, mail server and ftp server? I don't even know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. I have a minimum of three names for any machine visible to the outside world. (1) I have the internal name that I give a box. A few years ago, I asked my daughter for help naming machines, and we ended up with a Harry Potter theme. So my primary external server (which has the most names) is dobby.ewd.goldmark.org, but that name isn't visible to the world. It's not secret, but I have no intention of having anything out side my local network needed to refer to it that way. (And in the Harry Potter scheme, my three headed firewall is named fluffy.) (2) But there is another name it must also have. I have a tiny block of IP addresses which all had PTR records associated with them like static-72-64-118-118.dllstx.fios.verizon.net. It took more than two hours on the phone to Verizon to get those changed, so it was something I only ever wanted to do once, so I have names like n114.ewd.goldmark.org n115.ewd.goldmark.org and so on. So dobby is also known of as n118.ewd.goldmark.org (3) Now dobby runs a couple of public servers. It runs Apache as www.goldmark.org and about half a dozen vhosts. It also also runs a mailserver (postfix) with mailman primarily visible under the name lists.shepard-families.org. So recapping. One is my quasi-private name for the box itself. And that is what hostname knows. Two is a name corresponding the the reverse lookup of any public IP address it might have. There may be several of these if the machine had multiple IP addresses. And three are role names for all of the services it runs. This way, if I want to move a service to a different host, that is relatively easy. Thanks, Jeff! Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OT: Workgroup not available. The network name cannot be found. on Windows 2000 Pro SP4
I apologize for asking this question, but people who know UNIX often know a lot about operating systems in general. I have a client with a Windows 2000 Pro SP4 host. He cycled power without shutting down Windows, and now the Windows network (Network Neighborhood) is hosed. When he tries to access Network Neighborhood (from Windows Explorer), he get Workgroup not available. The network name cannot be found.. This host can ping other hosts on LAN and has Internet access, and other hosts on LAN see this host and can access its shared resources (filesytem and printer), AND connect to it via VPN (it is set up as a VPN Host). What is the correct procedure for recovering from this mishap? TIA! :-) Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Workgroup not available. The network name cannot be found. on Windows 2000 Pro SP4
'kay. Thanks, J. --- Jonathan Horne [EMAIL PROTECTED] wrote: On Wednesday 29 August 2007 19:40:09 L Goodwin wrote: I apologize for asking this question, but people who know UNIX often know a lot about operating systems in general. I have a client with a Windows 2000 Pro SP4 host. He cycled power without shutting down Windows, and now the Windows network (Network Neighborhood) is hosed. When he tries to access Network Neighborhood (from Windows Explorer), he get Workgroup not available. The network name cannot be found.. This host can ping other hosts on LAN and has Internet access, and other hosts on LAN see this host and can access its shared resources (filesytem and printer), AND connect to it via VPN (it is set up as a VPN Host). What is the correct procedure for recovering from this mishap? TIA! :-) youll probably want to start here: http://groups.google.com/groups/dir?sel=33607436expand=1 ... and now that thats out of the way... let the flames begin! -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Workgroup not available. The network name cannot be found. on Windows 2000 Pro SP4
This is what I was hoping for. Thanks all! BTW, I did my second successful FreeBSD installation this week on a server that I could not get it to run on for the longest time. :-) --- Garrett Cooper [EMAIL PROTECTED] wrote: Steve Bertrand wrote: What is the correct procedure for recovering from this mishap? TIA! :-) - download FreeBSD disk-1 from freebsd.org - insert CD into drive, and install :) Seriously.. It's been a while since I've actually managed a Windows network per-se, but from what I recall, you can change the workgroup to something else (then reboot), then re-assign the PC to the proper workgroup (then reboot again), it may fix it. AFAIR, you can do this by right-clicking on My Computer, and changing the computers identity or name. If that doesn't work, then ensure that Norton or some other so called 'firewall' or 'security suite' isn't blocking outbound traffic via the NetBIOS protocol ports: # grep -i netbios /etc/services netbios-ns 137/tcp#NETBIOS Name Service netbios-ns 137/udp#NETBIOS Name Service netbios-dgm 138/tcp#NETBIOS Datagram Service netbios-dgm 138/udp#NETBIOS Datagram Service netbios-ssn 139/tcp#NETBIOS Session Service netbios-ssn 139/udp#NETBIOS Session Service Also, port 445 TCP and UDP may come into play here. Interesting though that inbound is allowed/working but outbound is fudged. Is this PC on a win2k Domain? Is there anything in the 'logs' (stated very loosely) in the Event Viewer on the remote/local hosts? Steve He hosed something with the network configuration. *digs out old Windows tech support knowledge* 1. Executing: 'netsh int ip reset log' from Start-Run will clean reset the TCP/IP stack (it helps, on occasion). 2. Uninstalling / reinstalling 'Client for Microsoft Networks' and 'File and Printer Sharing for Microsoft Networks' may be a good bet if something's corrupted. 3. Adjusting 3rd party firewall rules to not block ports 137-139 and 445 (both TCP/UDP connection types) should eliminate the problem, if any do exist. And when all else fails.. backup and reinstall (typically this is less time consuming than root-cause debugging the problem). With an OS that age, your client really should be using XP anyhow if he/she can help it, because of the fact that it's not supported by M$ anymore. Cheers, -Garrett Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP5/MySQL Problem
Please ignore if this problem has already been solved. --- Joseph Mays [EMAIL PROTECTED] wrote: Been dealing with a very frustrating couple of days, and have hit a wall. I had a working gallery2 installation, then upgraded mysqli, and all hell broke loose. When I try to open a page (in this case gallery2) that connects to the database. It always says Too many open links. The thing is, it even says that if mysqld is not running. I'm running under freebsd 6.1. You can examine my server setup at http://geekfleet.tai-gear.com/server-info You can examine the php setup at http://geekfleet.tai-gear.com/phpinfo.php The problem I'm having now is that php5 won't connect to the mysql server. It's not a gallery thing, I've confirmed that I have the exact same problem with a simple script to just connect to the mysql server and read the database. And, in fact, the exact same error occurs if mysqld is not running at all. Apache shows -- [Mon Jul 16 02:07:10 2007] [error] [client 66.249.66.10] PHP Warning: mysql_connect() [a href='function.mysql-connect'function.mysql-connect/a]: Too many open links (0) in /usr/local/www/apache22/data/gallery2/lib/adodb/drivers/adodb-mysql.in c.php on line 366 Note that it says 0 open links is too many. Note also that the file error was reported in is adodb-mysql.inc.php. I haven't used ado to connect to MySQL but perhaps it does not get the limit from the mysql.max_persistent setting in the MySQL section of php.ini. Check line 366 in adodb-mysql.inc.php and look for a call to get_ini( and see what variable it is specifying (or perhaps it's a hardcoded value?). Here is the info in php.ini -- [MySQL] ; Allow or prevent persistent links. mysql.allow_persistent = Off ; Maximum number of persistent links. -1 means no limit. mysql.max_persistent = -1 ; Maximum number of links (persistent + non-persistent). -1 means no limit. mysql.max_links = -1 ; Default port number for mysql_connect(). If unset, mysql_connect() will use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look ; at MYSQL_PORT. mysql.default_port = ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. mysql.default_socket = ; Default host for mysql_connect() (doesn't apply in safe mode). mysql.default_host = ; Default user for mysql_connect() (doesn't apply in safe mode). mysql.default_user = ; Default password for mysql_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var(mysql.default_password) ; and reveal this password! And of course, any users with read access to this ; file will be able to reveal the password as well. mysql.default_password = ; Maximum time (in secondes) for connect timeout. -1 means no limit mysql.connect_timeout = 60 ; Trace mode. When trace_mode is active (=On), warnings for table/index scans an d ; SQL-Errors will be displayed. mysql.trace_mode = Off [MySQLi] ; Maximum number of links. -1 means no limit. mysqli.max_links = -1 ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look ; at MYSQL_PORT. mysqli.default_port = 3306 ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. mysqli.default_socket = ; Default host for mysql_connect() (doesn't apply in safe mode). mysqli.default_host = ; Default user for mysql_connect() (doesn't apply in safe mode). mysqli.default_user = ; Default password for mysqli_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var(mysqli.default_pw) ; and reveal this password! And of course, any users with read access to this ; file will be able to reveal the password as well. mysqli.default_pw = ; Allow or prevent reconnect mysqli.reconnect = Off ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 10Mbps versus 100Mbps Cable Modems
They probably did it because the number of subscribers has increased to the point that they need to start limiting bandwidth to ensure that everyone gets their fair share. They probably allowed subscribers to exceed their allotted max bandwidth while the number of subscribers was sufficiently low that they did not have to worry about it. Now that they have a lot of subscribers, they have to worry about it. --- Sten Daniel Soersdal [EMAIL PROTECTED] wrote: fbsd2 wrote: Comclark cable in Angeles City Philippines has changed from using 100Mbps Cable Modem to 10Mbps Cable Modem. To me this seems to be all wrong as all I see is slower response. Is there any technical or performance reason for any cable internet provider to downgrade their network subscribers cable modems from 100Mbps to 10Mbps? That reason could be compatibility. If you see slower response then perhaps something is wrong. Perhaps you should call their support and verify that you do not have a mismatched duplex setting? Mismatched duplex can come from misbehaving autonegotiation or that one end is set to full-duplex while the other end is set to half-duplex, or, one end is set to full-duplex and the other end is set to auto-negotiate (which results in falling back to half-duplex). -- Sten Daniel Soersdal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Correct way to use dump to backup a Samba share
Thanks for filling in the blanks, Roland! --- Roland Smith [EMAIL PROTECTED] wrote: On Sat, Jul 07, 2007 at 06:42:20PM -0700, L Goodwin wrote: I have a Samba share on a software RAID 1 array (using gmirror) that I need to backup. I want to create a shell script that does a level 0 backup every time to (alternately) one of two USB drives. I plan to have only ONE USB drive connected at a time. I want the script to mount the drive, perform the backup, then unmount the drive so that it is ready for someone who knows zip about computers to safely remove and take offsite. Here are the steps I have for the script. Is this all I need to do? Do I need any error handling logic? THANKS! # Mount the backup drive: mount /dev/usb0 # Create the backup: /sbin/dump -0u -f /dev/usb0 /sambavol # Unmount the backup drive: umount /dev/usb0 The following is a rough outline of what you should do; -- shell-script -- #!/bin/sh # The following assumes that the USB mass-storage device is formatted # with a UFS filesystem # Only root can perform dumps. if [ $(id -u) -ne 0 ]; then echo Only root can perform dumps. Exiting. exit 1 fi DDIR=/mnt/root # First, check if the target directory exists if [ ! -d $DDIR ]; then echo The $DDIR directory doesn't exist. Exiting. exit 1 fi # Then check if it is already mounted if mount|grep $DDDIR /dev/null; then echo The $DDIR directory is already in use. Exiting exit 1 fi # Check if the device to dump to exists; DEV=/dev/da0 if [ ! -c $DEV ]; then echo The $DEV device doesn't exist. Exiting. exit 1 fi # Check if the device is already mounted if mount|grep $DEV /dev/null; then echo The $DEV device is already mounted. Exiting exit 1 fi SRC=/sambavol DFLAGS=-0 -u -f # Check if the filesystem that is to be dumped exists. if [ ! -d $SRC ]; then echo The $SRC directory doesn't exist. Exiting. exit 1 fi # Now check if it is mounted if mount -t ufs|grep $SRC; then DFLAGS=-L $DFLAGS fi # Mount the USB device. if ! mount $DEV $DDIR; then Mounting the USB disk failed. Exiting exit 1 fi DATE=$(date +%Y%m%d) # Perfrom the dump, assuming that the filesystem is live. dump $DFLAGS ${DDIR}/sambavol-0-${DATE}.dump $SRC umount $DDIR -- shell-script -- Of course, you have to remove old dumps once in a while, lest you run out of disk space. Depending on the contents of the samba share, it might be worthwhile to compress the dump with gzip; # Perfrom the dump, dump $DFLAGS - $SRC|gzip ${DDIR}/sambavol-0-${DATE}.gz Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Correct way to use dump to backup a Samba share
I have a Samba share on a software RAID 1 array (using gmirror) that I need to backup. I want to create a shell script that does a level 0 backup every time to (alternately) one of two USB drives. I plan to have only ONE USB drive connected at a time. I want the script to mount the drive, perform the backup, then unmount the drive so that it is ready for someone who knows zip about computers to safely remove and take offsite. Here are the steps I have for the script. Is this all I need to do? Do I need any error handling logic? THANKS! # Mount the backup drive: mount /dev/usb0 # Create the backup: /sbin/dump -0u -f /dev/usb0 /sambavol # Unmount the backup drive: umount /dev/usb0 Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
APCUPSD with Belkin Model F6C900-UNV UPS on FreeBSD 6.2?
I'm still looking for the right UPS for a server running FreeBSD 6.2. Staples has the Belkin Enterprise Series 900VA UPS (model F6C900-UNV) on sale for $89.99. Will apcupsd on FreeBSD 6.2 work with this unit??? FYI, I'm posting to freebsd-questions because I've had zero replies to my posts about three different UPS brands/models to the apcupsd-user mailing list. Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backing up Samba share to USB jump drive?
Thanks, Roland. --- Roland Smith [EMAIL PROTECTED] wrote: On Wed, May 09, 2007 at 06:10:53PM -0700, L Goodwin wrote: Here's another round of dumb questions for ya: Can USB jump drives be used to back-up a Samba share? If so, what do I need to do to prepare the USB drive to accept files? Since I don't really need to compress or encrypt, I was thinking about simply copying the entire directory tree using the cp command, instead of using dump, tar, cpio. If you don't want to save multiple versions of the same tree (from different dates), you could use rsync. It might be a lot quicker than cp because it skips files that haven't changed since the last backup. But unless your collection of files is almost as large as the USB drive, I would keep saving backups of different dates (with tar gzip) until you run out of space and have to start deleting older backups. Will this work, and is it a good idea? Certainly. The filesystem to be backed up is a single common UFS shared via Samba. All PC users have access to the same set of files (no user-specific directories). The files to be backed up are Word, Excel, PDF, etc. I don't want to buy the drives until I know if it will work and how to do it. Do I need to UFS format the drives? I assume the drive will have to be mounted like any other drive... Reformatting as UFS seems a good idea. Most drives come with a FAT32 filesystem, which has to use large clusters (16 or 32k) on bigger drives. This can waste a lot of space if you're backing up lots of small files. Have a look at http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32 Additionally, you'll have to recompile the kernel to support FAT32 filesystems 128GB, IIRC. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: .mailrc file
--- Olivier Regnier [EMAIL PROTECTED] wrote: I have a question for you, it is possible to execute a shell script with .mailrc file ? By example : set sendmail=/root/scripts/test.sh On my FreeBSD that doesn't work at all. Did you verify that test.sh is executable and that it works from the command prompt? Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Backing up Samba share to USB jump drive?
Here's another round of dumb questions for ya: Can USB jump drives be used to back-up a Samba share? If so, what do I need to do to prepare the USB drive to accept files? Since I don't really need to compress or encrypt, I was thinking about simply copying the entire directory tree using the cp command, instead of using dump, tar, cpio. Will this work, and is it a good idea? The filesystem to be backed up is a single common UFS shared via Samba. All PC users have access to the same set of files (no user-specific directories). The files to be backed up are Word, Excel, PDF, etc. I don't want to buy the drives until I know if it will work and how to do it. Do I need to UFS format the drives? I assume the drive will have to be mounted like any other drive... Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backing up Samba share to USB jump drive?
Thanks, Bill! --- Bill Moran [EMAIL PROTECTED] wrote: L Goodwin [EMAIL PROTECTED] wrote: Here's another round of dumb questions for ya: Can USB jump drives be used to back-up a Samba share? If so, what do I need to do to prepare the USB drive to accept files? Since I don't really need to compress or encrypt, I was thinking about simply copying the entire directory tree using the cp command, instead of using dump, tar, cpio. Will this work, and is it a good idea? Sure. The filesystem to be backed up is a single common UFS shared via Samba. All PC users have access to the same set of files (no user-specific directories). The files to be backed up are Word, Excel, PDF, etc. Every jump drive I've seen comes pre-formatted as FAT-32. The only problem with this is you'll lose POSIX file permissions when you copy the files. If you're not using the file permissions, then it isn't a problem. I don't want to buy the drives until I know if it will work and how to do it. Do I need to UFS format the drives? I assume the drive will have to be mounted like any other drive... It's your choice. You can leave the drive formatted FAT-32 for compat with other OSen, or you can newfs it to a ufs filesystem to maintain unix-style file permissions. In my experience, jump drives behave just like any other drive. -- Bill Moran http://www.potentialtech.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CyberPower UPS and PowerPanel Linux daemon on FreeBSD
I need to buy a UPS for a FreeBSD 6.2 fileserver. The APC model I was going to buy is over-priced at local stores, so I'm looking at other brands available locally. The CyberPower CP800AVR 800VA/450W UPS has USB and RS-232 ports and supports auto-shutdown for Linux (and Mac OS X). Would the Linux daemon will work for FreeBSD, and if so, is the installation/configuration on FreeBSD going to be the same as for Linux? Here's a link to the Linux User's Guide containing install instructions: http://www.cyberpowersystems.com/downloads/PPPLinux1.0.3.pdf Thanks! We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dell x300 bge0 ethernet freebsd 6.2
Have to checked the settings for the network card? If there is an option to allow it to turn itself off when no activity, try turning it off. --- Dan Sikorsky [EMAIL PROTECTED] wrote: Hey all Im trying to get freebsd to work on my dell latitude x300 ethernet device comes up as bge0 i read the man page on bge it says to load the module at boot time But still same problem, it seems whenever i try to do dhcp, the card turns off or somthing (the lights go off) and i cant get it to work. No i need to ndis or somthing? thanks -- Dan Sikorsky *Systems Admin/GoldMine Admin* RegionalHelpWanted.com,Inc. Cupid.com, Inc. 845-471-5200 x220 One Civic Center Plaza, Suite 506 Poughkeepsie, NY 12601 /http://RegionalHelpWanted.com http://Cupid.com http://PurplePages.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
List of UPCs that can auto-shutdown FreeBSD
I need help finding a UPS that can tell a computer running FreeBSD 6.2 to shutdown. I checked the hardware compatibility -- UPS are not even listed. The APC Back-UPS ES USB 750VA w/TEL COAX meets my needs, but they don't offer the software (PowerChute Personal Edition) for FreeBSD (closest is Mac OS X). My budget is $100 (+/- $20). The system is a modest server (ASUS PDB-DS w/onboard SCSI controller, Intel PII/400, 3 SCSI HDD, 1 CD-ROM, 1 3.5 floppy, video card, NIC), 14 monitor, kbd and mouse. In addition there is a cable modem and a 4-port router. I'd prefer a major brand that I can purchase locally, if possible. If you know of one that will definitely work, please respond. Thanks! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: List of UPCs that can auto-shutdown FreeBSD
--- Jonathan Horne [EMAIL PROTECTED] wrote: On 5/2/07 2:33 PM, L Goodwin [EMAIL PROTECTED] wrote: I need help finding a UPS that can tell a computer running FreeBSD 6.2 to shutdown. I checked the hardware compatibility -- UPS are not even listed. The APC Back-UPS ES USB 750VA w/TEL COAX meets my needs, but they don't offer the software (PowerChute Personal Edition) for FreeBSD (closest is Mac OS X). My budget is $100 (+/- $20). The system is a modest server (ASUS PDB-DS w/onboard SCSI controller, Intel PII/400, 3 SCSI HDD, 1 CD-ROM, 1 3.5 floppy, video card, NIC), 14 monitor, kbd and mouse. In addition there is a cable modem and a 4-port router. I'd prefer a major brand that I can purchase locally, if possible. If you know of one that will definitely work, please respond. Thanks! Check out sysutils/apcupsd. I have it running with similar APC UPS's, and it does exactly this. I even added another destination line on some of the scripts it runs on different power events, and when the power is off long enough (5 seconds I believe), I get a message sent to my cell phone (via smtp). -- Jonathan Horne [EMAIL PROTECTED] http://dfwlpiki.dfwlp.org Thanks, Jonathan. The BE750BB is listed in the Supported UPSes and Cables table, with a note: using APC cables 940-0127A/B/C. There is no mention on the APC web site of which cable the BE750BB uses, nor whether it comes with the cable (not even in the user manual). Shouldn't any standard USB cable work? I forgot to mention that this is a Samba server, and that I would like to broadcast a warning to all Windows clients that the server is shutting down. Is there a FreeBSD/Samba command that will enable me to do this? Thanks also to Dan and Eric for information on Network UPS Tools and apcupsd. Dan, the Back-UPS ES USB (BE750BB) is not listed in the on the Network UPS Tools hardware compatibility list. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No SMB/Samba support on Windows Home Editions
--- Steve Franks [EMAIL PROTECTED] wrote: 1) Windows Home editions (including XP and Vista) have support for SMB protocol disabled in Active Directory Domain Connections functionality! Is this true? ... I've been doing this for a long time (just not with Vista), but what was said is just as true for XP, so I assume nothing further is disabled in vista. There's been alot of replies over the weeked, but I don't think any cuts to the heart of the matter. * They are just telling you you can't have a domain or active directory, we actually ran one for a while, and the maintenence cost to keep the thing happy was one of the factors that made me learn fbsd. * When someone said 'peer to peer', I think they were really talking about a workgroup as opposed to a domain - it's not really peer to peer, afaik, but the analogy works. 1) Just set your 'home' box to a random 'workgroup' in the network setup - you are not going to use it anyway. 2) Get your smb box running. 3) Map a network drive in windows, and use the IP for the smb box. I have NEVER had a 'workgroup' function correctly. Boxes all wired on the same 100-T switch, and they still can't see eachother? Amazing. Just use the IP adress (i.e. \\192.168.1.xyz\mysmbshare) to map the drive and you will never have a problem. Oh, and as you are on a fbsd box, I assume the capitalization of 'mysmbshare' must be correct, although samba might 'fix' that for you. I just followed the instructions in the handbook and samba.org, and had things working in an hour or two. Thanks, Steve. I resolved the hostname/IP resolution issue by specifying them in etc/hosts file on each Windows client (still need to make server's IP address static in the router, but it's working fine for now). After that, I was able to mount using net use /persistent:Yes s: \\SERVER\sharename. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP client configuration on FreeBSD
--- Beech Rintoul [EMAIL PROTECTED] wrote: On Saturday 28 April 2007, L Goodwin said: --- Beech Rintoul [EMAIL PROTECTED] wrote: On Friday 27 April 2007, L Goodwin said: When I ran the DHCP client configuration tool on FreeBSD 6.2, it added a new hostname variable to /etc/rc.conf below existing the hostname var (it did not remove or comment-out the old hostname variable). The NEW hostname includes the ISP's domain name: hostname=dhcppc0.ISP domain name here This hostname differs from the hostname listed in the router's DHCP table dhcpp0 (no domain name). It also shows unique IP addresses and MAC addresses for all hosts on the LAN. I can ping the IP address assigned to the FreeBSD system, but ping and net lookup fail when its hostname is specified (both with and without the domain name). Questions: 1) Why did the hostname get changed (does not occur for Windows clients)? 2) Why does the hostname in /etc/rc.conf contain the DNS domain name? FreeBSD uses the FQDN (fully qualified domain name) as the hostname. Example: hostname= yourmachine.yourdomain.com 3) How do I resolve this problem? Unless you provide your own DNS that resolves your internal network and supersede dhclient with your domain name, DHCP will use the domain and DNS from your provider. Your windows boxes point to your isp's nameservers which have no records of your server or it's address. Therefore it can't resolve your machine's hostname. If you do provide your own internal name service you will also need to edit /etc/dhclient.config (see man dhclient.conf), and point your windows boxes to your DNS instead of your isp's. You can use a fictitious domain name internally, just make sure that the domain doesn't actually exist on the net. You can also use the FreeBSD IP address as a domain name on your windows boxes to connect. Is there a way to a) make dhclient use hostname without a domain name appended, or b) make dhclient instruct the DHCP server to append the domain name to the hostname? You're confusing windows networking with real networking. If all you're trying to do is share files with the windows boxes, just put the machine name as hostname and don't worry what gets appended to it. Samba will handle the windows part of it (machine name and workgroup). Windows uses a different system to identify machines on it's network. Don't confuse a windows domain with a real domain they are different things. On a windows network you use samba to make the windows boxes think that the FreeBSD box is one of theirs and share files and printers. You can find detailed how-to's on samba's site. There is no need to ping by hostname unless you're running a server on the FreeBSD box in which case you need to setup real DNS or just use the FreeBSD IP as the hostname from windows. Running bind requires a fairly steep learning curve, but there are simple nameservers in the ports tree that would probably better suit your needs. Are you referring to the built-in command in bsh that lists/alters key bindings for the line editor? I don't understand what bind has to do with any of this. I'm not talking about binding keys, what I was talking about is bind. That's a dns server already in the base system. If you want to freely resolve your machines by hostname and domain you probably need to set up a caching nameserver to resolve your internal network. And point all your machines at it. I was wrestling with a few different issues. It finally came down to these few things: I needed to verify that the server was accessible from both Windows clients (XP Pro and Vista Home), and it was necessary to enable each Windows client to resolve the server hostname to its IP address. I did this by adding an entry to the hosts and lmhosts (for good measure) files on both clients. This was easy under XP Pro. It was a little more complicated under Vista -- I got to learn about the User Access Control, which was preventing me from saving changes to the hosts and lmhosts.sam files. After this I was able to view/read files on the share, but not write to it. I had to change directory permissions on the samba share (chmod o+w) to enable users to connect as guests with no authentication. I had assumed that since this is not mentioned anywhere that it was handled by Samba. I was finally able to create/copy files and folders to the share. Woo-hoo! The next step is to implement a form of security that will work for both Windows XP Pro and Windows Vista Home Premium. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http
Re: DHCP client configuration on FreeBSD
--- Beech Rintoul [EMAIL PROTECTED] wrote: On Friday 27 April 2007, L Goodwin said: When I ran the DHCP client configuration tool on FreeBSD 6.2, it added a new hostname variable to /etc/rc.conf below existing the hostname var (it did not remove or comment-out the old hostname variable). The NEW hostname includes the ISP's domain name: hostname=dhcppc0.ISP domain name here This hostname differs from the hostname listed in the router's DHCP table dhcpp0 (no domain name). It also shows unique IP addresses and MAC addresses for all hosts on the LAN. I can ping the IP address assigned to the FreeBSD system, but ping and net lookup fail when its hostname is specified (both with and without the domain name). Questions: 1) Why did the hostname get changed (does not occur for Windows clients)? 2) Why does the hostname in /etc/rc.conf contain the DNS domain name? FreeBSD uses the FQDN (fully qualified domain name) as the hostname. Example: hostname= yourmachine.yourdomain.com 3) How do I resolve this problem? Unless you provide your own DNS that resolves your internal network and supersede dhclient with your domain name, DHCP will use the domain and DNS from your provider. Your windows boxes point to your isp's nameservers which have no records of your server or it's address. Therefore it can't resolve your machine's hostname. If you do provide your own internal name service you will also need to edit /etc/dhclient.config (see man dhclient.conf), and point your windows boxes to your DNS instead of your isp's. You can use a fictitious domain name internally, just make sure that the domain doesn't actually exist on the net. You can also use the FreeBSD IP address as a domain name on your windows boxes to connect. Is there a way to a) make dhclient use hostname without a domain name appended, or b) make dhclient instruct the DHCP server to append the domain name to the hostname? Running bind requires a fairly steep learning curve, but there are simple nameservers in the ports tree that would probably better suit your needs. Are you referring to the built-in command in bsh that lists/alters key bindings for the line editor? I don't understand what bind has to do with any of this. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
No SMB/Samba support on Windows Home Editions
I've been working feverishly to set up a Samba share on FreeBSD 6.2 server to provide file storage for clients running Windows XP Pro and Windows Vista Home Premium. I just had a long talk with the ISP's tech support, and was told a number of things that I would like to confirm or deny: 1) Windows Home editions (including XP and Vista) have support for SMB protocol disabled in Active Directory Domain Connections functionality! Is this true? 2) The only way to make Samba work for Windows Home editions is to change the Samba server's domain configuration to peer-to-peer. Is this true? If YES, how do I do that? Could not find reference it in the Official Samba-3 HOW TO and Reference Guide. 3) Other options discussed: 1) Replace Vista Home with Windows XP Pro (or Vista Pro) or exchange computer for one with a Pro edition. 2) Repartition the RAID 1 Mirror/Duplex as NTFS (or DOS) partitions (and don't use Samba)? Feedback and reference on a good how to appreciated. 3) Change FreeBSD server to a Windows server (ugh). Can anyone address these assertions and/or provide assistance in other ways to use FreeBSD as a fileserver for Windows Home (and Pro) clients? He also cited a recent InfoWorld survey in which 30% of companies responding plan to never implement Vista, that they consider it an interim version that will be used as an excuse for dropping legacy support. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
DHCP client configuration on FreeBSD
When I ran the DHCP client configuration tool on FreeBSD 6.2, it added a new hostname variable to /etc/rc.conf below existing the hostname var (it did not remove or comment-out the old hostname variable). The NEW hostname includes the ISP's domain name: hostname=dhcppc0.ISP domain name here This hostname differs from the hostname listed in the router's DHCP table dhcpp0 (no domain name). It also shows unique IP addresses and MAC addresses for all hosts on the LAN. I can ping the IP address assigned to the FreeBSD system, but ping and net lookup fail when its hostname is specified (both with and without the domain name). Questions: 1) Why did the hostname get changed (does not occur for Windows clients)? 2) Why does the hostname in /etc/rc.conf contain the DNS domain name? 3) How do I resolve this problem? Thanks! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: No SMB/Samba support on Windows Home Editions
--- GARRISON, TRAVIS J. [EMAIL PROTECTED] wrote: Windows Home editions cannot join an Active Directory domain, but they can access smb shares. That's good news. Thanks! Now I just need to figure out what to do to make it work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of L Goodwin Sent: Friday, April 27, 2007 3:50 PM To: FreeBSD-questions@FreeBSD.org Subject: No SMB/Samba support on Windows Home Editions I've been working feverishly to set up a Samba share on FreeBSD 6.2 server to provide file storage for clients running Windows XP Pro and Windows Vista Home Premium. I just had a long talk with the ISP's tech support, and was told a number of things that I would like to confirm or deny: 1) Windows Home editions (including XP and Vista) have support for SMB protocol disabled in Active Directory Domain Connections functionality! Is this true? 2) The only way to make Samba work for Windows Home editions is to change the Samba server's domain configuration to peer-to-peer. Is this true? If YES, how do I do that? Could not find reference it in the Official Samba-3 HOW TO and Reference Guide. 3) Other options discussed: 1) Replace Vista Home with Windows XP Pro (or Vista Pro) or exchange computer for one with a Pro edition. 2) Repartition the RAID 1 Mirror/Duplex as NTFS (or DOS) partitions (and don't use Samba)? Feedback and reference on a good how to appreciated. 3) Change FreeBSD server to a Windows server (ugh). Can anyone address these assertions and/or provide assistance in other ways to use FreeBSD as a fileserver for Windows Home (and Pro) clients? He also cited a recent InfoWorld survey in which 30% of companies responding plan to never implement Vista, that they consider it an interim version that will be used as an excuse for dropping legacy support. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No SMB/Samba support on Windows Home Editions
--- Derek Ragona [EMAIL PROTECTED] wrote: At 03:49 PM 4/27/2007, L Goodwin wrote: I've been working feverishly to set up a Samba share on FreeBSD 6.2 server to provide file storage for clients running Windows XP Pro and Windows Vista Home Premium. I just had a long talk with the ISP's tech support, and was told a number of things that I would like to confirm or deny: 1) Windows Home editions (including XP and Vista) have support for SMB protocol disabled in Active Directory Domain Connections functionality! Is this true? Not exactly. Home edition CANNOT log into a domain or active directory. If you need that functionality, upgrade to XP Pro. I want to implement Samba in the way that best suits this situation -- just don't know yet what that is. Am trying to implement Samba incrementally. First priority is to get to the point where Windows clients can mount the share (without authentication) and read/write files to/from it. Was planning to read up on things like access control later, with the hope that I can utilize non-Windows. 2) The only way to make Samba work for Windows Home editions is to change the Samba server's domain configuration to peer-to-peer. Is this true? If YES, how do I do that? Could not find reference it in the Official Samba-3 HOW TO and Reference Guide. I've never done that so am no help. 3) Other options discussed: 1) Replace Vista Home with Windows XP Pro (or Vista Pro) or exchange computer for one with a Pro edition. Vista licenses can be downgraded to XP. You need to check on which versions can be downgraded to XP Pro. I was wondering about that. Good to know... 2) Repartition the RAID 1 Mirror/Duplex as NTFS (or DOS) partitions (and don't use Samba)? Feedback and reference on a good how to appreciated. I assume you mean just setup a windows box. You can do that, but your hardware is so slow it won't perform well under windows. It looks like I won't need to do that. We'll see once I get the DHCP/hostname issue resolved on the FreeBSD box. Just about everything that can go wrong has gone wrong on this project. I always try to get the client to see the advantage of subdividing big projects into a series of smaller projects, but they rarely listen (sigh)... 3) Change FreeBSD server to a Windows server (ugh). Can anyone address these assertions and/or provide assistance in other ways to use FreeBSD as a fileserver for Windows Home (and Pro) clients? He also cited a recent InfoWorld survey in which 30% of companies responding plan to never implement Vista, that they consider it an interim version that will be used as an excuse for dropping legacy support. No one I know is jumping to vista until service pack one ships. Yeah. I recommended Windows XP Pro SP2, but they went with Vista Home Premium anyway... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No SMB/Samba support on Windows Home Editions
--- Andrea Venturoli [EMAIL PROTECTED] wrote: L Goodwin wrote: I just had a long talk with the ISP's tech support, and was told a number of things that I would like to confirm or deny: I don't think you are that clear, but I'll try and answer anyway... 1) Windows Home editions (including XP and Vista) have support for SMB protocol disabled in Active Directory Domain Connections functionality! Is this true? Depends on what you mean. You can access Samba share from Win XP Home, but you cannot join a domain. I guess Vista Home should work the same, but I don't really know: there might still compatibility issues in Samba, but we are a bit OT here; you should ask on a Samba list. Good suggestion, I'll do that once I resolve the issue with DHCP client on FreeBSD vs. DHCP server on the router (they can't agree on the hostname). I guess I should just edit /etc/rc.conf and change hostname to whatever I want, then do the same in the router. I'd like to know why this happened, though... 2) The only way to make Samba work for Windows Home editions is to change the Samba server's domain configuration to peer-to-peer. Is this true? If YES, how do I do that? Could not find reference it in the Official Samba-3 HOW TO and Reference Guide. AFAIK there is no such switch in Samba. A Samba server can be a PDC, a BDC, a domain member or a stand-alone server, but the concept of peer-to-peer is quite out of scope. Besides I've succesfully connectectd many WinXP Home to a PDC/BDC, so I guess that setting is irrelevant. I just found the chapter on Domain Control. I'll read it and see how far that gets me. 3) Other options discussed: 1) Replace Vista Home with Windows XP Pro (or Vista Pro) or exchange computer for one with a Pro edition. Quite expensive. Might be worth or might be not. Either way it's not the solution for you; I fear your problems lies somewhere else and you would still get them, unless what you are trying to achieve is a central account/password management. If that is in fact the case, this is *the only* solution. What I want is for the users not to have to do anything special to get to their files on the server, while at the same time, having a reasonable level of security. Don't know enough about Samba configuration options to know what I am aiming for yet. 2) Repartition the RAID 1 Mirror/Duplex as NTFS (or DOS) partitions (and don't use Samba)? What has this to do with the rest? The idea was if Samba won't work for Windows Home editions, use a file system that does not require it. 3) Change FreeBSD server to a Windows server (ugh). I dub your (ugh). Besides this is not gonna help, if what you want is a domain. Win Home will still be unable to join it; it's just crippled like that. Good, I'm glad for that. :-) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup media choices for FreeBSD servers
--- Robert Huff [EMAIL PROTECTED] wrote: L Goodwin writes: The USB drive option is interesting. I know thumb drives are not considered a good long-term storage solution, but for daily backups, I could rotate a couple of 2GB+ USB drives (until data grows too large). And if you've been retiring undersize IDE drives to a back room Yes, I have a few of those, but I'm looking for an offsite storage solution. Good idea, though! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP/NIC IP address contention issues
I'm pretty sure the XP box is configured correctly for DHCP (no static IP), but will check it again. By check the lease information in the DSL modem, do you mean to see if the CM IP Address Expires date is earlier than current date? I unplugged both the modem and the router today before connecting the new FreeBSD box, so I assume that they are both current. I'll investigate/try all of the things you listed and see if anything turns up. I'll also check to see if /etc/rc.conf contains the following entry: ifconfig_fxp0=DHCP Is there any way that the NIC on FreeBSD box could get configured multiple times (e.g., multiple entries in config files), and if so, could this cause this? If the FreeBSD system were configured as a DHCP server (in addition to the router, which definitely is), what would you expect to happen? It shouldn't be, but what if it were? Thank you! Daniel Marsh [EMAIL PROTECTED] wrote: On 4/26/07, L Goodwin [EMAIL PROTECTED] wrote: Will someone please lead me in the right direction towards resolving the following network issue? snip 1) Apr 25 13:33:19 SERVER kernel: arp 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! 2) dhcppc0# Apr 25 14:07:05 dhcpp0 kernel: arp: 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! I ran ipconfig /all on both Windows boxes and found that the FreeBSD box is assigned the same IP address as the Windows XP box (which had that IP address FIRST). Why is the FreeBSD box being assigned a non-unique IP address? Have you checked the network properties (tcp-ip settings) for the XP machine to make sure it's being assigned a dynamic IP address? Have you tried running ipconfig /renew on the XP machine? Have you checked the lease information in the DSL modem? A DHCP server will not hand out the same IP address twice. The only time I've seen something like this happen is when the DHCP lease times out for an IP and windows doesn't renew the lease on the IP, the IP is put into the free-ip's pool and handed out when the DHCP feels up to it... So if the XP machine is setup for DHCP, it got the IP via dhcp, it probably didn't renew the lease on the IP. - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP/NIC IP address contention issues
I'll double-check the things you listed. If you can tell me what additional info I need to supply and where to get it, I'll be happy to oblige. Thanks... Beech Rintoul [EMAIL PROTECTED] wrote: On Wednesday 25 April 2007, L Goodwin said: Will someone please lead me in the right direction towards resolving the following network issue? I just added a FreeBSD server to a LAN that consists of a router and 2 pc's, one of which is running Windows XP Pro and the other Windows Vista. The lan is connected to the Internet via a cable modem that goes through the router. The router is set up to be the DHCP server. Now it is being assigned a non-unique IP address. Before adding the FreeBSD box to the mix, everybody was getting along fine (unique IP addresses were dynamically assigned to the pc's). I connected the FreeBSD box to the router, selected Configure additional network interfaces from the sysinstall menu, selected fxp0 Intel EtherExpress Pro/100B PCI Fast Ethernet card from the top of the list and clicked OK to prompts to try to configure IPv6 and DCHP. When done, the Network Configuration dialog contained the following values (which I did not alter): Host: dhcppc0 Domain: (the cable provider's domain name) IPv4 Gateway: 192.168.1.1 Name server: (IP address of ISP's name server) Configuration for Interface fxp0: IPv4 Address: 192.168.1.33 Netmask: 255.255.255.0 Extra options: (blank) Note that the Host field does not match the hostname of the FreeBSD box, which is named SERVER (real creative, huh?). I guess I should have changed the Host field to SERVER, eh? Then I got the following console messages on the FreeBSD server: 1) Apr 25 13:33:19 SERVER kernel: arp 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! 2) dhcppc0# Apr 25 14:07:05 dhcpp0 kernel: arp: 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! I ran ipconfig /all on both Windows boxes and found that the FreeBSD box is assigned the same IP address as the Windows XP box (which had that IP address FIRST). Why is the FreeBSD box being assigned a non-unique IP address? 1. Check that your router's dhcp server is set up properly. 2. Check that the windows box is not set up with a static ip. The box could be hard coded to an ip address and your dhcp server thinks the lease is free. Other than that you need to supply more info. Beech -- --- Beech Rintoul - Port Maintainer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.freebsd.org/releases/6.2R/announce.html --- - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP/NIC IP address contention issues
--- Beech Rintoul [EMAIL PROTECTED] wrote: Beech Rintoul [EMAIL PROTECTED] wrote: On Wednesday 25 April 2007, L Goodwin said: Will someone please lead me in the right direction towards resolving the following network issue? I just added a FreeBSD server to a LAN that consists of a router and 2 pc's, one of which is running Windows XP Pro and the other Windows Vista. The lan is connected to the Internet via a cable modem that goes through the router. The router is set up to be the DHCP server. Now it is being assigned a non-unique IP address. Before adding the FreeBSD box to the mix, everybody was getting along fine (unique IP addresses were dynamically assigned to the pc's). I connected the FreeBSD box to the router, selected Configure additional network interfaces from the sysinstall menu, selected fxp0 Intel EtherExpress Pro/100B PCI Fast Ethernet card from the top of the list and clicked OK to prompts to try to configure IPv6 and DCHP. When done, the Network Configuration dialog contained the following values (which I did not alter): Host: dhcppc0 Domain: (the cable provider's domain name) IPv4 Gateway: 192.168.1.1 Name server: (IP address of ISP's name server) Configuration for Interface fxp0: IPv4 Address: 192.168.1.33 Netmask: 255.255.255.0 Extra options: (blank) Note that the Host field does not match the hostname of the FreeBSD box, which is named SERVER (real creative, huh?). I guess I should have changed the Host field to SERVER, eh? Then I got the following console messages on the FreeBSD server: 1) Apr 25 13:33:19 SERVER kernel: arp 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! 2) dhcppc0# Apr 25 14:07:05 dhcpp0 kernel: arp: 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! I ran ipconfig /all on both Windows boxes and found that the FreeBSD box is assigned the same IP address as the Windows XP box (which had that IP address FIRST). Why is the FreeBSD box being assigned a non-unique IP address? 1. Check that your router's dhcp server is set up properly. 2. Check that the windows box is not set up with a static ip. The box could be hard coded to an ip address and your dhcp server thinks the lease is free. Other than that you need to supply more info. Beech On Wednesday 25 April 2007, L Goodwin said: I'll double-check the things you listed. If you can tell me what additional info I need to supply and where to get it, I'll be happy to oblige. Thanks... On the XP box what does the output of 'ipconfig /all' tell you about the DHCP lease? Lease Obtained: Thursday, April 26, 2007 7:36:42 AM Lease Expires: Sunday, April 29, 2007 7:36:42 AM (also says Dhcp Enabled: Yes and Autoconfiguration enabled: Yes) Given these settings, I don't think I need to run ipconfig /renew on this system... Note: I wasn't able to get on the Vista box to get current ipconfig /all output. An older printout shows DHCP Enabled: No, but it was enabled last time I checked. I'll check again. On the FreeBSD box what is in /etc/rc.conf? I had a feeling I'd find something like this, but did not know where to look): -- hostname=SERVER (this is the hostname I want to use) ipv6_enable=YES sshd_enable=YES usbd_enable=YES samba_enable=YES # -- sysinstall generated deltas -- # Wed Apr 25 13:38:08 2007 ifconfig_fxp0=DHCP ipv6_enable=YES hostname=dhcppc0.ISP's domain name here -- Note that there are two each of the ipv6_enable and hostname entries. I assume I should remove one of each. I want to use hostname SERVER. If I delete this one, will it work?: hostname=dhcppc0.ISP's domain name here Please advise as to what to change. On your router what is the DHCP range set to? and how long do the leases last before they expire? And from the other post it's not possible to accidentally make the FreeBSD box a DHCP server. You would have to install the isc-dhcpd port, then configure and start it. In any case, I verified that it's not installed. If all of the above looks ok, go to /var/db and delete anything that says dhclient.leases then restart your machine and see if you get a new IP. Found dbclient.leases.fxp0 containing 2 lease {...} entries and moved it to $HOME (will delete once it's all working). I was surprised to find that the entries were for the Vista system (not the XP box). I'll verify that DHCP is enabled on the Vista box. One more question: When using DHCP, do I need to do anything to enable all hosts on the LAN to know each other by hostname (i.e., do I need to add entries to /etc/hosts file?)? Once I reboot the FreeBSD box and ensure that DHCP is enabled on all hosts, should I be able to ping the Windoze systems by hostname (does not currently work)? Thanks to Beech
Re: best programming language for console/sql application?
Zhang (or Weiwu?), I'm surprised there are no good open source bug tracking solutions out there already. Sorry, I'm not familiar with ncurse, so can't comment on it. The system I developed ten years ago was centered on Informix RDBMS, which included tools for creating character-based forms (Perform), reports (ACE report writer), and of course queries and stored procs. The shell scripts were used in conjunction with the RDBMS for tasks such as running reports and emailing the results to various individuals and mail groups, and extracting bug regression tests into executable scripts. Overhead was very low -- that's one great advantage of character-based applications (the Windows lovers complained bitterly about it, but we proved it was far more efficient and effective than the junk they were building). Good luck finding or building a system that meets your needs. I simply don't have time for non-essential activities, as I'm a one-person operation. Zhang Weiwu [EMAIL PROTECTED] wrote: If this is a product you developed long time ago, and especially if it's no longer used or the old company quit this business, it's probably possible to ask them if they can opensource the old product, and someone may come up and make it better? P.S. I was thinking of an ncurse-style interface, so can shell script do this? I thought shell tools like dialog wasn't powerful enough to support an user interface required by a bug tracker. On Mon, 2007-04-23 at 18:07 -0700, L Goodwin wrote: I co-developed a UNIX-based multi-product bug tracking system using an RDBMS (Informix, ISQL, Perform and ACE), bourne shell scripts, cron, and UNIX Mail. This solution also worked on PC clients (we used Reflection-X, but I'd recommend XWin32). Our design was selected over a PC-only solution that another faction was pushing (we had more UNIX clients than PC's at that time). It had some pretty sophisticated features for the time (some carried over from a previous version), including: Automated email notifications and summaries designed to support our software development methodology. Retrieve and display SCCS deltas to display code changed for a bug fix. Ability to store bug regression tests (manual and automated) in several different languages, and automatically generate automated regression tests based on several different criteria, including Product, Platform, Version Range, and Programming Language. This one was my baby (brag). I've also rewritten HPUX makefiles in bsh to permit execution on multiple UNIX platforms (HPUX make has some unique features not found in make on other UNIX platforms). Based on the above experience, I'd recommend shell scripts, though this will likely generate some opposition. In any case, if your system only needs to run on one platform, I'd use built-in tools. Since then, I've played around with using perl for CGI scripting (hated it), then PHP, which I love for this purpose. Zhang Weiwu wrote: Dear list This is OT. I am a 4 year php developer and is very familiar with javascript and awk (familiar = knows and used all functions and features of the language itself) and I am a 5 year FreeBSD user. Being frustrated for the lack of a good console-based issue tracking tool (like mantis or bugzilla), I think I should start to write my own. I'll either start from scratch or (better) write a frontend for mantis which I used for years. 1. If someone has already started, I should try join him/her rather than reinventing the wheel. So if someone knows any person who is starting to work on a slim console-based issue tracker, please let me know. I already did quit a few searches. I know someone is working on a console front-end of G-Forge, but a big software like G-Forge is not what I am thinking of. 2. If I start my own, I think I'll be using a console widget library (ncurse? because it's famous), an SQL database (no problem) and a programming language. I never developed console application before, so here asking for suggestions on what programming language to choose. Non of my known language php/javascript/awk are suitable so I guess I have to learn a new language anyway. The language better be easy to learn and work with (C++ is out), not necessarily have complicated calculation feature (like the graphical report mantis makes), not necessarily OOP. I have perl and tcl in my head now, can you make some recommendations? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org
DHCP/NIC IP address contention issues
Will someone please lead me in the right direction towards resolving the following network issue? I just added a FreeBSD server to a LAN that consists of a router and 2 pc's, one of which is running Windows XP Pro and the other Windows Vista. The lan is connected to the Internet via a cable modem that goes through the router. The router is set up to be the DHCP server. Now it is being assigned a non-unique IP address. Before adding the FreeBSD box to the mix, everybody was getting along fine (unique IP addresses were dynamically assigned to the pc's). I connected the FreeBSD box to the router, selected Configure additional network interfaces from the sysinstall menu, selected fxp0 Intel EtherExpress Pro/100B PCI Fast Ethernet card from the top of the list and clicked OK to prompts to try to configure IPv6 and DCHP. When done, the Network Configuration dialog contained the following values (which I did not alter): Host: dhcppc0 Domain: (the cable provider's domain name) IPv4 Gateway: 192.168.1.1 Name server: (IP address of ISP's name server) Configuration for Interface fxp0: IPv4 Address: 192.168.1.33 Netmask: 255.255.255.0 Extra options: (blank) Note that the Host field does not match the hostname of the FreeBSD box, which is named SERVER (real creative, huh?). I guess I should have changed the Host field to SERVER, eh? Then I got the following console messages on the FreeBSD server: 1) Apr 25 13:33:19 SERVER kernel: arp 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! 2) dhcppc0# Apr 25 14:07:05 dhcpp0 kernel: arp: 00:40:f4:47:fb:8e is using my IP address xxx.xxx.x.xx! I ran ipconfig /all on both Windows boxes and found that the FreeBSD box is assigned the same IP address as the Windows XP box (which had that IP address FIRST). Why is the FreeBSD box being assigned a non-unique IP address? Thanks! - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup media choices for FreeBSD servers
Thanks, Olivier. The lack of a Recycle Bin for Samba shares had not occured to me. I guess I should have each Windows client backup of all files modified that day to a space on the local drive... Olivier Nicole [EMAIL PROTECTED] wrote: I need to implement an automated backup facility on the FreeBSD file server I'm setting up for a client. It will have a software RAID 1 Mirror/Duplex that is made available to Windows XP SP2 and Windows Vista Home Premium users as a Samba share. I also plan to create system recovery disks (disk images) for the server and each Windows client. This leaves backing up user data on some schedule. I've read Backup Basics, but have some questions: Which is best backup media for a FreeBSD file server, based on known issues (or lack of) with each format? I need to decide between the following formats: a) CD-R (or CD-RW?) b) DVD-R (or CD-RW?) c) Streaming tape (which format/standard?) For years I have been using Amanda (in the ports) to backup any servers, including Samba server, as well as some disks from PC under Windows, saving the data on a SLR 100 (Tandberg) tape. Tape dirve is expensive (and maybe out of production), tapes are not cheap, but they are reliable. Now days I would choose LTO technology I beleive. At any cost I would avoid any kind of DAT format: it acheives the capacity by high compression of the data on the tape and so the reliability is really an issue, plus the rotating head wears the tape much uch faster than any linear reccording technology. Which is the best method for backing up data files on a Samba sharer FreeBSD? Handbook says dump is the only way to go. I never looked at that part. I am using tar because it is a very universal format: the next server could be a Linux box, the tapes would still be readable, compared to dump that tend to be specific for each operating system. Is it possible to have a Windows client perform the backup files on the Samba share to a local Re-Writable CD or DVD drive? If the answer is YES, what are the pros and cons of a UNIX-based (data-file only) backup vs. a Windows-based one? Please add to my list of pros and cons: Of course it is possible: any file that the Windows machine can access through the network, it could back-it up. Windows Backup: PRO: Backup can be restored to a Windows drive while server is being fixed? CON: Users might forget to replace backup disk after using optical drive. FreeBSD Backup: PRO: Out of sight from users (server is in a storeroom). CON: Cannot restore backup to a Windows disk while server is being fixed? Except if your tape drive is dead, fixing the server is really a matter of a couple of hours: at least fixing the server enough so you can restore something from a backup tape. I once was even able to restore something from booting the server from the recovery boot... I would consider it a highly bad luck that the server is dead and at the very same time you need to do a restore. These are some of my other considerations: 1) Cost is a primary concern. Budget does not allow for a 1) multi-drive solution. Best if client does not handle backups 1) (change discs/tapes), so a solution that permits storing several 1) backups to same disc/tape preferred. Tape is expensive. My future choice, when I have to replace the existing backup server is virtual tapes on some big hard disk (500GB SATA type of disk). Only thing to be found is the way to swap the hard drives. 2) I only want to back up user data (not the OS). Current user data 2) occupies less than 1GB of drive space, and is expected to grow at 2) a modest rate. Then install one disk and use some kind of virtual tapes on it. But that would not allow off site storage unless your disk can be moved. According the size of the data, you may consider USB connection. 3) I do NOT have a writable CD or DVD drive (but can buy one if not 3) too spendy). 4) I have an external SCSI connection, but very little shelf 4) space. 5) The server does not have room for another internal device (except 5) if swapping out the existing ATAPI CD-ROM drive). 6) I have an Ecrix Corporation Model VXI-1A SCSI internal tape drive 6) that I assume is obsolete (comments appreciated). Anyway, I don't 6) have room for it. 7) Have not yet settled on a backup schedule. May be weekly or 7) monthly or ad-hoc, but daily is probably out of the question. The 7) RAID 1 array is expected to provide some degree of protection in 7) leieu of daily backups. Plan to back up all documents each time, 7) rather than implement a two-tiered backup process. RAID 1 will not protect you against accidentally erasing a file. And even though you informed your customer that the back-up is there just in case of major system crash and does not cover the user mistakes, they will come back to you asking to restore a file that they deleted (Samba does not offer recycle-bin). So you can still think about daily
Re: Backup media choices for FreeBSD servers
Forgot to mention that off site storage is a priority. The USB drive option is interesting. I know thumb drives are not considered a good long-term storage solution, but for daily backups, I could rotate a couple of 2GB+ USB drives (until data grows too large). Thanks to all for your experience, ideas and suggestions! Roland Smith [EMAIL PROTECTED] wrote: On Mon, Apr 23, 2007 at 05:01:17PM -0700, L Goodwin wrote: I need to implement an automated backup facility on the FreeBSD file server I'm setting up for a client. It will have a software RAID 1 Mirror/Duplex that is made available to Windows XP SP2 and Windows Vista Home Premium users as a Samba share. I also plan to create system recovery disks (disk images) for the server and each Windows client. This leaves backing up user data on some schedule. I've read Backup Basics, but have some questions: Which is best backup media for a FreeBSD file server, based on known issues (or lack of) with each format? I need to decide between the following formats: a) CD-R (or CD-RW?) Too small these days. b) DVD-R (or CD-RW?) Usefull, but you have to store them correctly or they won't last very long. c) Streaming tape (which format/standard?) No experience with that, sorry d) USB drive (disks are cheap) This is what I currently use to back up my system. After mounting the (geli encrpyted) disk I start a script that performs a dump(8) of all ufs filesystems, compresses them with bzip2 and writes them to the external drive. If you want a non-os specific data format you can use tar. Start with a full backup, and after that use the --newer option, so every subsequent backup only stores the files that have changed since the last backup. Which is the best method for backing up data files on a Samba sharer FreeBSD? Handbook says dump is the only way to go. Dump works best for UFS filesystems. Tar handles normal files well, but might have issues with device files, flags and ACLs, things that dump does handle. Copying the data straight to a FAT32 filesystem and you'll loose things like ownership and permission. Is it possible to have a Windows client perform the backup files on the Samba share to a local Re-Writable CD or DVD drive? Yes, if the client in question has access to all the data on the samba share. but automation on windows is much more difficult than on FreeBSD. If the answer is YES, what are the pros and cons of a UNIX-based (data-file only) backup vs. a Windows-based one? Please add to my list of pros and cons: Windows Backup: PRO: Backup can be restored to a Windows drive while server is being fixed? Not if you're using dump. Winzip can handle gzipped tarfiles. CON: Users might forget to replace backup disk after using optical drive. CON: cannot be automated properly. CON: windows programs won't handle things like UIDs and permissions properly. FreeBSD Backup: PRO: Out of sight from users (server is in a storeroom). PRO: Can be don with minimal user intervention. PRO: Can store all the attributes of the native file system. CON: Cannot restore backup to a Windows disk while server is being fixed? These are some of my other considerations: 1) Cost is a primary concern. Budget does not allow for a multi-drive solution. Best if client does not handle backups (change discs/tapes), so a solution that permits storing several backups to same disc/tape preferred. I think a detachable USB disk is very cost effective. A 500GB external Seagate drive is $153 at newegg. You'd buy a couple and rotate them. A tape drive alone would cost more. 2) I only want to back up user data (not the OS). Current user data occupies less than 1GB of drive space, and is expected to grow at a modest rate. In that case a 500 GB backup disk could hold years of weekly full backups. 3) I do NOT have a writable CD or DVD drive (but can buy one if not too spendy). Media durability is an issue. I've seen test in magazines where more than half the discs contained a lot of errors or were unusable after two years. I've also seen optical drives fail in under two years depending on the environment. 7) Have not yet settled on a backup schedule. May be weekly or monthly or ad-hoc, but daily is probably out of the question. The RAID 1 array is expected to provide some degree of protection in leieu of daily backups. Plan to back up all documents each time, rather than implement a two-tiered backup process. Mount an external USB, and create a cron job to copy the data over to it every night. No user action whatsoever required. Make sure that the external disk is not visible as a Samba share. Swap out the external disk for another one every week or month (this requires user intervention, but it could be scripted) and store the one not in use in a safe or off-site. How often you back up depends on how much work you're willing to loose or redo, and how easy it is to replace/recreate the data . Too much
Samba connection fails
I installed the samba-3.0.23c_2,1 package on a server destined for a small office network running Windows clients. Have not yet configured the network settings. Am trying to test the Samba configuration offline before connecting it to the network (router connected to cable modem, clients connected to router via Cat-5e Ethernet). Issues/Questions (see Samba configuration details at end of email): 1) smbclient -L hostname fails with Connection to SERVER failed. Get same error for smbclient //SERVER/sambavol. What does this mean? 2) What value to assign netbios name in smb.conf? 3) What degree of network configuration is necessary for smbclient -L hostname to work? 4) How to verify that Samba3 package was installed successfully (other than lack of warnings/errors during install)? SAMBA CONFIGURATION DETAILS: 1) Create smb.conf file in /usr/local/etc: [global] workgroup = office netbios name = tbd (is this required, and how/where to get/set it?) security = share [sambavol] path = /sambavol browseable = yes writeable = yes printable = no 2) Add entry to start samba in /etc/rc.conf: samba_enable=YES 3) Start Samba: /usr/local/etc/rc.d/samba start (to stop samba: /usr/local/etc/rc.d/samba.sh stop) Note: Need to keep the file server synced with Internet standard time (see NTPD(8) man page). Tests: -- 1) Verify that smb.conf file is in the right directory (gets read): which smbd# Get location of smbd (output: usr/local/sbin/smbd) cd /usr/local/sbin# cd to the directory containing smbd! smbd -b | grep smb.conf# Get location of smb.conf (verify path is correct) (output: CONFIGFILE: /usr/local/sbin/smb.conf) RESULT: OK 2) Test Samba configuration file: cd /usr/local/etc testparm smb.conf RESULT: OK 3) List shares available on server: smbclient -L hostname RESULT: FAIL (Connection to SERVER failed) Additional Samba Configuration Steps: 1) Uncommented the following lines in /etc/inetd.conf and rebooted: #netbios-ssnstreamtcpnowaitroot/usr/local/sbin/smbd smbd #netbios-nsdgramudpwaitroot/usr/local/sbin/nmbdnmbd On reboot, get these boot messages: ... Removing stale Samba tdb files: .. done Starting nmbd. Starting smbd. Starting usbd. ... RESULT: Still getting Connection to SERVER failed. - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba connection fails
It looks like a network configuration issue (haven't done any net config on a UNIX box in 10-15 years). When I run smbclient -L localhost, I get: - Password: (pressed ENTER) Anonymous login successful Anonymous login successful Domain=[OFFICE] OS=[Unix] Server=[Samba 3.0.23c] SharenameTypeComment ------ sambavolDisk IPC$ IPC IPC Service (Samba 3.0.23c) Anonymous login successful Domain=[OFFICE] OS=[Unix] Server=[Samba 3.0.23c] ServerComment --- WorkgroupMaster ------ - What next? I want to get this server as ready as possible before carting it to client location. Thanks! L Goodwin [EMAIL PROTECTED] wrote: I installed the samba-3.0.23c_2,1 package on a server destined for a small office network running Windows clients. Have not yet configured the network settings. Am trying to test the Samba configuration offline before connecting it to the network (router connected to cable modem, clients connected to router via Cat-5e Ethernet). Issues/Questions (see Samba configuration details at end of email): 1) smbclient -L fails with Connection to SERVER failed. Get same error for smbclient //SERVER/sambavol. What does this mean? 2) What value to assign netbios name in smb.conf? 3) What degree of network configuration is necessary for smbclient -L to work? 4) How to verify that Samba3 package was installed successfully (other than lack of warnings/errors during install)? SAMBA CONFIGURATION DETAILS: 1) Create smb.conf file in /usr/local/etc: [global] workgroup = office netbios name = tbd (is this required, and how/where to get/set it?) security = share [sambavol] path = /sambavol browseable = yes writeable = yes printable = no 2) Add entry to start samba in /etc/rc.conf: samba_enable=YES 3) Start Samba: /usr/local/etc/rc.d/samba start (to stop samba: /usr/local/etc/rc.d/samba.sh stop) Note: Need to keep the file server synced with Internet standard time (see NTPD(8) man page). Tests: -- 1) Verify that smb.conf file is in the right directory (gets read): which smbd# Get location of smbd (output: usr/local/sbin/smbd) cd /usr/local/sbin# cd to the directory containing smbd! smbd -b | grep smb.conf# Get location of smb.conf (verify path is correct) (output: CONFIGFILE: /usr/local/sbin/smb.conf) RESULT: OK 2) Test Samba configuration file: cd /usr/local/etc testparm smb.conf RESULT: OK 3) List shares available on server: smbclient -L RESULT: FAIL (Connection to SERVER failed) Additional Samba Configuration Steps: 1) Uncommented the following lines in /etc/inetd.conf and rebooted: #netbios-ssnstreamtcpnowaitroot/usr/local/sbin/smbd smbd #netbios-nsdgramudpwaitroot/usr/local/sbin/nmbdnmbd On reboot, get these boot messages: ... Removing stale Samba tdb files: .. done Starting nmbd. Starting smbd. Starting usbd. ... RESULT: Still getting Connection to SERVER failed. - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba connection fails
Gee, it works a lot better once I add server name to /etc/hosts! 8-D Derek Ragona [EMAIL PROTECTED] wrote: At 03:38 PM 4/24/2007, L Goodwin wrote: I installed the samba-3.0.23c_2,1 package on a server destined for a small office network running Windows clients. Have not yet configured the network settings. Am trying to test the Samba configuration offline before connecting it to the network (router connected to cable modem, clients connected to router via Cat-5e Ethernet). Issues/Questions (see Samba configuration details at end of email): This is a bit off-topic here. There are samba lists that will better serve you. 1) smbclient -L hostname fails with Connection to SERVER failed. Get same error for smbclient //SERVER/sambavol. What does this mean? 2) What value to assign netbios name in smb.conf? The netbios name is the server's name your client pc's will see for those shares. It will be case insensitive and needs to be a unique name for the LAN. 3) What degree of network configuration is necessary for smbclient -L hostname to work? You need a proper IP stack running that will hit the gateway for your LAN. 4) How to verify that Samba3 package was installed successfully (other than lack of warnings/errors during install)? Use a client computer and test the connection. There are utilities to help, but they don't always completely test a windows client connecting. SAMBA CONFIGURATION DETAILS: 1) Create smb.conf file in /usr/local/etc: [global] workgroup = office netbios name = tbd (is this required, and how/where to get/set it?) It is the server name you will use on your LAN. Make it up. security = share [sambavol] path = /sambavol browseable = yes writeable = yes printable = no 2) Add entry to start samba in /etc/rc.conf: samba_enable=YES 3) Start Samba: /usr/local/etc/rc.d/samba start (to stop samba: /usr/local/etc/rc.d/samba.sh stop) Or it will start on boot-up. Note: Need to keep the file server synced with Internet standard time (see NTPD(8) man page). Tests: -- 1) Verify that smb.conf file is in the right directory (gets read): which smbd# Get location of smbd (output: usr/local/sbin/smbd) cd /usr/local/sbin# cd to the directory containing smbd! smbd -b | grep smb.conf# Get location of smb.conf (verify path is correct) (output: CONFIGFILE: /usr/local/sbin/smb.conf) RESULT: OK 2) Test Samba configuration file: cd /usr/local/etc testparm smb.conf RESULT: OK 3) List shares available on server: smbclient -L hostname RESULT: FAIL (Connection to SERVER failed) Additional Samba Configuration Steps: 1) Uncommented the following lines in /etc/inetd.conf and rebooted: #netbios-ssnstreamtcpnowaitroot/usr/local/sbin/smbd smbd #netbios-nsdgramudpwaitroot/usr/local/sbin/nmbdnmbd On reboot, get these boot messages: ... Removing stale Samba tdb files: .. done Starting nmbd. Starting smbd. Starting usbd. ... RESULT: Still getting Connection to SERVER failed. Depends on how you are trying to do your authentication. Check your smb.conf. If you are going to authenticat against an existing windows domain or active directory you need to compile windbind in your samba. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
UNEXPECTED SOFT UPDATE INCONSISTENCY
Last night, I was starting to install Samba3, but wrong FreeBSD disc (2) in the CD-ROM drive (first package to install on disc 1). After placing the right disc in the drive, I accidentally pushed the POWER button instead of the CD-ROM door open/close button and turned the computer off. In my defense, the power button is right next to it AND has a hair trigger. :-( I turned the computer back on, and FreeBSD booted with no complaints, so I assumed all was well. I then proceeded to install Samba3 successfully, after which I shut down the system (halt). This morning when I booted FreeBSD to configure Samba, I got: -- ... /dev/da0s1f: UNALLOCATED I=5 OWNER=root MODE=0 /dev/da0s1f: SIZE=0 MTIME=Apr 22 17:28 2007 /dev/da0s1f: NAME=/lost+found UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY. THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: ufs: /dev/da0s1f (/usr) Automatic file system check failed; help! /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: -- I assume I'll have to run fsck on /usr, but have 2 questions: 1) Is this problem caused by yesterday's accidental power-off? 2) What prompts should I expect from fsck, and how should I reply to each in order to resolve this problem correctly? Here's where I'm at now: -- fsck -y /usr Start /usr wait fsck_ufs /dev/da0s1f ** /dev/da0s1f ** Last Mounted on /usr ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames UNALLOCATED I=5 OWNER=root MODE=0 SIZE=0 MTIME=Apr 22 17:28 2007 NAME=/lost+found UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? [yn] -- - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UNEXPECTED SOFT UPDATE INCONSISTENCY
Thanks, Garrett. Ran fsck -y /usr * FILE SYSTEM MARKED CLEAN * * FILE SYSTEM WAS MODIFIED * Upon reboot, all is well EXCEPT for the following 2 warnings: --- Mounting local file systems: WARNING: /var was not properly dismounted WARNING: /sambavol was not properly dismounted --- Both /var and /sambavol are mounted (ufs, local, soft-updates). Rebooted again, and did not get these warnings. Thanks! [EMAIL PROTECTED] wrote: On Mon, 23 Apr 2007, L Goodwin wrote: [...] I assume I'll have to run fsck on /usr, but have 2 questions: 1) Is this problem caused by yesterday's accidental power-off? Yes, most likely. 2) What prompts should I expect from fsck, and how should I reply to each in order to resolve this problem correctly? Just say yes to all the prompts, but backup any important data first. Or if you're afraid of any issues, reinstall. If this problem persists (near every time you reboot), it's time to get a new drive because it got toasted during a write phase. I wouldn't say that though until you install from scratch though and verify that that is or is not the case. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UNEXPECTED SOFT UPDATE INCONSISTENCY
Yes, it's a hardware switch and a very bad design. It's flush with the surface of the faceplate and is right next to the CD-ROM button. Also sensitive to the lightest touch. Replacement would require buying a new case (not in budget). Think I'll make a clear plexi failsafe cover. Reminds me of the times my toddler son found the big red toggle switch on the side of my IBM RT-PC workstation within seconds of sitting in my chair... RW [EMAIL PROTECTED] wrote: On Mon, 23 Apr 2007 13:23:16 -0700 (PDT) L Goodwin wrote: Last night, I was starting to install Samba3, but wrong FreeBSD disc (2) in the CD-ROM drive (first package to install on disc 1). After placing the right disc in the drive, I accidentally pushed the POWER button instead of the CD-ROM door open/close button and turned the computer off. In my defense, the power button is right next to it AND has a hair trigger. :-( This shouldn't be a problem unless your pc is very old (8 years or so), and it's a real power switch. On modern PCs the power switch is just a low-voltage control line. A light touch is a signal to the OS to shutdown cleanly - you have to hold the button down for several seconds to force it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Backup media choices for FreeBSD servers
I need to implement an automated backup facility on the FreeBSD file server I'm setting up for a client. It will have a software RAID 1 Mirror/Duplex that is made available to Windows XP SP2 and Windows Vista Home Premium users as a Samba share. I also plan to create system recovery disks (disk images) for the server and each Windows client. This leaves backing up user data on some schedule. I've read Backup Basics, but have some questions: Which is best backup media for a FreeBSD file server, based on known issues (or lack of) with each format? I need to decide between the following formats: a) CD-R (or CD-RW?) b) DVD-R (or CD-RW?) c) Streaming tape (which format/standard?) Which is the best method for backing up data files on a Samba sharer FreeBSD? Handbook says dump is the only way to go. Is it possible to have a Windows client perform the backup files on the Samba share to a local Re-Writable CD or DVD drive? If the answer is YES, what are the pros and cons of a UNIX-based (data-file only) backup vs. a Windows-based one? Please add to my list of pros and cons: Windows Backup: PRO: Backup can be restored to a Windows drive while server is being fixed? CON: Users might forget to replace backup disk after using optical drive. FreeBSD Backup: PRO: Out of sight from users (server is in a storeroom). CON: Cannot restore backup to a Windows disk while server is being fixed? These are some of my other considerations: 1) Cost is a primary concern. Budget does not allow for a multi-drive solution. Best if client does not handle backups (change discs/tapes), so a solution that permits storing several backups to same disc/tape preferred. 2) I only want to back up user data (not the OS). Current user data occupies less than 1GB of drive space, and is expected to grow at a modest rate. 3) I do NOT have a writable CD or DVD drive (but can buy one if not too spendy). 4) I have an external SCSI connection, but very little shelf space. 5) The server does not have room for another internal device (except if swapping out the existing ATAPI CD-ROM drive). 6) I have an Ecrix Corporation Model VXI-1A SCSI internal tape drive that I assume is obsolete (comments appreciated). Anyway, I don't have room for it. 7) Have not yet settled on a backup schedule. May be weekly or monthly or ad-hoc, but daily is probably out of the question. The RAID 1 array is expected to provide some degree of protection in leieu of daily backups. Plan to back up all documents each time, rather than implement a two-tiered backup process. Thanks! - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: best programming language for console/sql application?
I co-developed a UNIX-based multi-product bug tracking system using an RDBMS (Informix, ISQL, Perform and ACE), bourne shell scripts, cron, and UNIX Mail. This solution also worked on PC clients (we used Reflection-X, but I'd recommend XWin32). Our design was selected over a PC-only solution that another faction was pushing (we had more UNIX clients than PC's at that time). It had some pretty sophisticated features for the time (some carried over from a previous version), including: Automated email notifications and summaries designed to support our software development methodology. Retrieve and display SCCS deltas to display code changed for a bug fix. Ability to store bug regression tests (manual and automated) in several different languages, and automatically generate automated regression tests based on several different criteria, including Product, Platform, Version Range, and Programming Language. This one was my baby (brag). I've also rewritten HPUX makefiles in bsh to permit execution on multiple UNIX platforms (HPUX make has some unique features not found in make on other UNIX platforms). Based on the above experience, I'd recommend shell scripts, though this will likely generate some opposition. In any case, if your system only needs to run on one platform, I'd use built-in tools. Since then, I've played around with using perl for CGI scripting (hated it), then PHP, which I love for this purpose. Zhang Weiwu [EMAIL PROTECTED] wrote: Dear list This is OT. I am a 4 year php developer and is very familiar with javascript and awk (familiar = knows and used all functions and features of the language itself) and I am a 5 year FreeBSD user. Being frustrated for the lack of a good console-based issue tracking tool (like mantis or bugzilla), I think I should start to write my own. I'll either start from scratch or (better) write a frontend for mantis which I used for years. 1. If someone has already started, I should try join him/her rather than reinventing the wheel. So if someone knows any person who is starting to work on a slim console-based issue tracker, please let me know. I already did quit a few searches. I know someone is working on a console front-end of G-Forge, but a big software like G-Forge is not what I am thinking of. 2. If I start my own, I think I'll be using a console widget library (ncurse? because it's famous), an SQL database (no problem) and a programming language. I never developed console application before, so here asking for suggestions on what programming language to choose. Non of my known language php/javascript/awk are suitable so I guess I have to learn a new language anyway. The language better be easy to learn and work with (C++ is out), not necessarily have complicated calculation feature (like the graphical report mantis makes), not necessarily OOP. I have perl and tcl in my head now, can you make some recommendations? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UNEXPECTED SOFT UPDATE INCONSISTENCY
Thanks, Robert. Robert Huff [EMAIL PROTECTED] wrote: L Goodwin writes: I accidentally pushed the POWER button instead of the CD-ROM door open/close button and turned the computer off. In my defense, the power button is right next to it AND has a hair trigger. :-( I turned the computer back on, and FreeBSD booted with no complaints, so I assumed all was well. That was your second error. As I learned it: On anything other than a clean shutdown, you will need to fsck everything that was mounted at the time of the crash. (Remember to get the stuff that's noauto in fstab.) Run fsck on each partitions. Repeat until it reports no errors. (Not MARKED CLEAN but not errors. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bsdlabel editing to create a single partition
Got it, thanks! [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 21/04/07, L Goodwin wrote: I want to dedicate the entire disk to a single FreeBSD partition (da1s1a), and am a little confused about editing partitions via bsdlabel -e . Prior to editing, it looks like this: # /dev/da1s1: 8 partitions: # size offsetfstype [fsize bsize bps/cpg] a: 17908300 16unused00 c: 17908316 0unused00# raw part, don't edit I gather that I should change the following field values for c:: fstype: 4.2BSD fsize: 2048 bsize: 16384 Questions: 1) Do I change the size value for a: or leave at current size? NO 2) Do I leave the c: line alone (in place) and if YES does its size and offset values need to be edited? Leave it alone. If someone could show me what it should look like when done, I'd appreciate it. When I leave the c: entry in place, I get /dev/da1s1a and /dev/da1s1c in /dev/. Should I delete the c: entry? Here's what I have now: # /dev/da1s1: 8 partitions: # size offsetfstype [fsize bsize bps/cpg] a: 17908300 164.2BSD204816384 c: 17908316 0unused0 0# raw part, don't edit Don't edit the bsdlabel at all, just: # newfs -U /dev/da1s1a and it will automatically fill out the fsize, bsize, and bps/cpg fields. You can then add a line to fstab, mount it, fill it with text files containing the word corn ever and over. c: should nearly never be touched, and definitely never in the course of simply setting up a disk for use. -- -- - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba and RAID 1 using gmirror on 2 new disks
The fdisk -I da1 failed with SCSI parity error, so I took another look at the manual for the 9GB drives and noticed that the J-4 pin block (12 pairs of pins where SCSI Device ID's are set) on these drives says Pin 11 is a Disable SCSI Parity Check jumper. I added a jumper on pin 11 on both 9GB drives. This resolved the SCSI parity error (note that SCSI Parity Checking is still Enabled in the SCSI BIOS). Then I did: 1) dd if=/dev/zero of=/dev/da1 bs=512 count=1024 RESULT: OK 2) fdisk -I da1 RESULT: ERROR - Output: *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found fdisk: Geom not found 3) gmirror label -v -b round-robin gm0 /dev/da1 (to see what would happen) RESULT: OK! Metadata value stored on /dev/da1. Done. 4) dd if=/dev/zero of=/dev/da1s1 bs=512 count=1024 RESULT: OK 5) bsdlabel -w da1s1 RESULT: OK 6) bsdlabel -e da1s1 Confusion on what to do here and why. Your instructions were: Then in the editor it brings up, put all the slice in a: - just copy the c: line and change the type to BSD4.2 from UNUSED and make the [fsize bsize bps/cpg] columns be 2048 16384 28552 Why copy the c: line? Shouldn't I just edit the a: line and leave the c: line alone? Here's what it looks like unmodified: - # /dev/da1s1: 8 partitions: # sizeoffsetfstype[fsize bsize bps/cpg] a: 1790830016unused0 0 c: 17908316 0unused0 0 # raw part, don't edit - Is this what it should look like after mods, or should I change size to 17908316 and offset to 0?: - # /dev/da1s1: 8 partitions: # sizeoffsetfstype[fsize bsize bps/cpg] a: 17908300164.2BSD 2048 16384 28552 c: 17908316 0unused0 0 # raw part, don't edit - More questions later... (thanks) Jerry McAllister [EMAIL PROTECTED] wrote: On Fri, Apr 20, 2007 at 03:12:46PM -0700, L Goodwin wrote: Hi, Jerry: Yes, I want to run Samba (sorry the list of requirements from my original email got left off). I also want to have the server run scheduled backups of the mirror disk. However... OK. I saw that later in your subject line, but all information should be in the body of the message too. I am not able to initialize da1 and da2 successfully. I went through the process of running FDISK and the Label Editor from the sysinstall menu, both without any error messages, but it does not work! (see the steps I took below) Here are the detailed steps I took and results (FAIL). Did I miss any important steps or do something incorrectly, or is there a problem with these disks?: 1) Boot FreeBSD and login as user root. 2) Start sysinstall from the shell prompt. 3) Select the Configure menu option and run FDISK. 4) Created a single slice (da1s1) on da1, then repeated the process for da2 (da2s1). Both slices are the same size (17912475 blocks). 5) Select Label Disk Label Editor in FreeBSD Configuration Menu. [See attached file containing FDISK and Label settings] 6) I then tried to format the da1s1 partition using: newfs /dev/da1s1d ...which failed with newfs /dev/sa1s1d: could not find special device Is there any reason you were making it a partition 'd:' instead of 'a:' I don't think it would matter, but it might lead to errors keeping track of things when typing in commands. Checked /dev and found da1 and da2, but not the expected da1s1d and da2s1d, so I tried: newfs /da1 ...which failed with: ... (da1:ahc0:0:1:0): WRITE(06). CDB: a 0 0 a0 80 0 (da1:ahc0:0:1:0): CAM Status: SCSI Status Error (da1:ahc0:0:1:0): SCSI Status: Check Condition (da1:ahc0:0:1:0): ABORTED COMMAND asc:47,0 (da1:ahc0:0:1:0): SCSI parity error (da1:ahc0:0:1:0): Retries Exhausted newfs: wtfs: 65536 bytes at sector 160: Input/output error Well, a SCSI parity error is a bad sign. That is pointing to a hardware problem of some kind. It could be media (disk) or cables or controller failure, etc. Try this and if you still get SCSI parity errors, better open up the box and work on parts. NOTE that those two dd commands are not quite the same. The first writes to da1 and the second to da1s1 dd if=/dev/zero of=/dev/da1 bs=512 count=1024 fdisk -I da1 dd if=/dev/zero of=/dev/da1s1 bs=512 count=1024 bsdlabel -w da1s1 bsdlabel -e da1s1 Then in the editor it brings up, put all the slice in a: - just copy the c: line and change the type to BSD4.2 from UNUSED and make the [fsize bsize bps/cpg] columns be 2048 16384 28552 Then do:newfs /dev/da1s1a If that still gets SCSI errors, then your problems are below the level of the software
bsdlabel editing to create a single partition
I want to dedicate the entire disk to a single FreeBSD partition (da1s1a), and am a little confused about editing partitions via bsdlabel -e slicename. Prior to editing, it looks like this: # /dev/da1s1: 8 partitions: # size offsetfstype [fsize bsize bps/cpg] a: 17908300 16unused00 c: 17908316 0unused00# raw part, don't edit I gather that I should change the following field values for c:: fstype: 4.2BSD fsize: 2048 bsize: 16384 Questions: 1) Do I change the size value for a: or leave at current size? 2) Do I leave the c: line alone (in place) and if YES does its size and offset values need to be edited? If someone could show me what it should look like when done, I'd appreciate it. When I leave the c: entry in place, I get /dev/da1s1a and /dev/da1s1c in /dev/. Should I delete the c: entry? Here's what I have now: # /dev/da1s1: 8 partitions: # size offsetfstype [fsize bsize bps/cpg] a: 17908300 164.2BSD204816384 c: 17908316 0unused0 0# raw part, don't edit Thanks! - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Grep and --exclude? or, finding a text string that might be anywhere
Oliver, the error is due to incorrect syntax (-e flag omitted). Try this: grep -R /usr -e any2dvd L Goodwin Oliver Iberien [EMAIL PROTECTED] wrote: I need to find a reference to an obscure delete port that is in some file somewhere (in /usr/ports/? somewhere in /usr?) as it is messing up make and, among other things, preventing me from running the gnome upgrade script. So, I do what little I know to do: grep -R /usr/* any2dvd This brings out a few valid discoveries (mostly in mailfiles when I posted about this) and lots of operation not supported and No such file or directory errors before grep spits out a memory exhausted error. If I could at least stop it from looking at */tmp/* and ~/.kde it might have a chance to get somewhere, but I can't figure out how --exclude or --exclude-dir work, despite googling over and over for examples. Can this be made to work? Or is there a better way? Thanks, Oliver Previous post about the weird make error follows: On Sunday 08 April 2007 21:24, you wrote: On Sun, Apr 08, 2007 at 09:30:14AM -0700, Oliver Iberien wrote: I seem to have messed something up somewhere, and peculiar instructions seem to have found their way in. An example is below: --- Checking for the latest package of 'devel/gettext' --- Fetching the package(s) for 'gettext-0.16.1' (devel/gettext) --- Fetching gettext-0.16.1 /var/tmp/portupgradeJwjg3x7H/gettext-0.16.1.tb100% of 2093 kB 248 kBps --- Downloaded as gettext-0.16.1.tbz --- Identifying the package /var/tmp/portupgradeJwjg3x7H/gettext-0.16.1.tbz --- Saved as /usr/ports/packages/All/gettext-0.16.1.tbz --- Skipping libiconv-1.9.2_2 (already installed) --- Found a package of 'devel/gettext': /usr/ports/packages/All/gettext-0.16.1.tbz (gettext-0.16.1) --- Located a package version 0.16.1 (/usr/ports/packages/All/gettext-0.16.1.tbz) --- Upgrading 'gettext-0.14.5_2' to 'gettext-0.16.1' (devel/gettext) using a package cd: can't cd to /usr/ports/multimedia/any2dvd Makefile, line 54: Could not find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common make: fatal errors encountered -- cannot continue ^C--- Backing up the old version --- Uninstalling the old version The section cd: can't cd to /usr/ports/multimedia/any2dvd Makefile, line 54: Could not find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common appears often when installing both from packages and ports. I just stop it and the install continues. What could be going on here? Check carefully for local changes you made referring to this file (in /usr/ports or /etc/make.conf, maybe elsewhere_. It no longer exists in the ports tree so it is unreferenced in a standard install of it. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba and RAID 1 using gmirror on 2 new disks
Thanks for the steps, Laszlo. I got as far as creating a freebsd slice on da1 (both da1 and da2 have been low-level formatted). Now I have two questions: 1) When creating the slice on da1, I specified to use the entire disk, but there are 2 unused sections -- one before and one after the new slice (please see attached file). Should I start over and specify a smaller size? What size should I specify?:' 2) About creating partitions on da1: You specified to add partitions to the slice (/dev/da1s1a, /dev/da1s1b,/dev/da1s1c etc.). Please note: a) The entire FreeBSD filesystem is on da0. b) I want to use the entire da1 disk for users on Windows clients to store files/documents on. I also want the mirror disk (da2) to be backed up regularly. Do I need to create more than one partition on da1? What are the requirements for naming partitions in this situation? Thanks! Nagy László Zsolt [EMAIL PROTECTED] wrote: *L Goodwin wrote: Both assume you only have 2 drives and want to mirror the drive containing FreeBSD. I only want to mirror the data drive da1, and would appreciate a concise set of steps for doing this right the first time. 1. First of all, you should install the base system on da0 and boot it. (Leave da1 and da2 untouched) 2. Create a slice on da1 (fdisk). The name of the new slice will probably be da1s1. (You will find this inside sysinstall) I found that sometimes I had to use a bit smaller slice than the available space, because equally looking disks are not always equal. (Not kidding!) 3. Use disklabel editor to add partitions to the slice (/dev/da1s1a,/dev/da1s1b,/dev/da1s1c etc.) and format them with newfs as needed. 4. Change loader.conf, add this line: geom_mirror_load=YES 5. Execute these: gmirror load gmirror label -v -b round-robin gm0 /dev/da1 6. Carefully rename all references in /etc/fstab /dev/da1s1X becomes /dev/mirror/gm0s1X (where X can be a,b,c,d etc.) 7. Reboot 8. Check your mirror with gmirror list and gmirror status, and see if your filesystems are mounted with df. 9. Add da2 to your mirror with this command: gmirror insert gm0 /dev/da2 Please ask others, as I did not try this and I'm not 100% sure it will work. But I think it should. Best, Laszlo * - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos.Prepare disks da1 and da2 (after low-level format): Run FDISK from systinstall: DISK name: da1 FDISK Partition Editor Disk Geometry: 1115 cyls/255 heads/63 sectors = 17912475 sectors Offset Size(ST)End Name PType Desc Subtype Flags 0 1791624017916239 - 12 unused0 After Create slice (size = 17916240, type = 165): Offset Size(ST)End Name PType Desc Subtype Flags 0 63 62 - 12 unused0 63 179124121912474 da1s1 8 freebsd 165 17912475376517916239 - 12 unused0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba and RAID 1 using gmirror on 2 new disks
Hi, Jerry: Yes, I want to run Samba (sorry the list of requirements from my original email got left off). I also want to have the server run scheduled backups of the mirror disk. However... I am not able to initialize da1 and da2 successfully. I went through the process of running FDISK and the Label Editor from the sysinstall menu, both without any error messages, but it does not work! (see the steps I took below) Here are the detailed steps I took and results (FAIL). Did I miss any important steps or do something incorrectly, or is there a problem with these disks?: 1) Boot FreeBSD and login as user root. 2) Start sysinstall from the shell prompt. 3) Select the Configure menu option and run FDISK. 4) Created a single slice (da1s1) on da1, then repeated the process for da2 (da2s1). Both slices are the same size (17912475 blocks). 5) Select Label Disk Label Editor in FreeBSD Configuration Menu. [See attached file containing FDISK and Label settings] 6) I then tried to format the da1s1 partition using: newfs /dev/da1s1d ...which failed with newfs /dev/sa1s1d: could not find special device Checked /dev and found da1 and da2, but not the expected da1s1d and da2s1d, so I tried: newfs /da1 ...which failed with: ... (da1:ahc0:0:1:0): WRITE(06). CDB: a 0 0 a0 80 0 (da1:ahc0:0:1:0): CAM Status: SCSI Status Error (da1:ahc0:0:1:0): SCSI Status: Check Condition (da1:ahc0:0:1:0): ABORTED COMMAND asc:47,0 (da1:ahc0:0:1:0): SCSI parity error (da1:ahc0:0:1:0): Retries Exhausted newfs: wtfs: 65536 bytes at sector 160: Input/output error I then tried fdisk -BI da1 from the shell prompt, I get fdisk: Failed to write sector zero (SCSI parity error). There's something fishy going on here, but I don't know what to do about it. As stated in a previous posting, I ran the Verify Disk Media and Low-level Format on both disks last night (no media problems found). NOW, WHAT??? Jerry McAllister [EMAIL PROTECTED] wrote: On Fri, Apr 20, 2007 at 12:39:28PM -0700, L Goodwin wrote: Thanks for the steps, Laszlo. I got as far as creating a freebsd slice on da1 (both da1 and da2 have been low-level formatted). Now I have two questions: 1) When creating the slice on da1, I specified to use the entire disk, but there are 2 unused sections -- one before and one after the new slice (please see attached file). Should I start over and specify a smaller size? What size should I specify?:' 2) About creating partitions on da1: You specified to add partitions to the slice (/dev/da1s1a, /dev/da1s1b,/dev/da1s1c etc.). Please note: a) The entire FreeBSD filesystem is on da0. b) I want to use the entire da1 disk for users on Windows clients to store files/documents on. I also want the mirror disk (da2) to be backed up regularly. Do I need to create more than one partition on da1? What are the requirements for naming partitions in this situation? Probably there is some confusion. If you alredy have your FreeBSD stuff on da0 and only want to put the windows stuff on da1, then you don't need it divided up in to all the extra partitions. If you want Windows clients to use it, do you plan to run Samba? If not, maybe you should just make the disk a Windows disk, but make it FAT32 so FreeBSD can both read and write it. If it will be the store for Samba, then forget this comment. As for the unused bit before and after the slice, if I understand what you are pointing to, that is normal. It is now normal to just skip the first whole track where an MBR might be written rather than just one sector. That is the 63 extra blocks at the beginning. Then, fdisk will ignore trailing stuff that doesn't conveniently fit in to the addressing scheme.Neither part amounts to much actual disk space by today's standards so it is just ignored. If you are going to make a mirror, then try to get the two slices to come out to the same size. Otherwise don't worry about it. jerry Thanks! Nagy László Zsolt wrote: *L Goodwin wrote: Both assume you only have 2 drives and want to mirror the drive containing FreeBSD. I only want to mirror the data drive da1, and would appreciate a concise set of steps for doing this right the first time. 1. First of all, you should install the base system on da0 and boot it. (Leave da1 and da2 untouched) 2. Create a slice on da1 (fdisk). The name of the new slice will probably be da1s1. (You will find this inside sysinstall) I found that sometimes I had to use a bit smaller slice than the available space, because equally looking disks are not always equal. (Not kidding!) 3. Use disklabel editor to add partitions to the slice (/dev/da1s1a,/dev/da1s1b,/dev/da1s1c etc.) and format them with newfs as needed. 4. Change loader.conf, add this line: geom_mirror_load=YES 5. Execute these: gmirror load gmirror label -v -b round-robin gm0 /dev/da1 6. Carefully rename all references
Samba and RAID 1 using gmirror on 2 new disks
Hello. I have a server with 3 SCSI drives. FreeBSD is installed on da0 (4.3GB), and da1 and da2 (both identical 9GB drives) are to be used in a RAID 1 array for file storage on a LAN with Windows XP and Vista clients, using Samba to share the filesystem on da1. Backups will be taken from da2. Drives da1 and da2 are currently unused (reclaimed from a Windows server). I have not done anything to prepare these 2 drives yet. I also have not configured Samba yet. Please walk me through the process of setting up a FreeBSD 6.2 fileserver given these conditions? I tried configuring the RAID1 array using the following sources, but got judging from the errors I got, it looks like I need to prepare da1/da2 first: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html Both assume you only have 2 drives and want to mirror the drive containing FreeBSD. I only want to mirror the data drive da1, and would appreciate a concise set of steps for doing this right the first time. Thanks! - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: every two weeks
Here are some more things to check: Check the cooling fan(s) in the power supply. I recently had a PS die due to a bad fan. Verify that it spins freely by hand (when OFF) and that it spins up quickly when turned on, and does not make any suspicious noises. Also check its RPM's in the BIOS if available. I'd also check the CPU fan(s) (physically and in BIOS). Verify that air can flow freely over the CPU and out through the power supply. There should be no cables blocking the path. Also, the power supply should have an intake fan that points at the CPU (many PSUs have it on the back, which usually does not face the CPU). This is especially important for AMD CPUs. If hardware has been added, you could be overloading the power supply. John Haig [EMAIL PROTECTED] wrote: Hi Every two weeks my Freebsd 5.3 box goes down. I'm running a webserver, databaase. No mail. Unfortunately it's 1100 miles from where I am and is quite the pain for my contact to go and start it up again. He says it's turned off and cold by the time he gets there. It's an old box for sure, hardware seems the likely culprit, but why up for two weeks and then down? It's the 4th time in well, about 8 weeks. Before that it was off for a long time because no one could get to it. It's in New Orleans. Anyone run into anything similar? It seems so un freebsd. What would be a good way to see what the last thing that happened was? Thanks for any insight. Please respond to me personally (as well as to the list if you like). Bagus John Bagus Haig [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba and RAID 1 using gmirror on 2 new disks
There appears to be an issue with da1. Please advise as to what the problem is and how to resolve it. I'm getting similar SCSI parity error messages for BOTH of the following commands: 1) gmirror label -b load sambavol /dev/da1 /dev/da2 2) fdisk -BI da1 Here is the output from the gmirror call: -- (da1:ahc0:0:0:1:0): WRITE(10): CDB: 2a 0 1 11 61 4f 0 0 10 (da1:ahc0:0:0:1:0): CAM Status: SCSI Status Error (da1:ahc0:0:0:1:0): SCSI Status: Check Condition (da1:ahc0:0:0:1:0): ABORTED COMMAND asc:47,0 (da1:ahc0:0:0:1:0): SCSI parity error ... (da1:ahc0:0:0:1:0): Retries Exhausted Can't store metadata on /dev/da1: Input/output error. Not fully done. -- ...and output from fdisk (nearly identical): -- WRITE(06): CDB: a 0 0 0 1 0 CAM Status: SCSI Status Error SCSI Status: Check Condition ABORTED COMMAND asc:47,0 SCSI parity error Retrying Command (per Sense Data) ... Retries Exhausted fdisk: Failed to write sector zero -- Please note: * After disk swap, verified that these 3 SCSI drives appear as DEV 0,1 and 2, respectively in the SCSI Disk Utilities device listing. * Both da1 and da2 appear in /var/run/dmesg.boot. * I have the SCSI ID jumpers set correctly for all 3 drives. * I ran the Hitachi/IBM drive fitness test (Quick Test only) on both of the 9GB drives before moving them from the other server -- both passed. Did not run the Advanced Test on these drives John Nielsen [EMAIL PROTECTED] wrote: On Thursday 19 April 2007 03:24:36 pm L Goodwin wrote: Hello. I have a server with 3 SCSI drives. FreeBSD is installed on da0 (4.3GB), and da1 and da2 (both identical 9GB drives) are to be used in a RAID 1 array for file storage on a LAN with Windows XP and Vista clients, using Samba to share the filesystem on da1. Backups will be taken from da2. Drives da1 and da2 are currently unused (reclaimed from a Windows server). I have not done anything to prepare these 2 drives yet. I also have not configured Samba yet. Please walk me through the process of setting up a FreeBSD 6.2 fileserver given these conditions? I tried configuring the RAID1 array using the following sources, but got judging from the errors I got, it looks like I need to prepare da1/da2 first: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html man gmirror man newfs man mount man fstab man smb.conf man samba gmirror label -b load sambavol /dev/da1 /dev/da2 newfs -U /dev/mirror/sambavol mkdir /sambavol mount /dev/mirror/sambavol /sambavol echo '/dev/mirror/sambavol /sambavol ufs rw 2 2' /etc/fstab The samba config depends a log on how you want to use the share and handle authentication and permissions, etc. The sample config file has most of what you need. Here's a starting point for a section to share a /sambavol directory with a samba share name of sambavol: [sambavol] path = /sambavol browseable = yes writable = yes printable = no You will of course need a correctly configured global section and you'll probably want additional entries in the volume section like public, guest ok, only guest, etc. JN - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba and RAID 1 using gmirror on 2 new disks
One more thought: I had to disable ACPI (as with the first server) to get FreeBSD to boot. Could this have something to do with my problem, i.e., is some manual configuration necessary to set up SCSI devices in FreeBSD? Derek Ragona [EMAIL PROTECTED] wrote: At 06:36 PM 4/19/2007, L Goodwin wrote: This is a different machine from the original one I was trying to install FreeBSD on. However, the two 9GB SCSI-3 drives are from the original machine. There seems to be a problem with how they are configured or with one or both of the 9GB drives (details are in my posting that appears after yours). The 4.3GB SCSI-2 drive that I installed FreeBSD 6.2 on is fine. This is da0. The errors are on da1. Derek Ragona [EMAIL PROTECTED] wrote: At 02:24 PM 4/19/2007, you wrote: Hello. I have a server with 3 SCSI drives. FreeBSD is installed on da0 (4.3GB), and da1 and da2 (both identical 9GB drives) are to be used in a RAID 1 array for file storage on a LAN with Windows XP and Vista clients, using Samba to share the filesystem on da1. Backups will be taken from da2. Drives da1 and da2 are currently unused (reclaimed from a Windows server). I have not done anything to prepare these 2 drives yet. I also have not configured Samba yet. Please walk me through the process of setting up a FreeBSD 6.2 fileserver given these conditions? I tried configuring the RAID1 array using the following sources, but got judging from the errors I got, it looks like I need to prepare da1/da2 first: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html Both assume you only have 2 drives and want to mirror the drive containing FreeBSD. I only want to mirror the data drive da1, and would appreciate a concise set of steps for doing this right the first time. Thanks! The errors look like it is having a problem writing in the first cylinder where the RAID configuration is kept. If you haven't done a low-level format and diagnostics on this drive, I would start there. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot failure after installation
I have BOTH ad0 (IDE HDD) AND da0 (SCSI device #0). I posted detailed BIOS settings and install steps in previous emails. I've attached the BIOS and SCSI BIOS settings (with footnotes). I have installed FreeBSD on da0 multiple times, each time creating a single slice/partition on da0, and setting da0 as bootable, and installing the FreeBSD boot manager on da0. OK? I also found an IDE HDD yesterday, and installed Linux on ad0 (the IDE HDD), but am getting the exact same boot failure. I tried setting my bios to try booting from IDE drives first (before SCSI), and vice-versa (SCSI first, which is what it was set to), with no change. I also tried removing the IDE HDD and booting, but boot from CD-ROM drive hangs, and boot from C fails. I did not change BIOS settings re the (removed) IDE HDD. I've never worked on a machine that has both SCSI and IDE controller/drive configuration, and am not sure how to disentangle the IDE hard drive from the system without causing new problems. Ended up reinstalling the IDE HDD for now, but would like to remove it for use elsewhere (this machine has 5 SCSI drives, so don't need it). Jerry McAllister [EMAIL PROTECTED] wrote: Will someone please explain in detail how to run the FreeBSD fdisk util outside of the freebsd installer? Please provide detailed steps. You just type fdisk devname where devname is the disk device. There are a number of flags and parameters you may need to use. Have you read the fdisk man page?Also read the bsdlabel man page. What would the experts do next in this situation? I've checked and double-checked BIOS (current version is same as what I have -- 1013, so did not re-flash), SCSI BIOS (reset defaults and low-level formatted da0). I've performed Minimal FreeBSD install per step-by-step directions, and always says it's installed successfully, but can never boot from da0 (since repartitioning using FreeBSD fdisk util). I've verified that I'm creating a single partition (slice) on da0, making it the active partition, then setting it Bootable. I would first ignore the issue of cylinders as has been mentioned. I booted the FreeSBIE LiveCD, and tried to mount da0: mount /dev/da0 /mnt mount: /dev/da0: Operation not permitted First of all, do you even have a da0 drive? Maybe it is ad0 Second, is there a file system build on da0a?I haven't seen anything that indicates it. You can only mount a file system. Fdisk doesn't have much to do with creating a file system. That is newfs. The standard way to build a disk is: Use fdisk to create slice[s] (1..4) -- and possibly write an MBR on the disk. Use bsdlabel to divide the slice in to partitions (a..h) and possibly write a boot sector on the slice. Use newfs to create file systems on each of the partitions except swap c. Then you can mount any of those newfs created filesystems. You must first read the man pages for those utilities and also study the relevant handbook sections. Also, peruse the FreeBSD-questions archives. I have written on this several time recently. Find and read those. Then, if you have further specific questions, come back and ask. But, you must do your homework first or our answers will be useless to you and a waste of our time. jerry Jerry McAllister wrote: On Tue, Apr 10, 2007 at 07:48:07PM -0700, L Goodwin wrote: Is there a way to run the FDISK tool outside of the freebds installer? How do I change the disk configuration without reinstalling freebsd every @[EMAIL PROTECTED] time? Yes, all sysinstall does is collect the information and run fdisk for you. See the man page (enter man fdisk ) It can be a little hard to read at first. The fdisk and bsdlabel don't follow the normal man page form. One thing you must know; you cannot run fdisk on a drive that is in active use. If you booted from that drive or if you are CD-ed in to a file system on the drive, the system will not let you write to the drive using fdisk. You can only use fdisk to read the slice table and run prototype setups that do not actually write out to the disk. Trying to write to a drive that is active is a very popular mistake when attempting to use fdisk. So, read the fdisk man page and then come back with some more specific questions if you need. I really want to set up a FreeBSD server and appreciate the learning experience, but it's way past the point where I should have switched to an OS that will actually run on my client's server. If I don't get it going tonight, I'm going to install the first Linux distribution that says Hey, Sailor... =8-0 Guess you will need to follow the installation instructions in the FreeBSD handbook more carefully. BTW, I burned a freeSBIE 2.0.1 Live CD, but have no idea what to do with it. Yes, I am pathetically clueless. Thanks for your patience! Just boot it up and run it.It will give you a very basic
Re: Proper list server? (was Re: Automatic means for spinning down disks available?)
Well, Jonathan, since you asked, here are the things I've found cumbersome about freebsd-questions, some/all of which may be due to my own ignorance: 1) I get all email posted to freebsd-questions in my inbox (actually, some end up in bulk mail folder). That's a lot of mail to wade through. I'm trying to get a system up and running so I can move on to the next task. I suppose I could set up some email filtering rules to limit what comes in. 2) To reply to an email, I have to copy/paste freebsd-questions@freebsd.org into the To field. If I forget to do this, my reply gets send to the sender only. See? I almost forgot to do it for this reply. :-} One feature I like about (some) list servers is the ability to send a private message to another member. This comes in handy when one person is helping troubleshoot a problem, and you don't need everybody on the list to get involved. Jonathan McKeown [EMAIL PROTECTED] wrote: On Wednesday 11 April 2007 05:12, L Goodwin wrote: For starters, how about getting this mail group on a proper list server? I'll gladly help if there is anything I can do other than get in the way... I normally try not to be rude, but... what on Earth are you talking about? What is it about a Mailman installation on a host within the freebsd.org domain that renders it less than proper? Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Proper list server? (was Re: Automatic means for spinning down disks available?)
Thanks, Chuck. Subscription Options has an option Which topic categories would you like to subscribe to? that has No topics defined, but I don't see any list of topic categories or a way to select them. Chuck Swiger [EMAIL PROTECTED] wrote: Hi, L-- On Apr 11, 2007, at 12:14 PM, L Goodwin wrote: 1) I get all email posted to freebsd-questions in my inbox (actually, some end up in bulk mail folder). That's a lot of mail to wade through. I'm trying to get a system up and running so I can move on to the next task. I suppose I could set up some email filtering rules to limit what comes in. You can follow the link to Mailman at the bottom of every list message, log in using your email addr (boink on the button to have it send you your password, if you don't remember it), and change your delivery preference to digest mode or even disable delivery entirely: http://lists.freebsd.org/mailman/options/freebsd-questions In addition, Mailman sets the List-ID header recommended by the RFCs, which means you can easily filter email from the list to another mailbox, via procmail or your mail client's native filtering. 2) To reply to an email, I have to copy/paste freebsd- [EMAIL PROTECTED] into the To field. If I forget to do this, my reply gets send to the sender only. See? I almost forgot to do it for this reply. :-} Most mail clients have both a reply and reply to all capability; the local convention on the FreeBSD mailing lists is to use reply-to- all, perhaps unless you know that the other person is subscribed. One feature I like about (some) list servers is the ability to send a private message to another member. This comes in handy when one person is helping troubleshoot a problem, and you don't need everybody on the list to get involved. Nothing stops you from sending private email to someone else directly, but normally you want to CC: the list so that everyone can benefit from the advice or suggestions being made. Taking a thread to private email tends to be done more when you need to discuss private config files which contain passwords or some such... -- -Chuck - Don't get soaked. Take a quick peak at the forecast with theYahoo! Search weather shortcut. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Proper list server? (was Re: Automatic means for spinning down disks available?)
Thanks, Jeff and others. Ok, I'll use Reply to All. FYI, I only use this Yahoo account for situations where I don't want to get spammed to death. I started using UNIX, email and the Internet in 1989, but for the last 15 years I've been stuck with Windows (not counting hosted Web servers) -- guess I'm getting a little soft. I'm having a hard time trying to implement a non-Microsoft OS for the first time in (literally) decades, and freely admit my ignorance. My prior experiences installing UNIX were with commercial versions (mainly AIX) using checklists prepared by folks who knew what to install. I live in the heart of Microsoft territory. No offense to Microsoft, but I'd like to see a little more competition around here. What I'm seeing is a trend towards Microsoft servers (even Web servers!). Other than (hosted) Web servers running FreeBSD/Apache, I work mainly with workstations. I'd like to gain some modest expertise in the non-Microsoft server arena. I appreciate any and all help in this endeavor. Jeffrey Goldberg [EMAIL PROTECTED] wrote: On Apr 11, 2007, at 2:14 PM, L Goodwin wrote: Well, Jonathan, since you asked, here are the things I've found cumbersome about freebsd-questions, some/all of which may be due to my own ignorance: It's not so much your ignorance (well ultimately it is), but that you are using a webmail system (Yahoo!) to manage your mail. Quite simply, if you are going to be getting lots of mail (as happens when you subscribe to a mailing list or two) and communicating with people on discussion lists, you should use a proper mail client. I'm sure that there will be ways to doing the things you want with Yahoo!, but on the whole mailing lists were designed to work with real email clients. Anyway, here are comments on the original. 1) I get all email posted to freebsd-questions in my inbox (actually, some end up in bulk mail folder). That's a lot of mail to wade through. I'm trying to get a system up and running so I can move on to the next task. I suppose I could set up some email filtering rules to limit what comes in. Sorting of incoming mail is essential if you belong to several mailing lists. I'm sure that Yahoo will have some way of doing this so that mail that matches a particular pattern will go into a designated mail folder. As others have pointed out, the best pattern to use is based on the List-Id header, which for this lists looks like List-Id: User questions I have a sorting rule that puts all of my freebsd.org lists (I subscribe to several) in a specific folder. Because I'm sorting mail with something called sieve (almost certainly not what Yahoo is doing) my rule looks like elsif header :contains [List-Id] freebsd.org { fileinto INBOX.LISTS.Comp.BSD; stop; } But don't worry, you won't have to edit such rules by hand. Yahoo will have a nice web interface for you. 2) To reply to an email, I have to copy/paste freebsd- [EMAIL PROTECTED] into the To field. If I forget to do this, my reply gets send to the sender only. See? I almost forgot to do it for this reply. :-} Most mailers (and I assume Yahoo! as well) make a distinction between Reply and Reply to all. It might be called something else on Yahoo! but look for something that seems to mean the same thing. For some discussion lists, things are configured so that the Reply-To header in mail to the list will make a simple Reply to go just to the list. There are fierce debates among list managers about whether that is a good thing or a force for evil. I will not step into it here, except to note that the people who configured this discussion list made a conscious and informed choice about how to configure the list. (Mailman allows lists to be set up either way.) One feature I like about (some) list servers is the ability to send a private message to another member. This comes in handy when one person is helping troubleshoot a problem, and you don't need everybody on the list to get involved. That is what a simple Reply will do given how this list is set up. Use Reply to All to send the response to the list as well. I don't mean to present an argument from authority, but you are clearly new to email discussion lists. The people who made the choices about the configuration of this list have much more experience about what works and what doesn't work. I managed my first email list in 1986, and over the decades have formed some very strong opinions. It's good for you to query things and point out stuff that doesn't seem to work right. It wouldn't be the first time that the experts are wrong. But do keep in mind that most everything you encounter has been configured or designed the way it is for a reason. And so when you run into something that seems strange or annoying to you, the question to ask is not why can't we do it right? but why are things set up
Re: Boot failure after installation
Will someone please explain in detail how to run the FreeBSD fdisk util outside of the freebsd installer? Please provide detailed steps. What would the experts do next in this situation? I've checked and double-checked BIOS (current version is same as what I have -- 1013, so did not re-flash), SCSI BIOS (reset defaults and low-level formatted da0). I've performed Minimal FreeBSD install per step-by-step directions, and always says it's installed successfully, but can never boot from da0 (since repartitioning using FreeBSD fdisk util). I've verified that I'm creating a single partition (slice) on da0, making it the active partition, then setting it Bootable. I booted the FreeSBIE LiveCD, and tried to mount da0: mount /dev/da0 /mnt mount: /dev/da0: Operation not permitted Jerry McAllister [EMAIL PROTECTED] wrote: On Tue, Apr 10, 2007 at 07:48:07PM -0700, L Goodwin wrote: Is there a way to run the FDISK tool outside of the freebds installer? How do I change the disk configuration without reinstalling freebsd every @[EMAIL PROTECTED] time? Yes, all sysinstall does is collect the information and run fdisk for you. See the man page (enter man fdisk ) It can be a little hard to read at first. The fdisk and bsdlabel don't follow the normal man page form. One thing you must know; you cannot run fdisk on a drive that is in active use. If you booted from that drive or if you are CD-ed in to a file system on the drive, the system will not let you write to the drive using fdisk. You can only use fdisk to read the slice table and run prototype setups that do not actually write out to the disk. Trying to write to a drive that is active is a very popular mistake when attempting to use fdisk. So, read the fdisk man page and then come back with some more specific questions if you need. I really want to set up a FreeBSD server and appreciate the learning experience, but it's way past the point where I should have switched to an OS that will actually run on my client's server. If I don't get it going tonight, I'm going to install the first Linux distribution that says Hey, Sailor... =8-0 Guess you will need to follow the installation instructions in the FreeBSD handbook more carefully. BTW, I burned a freeSBIE 2.0.1 Live CD, but have no idea what to do with it. Yes, I am pathetically clueless. Thanks for your patience! Just boot it up and run it.It will give you a very basic working environment.Then do something like you might in a UNIX system, like ls or cd or df or whatever. Derek Ragona wrote: One other thing that might be happening is if the geometry of the drive isn't allowing an extended translation because of the age of your hardware, you may need to keep the boot partition, that is the entire boot partition (not talking slices here) within the first 1024 cylinders. In the partition tool in sysinstall you can change the display to show different units, and one of those will be cylinders. The 1024 cylinder limit is from older BIOS translations and if the boot partition extended beyond 1024 the system will give that same error you are getting. If the machine is built any less than about 11 years ago, this doesn't apply. With older hardware you may need to use multiple partitions instead of slices. You can have 4 partitons on a drive (4 is hardcoded in the partition table size and a location) so you can add additional partitions for swap and /usr if you want. Any partitions you use for filesystems like /usr the boot manager will see and offer to boot them. They won't boot of course. Swap partitions are ignored by the boot manager. This is mostly incorrect and even backwards. First of all, there are 4 slices possible on a drive (or raid set for all that matters). Microsoft tends to call slices Primary Partitions. Slices are created and managed by the fdisk utility. Fdisk also writes the Master Boot Record (MBR) (but not the boot sector). In FreeBSD you can divide each slice up in to partitions which are identified as a..h, although 'c' is reserved. These partitions are created and managed by the FreeBSD bsdlabel utility (or disklabel in older versions). Bsdlabel also writes the boot sector. Otherwise, I'd suspect it is a problem with the 6.2 you are using then. If you try with a boot within the 1024 (I wouldn't push that to the limit I'd say try like 950 cylinders) then I would try an earlier version such as 6.1 or 6.0. The whole issue of 1024 cylinders limit for bootable file systems went away with improved BIOS about 11 years ago. If you have a system old enough to have the problem, you should be updating the BIOS rather than trying to accomodate the limit. jerry -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support
Re: Advice on how to memorize images
You can use MySQL or any other relational database to cross-reference/catalog storage locations and information about a large quantity of items/data such as pictures. IMHO, to make such a project worthwhile, you need a database design that serves your needs. If you don't want to design/develop it yourself, you can probably find a free cataloging program or database schema that will work well. You store the actual images in a filesystem, and insert database records that have a field for specifying the path/filename where the image is located and other fields such as date/time photograph was taken, a name and/or description, etc. You will want to have one or more tables for categorizing your images (at least two levels deep) to make it easier to find the one(s) you are looking for. I would provide several ways to cross-reference images (based on one or more criteria). Vittorio [EMAIL PROTECTED] wrote: I'm now moving my first steps in trying to memorize my many digital photos (for the time being some 700 pictures but rapifdly growing, average size among 800-900kb) in a centralised system easy to deal with. I'm now successfully (but still in an experimental level) using a postgresql 8.0.2 db with its wonderful lo_creat, lo_export, etc functions. Unfortunately I've read in the internet many criticism on the use of mysql or pgsql db to memorize images, that this is not an efficient way to do the job (no alternatives seem to be proposed anyway!) because the db easily becomes cumbersome (isn't that the core business of a great db such as mysql or pgsql?). Could someone out there tell an almost definite word on this subject with some suggestions (other applications?) based on real experience? Ciao Vittorio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot failure after installation
Is there a way to run the FDISK tool outside of the freebds installer? How do I change the disk configuration without reinstalling freebsd every @[EMAIL PROTECTED] time? I really want to set up a FreeBSD server and appreciate the learning experience, but it's way past the point where I should have switched to an OS that will actually run on my client's server. If I don't get it going tonight, I'm going to install the first Linux distribution that says Hey, Sailor... =8-0 BTW, I burned a freeSBIE 2.0.1 Live CD, but have no idea what to do with it. Yes, I am pathetically clueless. Thanks for your patience! Derek Ragona [EMAIL PROTECTED] wrote: One other thing that might be happening is if the geometry of the drive isn't allowing an extended translation because of the age of your hardware, you may need to keep the boot partition, that is the entire boot partition (not talking slices here) within the first 1024 cylinders. In the partition tool in sysinstall you can change the display to show different units, and one of those will be cylinders. The 1024 cylinder limit is from older BIOS translations and if the boot partition extended beyond 1024 the system will give that same error you are getting. With older hardware you may need to use multiple partitions instead of slices. You can have 4 partitons on a drive (4 is hardcoded in the partition table size and a location) so you can add additional partitions for swap and /usr if you want. Any partitions you use for filesystems like /usr the boot manager will see and offer to boot them. They won't boot of course. Swap partitions are ignored by the boot manager. Otherwise, I'd suspect it is a problem with the 6.2 you are using then. If you try with a boot within the 1024 (I wouldn't push that to the limit I'd say try like 950 cylinders) then I would try an earlier version such as 6.1 or 6.0. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatic means for spinning down disks available?
I'm with you, Jules! I still haven't gotten FreeBSD to boot on my one file server, but am concerned about my client's power bill. I had suggested a SAN toaster, but then he produced this 1998 vintage server from the back of a closet. It has redundant 300W power supply, 4 case fans that run constantly, 6 SCSI drives, a CD-ROM drive, floppy drive, tape drive. I had to disable ACPI to get the FreeBSD installer to boot, so no power management. Surely the wonderful folks who produce free Windows alternatives realize that Intel and Microsoft have effectively abandoned many older hardware platforms don't meet Vista's requirements, but (could) happily run alternative software. For starters, how about getting this mail group on a proper list server? I'll gladly help if there is anything I can do other than get in the way... Jules Gilbert [EMAIL PROTECTED] wrote: Boy, do I want answers too! We have HD's that run 24X7. And I don't want to turn them off, I just want them to sleep quietly until needed. We have lot's of RAM, thus plenty of cache space. Our machines are all blades. (Does this matter? I don't know.) IBMs and Super-Micros. We spend zillions of bucks on electricity; We use these machines 24X7 now, but soon will only need them about 12 hours a day. Is 24X7 operation the optimal strategy? What's the best course here, wrt electric costs, and wrt disk failures? --jg On Apr 8, 2007, at 2:10 PM, Yuri Grebenkin wrote: Just wonder if it's better for an HDD not to spindown at all. Maybe it's safer to spin in peace than to park/launch? What do you think? Hello again all, I was wondering if there was an automatic, and possibly timed means to spin down disks available in either ports or the base system, by chance. Just trying to cut down on energy use, and increase my disks' lives :). TIA, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Boot failure after installation
Hello. I tried posting this issue a few hours ago, but it did not appear in my inbox, so I'm trying once more. I've included details of the install in case it matters (sorry about length). I'm having trouble getting FreeBSD 6.2 to boot after installation. After a successful install, (re-)boot always fails with DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER. In order to boot the install CD on this machine, I have to disable ACPI by selecting 2. Boot FreeBSD with ACPI disabled from the boot loader menu (the AWARD BIOS does not allow for disabling ACPI from the BIOS setup program). At the end of a successful install, the installer asks ACPI was disabled during boot. Would you like to disable it permanently?, to which I choose Yes. I am choosing to perform a Standard install. Here are my FDISK selections: Select Drive(s): da0 (first SCSI drive of 6 9GB drives) These are my selections in FDISK Partition Editor (before entering Q): -- Disk name:da0FDISK Partition Editor DISK Geometry:1115 cyls/255 heads/63 sectors = 17912475 sectors (8746MB) OffsetSize(ST)EndNamePTypeDescSubtype Flags 06362-12unused0 631791241217912474da0s18freebsd165A 17912475376517916239-12unused0 -- Install Boot Manager for drive da0?: Selected BootMgr (Install the FreeBSD Boot Manager) Select Drive(s): da0 selected for Boot Manager (tab to OK, press ENTER). FreeBSD Disklabel Editor (create BSD Paritions): Select A (Auto Defaults)... -- Disk: da0Partition name da0s1Free: 17912412 blocks (8746MB) PartMountSizeNewfsPartMountSizeNewfs ---- da0s1a/512MBUFS2Y da0s1bswap486MBSWAP da0s1d/var1267MBUFS2+sY da0s1e/tmp512MBUFS2+sY da0s1f/usr5968MBUFS2+sY -- ...then enter Q (Finish). Choose Distributions: Select A Minimal. Choose Installation Media: 1 CD/DVD (burned my own from FreeBSD-6.2-disk1 ISO image) All filesystem information written correctly... Distribution extracted successfully... Congratulations! You now have FreeBSD installed on your system (but can't boot!). Final Configuration: No to most questions (configure later). Yes to these: Ethernet or SLIP/PPP network devices: fxp0 (Intel EtherExpress Pro/100B PCI Fast Ethernet card IPv6 configuration of the interfaces?: No DHCP: No Bring up fxp0 interface right now?: Yes Failed (only entered hostname --will complete later) Network gateway?: No inetd?: No SSH login?: Yes anonymous FTP?: No NFS server?: No NFS client?: No customize system console settings?: No machine's time zone?: Yes CMOS clock set to UTC?: No Region: 2 America -- North and South Country or Region: 45 United States Time zone: 19 Pacific Time (PDT) Linux binary compatibility?: No PS/2 mouse?: Yes (test OK) ACPI was disabled during boot. Would you like to diswable it parmanently?: Yes Browse FreeBSD package collection?: No Add initial user accounts?: No set system manager's password: (done) Visit general configuration menu one more time?: No FreeBSD/i386 6.2-RELEASE - sysinstall Main Menu: Exit Install Last thing to print to screen: - Boot from ATAPI CD-ROM : Failure ... DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER - The first message is expected, as there is no disk in the CD-ROM drive. If I set Boot Sequence to C only in BIOS setup, only the second message appears. Am I doing something wrong here? - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot failure after installation
Derek, Boot Virus Protection is Disabled in the BIOS. How to I make sure my SCSI BIOS is set to be bootable and has the correct disk set for booting from? Please see my SCSI BIOS settings below and advise... (I don't think this is the problem, as this machine was booting Windows 2000 Server from same drive prior to repartioning and installing FreeBSD 6.2. This machine has an ASUS P2B-D ACPI BIOS rev 1013 (AWARD BIOS, single Pentium III/550) with onboard Adaptec 7890 SCSI BIOS.) My apologies for replying directly to those who took the time to respond. I'm used to working with forums that have list servers set up. Thanks! SCSI BIOS SETTINGS: 1) Host Adapter Settings: Configuration SCSI Bus Interface Definitions Host Adapter SCSI ID: 7 SCSI Parity Checking: Enabled Host Adapter SCSI Termination: Press Enter Ultra2-LVD/SE Connector: Auto Fast/Ultra-SE Connector: Enabled Additional Options SCSI Device Configuration: Press Enter Settings for SCSI Device #0 (identical for #1-15): -- Initiate Sync Negotiation: yes Maximum Transfer Rate: 80.0 Enable Disconnnection: yes Initiate Wide Negotiation: yes Send Start Unit Command: yes Include in BIOS Scan: yes -- Array1000 BIOS: Enabled BIOS Support for Bootable CD-ROM: Enabled 2) SCSI Disk Utilities: Select SCSI Disk and press Enter SCSI ID #0:IBMDNES-309170WULTRA2-LVD SCSI ID #1:IBMDNES-309170WULTRA2-LVD SCSI ID #2:IBMDNES-309170WULTRA2-LVD SCSI ID #3:IBMDNES-309170WULTRA2-LVD SCSI ID #4:IBMDNES-309170WULTRA2-LVD SCSI ID #5:ECRIXVXA-1Fast/Ultra-SE SCSI ID #6:No device SCSI ID #7:Array1000 Family SCSI ID #8:No device SCSI ID #9:No device SCSI ID #10:No device SCSI ID #11:No device SCSI ID #12:No device SCSI ID #13:No device SCSI ID #14:No device SCSI ID #15:No device Derek Ragona [EMAIL PROTECTED] wrote: At 12:56 AM 4/9/2007, L Goodwin wrote: I'm having trouble getting FreeBSD 6.2 to boot after installation. After a successful install, (re-)boot always fails with DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER. Make sure your System BIOS is not set to not allow writing to the boot area, often this is called boot sector virus protection in some BIOS's. Go into your SCSI BIOS and make sure it is set to be bootable and has the correct disk set for booting from. - Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot failure after installation
Derek Ragona said: Go into the SCSI BIOS and reset the SCSI to default values. If it still gives the same error on bootup, I would go into the SCSI BIOS and low-level format that first drive, and reinstall FreeBSD. On the reinstall, I would just do the partioning for that drive, and then install everything. That way it will run mostly by itself, you can just check on it for the last few prompts of the install finishing up. Derek, I just did the following, expecting that this would fix the glitch: 1) Reset the SCSI BIOS to Host Adapter Defaults: Matches prior configuration exactly. 2) Run a low-level format on SCSI device #0: No errors. 3) Install FreeBSD 6.2 from scratch. Note: I answered Yes to the prompt ACPI was disabled during boot. Would you like to disable it permanently?. I don't think it will boot if I enable ACPI. RESULT: FAIL - Still getting DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER 4) Ran Verify Disk Media on SCSI ID #0: Disk Verification Complete What else could it possibly be? Are there any other diagnostics I can run? What do you think of the fact that this machine was booting Windows 2000 from the same SCSI drive prior to installing FreeBSD 6.2? In case it matters, all SCSI drives are IBM DNES-309170W ULTRA2-LVD. Thanks! - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]