Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
ata1.00: failed command: READ DMA ata1.00: cmd c8/00:80:00:3f:c1/00:00:00:00:00/e0 tag 0 dma 65536 in res 51/84:4f:00:3f:c1/00:00:00:00:00/e0 Emask 0x10 (ATA bus error) ata1.00: status: { DRDY ERR } ata1.00: error: { ICRC ABRT } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1: EH complete ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 I think you have driver issues. Might also be the cabling, but I doubt it as faulty SATA cables are in my experience quite rare. WD drives are known not to get along too well with VIA SATA1 controllers: http://www.viaarena.com/forums/showthread.php?t=38871 http://forums.gentoo.org/viewtopic-t-794855.html What kernel version are you using? What does the kernel say when it first detects the disk? Do you get the same errors under a recent kernel (try the latest gentoo install cd) ? My experience with WD advanced format drives has been positive so far, especially considering how cheap they are... The only gripe I have is that they report not only having a 512B *logical* sector size in the response to ATA INFO commands (which is fine, as they have a translation layer), but also a 512B *physical* sector size, which is wrong and causes partitioning tools to use the wrong alignment. All the five 1TB drives I have behave this way, and from what I read this is not an isolated behavior... andrea
[gentoo-user] binary dependencies [WAS: libpng12 is missing]
* András Csányi sayusi.a...@gmail.com wrote: Hi folks, It looks like the libpng package makes problem for other's including me... :$ http://bugs.gentoo.org/show_bug.cgi?id=319029 IMHO this is a generic problem: when multiple slots exist, portage doesnt seem to know which slot/version of some lib a package was actually built against (that's also why we need things like revdep-rebuild). A clean and generic solution would IMHO be if that information is recorded @ /var/db/pkg/*. In case of some depenency exists in different slots, the installed binary package record also contains a dependency to the lib's slot the package was actually built against. This way, old versions/slots still in use should never be uninstalled. In another pass we could scan for packages which could be rebuilt against a newer lib version, or maybe have it as an new emerge option (like --newuse for changed usedflags). cu -- - Enrico Weigelt== metux IT service - http://www.metux.de/ - Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ -
Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
On Samstag 29 Mai 2010, Andrea Conti wrote: ata1.00: failed command: READ DMA ata1.00: cmd c8/00:80:00:3f:c1/00:00:00:00:00/e0 tag 0 dma 65536 in res 51/84:4f:00:3f:c1/00:00:00:00:00/e0 Emask 0x10 (ATA bus error) ata1.00: status: { DRDY ERR } ata1.00: error: { ICRC ABRT } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1: EH complete ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 I think you have driver issues. Might also be the cabling, but I doubt it as faulty SATA cables are in my experience quite rare. in my experience they are everything but rare. I had several defective cables - myself and friends of mine.
Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
Andrea Conti a...@alyf.net [10-05-29 10:08]: ata1.00: failed command: READ DMA ata1.00: cmd c8/00:80:00:3f:c1/00:00:00:00:00/e0 tag 0 dma 65536 in res 51/84:4f:00:3f:c1/00:00:00:00:00/e0 Emask 0x10 (ATA bus error) ata1.00: status: { DRDY ERR } ata1.00: error: { ICRC ABRT } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1: EH complete ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 I think you have driver issues. Might also be the cabling, but I doubt it as faulty SATA cables are in my experience quite rare. WD drives are known not to get along too well with VIA SATA1 controllers: http://www.viaarena.com/forums/showthread.php?t=38871 http://forums.gentoo.org/viewtopic-t-794855.html What kernel version are you using? What does the kernel say when it first detects the disk? Do you get the same errors under a recent kernel (try the latest gentoo install cd) ? My experience with WD advanced format drives has been positive so far, especially considering how cheap they are... The only gripe I have is that they report not only having a 512B *logical* sector size in the response to ATA INFO commands (which is fine, as they have a translation layer), but also a 512B *physical* sector size, which is wrong and causes partitioning tools to use the wrong alignment. All the five 1TB drives I have behave this way, and from what I read this is not an isolated behavior... andrea Hi Andrea, I tried these kernels (all vanilla): 2.6.32.13 2.6.33.5 2.6.34.0 This is, what I cut from the dmegs out (I hope to get all relevant infos...if you missing something, I save the complete dmesg output to disk for later refrence...): sata_via :00:0f.0: version 2.6 sata_via :00:0f.0: PCI INT B - GSI 20 (level, low) - IRQ 20 sata_via :00:0f.0: routed to hard irq line 10 scsi0 : sata_via PM: Adding info for scsi:host0 PM: Adding info for No Bus:host0 scsi1 : sata_via PM: Adding info for scsi:host1 PM: Adding info for No Bus:host1 ata1: SATA max UDMA/133 cmd 0xd000 ctl 0xc800 bmdma 0xb800 irq 20 ata2: SATA max UDMA/133 cmd 0xc400 ctl 0xc000 bmdma 0xb808 irq 20 pata_via :00:0f.1: version 0.3.4 pata_via :00:0f.1: PCI INT A - GSI 20 (level, low) - IRQ 20 scsi2 : pata_via PM: Adding info for scsi:host2 PM: Adding info for No Bus:host2 scsi3 : pata_via PM: Adding info for scsi:host3 PM: Adding info for No Bus:host3 ata3: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14 ata4: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xfc08 irq 15 skge :00:0a.0: PCI INT A - GSI 17 (level, low) - IRQ 17 skge :00:0a.0: PCI: Disallowing DAC for device skge: 1.13 addr 0xf9c0 irq 17 chip Yukon-Lite rev 9 PM: Adding info for No Bus:eth0 skge :00:0a.0: eth0: addr 00:15:f2:18:b0:20 sky2: driver version 1.27 usbcore: registered new interface driver usblp Aligment: I used fdisk -cu -S 56 /dev/sda to align my partitions, which seems to work. Do I have to replace my motherboard/graphics card/RAM/... only because WD cannot talk to and/or vice versa? By the way: Can I use PCI cards on newer motherboards with PCIe-slots??? Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
[gentoo-user] rsync to a USB stick
Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] rsync to a USB stick
On Sat, May 29, 2010 at 2:01 AM, Mick michaelkintz...@gmail.com wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? -- Regards, Mick Short answer man rsync You'll find everything you need. It is possible to sync files incrementally with rsync I just can't remember how right now Sorry really tired right now. Im sure someone will come a long with a more appropriate answer.
Re: [gentoo-user] rsync to a USB stick
On Saturday 29 May 2010 10:30:54 Alan McKinnon wrote: On Saturday 29 May 2010 11:01:39 Mick wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? Arg, typo in previous post. I meant what filesystem is on the USB stick? FAT32 Disk /dev/sdb: 8019 MB, 8019509248 bytes 20 heads, 16 sectors/track, 48947 cylinders Units = cylinders of 320 * 512 = 163840 bytes Disk identifier: 0xc3072e18 Device Boot Start End Blocks Id System /dev/sdb1 * 1 48948 7831512c W95 FAT32 (LBA) -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] compiz-fusion
Hi all, I try to set up compiz-fussion with GNOME desktop using information from wiki page ( http://en.gentoo-wiki.com/wiki/Compiz-Fusion). Compiz seems to work , however, I experience the rendering problem and the title bar of opened applications are missing. I am using compiz version 0.8.6. Any suggestion would be appreciated. Thanks in advance Hung
Re: [gentoo-user] [OT] I could use some OT coaching... retrieve laptop os remotely
On Saturday 29 May 2010 03:42:51 Harry Putnam wrote: Can anyone offer a suggestion as to how I can backup a disk on a remote laptop running windows vista. I've utterly destroyed the laptops screen, even plugging it into an external monitor... fails. vnc access fails as well. Isn't this an indication that more than the screen was damaged? Did you try pressing Fn+F4 or whatever the appropriate key is to activate the external monitor? Did you try rebooting just for good measure? The VNC access may fail if you have set it up to need confirmation by a currently logged in user, before a remote connection is allowed. Have you tried using rdesktop from a linux machine? That should allow you to access your Vista remotely (unless you had seriously locked down who can remotely access your MSWindows OS) as a normal user. However due to having installed an sshd daemon with cygwin, I can ssh to the host. I thought maybe I'd be able to run a version of Norton ghost that is installed on the laptop... by ssh in, and from a cygwin shell, but that doesn't appear to work. I'm not sure if ghost 14 can even be run from a command line. I guess I'd like to clone the disk so I'd have access to all of it, and could even put the clone on another host and boot it. It is unlikely that you will be able to do this with Vista. The hardware on which the Vista installation was performed will not allow you to boot it on different hardware, at least not until you re-register the product by re- entering your Vista registration code. As I am guessing that the Vista installation was an OEM job, you will find that you cannot register it for different hardware. Then MSWindows will kindly ask you if you want to purchase another registration ... If I were to dd it to another disk, that is bigger than the remote laptops disk... Would that create a a bootable disk? No, see above. Any suggestions that employ linux/unix tools? Can `dd' do something like this? Or I guess really it would be cygwin `dd' doing it. Are there any tools that can create a disk image of a remote disk? There are many cloning solutions and some of them come with LiveCDs. I would recommend SystemRescueCD with an external terminal, which also has partimage on it and you can use it to create an image of the drive on a remote server. I've found that neither norton ghost 14 or 15 will do it if the disk is on a remote host. In fact neither of them will even backup files if they are remote... I mean if the source files are remote. They can backup onboard files to remote targets... but not the other way round. Of course I can rsync the files and save the data that way, but I'd like to save the disk as a bootable os if possible. Notwithstanding the above, I'd try to use rdesktop, or krdc to login remotely to your Vista box. It may also be worth looking at ebay or the OEM's website to see now much a replacement screen costs. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] rsync to a USB stick
Mick michaelkintz...@gmail.com [10-05-29 11:12]: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? -- Regards, Mick Hi, this is really a shot in the dark, but... Would it possible, that the USB-stick is carrying a filesystem, which lacks the support of enough ijnformations, rsync needs to operate corrrectly (especially: file times? Concerning the wear out of usb-sticks (and flash media in general): There are specialised filesystems out there (dont remember what exactly their names were), which take care of a flashy environment (spread writes to different parts each time), HTH! Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] rsync to a USB stick
On Saturday 29 May 2010 11:01:39 Mick wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? What filesystem is on the disk? If it's FAT, rsync will not benefit as FAT does not have any notion of the metadata that is on the PCs disk -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] rsync to a USB stick
On Saturday 29 May 2010 11:01:39 Mick wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? Arg, typo in previous post. I meant what filesystem is on the USB stick? -- alan dot mckinnon at gmail dot com
[gentoo-user] Re: rsync to a USB stick
Mick wrote: Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? See the --modify-window option in the rsync man page. In particular, the resolution of timestamps on FAT is 2 seconds, so you may want to use --modify-window=1. -- Remy signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: rsync to a USB stick
On Saturday 29 May 2010 11:34:25 Remy Blank wrote: Mick wrote: Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? See the --modify-window option in the rsync man page. In particular, the resolution of timestamps on FAT is 2 seconds, so you may want to use --modify-window=1. Nice one! Will try this next time and see if it makes a difference. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] rsync to a USB stick
On Sat, 29 May 2010 10:01:39 +0100 Mick wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? -- Regards, Mick For years I've used rsync -Cavzu ... to do updates. That's been my mantra for so long I don't recall what each option does do know that it updates (rather than copies everything). Indeed flash drives _do_ have a lifetime. My recollection is that it's in the thousands of writes if not the hundreds of thousands of writes. Assuming a life of 1,000 writes and you backup once daily, that's 3 years of backups. 10,000 writes would be 30 years. Of course if you backup every hour, 10,000 writes is a year (or so). Honestly, I've stopped worrying about manual copies to flash drives. Of course if you have a program that writes to a flash drive frequently, that's a very different story ... HTH, David
[gentoo-user] replacement for pdftk
After a recent gcc upgrade (4.3.4 - 4.4.3-r2) on an amd64, pdftk won't compile anymore. Although I like the pdtk I'm looking for a replacement as pdft is no more maintained (last release November 28, 2006). Any suggestions for a good command line tool to manage PDFs like pdftk (split (burst) a PDF, combine two or more PDFs, Rotate PDFs and so on)? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] compiz-fusion
On Sat, May 29, 2010 at 4:14 PM, Hung Dang hungp...@gmail.com wrote: Hi all, I try to set up compiz-fussion with GNOME desktop using information from wiki page ( http://en.gentoo-wiki.com/wiki/Compiz-Fusion). Compiz seems to work , however, I experience the rendering problem and the title bar of opened applications are missing. I am using compiz version 0.8.6. Any suggestion would be appreciated. Thanks in advance Hung Did you set 'window decorator' to 'gtk-window-decorator --replace' or 'emerald --replace' in compiz? -- Nguyễn Bảo Ngọc
[gentoo-user] Re: [OT] I could use some OT coaching... retrieve laptop os remotely
Mick michaelkintz...@gmail.com writes: Isn't this an indication that more than the screen was damaged? Did you try pressing Fn+F4 or whatever the appropriate key is to activate the external monitor? Did you try rebooting just for good measure? You can disregard my other response. It turns out the laptop does have that very key combo to use external monitor, so I'm logged in to the os thru that mechanism and can now create an image with onboard software. Thanks Mick... I didn't know or remember there being such a switch but a quick google confirmed your first thought of Fn+F4, and looking hard at the F4 key, I see a representation of something that could be a monitor with ON/OFF images portrayed. Thanks
Re: [gentoo-user] xargs and rm funkiness
On Wednesday 26 May 2010 06:42:08 Joerg Schilling wrote: Patrick Holthaus patrick.holth...@uni-bielefeld.de wrote: You might try: find -name *.ext -print0 | xargs -0 rm But this is non-standard. In what way is this non-standard? That is, what standard is it contrary to? TMTOWTDI (There's More Than One Way To Do It) applies just as strongly to *nix in general as it does to Perl. When there are multiple ways to do something, it's often either a user preference issue or the method should be decided based upon the particular details of the desired result. -exec may be a POSIX standard function, but that doesn't mean it must be used over other options or you're breaking the standard. UNIX introduced -exec {} + 1990 (when David Korn rewrote find(1) and it is in the POSIX standared since some time. -exec (which potentially has problems with race conditions - -execdir should almost always be used instead) runs the command once for each file found. xargs will call the command once for as many files as it can fit on the command line. For some instances, like rm, that probably isn't significant. But if you're calling a complex process with lots of files, the overhead of starting the many extra processes may be significant. -- You have attributed conditions to villainy that simply result from stupidity. - Robert A. Heinlein
[gentoo-user] Slim hassle...to login or not to login
Hi, while installing a new system from ground up on my new harddisc I came accross a silly problem: I have setup X and slim as login manager. I installed openbox (no kde/gnome) as session manager. Slim starts...and: The keyboard and the mouse are not responding... Same happens when I start plain X as root. Screen remains black and I have to use the sysreq-keys to get my box back to normal... The X-logfile shows as only Error, that the GLX-module could not be found. I am using nvidia-drivers and reinstalled them as adviced but the effect remains the same. hald is running. fonts are installed (at least the default ones). Also installed are: x11-drivers/xf86-input-evdev Generic Linux input driver x11-drivers/xf86-input-keyboard Keyboard input driver x11-drivers/xf86-input-mouse X.Org driver for mouse input devices eselect opengl set nvidia is done. What is missing? Why dies this not work (my old system running on the same hardware using the same setup in principle has no problem at all with X/Openbox. Why does X only half??? Thank you very much in advance for any help! Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] Slim hassle...to login or not to login
Hi, while installing a new system from ground up on my new harddisc I came accross a silly problem: I have setup X and slim as login manager. I installed openbox (no kde/gnome) as session manager. Slim starts...and: The keyboard and the mouse are not responding... Same happens when I start plain X as root. Screen remains black and I have to use the sysreq-keys to get my box back to normal... The X-logfile shows as only Error, that the GLX-module could not be found. I am using nvidia-drivers and reinstalled them as adviced but the effect remains the same. hald is running. fonts are installed (at least the default ones). Also installed are: x11-drivers/xf86-input-evdev Generic Linux input driver x11-drivers/xf86-input-keyboard Keyboard input driver x11-drivers/xf86-input-mouse X.Org driver for mouse input devices eselect opengl set nvidia is done. What is missing? Why dies this not work (my old system running on the same hardware using the same setup in principle has no problem at all with X/Openbox. Why does X only half??? Thank you very much in advance for any help! Best regards, mcc Are your keyboard and mouse InputDevices in xorg.conf configured to use the evdev driver, and does your ServerLayout section contain InputDevice lines to correctly point to those devices? I have had some weird problems with slim, but never trouble like you describe with plain X/twm. -Dru
Re: [gentoo-user] Slim hassle...to login or not to login
Dru Kargin drukar...@gmail.com [10-05-29 18:08]: Hi, while installing a new system from ground up on my new harddisc I came accross a silly problem: I have setup X and slim as login manager. I installed openbox (no kde/gnome) as session manager. Slim starts...and: The keyboard and the mouse are not responding... Same happens when I start plain X as root. Screen remains black and I have to use the sysreq-keys to get my box back to normal... The X-logfile shows as only Error, that the GLX-module could not be found. I am using nvidia-drivers and reinstalled them as adviced but the effect remains the same. hald is running. fonts are installed (at least the default ones). Also installed are: x11-drivers/xf86-input-evdev Generic Linux input driver x11-drivers/xf86-input-keyboard Keyboard input driver x11-drivers/xf86-input-mouse X.Org driver for mouse input devices eselect opengl set nvidia is done. What is missing? Why dies this not work (my old system running on the same hardware using the same setup in principle has no problem at all with X/Openbox. Why does X only half??? Thank you very much in advance for any help! Best regards, mcc Are your keyboard and mouse InputDevices in xorg.conf configured to use the evdev driver, and does your ServerLayout section contain InputDevice lines to correctly point to those devices? I have had some weird problems with slim, but never trouble like you describe with plain X/twm. -Dru I copied the working xconf from my old system to my new one and had never modified/hacked the installation paths of those applikations. So I exspect that at least X will give me that greyish screen with an moveable X as cursor (was it that way...its lon ago that I need to call X the plain way.). Why could the GLX module not found??? mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] xargs and rm funkiness
On Saturday 29 May 2010, Daniel D Jones wrote: On Wednesday 26 May 2010 06:42:08 Joerg Schilling wrote: Patrick Holthaus patrick.holth...@uni-bielefeld.de wrote: You might try: find -name *.ext -print0 | xargs -0 rm But this is non-standard. In what way is this non-standard? That is, what standard is it contrary to? SUS (aka POSIX), although some people are pushing to include -print0 | xargs -0 into the standard. What Joerg meant is that the above construct will only run when using GNU find and xargs. Of course, if you're running Linux, that is probably the case already anyway. TMTOWTDI (There's More Than One Way To Do It) applies just as strongly to *nix in general as it does to Perl. When there are multiple ways to do something, it's often either a user preference issue or the method should be decided based upon the particular details of the desired result. -exec may be a POSIX standard function, but that doesn't mean it must be used over other options or you're breaking the standard. UNIX introduced -exec {} + 1990 (when David Korn rewrote find(1) and it is in the POSIX standared since some time. -exec (which potentially has problems with race conditions - -execdir should almost always be used instead) runs the command once for each file found. If you use -exec {} + as he wrote, this is not true. xargs will call the command once for as many files as it can fit on the command line. And so does -exec {} + For some instances, like rm, that probably isn't significant. But if you're calling a complex process with lots of files, the overhead of starting the many extra processes may be significant. See above.
Re: [gentoo-user] xargs and rm funkiness
Etaoin Shrdlu shr...@unlimitedmail.org wrote: On Saturday 29 May 2010, Daniel D Jones wrote: On Wednesday 26 May 2010 06:42:08 Joerg Schilling wrote: Patrick Holthaus patrick.holth...@uni-bielefeld.de wrote: You might try: find -name *.ext -print0 | xargs -0 rm But this is non-standard. In what way is this non-standard? That is, what standard is it contrary to? SUS (aka POSIX), although some people are pushing to include -print0 | xargs -0 into the standard. What Joerg meant is that the above construct will only run when using GNU find and xargs. Of course, if you're running Linux, that is probably the case already anyway. And there is a big cheavat against this proposal as xargs -0 was introduced long after -exec + exsists and as introducing xargs -0 would force us to change _many_ other utilities too in order to come to a consistent overall behavior again. For this reason, there was even the proposal to instead remove xargs from the standard as -exec + does everything that is needed. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
Re: [gentoo-user] xargs and rm funkiness
On Saturday 29 May 2010 17:05:34 Daniel D Jones wrote: On Wednesday 26 May 2010 06:42:08 Joerg Schilling wrote: Patrick Holthaus patrick.holth...@uni-bielefeld.de wrote: You might try: find -name *.ext -print0 | xargs -0 rm But this is non-standard. In what way is this non-standard? That is, what standard is it contrary to? TMTOWTDI (There's More Than One Way To Do It) applies just as strongly to *nix in general as it does to Perl. When there are multiple ways to do something, it's often either a user preference issue or the method should be decided based upon the particular details of the desired result. -exec may be a POSIX standard function, but that doesn't mean it must be used over other options or you're breaking the standard. UNIX introduced -exec {} + 1990 (when David Korn rewrote find(1) and it is in the POSIX standared since some time. -exec (which potentially has problems with race conditions - -execdir should almost always be used instead) runs the command once for each file found. xargs will call the command once for as many files as it can fit on the command line. For some instances, like rm, that probably isn't significant. But if you're calling a complex process with lots of files, the overhead of starting the many extra processes may be significant. Perhaps you don't know Joerg yet. When dealing with the man, it's important to know where he's coming from - and that is not how Linux does stuff He invariably refers to POSIX when mentioning standards. He uses this standard to ensure that his code will work on any *nix platform. This puts him at odds with the Linux crowd sometimes - two very different viewpoints. It's not -exec that causes one processto be launched per item found, it is -exec \; He referred to -exec + which has the same behaviour as you mention - use as many filenames as will fit on the command line. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] rsync to a USB stick
On Saturday 29 May 2010 11:39:19 Mick wrote: On Saturday 29 May 2010 10:30:54 Alan McKinnon wrote: On Saturday 29 May 2010 11:01:39 Mick wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? Arg, typo in previous post. I meant what filesystem is on the USB stick? FAT32 Disk /dev/sdb: 8019 MB, 8019509248 bytes 20 heads, 16 sectors/track, 48947 cylinders Units = cylinders of 320 * 512 = 163840 bytes Disk identifier: 0xc3072e18 Device Boot Start End Blocks Id System /dev/sdb1 * 1 48948 7831512c W95 FAT32 (LBA) Can you reformat to the same filesystem as the source disk and see if that makes a difference? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
On Saturday 29 May 2010 10:16:39 Volker Armin Hemmann wrote: On Samstag 29 Mai 2010, Andrea Conti wrote: ata1.00: failed command: READ DMA ata1.00: cmd c8/00:80:00:3f:c1/00:00:00:00:00/e0 tag 0 dma 65536 in res 51/84:4f:00:3f:c1/00:00:00:00:00/e0 Emask 0x10 (ATA bus error) ata1.00: status: { DRDY ERR } ata1.00: error: { ICRC ABRT } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1: EH complete ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 I think you have driver issues. Might also be the cabling, but I doubt it as faulty SATA cables are in my experience quite rare. in my experience they are everything but rare. I had several defective cables - myself and friends of mine. I find SATA connectors are what gives trouble. All fixed nicely with a dab of hot glue, but I ask, why should that be necessary? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
Hi, I tried these kernels (all vanilla): 2.6.32.13 2.6.33.5 2.6.34.0 So it's not a known problem that has been fixed. Just a wild guess... can you try recompiling the kernel *without* pata_via? Some people have reported having problems with sata drives on VIA controllers when pata_via is also loaded. If you need to access devices on the PATA ports, you can use the the old non-libata via82cxxx IDE driver. This is, what I cut from the dmegs out (I hope to get all relevant infos...if you missing something, I save the complete dmesg output to disk for later refrence...): This is just the controller initialization part, it does not include the actual information about the drives. Look for something like ata1: SATA link up... a bit further in the log. fdisk -cu -S 56 /dev/sda Well, fdisk -cu defaults to creating the first partition beginning at sector 2048, which is fine as it's divisible by 8 (and thus is aligned on a 4096-byte boundary). I don't think you need to specify the number of sectors per track. But this is not really relevant, as creating unaligned partitions merely results in lower performance, not DMA errors :) Do I have to replace my motherboard/graphics card/RAM/... only because WD cannot talk to and/or vice versa? If the pata_via trick above does not work, and an upgrade is out of question, my suggestion is to find a cheap PCI sata2 controller and to use that instead of the on-board sata ports. Can I use PCI cards on newer motherboards with PCIe-slots??? You cannot use PCI cards in PCIe slots, but most new motherboards still have at least one PCI slot. andrea
Re: [gentoo-user] rsync to a USB stick
On Sat, May 29, 2010 at 5:39 AM, Steven apartment...@gmail.com wrote: On Sat, May 29, 2010 at 2:01 AM, Mick michaelkintz...@gmail.com wrote: Hi All, I run: rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 to back up a directory from a PC to a USB stick. However, from a cursory look this *seems* to copy the complete directory (every time I run it) and overwrites the USB stick. Carrying on like this it will life-expire the USB stick in no time, plus it takes ages to complete as it copies over every single file again and again. Is there a cleverer option I can add to rsync so that it only copies new files, overwrites older versions of the same and only deletes any files or directories that have been deleted from the source directory? -- Regards, Mick Short answer man rsync You'll find everything you need. It is possible to sync files incrementally with rsync I just can't remember how right now Sorry really tired right now. Im sure someone will come a long with a more appropriate answer. Notably... --checksum --recursive And *not* using (due to the limitations of FAT and FAT32)... --archive (implies several others) --perms --times --group --owner --whole-file -- Poison [BLX] Joshua M. Murphy
Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
On Samstag 29 Mai 2010, Alan McKinnon wrote: On Saturday 29 May 2010 10:16:39 Volker Armin Hemmann wrote: On Samstag 29 Mai 2010, Andrea Conti wrote: ata1.00: failed command: READ DMA ata1.00: cmd c8/00:80:00:3f:c1/00:00:00:00:00/e0 tag 0 dma 65536 in res 51/84:4f:00:3f:c1/00:00:00:00:00/e0 Emask 0x10 (ATA bus error) ata1.00: status: { DRDY ERR } ata1.00: error: { ICRC ABRT } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1: EH complete ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 I think you have driver issues. Might also be the cabling, but I doubt it as faulty SATA cables are in my experience quite rare. in my experience they are everything but rare. I had several defective cables - myself and friends of mine. I find SATA connectors are what gives trouble. All fixed nicely with a dab of hot glue, but I ask, why should that be necessary? a spec made to guarantee early hardware death - to keep sales up.
Re: [gentoo-user] xargs and rm funkiness
On Saturday 29 May 2010 14:59:16 Alan McKinnon wrote: On Saturday 29 May 2010 17:05:34 Daniel D Jones wrote: ... -exec (which potentially has problems with race conditions - -execdir should almost always be used instead) runs the command once for each file found. xargs will call the command once for as many files as it can fit on the command line. For some instances, like rm, that probably isn't significant. But if you're calling a complex process with lots of files, the overhead of starting the many extra processes may be significant. Perhaps you don't know Joerg yet. When dealing with the man, it's important to know where he's coming from - and that is not how Linux does stuff He invariably refers to POSIX when mentioning standards. He uses this standard to ensure that his code will work on any *nix platform. This puts him at odds with the Linux crowd sometimes - two very different viewpoints. I wasn't coming from a Linux perspective. I'm a network engineer. At work, I touch SSH servers running SunOS, file servers running BSD (don't recall what flavor off the top of my head - I'm not in them that often), terminals running HPUX and run Linux at home. xargs is available on all of them. It's not -exec that causes one processto be launched per item found, it is -exec \; He referred to -exec + which has the same behaviour as you mention - use as many filenames as will fit on the command line. You're correct, of course. I missed that in the man pages. Mea culpa. (I'm a network engineer, not a sysadmin.) -- If everybody knows such-and-such, then it ain't so, by at least ten thousand to one. - Robert A. Heinlein
Re: [gentoo-user] replacement for pdftk
100529 Dan Johansson wrote: After a recent upgrade of Gcc 4.3.4 - 4.4.3-r2 on an amd64, Pdftk won't compile anymore. Have you filed a bug ? What is its number ? Although I like the Pdftk I'm looking for a replacement, as Pdftk is no more maintained (last release November 28, 2006). I too find Pdftk useful, so please tell us more re your problem. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] compiz-fusion [SOLVED]
Thanks a lot. After I set windowmanager to compiz everything seems to be OK now. Hung On 05/29/10 06:58, Ngoc Nguyen Bao wrote: On Sat, May 29, 2010 at 4:14 PM, Hung Dang hungp...@gmail.com wrote: Hi all, I try to set up compiz-fussion with GNOME desktop using information from wiki page ( http://en.gentoo-wiki.com/wiki/Compiz-Fusion). Compiz seems to work , however, I experience the rendering problem and the title bar of opened applications are missing. I am using compiz version 0.8.6. Any suggestion would be appreciated. Thanks in advance Hung Did you set 'window decorator' to 'gtk-window-decorator --replace' or 'emerald --replace' in compiz?