Re: What is the best way to image copy a FreeBSD system?
On Tue, 15 Feb 2011, Xn Nooby wrote: Is there an image-copy backup program that understands the UFS file-system? Or perhaps there is a better solution on FreeBSD? Perhaps I do not understand what you are trying to do, but dump and restore are the only sort-of bulletproof way to backup (copy, clone, move) and restore filesystems. Recipes can be found in the Handbook so you do not have to work out the switches for common tasks for yourself. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
Jack L. Stone ja...@sage-american.com wrote: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Before actually doing this, you might want to consult a copyright lawyer. Seems to me that merely claiming a more recent copyright date, having made no substantive change to the work for which the copyright is claimed, could be construed as a fraudulent claim. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
my little opinion: first run the changes on a backup, or a copy of the files: this one works under linux bash fedora: how to create a shadow of a folder [same filenames in another dir, but with 0 Byte size] in the original, A directory: find . -type f gt; a.txt B directory: cat ../a.txt | while read file; do if [[ $file = */* ]]; then mkdir -p ${file%/*}; fi; touch $file; done so if something goes wrong, there would be no trouble Be Mon, 14 Feb 2011 15:11:19 -0800 Adam Vande More lt;amvandem...@gmail.comgt; írta On Mon, Feb 14, 2011 at 4:34 PM, Jack L. Stone lt;ja...@sage-american.comgt;wrote: gt; Hello folks: gt; gt; No doubt this will be easy for those with scritping abilities. gt; gt; I have a gazillion files by the same name and each contains the same line gt; requiring the same change. But the problem is that they are in many gt; different directories on a server with numerous domains. While I could gt; handle the change using a single directory within my abilities, I'm unsure gt; how to do a search and replace throughout the many domains and their gt; directories. Don't want to mess up. Here's what I'm trying to do: gt; gt; # find all of the same filenames (copyright.htm) and then replace the year gt; 2010 with 2011 in each file. Once I have a working script, I should be able gt; to add it as a cron job to run on the first day of each new year. gt; gt; Any help appreciated. gt; /usr/ports/misc/rpl -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: delay in boot: ata2: ATA channel 0 on atapci0
On Tue, 15 Feb 2011 04:01:58 + Alexander Best arun...@freebsd.org wrote: simply add options ATA_CAM to your kernel conf and your good to go after building installing the new kernel. To get the benefits of AHCI I think it's better to use the ahci(4) driver instead of the CAM-ATA wrapper. -- Bruce Cran ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD and SSD drives
On 14 February 2011 23:55, Chad Perrin per...@apotheon.com wrote: On Mon, Feb 14, 2011 at 03:32:30PM -0800, Chuck Swiger wrote: From what I understand (a quick review of wikipedia helps :), modern flash cards are now typically rated for 100K writes, include ECC bits to actually correct or at least detect errors and try to remap bad blocks to unused blocks, and implement wear-leveling techniques of varying degrees of effectiveness. Regards, -- -Chuck PS: Reposted from a NetBSD thread, was d5af2a8e-fef0-467e-be4a-b01243e21...@mac.com Just make sure you double-check the rating for the specific SSD storage hardware you're actually using. The fact the state of the art is better now than it was does not mean you are using state of the art hardware. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] We have the main DB server on our portal running directly on some of these http://www.oracle.com/us/043970.pdf. Its a high volume site so we really needed the speed. They are supposed to last 6 years but we shall see. We have the 1 TB version, all mirrored giving us 500 GB. We run solaris 10 on top with zfs, so we should see any data corruption very quickly if it starts to happen. The cluster has been running for about a year now ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
Use of xargs on many files will be much faster than find...exec construction find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' 2011/2/15 erikmccaskey64 erikmccaske...@zoho.com: my little opinion: first run the changes on a backup, or a copy of the files: this one works under linux bash fedora: how to create a shadow of a folder [same filenames in another dir, but with 0 Byte size] in the original, A directory: find . -type f gt; a.txt B directory: cat ../a.txt | while read file; do if [[ $file = */* ]]; then mkdir -p ${file%/*}; fi; touch $file; done so if something goes wrong, there would be no trouble Be Mon, 14 Feb 2011 15:11:19 -0800 Adam Vande More lt;amvandem...@gmail.comgt; írta On Mon, Feb 14, 2011 at 4:34 PM, Jack L. Stone lt;ja...@sage-american.comgt;wrote: gt; Hello folks: gt; gt; No doubt this will be easy for those with scritping abilities. gt; gt; I have a gazillion files by the same name and each contains the same line gt; requiring the same change. But the problem is that they are in many gt; different directories on a server with numerous domains. While I could gt; handle the change using a single directory within my abilities, I'm unsure gt; how to do a search and replace throughout the many domains and their gt; directories. Don't want to mess up. Here's what I'm trying to do: gt; gt; # find all of the same filenames (copyright.htm) and then replace the year gt; 2010 with 2011 in each file. Once I have a working script, I should be able gt; to add it as a cron job to run on the first day of each new year. gt; gt; Any help appreciated. gt; /usr/ports/misc/rpl -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- -- AP ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portsnap fetch corrupt
On Tue, 15 Feb 2011 08:00:55 +0100 Alain G. Fabry alainfa...@belgacom.net articulated: Hello, Whenever I try to do a portsnap, it tels me metadata is corrupt. harley# portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Fri Feb 11 01:08:40 CET 2011 to Tue Feb 15 07:25:54 CET 2011. Fetching 3 metadata patches. done. Applying metadata patches... done. Fetching 3 metadata files... /usr/sbin/portsnap: cannot open d0fcac86ce12456d1bf6a63b3628725c24ea32d3e98d7d71280a7a681e17.gz: No such file or directory metadata is corrupt. I've already removed /var/db/portsnap directory, and redo the portsnap fetch, but the problem remains since several days now. What can I do to get this going again? Running FreeBSD 8.1-RELEASE #0 That annoying problem pops up once or twice a month on my machines also. It appears to be, although I have never taken the time to confirm it, dependent on what URL portsnap is attempting to download from. The problem usually goes away in 24 to 72 hours. As far as I can tell, it does not require any user intervention; although I suppose you could try playing around with it. Honestly, the vicissitude of portsnap is something that I have become accustomed to. I just ran portsnap and got this output: Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Mon Feb 14 06:59:32 EST 2011 to Tue Feb 15 06:30:44 EST 2011. Fetching 3 metadata patches.. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 66 patches.102030405060... done. Applying patches... done. Fetching 4 new ports or files... done. Removing old files and directories... done. Possible the problem has all ready dissipated. -- Jerry ✌ freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Gravity is a myth, the Earth sucks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Monday February 14 2011 19:28:54 ill...@gmail.com wrote: On 14 February 2011 20:00, ajtiM lum...@gmail.com wrote: Hi! I bought HTC Inspire 4G phone and I lie to upload some mp3 files. When I connected a phoe to the USB port I got: da4 at umass-sim1 bus 1 scbus3 target 0 lun 0 da4: HTC Android Phone 0100 Removable Direct Access SCSI-2 device da4: 4 MB/s transfers How can I mount it, please? Probably (though not certainly) mount -t msdosfs /dev/da4s1 /mnt I did what you suggested but it doesn't works: no such fles or directory. Mitja http://jpgmag.com/people/lumiwa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Monday February 14 2011 19:32:49 Chris Hill wrote: On Mon, 14 Feb 2011, ajtiM wrote: I bought HTC Inspire 4G phone and I lie to upload some mp3 files. When I connected a phoe to the USB port I got: da4 at umass-sim1 bus 1 scbus3 target 0 lun 0 da4: HTC Android Phone 0100 Removable Direct Access SCSI-2 device da4: 4 MB/s transfers How can I mount it, please? Your phone might be similar to my HTC Evo. In the phone, I had to go to Settings - Connect to PC and set 'Default connection type' to 'Disk drive'. Once I did that, I could mount the phone in the same manner as a thumb drive. HTH. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] I did and I mount -t msdosfs /dev/da4s1 /mnt and I got no such fles or directory. Thanks. Mitja http://jpgmag.com/people/lumiwa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portsnap fetch corrupt
On Tue, Feb 15, 2011 at 06:49:14AM -0500, Jerry wrote: On Tue, 15 Feb 2011 08:00:55 +0100 Alain G. Fabry alainfa...@belgacom.net articulated: Hello, Whenever I try to do a portsnap, it tels me metadata is corrupt. harley# portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Fri Feb 11 01:08:40 CET 2011 to Tue Feb 15 07:25:54 CET 2011. Fetching 3 metadata patches. done. Applying metadata patches... done. Fetching 3 metadata files... /usr/sbin/portsnap: cannot open d0fcac86ce12456d1bf6a63b3628725c24ea32d3e98d7d71280a7a681e17.gz: No such file or directory metadata is corrupt. I've already removed /var/db/portsnap directory, and redo the portsnap fetch, but the problem remains since several days now. What can I do to get this going again? Running FreeBSD 8.1-RELEASE #0 That annoying problem pops up once or twice a month on my machines also. It appears to be, although I have never taken the time to confirm it, dependent on what URL portsnap is attempting to download from. The problem usually goes away in 24 to 72 hours. As far as I can tell, it does not require any user intervention; although I suppose you could try playing around with it. Honestly, the vicissitude of portsnap is something that I have become accustomed to. I just ran portsnap and got this output: Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Mon Feb 14 06:59:32 EST 2011 to Tue Feb 15 06:30:44 EST 2011. Fetching 3 metadata patches.. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 66 patches.102030405060... done. Applying patches... done. Fetching 4 new ports or files... done. Removing old files and directories... done. Possible the problem has all ready dissipated. -- I just tried and the problem remains, I've seen this for +2 weeks now, that's why I believe it might be another issue. harley# rm -R /var/db/portsnap harley# mkdir /var/db/portsnap harley# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching public key from portsnap5.FreeBSD.org... done. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Fetching snapshot metadata... done. Fetching snapshot generated at Tue Feb 15 01:11:54 CET 2011: 6894de6c5ce6ec6f3d8edb291e78cfb62c96f77a944887100% of 64 MB 871 kBps 00m00s Extracting snapshot... done. Verifying snapshot integrity... done. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Tue Feb 15 01:11:54 CET 2011 to Tue Feb 15 12:42:07 CET 2011. Fetching 3 metadata patches. done. Applying metadata patches... done. Fetching 3 metadata files... /usr/sbin/portsnap: cannot open 9625c296a4dfb1bc8e285b117c77ea6a9ce389dba368b91fa39918d2fe208d5b.gz: No such file or directory metadata is corrupt. Thanks, Jerry ??? freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Gravity is a myth, the Earth sucks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Stuck
Where do I locate the kernel config file? Adding options INCLUDE_CONFIG_FILE to /sys/i386/conf/GENERIC or /sys/amd64/conf/ allows config -x /boot/kernel/kernel Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Redux
On Mon, 14 Feb 2011 20:25:11 -0700 (MST), Warren Block wbl...@wonkity.com wrote: Labels just provide an alternate way to refer to a slice, or partition, or filesystem. They don't replace the normal device names. It's worth mentioning that the /etc/fstab mechanisms for mounting can work with ANY of the identification names for meddia at the same time, this means you can mount one drive (or even partition) as /dev/ad0s1d, the next one as /dev/label/home, the next one as /dev/ufsid/1234567890 and so on. One doesn't replace the other. The really handy thing about labels is that the drive's position during the recognition by the system (ad0, ad1, ad2, ...) doesn't matter. Say you move the hard drive from a defective controller (ad0) to a PCI replacement controller (ad4), labels won't change, and booting would happen as usual. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Tue, 15 Feb 2011 05:57:33 -0600, ajtiM lum...@gmail.com wrote: I did what you suggested but it doesn't works: no such fles or directory. According to your dmesg output da4 at umass-sim1 bus 1 scbus3 target 0 lun 0 da4: HTC Android Phone 0100 Removable Direct Access SCSI-2 device da4: 4 MB/s transfers the da4 device is the correct one. Check which access files are created: # ls -l /dev/da4* You can check the partitioning of the da4 device with # fdisk da4 which should show you what kind of partitions are available to access, and what type they are of. If you see a FAT partition, it will probably be /dev/da4s1, so (including security means, just for testing): # mount -t msdosfs -o ro /dev/da4s1 /mnt should mount it read-only. You can also use a per-filsystem identification using # file - /dev/da4s1 for proper identification (at least this works with partitions containing UFS filesystems, no idea about FAT stuff). Check dmesg output in parallel to see if the Android didn't cut the wire due to a timeout. Take one step after another: First identify what is available, then identify it, and finally mount it for testing. If it all works, make a permanent option (e. g. in /etc/fstab) for it if you want. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Tue, 15 Feb 2011 14:51:39 +0100 Polytropon free...@edvax.de wrote: You can check the partitioning of the da4 device with # fdisk da4 gpart show da4 is the modern way of doing this. -- Bruce Cran ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Tue, 15 Feb 2011 13:58:24 +, Bruce Cran br...@cran.org.uk wrote: On Tue, 15 Feb 2011 14:51:39 +0100 Polytropon free...@edvax.de wrote: You can check the partitioning of the da4 device with # fdisk da4 gpart show da4 is the modern way of doing this. Yes, if supported by the system's kernel configuration. I'm not sure if it is part of the GENERIC kernel in 8+. On systems without GEOM functionality, it won't work. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
At 12:41 AM 2/15/2011 -0800, per...@pluto.rain.com wrote: Jack L. Stone ja...@sage-american.com wrote: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Before actually doing this, you might want to consult a copyright lawyer. Seems to me that merely claiming a more recent copyright date, having made no substantive change to the work for which the copyright is claimed, could be construed as a fraudulent claim. ___ Wow! You wandered way off the trail. I own the tech magazine I founded 23 years ago and we publish monthly to 214 countries. I hav also practiced law for my companies for nearly 40 years, so quit worrying about that stuff. I just need script help, not other than that. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
Hi, per...@pluto.rain.com wrote: Jack L. Stone ja...@sage-american.com wrote: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Before actually doing this, you might want to consult a copyright lawyer. Seems to me that merely claiming a more recent copyright date, having made no substantive change to the work for which the copyright is claimed, could be construed as a fraudulent claim. One might also want to Not delete the earliest Copyright date. Numerous commercial firms lists several copyright years in same file or product start up. When I was editing some of my stuff recently, I decided to leave first last year in, dont know if thats correct though. I suppose if one really wanted to know what's correct, one could search read Bern (Switzerland) International Copyright Convention. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
On Tue, 15 Feb 2011 12:57:12 +0300 Peter Andreev andreev.pe...@gmail.com wrote: Use of xargs on many files will be much faster than find...exec construction This is a surprisingly common myth. exec can pass single or multiple arguments according to whether you use ; or + find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' This is much less safe on FreeBSD than it is with the GNU versions because print0 is required for paths with spaces. find ... -print0 | xargs -0 ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What is the best way to image copy a FreeBSD system?
On Tue, Feb 15, 2011 at 01:53:44AM -0500, Xn Nooby wrote: On Linux I use clonezilla, which understands the EXT3 filesystem, and it can skip unused space (I'm using about 3GB out of 1TB). On FreeBSD, I have to fill the 1TB drive with zero-filled files, then delete them, on each partiton, since CloneZilla uses DD+gzip on the entire drive. I like to make image copies of new systems, so I can revert back to my starting point in case I break it, but CloneZilla is taking 9 hours to image the drive. I can re-install a lot faster than that. My suggestion would be to do the slicing/partitioning on the copy and then use dump/restore on each partition from the new drive to the copy drive. A dd image is not really all that good a way to do it. It just produces a sector by sector copy which is not efficient. The dump/restore produces what you want which is an efficient runable system on the copy disk. Once you get the dump/restore finished, you could use rsync periodically to keep it up to date. Actually you could use rsync to do all the copying on to the prepartitioned copy drive, but I would prefer dump/restore. I normally store my image copies on a Samba share on another system, they are stored as files. I am not copying to another raw drive. In that case, use dump(8) to create those files and store them where-ever you wish. Is there an image-copy backup program that understands the UFS file-system? Or perhaps there is a better solution on FreeBSD? As mentioned above, dump(8)/restore(8) is made for that. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What is the best way to image copy a FreeBSD system?
On Tue Feb 15 11, Jerry McAllister wrote: On Tue, Feb 15, 2011 at 01:53:44AM -0500, Xn Nooby wrote: On Linux I use clonezilla, which understands the EXT3 filesystem, and it can skip unused space (I'm using about 3GB out of 1TB). On FreeBSD, I have to fill the 1TB drive with zero-filled files, then delete them, on each partiton, since CloneZilla uses DD+gzip on the entire drive. I like to make image copies of new systems, so I can revert back to my starting point in case I break it, but CloneZilla is taking 9 hours to image the drive. I can re-install a lot faster than that. My suggestion would be to do the slicing/partitioning on the copy and then use dump/restore on each partition from the new drive to the copy drive. A dd image is not really all that good a way to do it. It just produces a sector by sector copy which is not efficient. The dump/restore produces what you want which is an efficient runable system on the copy disk. Once you get the dump/restore finished, you could use rsync periodically to keep it up to date. Actually you could use rsync to do all the copying on to the prepartitioned copy drive, but I would prefer dump/restore. I normally store my image copies on a Samba share on another system, they are stored as files. I am not copying to another raw drive. In that case, use dump(8) to create those files and store them where-ever you wish. Is there an image-copy backup program that understands the UFS file-system? Or perhaps there is a better solution on FreeBSD? As mentioned above, dump(8)/restore(8) is made for that. +1 i used something like (dump -L -0f - /)|(cd /mnt/image ; restore -rf -) to migrate my root partition onto a new disk. just be sure to *not* use pax(1). i fell for it once and ran into a lot of problems, because it doesn't preserve all data (such as chflags(1) e.g.). cheers. alex ps: if you still want to do a sector by sector copy, have a look at recoverdisk(1). it's really great in trying to recover every last bit on semi broken devices. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- a13x ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What is the best way to image copy a FreeBSD system?
On Tue, 15 Feb 2011, Xn Nooby wrote: On Linux I use clonezilla, which understands the EXT3 filesystem, and it can skip unused space (I'm using about 3GB out of 1TB). On FreeBSD, I have to fill the 1TB drive with zero-filled files, then delete them, on each partiton, since CloneZilla uses DD+gzip on the entire drive. Some of the development versions of Clonezilla do understand UFS. It's been a few months since I looked at this, and I need to go back and figure out exactly which. Is there an image-copy backup program that understands the UFS file-system? Or perhaps there is a better solution on FreeBSD? Others have already mentioned good points of dump and restore. They can be used even on mounted partitions, so the system can stay up while a backup is running. Some scripting could make restores as easy as Clonezilla. A bare-metal restore could be made from a modified FreeBSD install CD. Partition the target disk (interactively or not), locate the dump files, restore them, then do any interactive fixup needed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
At 02:53 PM 2/15/2011 +, RW wrote: On Tue, 15 Feb 2011 12:57:12 +0300 Peter Andreev andreev.pe...@gmail.com wrote: Use of xargs on many files will be much faster than find...exec construction This is a surprisingly common myth. exec can pass single or multiple arguments according to whether you use ; or + find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' This is much less safe on FreeBSD than it is with the GNU versions because print0 is required for paths with spaces. find ... -print0 | xargs -0 ... Forgot to mention: if the string to replace on the text line of the files includes a connecting dash, like 1988-2010, I suppose rather than using just the 2010/2011 perhaps should be 1988-2010/1988-2011 Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
--On February 15, 2011 12:57:12 PM +0300 Peter Andreev andreev.pe...@gmail.com wrote: Use of xargs on many files will be much faster than find...exec construction find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' I believe you, but can you explain why this is true? What makes xargs faster than exec? -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead. Thomas Jefferson There are some ideas so wrong that only a very intelligent person could believe in them. George Orwell ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What is the best way to image copy a FreeBSD system?
On 01/-10/-28163 20:59, Warren Block wrote: On Tue, 15 Feb 2011, Xn Nooby wrote: On Linux I use clonezilla, which understands the EXT3 filesystem, and it can skip unused space (I'm using about 3GB out of 1TB). On FreeBSD, I have to fill the 1TB drive with zero-filled files, then delete them, on each partiton, since CloneZilla uses DD+gzip on the entire drive. Some of the development versions of Clonezilla do understand UFS. It's been a few months since I looked at this, and I need to go back and figure out exactly which. I tried a version of Clonezilla that understood ufs and it was really fast copying a slice: It did not understand disklabels and copied only the a partition pretending that it did the entire slice. Did you try to copy a slice with multiple partitions? Cheers, Jan Henrik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
Paul Schmehl pschmehl_li...@tx.rr.com writes: --On February 15, 2011 12:57:12 PM +0300 Peter Andreev andreev.pe...@gmail.com wrote: Use of xargs on many files will be much faster than find...exec construction find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' I believe you, but can you explain why this is true? What makes xargs faster than exec? Classically, exec always spun off a new process for each exec (i.e., every single file). For years now, find(1) has had a POSIX-standard syntax (ending the command with a '+' syntax for the end of an -exec line, which does pretty much the same thing in a single command. Sometimes, the command being used only handles one filename at a time, and -exec is necessary. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What is the best way to image copy a FreeBSD system?
On Tue, 15 Feb 2011, Jan Henrik Sylvester wrote: On 01/-10/-28163 20:59, Warren Block wrote: On Tue, 15 Feb 2011, Xn Nooby wrote: On Linux I use clonezilla, which understands the EXT3 filesystem, and it can skip unused space (I'm using about 3GB out of 1TB). On FreeBSD, I have to fill the 1TB drive with zero-filled files, then delete them, on each partiton, since CloneZilla uses DD+gzip on the entire drive. Some of the development versions of Clonezilla do understand UFS. It's been a few months since I looked at this, and I need to go back and figure out exactly which. I tried a version of Clonezilla that understood ufs and it was really fast copying a slice: It did not understand disklabels and copied only the a partition pretending that it did the entire slice. Did you try to copy a slice with multiple partitions? AFAIR, yes, and a restore seemed okay afterwards. But again, that was months ago, and details have already become fuzzy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Stuck
On Feb 15, 2011, at 4:25 AM, Julian H. Stacey wrote: Where do I locate the kernel config file? Adding options INCLUDE_CONFIG_FILE to /sys/i386/conf/GENERIC or /sys/amd64/conf/ allows config -x /boot/kernel/kernel NOTE: Slightly OT, but figured it was worth the post. As a side-note, the config-file will be cleaned up before being embedded into the kernel. Meaning config -x `sysctl -n kern.bootfile` will rarely ever match the config that was used to generate the kernel in the first place. Specifically, comments are removed, and if you've nested configs using the include statement, redundant and/or conflicting directives will be consolidated. If you instead wish to embed the kernel config AS-IS, comments and structure remaining in-tact, you should instead: cd /sys/ARCH/conf config -C -g CONFIG NOTE: `/sys' ought to be a symbolic link to `/usr/src/sys' NOTE: ARCH is to be replaced with something like i386, amd64, etc. NOTE: CONFIG is to be replaced with something like GENERIC, PAE, MYCUSTOMKERNELCONFIG, etc. Then one simply does the following to compile the kernel: cd ../../compile/CONFIG make depend make BUT... then again not everybody: a. compiles their own custom kernels b. uses a custom config c. needs to be able to extract the config verbatim from the compiled kernel YNMV (Your Needs May Vary). -- Devin Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - END TRANSMISSION - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Invitation (waaaaay off-topic)
On Tue, Feb 15, 2011 at 01:48:18AM +, Simon Tibble wrote: On 14/02/11 23:42, Chad Perrin wrote: Broken. Won't work. It's too bureaucratic for too little (immediate) return to catch on, and its bureaucracy would guarantee long-term corruption. This sort of idea will take years to catch on and will be a gradual process. In fact, it has already started in the (primitive) form of free open-source software. Open source software is not equivalent to what you propose. Open source software is an ad-hoc gift economy and emergent reputation-based currency system, more in line with what I described below than what you describe. The key factor here is that it is distributed and emergent rather than a centralized command economy, and it pains me to see you periodically trying to distract people from participation in that culture. As for the corruption, at least in a organised contribution based system all data will be available for all to see, unlike the corruption we have today. Personal preference: if I can have check-able corruption or hidden corruption - I'd choose check-able every time. In fact, I think you'd find people would come to the forefront by actually boasting they are the most sound people with solid principles as a result of it being open for audit by anyone at anytime. And because it relies on the opinion of others it would be a better framework to build on (see eBay's feedback system as an introduction to a the value of mass-opinion). Given the choice between emergent systems that self-correct and constructed systems that require someone in a position of power to be honest and trustworthy, I choose the former. Open source software development such as goes on in the FreeBSD project offer substantial evidence in favor of the value of emergent systems -- in part because it is not *only* the FreeBSD project that offers such evidence. The benefits of a gift economy and reputation-based currency in a culture of free innovation are dependent, here, on the fact that FreeBSD isn't the One True OS, and isn't the state religion of open source development. We'll probably evolve semi-naturally to a reputation based economy as advancing technology eliminates a lot of basic-needs scarcity, but that's just speculation. In the meantime, money is really nothing but a scalable way to lubricate the process of trade. The more you centralize the management of money (or its replacement), the less efficiently it works -- and trying to quantify contribution through some uniform system as you suggest would require absurd levels of centralization. Yes, it would be absurd to introduce it over night, but not more absurb than the proposed Bankor currency headed our way. It's probably just about the same amount of admin, only with a website it would eliminate the need for turning trees into notes/paper. You missed my point. See above. Also, the people who control the current money efforts conduct their affairs behind closed doors and avoid scrutiny. In an open system people will be able to not only see the workings (the maths behind it) and they will also be able to vote on it and change it (mass opinion outweighs the individual). The problem in this case is not currency -- it's centralized command of what constitutes currency. If you really want to do away with money, the best way to do it is to advance the state of the art of automation technology. You can do this by contributing expertise, time, and money (in decreasing order of importance) to copyfree [0] and open source [1] software development projects such as FreeBSD. Trying to distract the people contributing to such projects with pie-in-the-sky manifestations of song lyrics from the early '70s [2] is actually counterproductive to that aim. Whilst I agree with you on most of this, I want to point out that the greatest portion of the available workforce are in front of Facebook drooling over Justin Beiber. The sooner the masses are awoken to the truth and shown that a different way of living is even possible, only then will we move in the most positive direction at the fastest speed possible. Hence, some think I spam simply because I am part of many who are attempting to raise awareness of this issue. It's still spamming -- especially given that the primary effect of your efforts is to distract people from doing the good work of advancing the state of the art of copyfree and open source software like FreeBSD. There really is nothing more important that this non-utopian alternative life choice. I'd say that giving people their own choices is far more important than indoctrinating everyone in your choices -- especially when their own choices involve supporting the FreeBSD project, which should be generally in line with supporting your overall goals anyway, as far as I've been able to determine so far. I believe American's use the word kook. Is
Re: Stuck
NOTE: Slightly OT, but figured it was worth the post. As a side-note, the config-file will be cleaned up before being embedded into the kernel. Meaning config -x `sysctl -n kern.bootfile` will rarely ever match the config that was used to generate the kernel in the first place. Specifically, comments are removed, and if you've nested configs using the include statement, redundant and/or conflicting directives will be consolidated. If you instead wish to embed the kernel config AS-IS, comments and structure remaining in-tact, you should instead: cd /sys/ARCH/conf config -C -g CONFIG NOTE: `/sys' ought to be a symbolic link to `/usr/src/sys' NOTE: ARCH is to be replaced with something like i386, amd64, etc. NOTE: CONFIG is to be replaced with something like GENERIC, PAE, MYCUSTOMKERNELCONFIG, etc. Then one simply does the following to compile the kernel: cd ../../compile/CONFIG make depend make BUT... then again not everybody: a. compiles their own custom kernels b. uses a custom config c. needs to be able to extract the config verbatim from the compiled kernel YNMV (Your Needs May Vary). -- Devin Not off topic at all, and much appreciated. A lot of what has been offered as a result of my OP is a bit over my head at this stage of the game, but much isn't. I'm gaining on it! Cheers... Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Tuesday February 15 2011 07:51:39 Polytropon wrote: On Tue, 15 Feb 2011 05:57:33 -0600, ajtiM lum...@gmail.com wrote: I did what you suggested but it doesn't works: no such fles or directory. According to your dmesg output da4 at umass-sim1 bus 1 scbus3 target 0 lun 0 da4: HTC Android Phone 0100 Removable Direct Access SCSI-2 device da4: 4 MB/s transfers the da4 device is the correct one. Check which access files are created: # ls -l /dev/da4* You can check the partitioning of the da4 device with # fdisk da4 which should show you what kind of partitions are available to access, and what type they are of. If you see a FAT partition, it will probably be /dev/da4s1, so (including security means, just for testing): # mount -t msdosfs -o ro /dev/da4s1 /mnt should mount it read-only. You can also use a per-filsystem identification using # file - /dev/da4s1 for proper identification (at least this works with partitions containing UFS filesystems, no idea about FAT stuff). Check dmesg output in parallel to see if the Android didn't cut the wire due to a timeout. Take one step after another: First identify what is available, then identify it, and finally mount it for testing. If it all works, make a permanent option (e. g. in /etc/fstab) for it if you want. fdisk da4 *** Working on device /dev/da4 *** parameters extracted from in-core disklabel are: cylinders=967 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=967 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) start 8192, size 15536128 (7586 Meg), flag 0 beg: cyl 0/ head 130/ sector 3; end: cyl 967/ head 150/ sector 15 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED I don't know how tou mount. I like to reach a memory card for upload mp3 from computer. Thank. Mitja http://jpgmag.com/people/lumiwa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Tue, Feb 15, 2011 at 6:03 AM, ajtiM lum...@gmail.com wrote: I did and I mount -t msdosfs /dev/da4s1 /mnt and I got no such fles or directory. On my Optimus S, you must force GEOM to retaste the media after making the SD card available to mount via the android interface, eg: true /dev/da4 -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What is the best way to image copy a FreeBSD system?
On Tue, 15 Feb 2011, Jan Henrik Sylvester wrote: I tried a version of Clonezilla that understood ufs and it was really fast copying a slice: It did not understand disklabels and copied only the a partition pretending that it did the entire slice. Did you try to copy a slice with multiple partitions? Since my T42 is handy, I'm testing the latest clonezilla-1.2.7-11-i686 image on it, PXE-booted. It shows this sliced/partitioned disk as ClonezillaFreeBSD ----- sda (60.0GB... sda1 (60.0GB_ufs... / sda5 (ufs... / sda6 ((In_HTS... swap sda7 (ufs... /var sda8 (ufs... /tmp sda9 (ufs... /usr savedisk will back up all of these from sda1 onwards, so there will be two copies of / (sda1 and sda5). Same size but different md5s, no idea what's going on there. In the saveparts menu, the appropriate partitions can be picked by just choosing all the ones showing ufs in the first part of the description, but Clonezilla will only restore them to existing partitions. restoredisk doesn't recognize a backup directory created with saveparts. Using a VirtualBox system with a 62G disk, Clonezilla restored all the partitions and the boot block. The restored system boots and seems fine. It really ought to be verified with mtree checksums or something similar. There are Clonezilla mailing lists, and anyone who wants to use it with FreeBSD or other UFS filesystems should join. (I don't generally use Clonezilla for FreeBSD, and my project list is already too long, so I haven't, but still...) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: android
On Tuesday February 15 2011 16:49:17 Adam Vande More wrote: On Tue, Feb 15, 2011 at 6:03 AM, ajtiM lum...@gmail.com wrote: I did and I mount -t msdosfs /dev/da4s1 /mnt and I got no such fles or directory. On my Optimus S, you must force GEOM to retaste the media after making the SD card available to mount via the android interface, eg: true /dev/da4 Thank you very much. Now I can mount it. Mitja http://jpgmag.com/people/lumiwa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
google browser?
Anybody know how to use this Chrome? I don't see any places to plug in players ... like vlc, etc. Can't find and back/Forward icons, nothing like firefoxI give it all three thumbs down. Would still like to see GOOG have its own twitter and facebook tho. Anybody else have the browser on FBSD?? -g -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org