Re: [gentoo-user] smartctrl drive error @60%
On Sat, 28 Jun 2014 08:48:40 +0100, Mick wrote: I would think that your ISP providers in the US will be blocking outgoing port 25 to stop compromised MSWindows machines spamming the rest of us. If you use my suggestion there shouldn't be a problem. It makes no difference whether you address it directly to your ISP address or via an alias. The ISP won't block port 25 connections to its own servers from its own customers, otherwise none of them could send email at all! In the US many big players are blocking outbound port 25 for their customers as a blanket measure to control spam from botnets, e.g.: http://www.verizon.com/Support/Residential/internet/highspeed/general+support/top+questions/questionsone/124274.htm If Dale uses the ssmtp.conf I sent he will be using a different port + TLS encryption and should not have a problem. Yes, that makes sense. I thought you were referring to the aliases part of the config. Using TLS or a different port if that's what the ISP needs is perfectly logical. -- Neil Bothwick Bus: (n.) a connector you plug money into, something like a slot machine. signature.asc Description: PGP signature
Re: [gentoo-user] Re: Ruby is borked on my system
On Friday 27 June 2014 21:58:23 Neil Bothwick wrote: On Fri, 27 Jun 2014 12:39:29 -0400, cov...@ccs.covici.com wrote: Some months ago I found myself wondering why I had ruby on this box at all. A little poking around revealed that the only thing that needed it was thin- provisioning. Once I'd added -thin to my USE flags and recompiled lvm2 I could get rid of ruby altogether. This won't suit everybody, I know, but maybe it's worth considering. What exactly does this do -- is it for a thin client or something? No, it's an LVM feature. It's one of those if you don't know what it is you don't need it type features so I don't understand whey it is enabled by default in the ebuild. It's a daft name, too, IMO. Over-commit would be better. Thin volumes in LVM use only the space they need, so the space you allocate to them, so you can create volumes with a total size greater than the available disk space. ...and although I dare say some installations may need it, and know how to manage the risk, I certainly don't want to wake up one day to find I've overflowed my partitions, so I ditched it as soon as I found it. Enough things go bump in the night as it is, without adding to them needlessly. Result: ruby-coloured peace. It's even worse than you said, Neil; on this ordinary KDE box* with 943 packages installed, thin-provisioning in lvm2 is the only thing that needs ruby. So not only is it a you don't need it feature, it brings in layers of complexity and head-scratching for ordinary mortals, quite out of proportion to the benefits. * Well, ordinary apart from using two disks in software RAID-1 and LVM, that is. -- Regards Peter
Re: [gentoo-user] smartctrl drive error @60%
On Friday 27 Jun 2014 21:54:32 Neil Bothwick wrote: On Fri, 27 Jun 2014 14:22:09 +0100, Mick wrote: I would think that your ISP providers in the US will be blocking outgoing port 25 to stop compromised MSWindows machines spamming the rest of us. If you use my suggestion there shouldn't be a problem. It makes no difference whether you address it directly to your ISP address or via an alias. The ISP won't block port 25 connections to its own servers from its own customers, otherwise none of them could send email at all! In the US many big players are blocking outbound port 25 for their customers as a blanket measure to control spam from botnets, e.g.: http://www.verizon.com/Support/Residential/internet/highspeed/general+support/top+questions/questionsone/124274.htm If Dale uses the ssmtp.conf I sent he will be using a different port + TLS encryption and should not have a problem. Even if Dale's ISP does not block port 25 for connections to the ISP's *own* mail servers, it may well block it to other providers' mail addresses for the same reason. This was a common practice some years back (pre-Gmail) when ISP had started charging for mail services. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Cross system dependencies
Hi all, This is something I have been looking for for a while now, but not found anything easily usable yet. I need a way to add dependencies to services which are provided by different servers. For instance, my mail server uses DNS to locate my LDAP server which contains the mail aliases. All these are running on different machines. Currently, I manually ensure these are all started in the correct sequence, I would like to automate this to the point where I can start all 3 servers at the same time and have the different services wait for the dependency services to be available even though they are on different systems. All the dependency systems in the init-systems I could find are all based on dependencies on the same server. Does anyone know of something that can already provide this type of dependencies? Or do I need to write something myself? I have been unable to locate anything via Google, but I might be using the wrong search words. Many thanks, Joost
Re: [gentoo-user] smartctrl drive error @60%
Mick wrote: On Friday 27 Jun 2014 21:54:32 Neil Bothwick wrote: On Fri, 27 Jun 2014 14:22:09 +0100, Mick wrote: I would think that your ISP providers in the US will be blocking outgoing port 25 to stop compromised MSWindows machines spamming the rest of us. If you use my suggestion there shouldn't be a problem. It makes no difference whether you address it directly to your ISP address or via an alias. The ISP won't block port 25 connections to its own servers from its own customers, otherwise none of them could send email at all! In the US many big players are blocking outbound port 25 for their customers as a blanket measure to control spam from botnets, e.g.: http://www.verizon.com/Support/Residential/internet/highspeed/general+support/top+questions/questionsone/124274.htm If Dale uses the ssmtp.conf I sent he will be using a different port + TLS encryption and should not have a problem. Even if Dale's ISP does not block port 25 for connections to the ISP's *own* mail servers, it may well block it to other providers' mail addresses for the same reason. This was a common practice some years back (pre-Gmail) when ISP had started charging for mail services. According to the settings in Seamonkey, it should be port 995 and SSL/TLS. I used your basic setup which is port 465. It works tho. :-) Dale :-) :-)
Re: [gentoo-user] Re: smartctrl drive error @60%
Grant Edwards wrote: On 2014-06-25, Dale rdalek1...@gmail.com wrote: I have to say, I dread setting up a mail server about as bad as I dread going to the Doctor. It's just something I really don't want to add to my system unless I have to. It's sort of like the init thingy. I don't want to add something else that will eventually break and I'll have to fix. The mail system won't keep me from booting but it is just one more thing to keep a eye on and make sure it is working. So, making sure the mail system is working will likely take up the same amount of time that checking the drive manually every month or so will take. I think you are _vastly_ overestimating the amount of effort required to install and set up something like msmtp. It's completely trivial compared to setting up sendmail (or even postfix). If you know the name of your ISP's smtp server along with the username and password, it doesn't take more than a minute or two to set up. And it just doesn't break (unless you change the password and forget to update the msmtp config file). It was more Murphy's law I was worried about. ;-) Dale :-) :-)
Re: [gentoo-user] Cross system dependencies
On Sat, 28 Jun 2014 11:36:11 +0200, J. Roeleveld wrote: I need a way to add dependencies to services which are provided by different servers. For instance, my mail server uses DNS to locate my LDAP server which contains the mail aliases. All these are running on different machines. Currently, I manually ensure these are all started in the correct sequence, I would like to automate this to the point where I can start all 3 servers at the same time and have the different services wait for the dependency services to be available even though they are on different systems. All the dependency systems in the init-systems I could find are all based on dependencies on the same server. Does anyone know of something that can already provide this type of dependencies? Or do I need to write something myself? With systemd you can add ExecStartPre=/some/script to the service's unit file where /some/script waits for the remote services to become available, and possibly return an error if the service does not become available within a set time. -- Neil Bothwick I have a mind like a steel...uh...thingamajig... signature.asc Description: PGP signature
Re: [gentoo-user] Re: smartctrl drive error @60%
On Sat, 28 Jun 2014 06:55:28 -0500, Dale wrote: It was more Murphy's law I was worried about. ;-) Hasn't that been deprecated in favour of Dale's Law? -- Neil Bothwick I thought the 10 commandments were multiple choice. signature.asc Description: PGP signature
Re: [gentoo-user] Re: smartctrl drive error @60%
Neil Bothwick wrote: On Sat, 28 Jun 2014 06:55:28 -0500, Dale wrote: It was more Murphy's law I was worried about. ;-) Hasn't that been deprecated in favour of Dale's Law? If it hasn't, maybe it should. It's strange tho, I have good luck with a lot of things, even computer hardware really, but messing with some new software generally leads to trouble. Hal was the first really bad thing. There was some other thing that popped up that I can't recall and recently the init thingy kept me from booting. I then booted the init thingy off here. I just keep a up to date Kubuntu disk laying around. ;-) New software just doesn't like me or my rig much. Older stuff seems to work fine. It's the things that seem to be new that really crawl under my skin. It seems they always bite me even when it works for most everyone else. That was pretty much the case with hal. It just would not work on my rig. I give the dev credit tho, he realized it was a mess and started over from scratch. At least he realized the boo boo. On this old drive. I got my data copied over and tested the stuffin out of the new drive and then tested it a few more times. Looks good for the new drive. I'm doing a dd on the old drive now and I plan to let it at least get to where that bad spot is. I figure if I let dd do its thing on the whole drive, that should get it, unless I lose power or something and have to stop it. After that, I'm going to put a file system on it and fill it up and test it and see what it says then. Maybe it will fix itself and I can at least use it as a occasional backup or something. I dunno. I noticed when I copied the data over that some files had a line of question marks in the name. Since a question mark is a wild card, I can't find them now. How does one search for a file name that has a wild card in it? Dale :-) :-)
Re: [gentoo-user] Re: OT: Mapping random numbers (PRNG)
On Jun 28, 2014, at 0:13, Matti Nykyri matti.nyk...@iki.fi wrote: On Jun 27, 2014, at 0:00, Kai Krakow hurikha...@gmail.com wrote: Matti Nykyri matti.nyk...@iki.fi schrieb: If you are looking a mathematically perfect solution there is a simple one even if your list is not in the power of 2! Take 6 bits at a time of the random data. If the result is 62 or 63 you will discard the data and get the next 6 bits. This selectively modifies the random data but keeps the probabilities in correct balance. Now the probability for index of 0-61 is 1/62 because the probability to get 62-63 out of 64 if 0. Why not do just something like this? index = 0; while (true) { index = (index + get_6bit_random()) % 62; output char_array[index]; } Done, no bits wasted. Should have perfect distribution also. We also don't have to throw away random data just to stay within unaligned boundaries. The unalignment is being taken over into the next loop so the error corrects itself over time (it becomes distributed over the whole set). Distribution will not be perfect. The same original problem persists. Probability for index 0 to 1 will be 2/64 and for 2 to 61 it will be 1/64. Now the addition changes this so that index 0 to 1 reflects to previous character and not the original index. The distribution of like 10GB of data should be quite even but not on a small scale. The next char will depend on previous char. It is 100% more likely that the next char is the same or one index above the previous char then any of the other ones in the series. So it is likely that you will have long sets of same character. Random means that for next char the probability is always even, 1/62. And like mentioned in Dilbert it is impossible to say that something is random but possible to say that it isn't. If wasting 6bit of data seems large, do this: index = get_6bit_random(); while (index 61) { index = 1; index |= get_1bit_random(); index = 0x3F; } return index; It will waste 1 bit at a time until result is less than 62. This will slightly change probabilities though :/ Sorry this example is really flawed :( If next6bit is over 61 there are only two possible values for it: 62 or 63 - that is 0x3E and 0x3F. So you see that only one bit changes. But that bit is random! So least significant bit is random and does not need to be discarded :) index = get_6bit_random(); while (index 61) { index = 5; index |= get_5bit_random(); index = 0x3F; } return index;
Re: [gentoo-user] Re: smartctrl drive error @60%
On 28/06/2014 15:05, Dale wrote: Neil Bothwick wrote: On Sat, 28 Jun 2014 06:55:28 -0500, Dale wrote: It was more Murphy's law I was worried about. ;-) Hasn't that been deprecated in favour of Dale's Law? If it hasn't, maybe it should. It's strange tho, I have good luck with a lot of things, even computer hardware really, but messing with some new software generally leads to trouble. Hal was the first really bad thing. There was some other thing that popped up that I can't recall and recently the init thingy kept me from booting. I then booted the init thingy off here. I just keep a up to date Kubuntu disk laying around. ;-) New software just doesn't like me or my rig much. Older stuff seems to work fine. It's the things that seem to be new that really crawl under my skin. It seems they always bite me even when it works for most everyone else. That was pretty much the case with hal. It just would not work on my rig. I give the dev credit tho, he realized it was a mess and started over from scratch. At least he realized the boo boo. On this old drive. I got my data copied over and tested the stuffin out of the new drive and then tested it a few more times. Looks good for the new drive. I'm doing a dd on the old drive now and I plan to let it at least get to where that bad spot is. I figure if I let dd do its thing on the whole drive, that should get it, unless I lose power or something and have to stop it. After that, I'm going to put a file system on it and fill it up and test it and see what it says then. Maybe it will fix itself and I can at least use it as a occasional backup or something. I dunno. I noticed when I copied the data over that some files had a line of question marks in the name. Since a question mark is a wild card, I can't find them now. How does one search for a file name that has a wild card in it? escape the character with a \ But that's not your main problem. You got those filenames because the source disk somehow has a problem and the names couldn't be read properly. So junk was used instead. Reasons vary, but the basics never change: there is a problem with your source disk and now you need to go find what that problem is. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Re: smartctrl drive error @60%
Alan McKinnon wrote: On 28/06/2014 15:05, Dale wrote: On this old drive. I got my data copied over and tested the stuffin out of the new drive and then tested it a few more times. Looks good for the new drive. I'm doing a dd on the old drive now and I plan to let it at least get to where that bad spot is. I figure if I let dd do its thing on the whole drive, that should get it, unless I lose power or something and have to stop it. After that, I'm going to put a file system on it and fill it up and test it and see what it says then. Maybe it will fix itself and I can at least use it as a occasional backup or something. I dunno. I noticed when I copied the data over that some files had a line of question marks in the name. Since a question mark is a wild card, I can't find them now. How does one search for a file name that has a wild card in it? escape the character with a \ But that's not your main problem. You got those filenames because the source disk somehow has a problem and the names couldn't be read properly. So junk was used instead. Reasons vary, but the basics never change: there is a problem with your source disk and now you need to go find what that problem is. Well, the drive is replaced but it copied the bad file over as well. I just want to find it so that I can check it and delete it if it is bad. It's one of my videos so no point in some corrupted file hanging around if it is no good. Plus, I hope I can figure out what is missing and find a copy on youtube or something. Maybe I will be that lucky. Now to go see if I can find it again. ;-) Thanks. Dale :-) :-)
Re: [gentoo-user] Re: smartctrl drive error @60%
Dale wrote: Alan McKinnon wrote: On 28/06/2014 15:05, Dale wrote: On this old drive. I got my data copied over and tested the stuffin out of the new drive and then tested it a few more times. Looks good for the new drive. I'm doing a dd on the old drive now and I plan to let it at least get to where that bad spot is. I figure if I let dd do its thing on the whole drive, that should get it, unless I lose power or something and have to stop it. After that, I'm going to put a file system on it and fill it up and test it and see what it says then. Maybe it will fix itself and I can at least use it as a occasional backup or something. I dunno. I noticed when I copied the data over that some files had a line of question marks in the name. Since a question mark is a wild card, I can't find them now. How does one search for a file name that has a wild card in it? escape the character with a \ But that's not your main problem. You got those filenames because the source disk somehow has a problem and the names couldn't be read properly. So junk was used instead. Reasons vary, but the basics never change: there is a problem with your source disk and now you need to go find what that problem is. Well, the drive is replaced but it copied the bad file over as well. I just want to find it so that I can check it and delete it if it is bad. It's one of my videos so no point in some corrupted file hanging around if it is no good. Plus, I hope I can figure out what is missing and find a copy on youtube or something. Maybe I will be that lucky. Now to go see if I can find it again. ;-) Thanks. Dale :-) :-) Hm, slight glitch maybe. It listed some files with a question mark in it but not the ones I am looking for. So, is it possible that since it couldn't read the file it just skipped them? I used rsync to do the copy instead of cp. Maybe that is it or otherwise, I have a ton of directories to go diggin in to find them since it isn't the one I thought it was. Dale :-) :-)
Re: [gentoo-user] Re: smartctrl drive error @60%
On Saturday 28 June 2014 09:15:47 Dale wrote: Alan McKinnon wrote: ---8 But that's not your main problem. You got those filenames because the source disk somehow has a problem and the names couldn't be read properly. So junk was used instead. I thought it was more like: the file lister didn't recognise those bytes as valid characters so it printed a question-mark for each of them. If it is so, it's no use Dale looking for files with question-marks in their names. ---8 It listed some files with a question mark in it but not the ones I am looking for. So, is it possible that since it couldn't read the file it just skipped them? It may not be true that it couldn't read the files; it just couldn't translate their names into text characters. The names are not held in the files whose names they are but somewhere in the inode structure. Someone with better knowledge of this (i.e.any at all) will have to explain what goes wrong if bytes on the disk adjacent to the file names get damaged along with the names. I used rsync to do the copy instead of cp. Maybe that is it or otherwise, I have a ton of directories to go diggin in to find them since it isn't the one I thought it was. Do you know any characters in those dodgy names, Dale? If so, you may be able to use /usr/bin/find like so (hoping this isn't a grandma's egg - apologies if it is): find /path-to-files -iname \*known-part-of-name\* {} + -- Regards Peter
[gentoo-user] [Way OT] Tally ho!
It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. Yoo-hoo! I think I can just about remember the sound of those magnificent beasts from the 40s Apologies to those of a more serious disposition. -- Regards Peter
[gentoo-user] Udev confusion: Rules for a mp3 player
Hi, For my mp3-player I want to write udev rules to give better names to the according entries under /dev Problem is: Th eplayer has an internal flash, which only holds the firmware (in my case) and a sd-card slot, in which you can insert a flash card with music files. The internal memory has a partition directly on - say - sdb and the sd-card in the slot is regulary formatted and represents itsself as sdc and sdc1. With udevadm I determined the serial number of the device (to make it unique) and the model (Internal storage and SD card slot), which seems to make it easy to buit rules from. The one and only reason for not being THAT happy is: The rules didn't work. Here: http://www.reactivated.net/writing_udev_rules.html I read some instructions. It is said that one should not combine elements of one device and more than one parent. Is device meant as the entry under /dev or is it to be understand as the electric entity on my desktop (the player). I want rules which also work, if another sdcard of a different size is inserted into the player... How can I write rules to map the internal storage, the whole device (aka /dev/sdc) of the sdcard (for example for reformatting reasons) and the partition of the sdcard (aka /dev/sdc1), which work? To this email I have attached the gzipped outputs of the according udevadm calls. Thank you very much for any help in advance! Best regards, mcc PS: This is what I have tried and which does *NOT* work! SUBSYSTEM==block,ATTRS{model}==Internal Storage,ATTRS{serial}==1A8C518301403210B,SYMLINK+=sansaclipzip_root SUBSYSTEM==block,ATTRS{model}==SD Card Slot,ATTR{partition}==1, ATTRS{serial}==1A8C518301403210B, SYMLINK+=sansaclipzip_data_1 SUBSYSTEM==block,ATTRS{model}==SD Card Slot ,ATTRS{serial}==1A8C518301403210B, SYMLINK+=sansaclipzip_data sansadatadevice.txt.gz Description: application/gunzip sansadatapartition.txt.gz Description: application/gunzip sansainternal.txt.gz Description: application/gunzip
Re: [gentoo-user] Re: Ruby is borked on my system
On Fri, Jun 27, 2014 at 12:39 PM, cov...@ccs.covici.com wrote: Peter Humphrey pe...@prh.myzen.co.uk wrote: Some months ago I found myself wondering why I had ruby on this box at all. A little poking around revealed that the only thing that needed it was thin- provisioning. Once I'd added -thin to my USE flags and recompiled lvm2 I could get rid of ruby altogether. This won't suit everybody, I know, but maybe it's worth considering. What exactly does this do -- is it for a thin client or something? http://wiki.gentoo.org/wiki/LVM#Thin_provisioning
Re: [gentoo-user] [Way OT] Tally ho!
On 28 June 2014 16:54:52 CEST, Peter Humphrey pe...@prh.myzen.co.uk wrote: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. Yoo-hoo! I think I can just about remember the sound of those magnificent beasts from the 40s Apologies to those of a more serious disposition. Pictures or it didn't happen :) Seriously. If you do happen to be able to take pictures and/or videos. I would love a copy. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Re: smartctrl drive error @60%
On Saturday 28 Jun 2014 15:50:23 Peter Humphrey wrote: On Saturday 28 June 2014 09:15:47 Dale wrote: Alan McKinnon wrote: ---8 But that's not your main problem. You got those filenames because the source disk somehow has a problem and the names couldn't be read properly. So junk was used instead. I thought it was more like: the file lister didn't recognise those bytes as valid characters so it printed a question-mark for each of them. If it is so, it's no use Dale looking for files with question-marks in their names. ---8 It listed some files with a question mark in it but not the ones I am looking for. So, is it possible that since it couldn't read the file it just skipped them? It may not be true that it couldn't read the files; it just couldn't translate their names into text characters. The names are not held in the files whose names they are but somewhere in the inode structure. Someone with better knowledge of this (i.e.any at all) will have to explain what goes wrong if bytes on the disk adjacent to the file names get damaged along with the names. I used rsync to do the copy instead of cp. Maybe that is it or otherwise, I have a ton of directories to go diggin in to find them since it isn't the one I thought it was. Do you know any characters in those dodgy names, Dale? If so, you may be able to use /usr/bin/find like so (hoping this isn't a grandma's egg - apologies if it is): find /path-to-files -iname \*known-part-of-name\* {} + It could have something to do with the character set of the terminal/application Vs the character set that the original file was created as. If you have UTF8 set as your default character encoding, you should hopefully be OK. If it shows ? in the name and 0 bytes size, it is likely a corrupt file. You can also try ddrescue with --input-position=bytes and --max-size=bytes to retrieve just the borked part of the disk. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] [Way OT] Tally ho!
J. Roeleveld wrote: On 28 June 2014 16:54:52 CEST, Peter Humphrey pe...@prh.myzen.co.uk wrote: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. Yoo-hoo! I think I can just about remember the sound of those magnificent beasts from the 40s Apologies to those of a more serious disposition. Pictures or it didn't happen :) Seriously. If you do happen to be able to take pictures and/or videos. I would love a copy. -- Joost +1
Re: [gentoo-user] [Way OT] Tally ho!
Am 28.06.2014 16:54, schrieb Peter Humphrey: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. Yoo-hoo! I think I can just about remember the sound of those magnificent beasts from the 40s Apologies to those of a more serious disposition. it is ok, I just watched some allied bombers being shot down.
Re: [gentoo-user] Re: smartctrl drive error @60%
Mick wrote: On Saturday 28 Jun 2014 15:50:23 Peter Humphrey wrote: It may not be true that it couldn't read the files; it just couldn't translate their names into text characters. The names are not held in the files whose names they are but somewhere in the inode structure. Someone with better knowledge of this (i.e.any at all) will have to explain what goes wrong if bytes on the disk adjacent to the file names get damaged along with the names. Do you know any characters in those dodgy names, Dale? If so, you may be able to use /usr/bin/find like so (hoping this isn't a grandma's egg - apologies if it is): find /path-to-files -iname \*known-part-of-name\* {} + It could have something to do with the character set of the terminal/application Vs the character set that the original file was created as. If you have UTF8 set as your default character encoding, you should hopefully be OK. If it shows ? in the name and 0 bytes size, it is likely a corrupt file. You can also try ddrescue with --input-position=bytes and --max-size=bytes to retrieve just the borked part of the disk. Well, I was planing to just find them and delete them. If I could play them and they work fine then I might save them but I figure they are likely messed up in some way. I have already zeroed out the stuff on the old drive that was going out. That data is gone. If rsync didn't copy the files over, that is cool. I'll go figure out what was missed and see if I can find new copies. I only saw a chunk that looked like maybe 4 or 5 scrolling by. Given the amount of data, I'd say it was well under a 1% loss. Maybe not even 0.1% loss. Learned to use the \ to search tho. Let's see if I remember that for next time. lol Dale :-) :-)
Re: [gentoo-user] Udev confusion: Rules for a mp3 player
2014-06-28 8:57 GMT-06:00 meino.cra...@gmx.de: Hi, For my mp3-player I want to write udev rules to give better names to the according entries under /dev Problem is: Th eplayer has an internal flash, which only holds the firmware (in my case) and a sd-card slot, in which you can insert a flash card with music files. The internal memory has a partition directly on - say - sdb and the sd-card in the slot is regulary formatted and represents itsself as sdc and sdc1. With udevadm I determined the serial number of the device (to make it unique) and the model (Internal storage and SD card slot), which seems to make it easy to buit rules from. The one and only reason for not being THAT happy is: The rules didn't work. Here: http://www.reactivated.net/writing_udev_rules.html I read some instructions. It is said that one should not combine elements of one device and more than one parent. Is device meant as the entry under /dev or is it to be understand as the electric entity on my desktop (the player). I want rules which also work, if another sdcard of a different size is inserted into the player... How can I write rules to map the internal storage, the whole device (aka /dev/sdc) of the sdcard (for example for reformatting reasons) and the partition of the sdcard (aka /dev/sdc1), which work? To this email I have attached the gzipped outputs of the according udevadm calls. Thank you very much for any help in advance! Best regards, mcc PS: This is what I have tried and which does *NOT* work! SUBSYSTEM==block,ATTRS{model}==Internal Storage,ATTRS{serial}==1A8C518301403210B,SYMLINK+=sansaclipzip_root SUBSYSTEM==block,ATTRS{model}==SD Card Slot,ATTR{partition}==1, ATTRS{serial}==1A8C518301403210B, SYMLINK+=sansaclipzip_data_1 SUBSYSTEM==block,ATTRS{model}==SD Card Slot ,ATTRS{serial}==1A8C518301403210B, SYMLINK+=sansaclipzip_data I'm not going to help you with your udev rules, but just point out, it seems to me you are going to a more complicated layer than you need to, if you just want personalized naming for your partitions under /dev (for using with scripts or something like that), I would suggest you to use the label feature, of the filesystems you are going to use for those blocks, this will cause udev to generate respective /dev/disk/by-label/* symlinks, altought I guess if you already know this if you are playing with udev rules.
Re: [gentoo-user] Udev confusion: Rules for a mp3 player
Jc García jyo.gar...@gmail.com [14-06-28 19:48]: 2014-06-28 8:57 GMT-06:00 meino.cra...@gmx.de: Hi, For my mp3-player I want to write udev rules to give better names to the according entries under /dev Problem is: Th eplayer has an internal flash, which only holds the firmware (in my case) and a sd-card slot, in which you can insert a flash card with music files. The internal memory has a partition directly on - say - sdb and the sd-card in the slot is regulary formatted and represents itsself as sdc and sdc1. With udevadm I determined the serial number of the device (to make it unique) and the model (Internal storage and SD card slot), which seems to make it easy to buit rules from. The one and only reason for not being THAT happy is: The rules didn't work. Here: http://www.reactivated.net/writing_udev_rules.html I read some instructions. It is said that one should not combine elements of one device and more than one parent. Is device meant as the entry under /dev or is it to be understand as the electric entity on my desktop (the player). I want rules which also work, if another sdcard of a different size is inserted into the player... How can I write rules to map the internal storage, the whole device (aka /dev/sdc) of the sdcard (for example for reformatting reasons) and the partition of the sdcard (aka /dev/sdc1), which work? To this email I have attached the gzipped outputs of the according udevadm calls. Thank you very much for any help in advance! Best regards, mcc PS: This is what I have tried and which does *NOT* work! SUBSYSTEM==block,ATTRS{model}==Internal Storage,ATTRS{serial}==1A8C518301403210B,SYMLINK+=sansaclipzip_root SUBSYSTEM==block,ATTRS{model}==SD Card Slot,ATTR{partition}==1, ATTRS{serial}==1A8C518301403210B, SYMLINK+=sansaclipzip_data_1 SUBSYSTEM==block,ATTRS{model}==SD Card Slot ,ATTRS{serial}==1A8C518301403210B, SYMLINK+=sansaclipzip_data I'm not going to help you with your udev rules, but just point out, it seems to me you are going to a more complicated layer than you need to, if you just want personalized naming for your partitions under /dev (for using with scripts or something like that), I would suggest you to use the label feature, of the filesystems you are going to use for those blocks, this will cause udev to generate respective /dev/disk/by-label/* symlinks, altought I guess if you already know this if you are playing with udev rules. ...this would identify the sd-cards instead of the device, so I choose to udev-rules instead of labels... Best regards, mcc
Re: [gentoo-user] Cross system dependencies
On Saturday, June 28, 2014 01:39:41 PM Neil Bothwick wrote: On Sat, 28 Jun 2014 11:36:11 +0200, J. Roeleveld wrote: I need a way to add dependencies to services which are provided by different servers. For instance, my mail server uses DNS to locate my LDAP server which contains the mail aliases. All these are running on different machines. Currently, I manually ensure these are all started in the correct sequence, I would like to automate this to the point where I can start all 3 servers at the same time and have the different services wait for the dependency services to be available even though they are on different systems. All the dependency systems in the init-systems I could find are all based on dependencies on the same server. Does anyone know of something that can already provide this type of dependencies? Or do I need to write something myself? With systemd you can add ExecStartPre=/some/script to the service's unit file where /some/script waits for the remote services to become available, and possibly return an error if the service does not become available within a set time. That method works for any init-system and writing a script to check and if necessary fail is my temporary fall-back plan. I was actually hoping for a method that can be used to monitor availability and, if necessary, stop services when the dependencies disappear. -- Joost
Re: [gentoo-user] Cross system dependencies
On 06/28/2014 07:06 PM, J. Roeleveld wrote: On Saturday, June 28, 2014 01:39:41 PM Neil Bothwick wrote: On Sat, 28 Jun 2014 11:36:11 +0200, J. Roeleveld wrote: I need a way to add dependencies to services which are provided by different servers. For instance, my mail server uses DNS to locate my LDAP server which contains the mail aliases. All these are running on different machines. Currently, I manually ensure these are all started in the correct sequence, I would like to automate this to the point where I can start all 3 servers at the same time and have the different services wait for the dependency services to be available even though they are on different systems. All the dependency systems in the init-systems I could find are all based on dependencies on the same server. Does anyone know of something that can already provide this type of dependencies? Or do I need to write something myself? With systemd you can add ExecStartPre=/some/script to the service's unit file where /some/script waits for the remote services to become available, and possibly return an error if the service does not become available within a set time. That method works for any init-system and writing a script to check and if necessary fail is my temporary fall-back plan. I was actually hoping for a method that can be used to monitor availability and, if necessary, stop services when the dependencies disappear. -- Joost the difficulty is in identifying failed services. local network issue / load issue could mean your services start bouncing. the best way is to have redundancy so it doesn't matter as much having said all of that:: systemd will start servers and buffer network activity - how this works for non local services would be interesting to see. with openrc : you could on the DNS server have a service which is just a batch script that uses watches for pid / program path in ps which outputs ACK or NAK to a file in an NFS share say /nfs/monitoring/dns then on the mail server you could have a service that polls /nfs/monitoring/dns for NAK or ACK you can then choose to have this service directly start your dependent services, or if you adjust /etc/init.d/postfix to have depends = mymonitorDNS which is an empty shell of a service. your watchdog service could stop / start the empty shell of a script mymonitorDNS, and then postfix depends on mymonitorDNS this would save you from i've just stopped the mail server for maintenance and my watchdogservice has just restarted it due to a NAKACK event or... you could have a central master machine which has it's own services, watchdog and monitor... i.e. /etc/init.d/thepostfixserver start / depends on thednsserver which just runs # ssh postfixserver '/etc/init.d/postfix start' or... puppet and it's kin
Re: [gentoo-user] [Way OT] Tally ho!
On 28/06/2014 16:54, Peter Humphrey wrote: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. You have an actual flying Spitfire nearby? Wow! I thought Evelyn was the last airworthy model left anywhere. For those who don't know, Evelyn was a Mk IXe and spent years in a kid's playground in Pretoria (the city I grew up in) before someone started restoring her in the late 60s. She was rebuilt at Zwartkop Air Force Base (where I spent time as an apprentice) and stored at Lanseria Airport (where I've spent many a happy hour drinking fine wares at the restaurant above the apron). Last I heard, she was sold and ended up in Brazil... Yoo-hoo! I think I can just about remember the sound of those magnificent beasts from the 40s Apologies to those of a more serious disposition. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] [Way OT] Tally ho!
On Saturday, June 28, 2014 10:33:05 PM Alan McKinnon wrote: On 28/06/2014 16:54, Peter Humphrey wrote: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. You have an actual flying Spitfire nearby? Wow! I thought Evelyn was the last airworthy model left anywhere. For those who don't know, Evelyn was a Mk IXe and spent years in a kid's playground in Pretoria (the city I grew up in) before someone started restoring her in the late 60s. She was rebuilt at Zwartkop Air Force Base (where I spent time as an apprentice) and stored at Lanseria Airport (where I've spent many a happy hour drinking fine wares at the restaurant above the apron). Last I heard, she was sold and ended up in Brazil... Considering there are companies selling flights in them: http://flywithaspitfire.com/ http://tigerairways.co.uk/spitfire-flights.html (from this one: To the best of our information there are about 50 Spitfires currently flying Worldwide. Of these only five are two-seaters (converted Mark 9’s), three in the UK and two in the USA) Never mind that there are quite a few scale models flying around :) -- Joost
[gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)
Matti Nykyri matti.nyk...@iki.fi schrieb: On Jun 27, 2014, at 0:00, Kai Krakow hurikha...@gmail.com wrote: Matti Nykyri matti.nyk...@iki.fi schrieb: If you are looking a mathematically perfect solution there is a simple one even if your list is not in the power of 2! Take 6 bits at a time of the random data. If the result is 62 or 63 you will discard the data and get the next 6 bits. This selectively modifies the random data but keeps the probabilities in correct balance. Now the probability for index of 0-61 is 1/62 because the probability to get 62-63 out of 64 if 0. Why not do just something like this? index = 0; while (true) { index = (index + get_6bit_random()) % 62; output char_array[index]; } Done, no bits wasted. Should have perfect distribution also. We also don't have to throw away random data just to stay within unaligned boundaries. The unalignment is being taken over into the next loop so the error corrects itself over time (it becomes distributed over the whole set). Distribution will not be perfect. The same original problem persists. Probability for index 0 to 1 will be 2/64 and for 2 to 61 it will be 1/64. Now the addition changes this so that index 0 to 1 reflects to previous character and not the original index. The distribution of like 10GB of data should be quite even but not on a small scale. The next char will depend on previous char. It is 100% more likely that the next char is the same or one index above the previous char then any of the other ones in the series. So it is likely that you will have long sets of same character. I cannot follow your reasoning here - but I'd like to learn. Actually, I ran this multiple times and never saw long sets of the same character, even no short sets of the same character. The 0 or 1 is always rolled over into the next random addition. I would only get sets of the same character if rand() returned zero multiple times after each other - which wouldn't be really random. ;-) Keep in mind: The last index will be reused whenever you'd enter the function - it won't reset to zero. But still that primitive implementation had a flaw: It will tend to select characters beyond the current offset, if it is = 1/2 into the complete set, otherwise it will prefer selecting characters before the offset. In my tests I counted how ofter new_index index and new_index index, and it had a clear bias for the first. So I added swapping of the selected index with offset=0 in the set. Now the characters will be swapped and start to distribute that flaw. The distribution, however, didn't change. Of course I'm no mathematician, I don't know how I'd calculate the probabilities for my implementation because it is sort of a recursive function (for get_rand()) when looking at it over time: int get_rand() { static int index = 0; return (index = (index + get_6bit_rand()) % 62); } char get_char() { int index = get_rand(); char tmp = chars[index]; chars[index] = chars[0]; return (chars[0] = tmp); } However, get_char() should return evenly distributes results. What this shows, is, that while distribution is even among the result set, the implementation may still be flawed because results could be predictable for a subset of results. Or in other words: Simply looking at the distribution of results is not an indicator for randomness. I could change get_rand() in the following way: int get_rand() { static int index = 0; return (index = (index + 1) % 62); } Results would be distributed even, but clearly it is not random. -- Replies to list only preferred.
Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)
On Sat, Jun 28, 2014 at 4:28 PM, Kai Krakow hurikha...@gmail.com wrote: [ ... ] I cannot follow your reasoning here - but I'd like to learn. Actually, I ran this multiple times and never saw long sets of the same character, even no short sets of the same character. The 0 or 1 is always rolled over into the next random addition. That doesn't matter. Take a non-negative integer N; if you flip a coin an infinite number of times, then the probability of the coin landing on the same face N times in a row is 1. This means that it is *guaranteed* to happen, and it *will* happen for any N you want: 1,000,000, a thousand billions, a gazillion. That is a mathematical fact. This of course is a consequence of infinite being really really large, but it means that technically you cannot rule a RNG as broken only because you saw that it produced the same result N times, which is the crux of the Dilbert joke. In practice, of course, it's a big sign that something is wrong. But there is a non-zero probability that it's actually correct. Because with randomness, you can never be sure. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México
Re: [gentoo-user] [Way OT] Tally ho!
On 28/06/2014 22:44, J. Roeleveld wrote: On Saturday, June 28, 2014 10:33:05 PM Alan McKinnon wrote: On 28/06/2014 16:54, Peter Humphrey wrote: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. You have an actual flying Spitfire nearby? Wow! I thought Evelyn was the last airworthy model left anywhere. For those who don't know, Evelyn was a Mk IXe and spent years in a kid's playground in Pretoria (the city I grew up in) before someone started restoring her in the late 60s. She was rebuilt at Zwartkop Air Force Base (where I spent time as an apprentice) and stored at Lanseria Airport (where I've spent many a happy hour drinking fine wares at the restaurant above the apron). Last I heard, she was sold and ended up in Brazil... Considering there are companies selling flights in them: http://flywithaspitfire.com/ http://tigerairways.co.uk/spitfire-flights.html (from this one: To the best of our information there are about 50 Spitfires currently flying Worldwide. Of these only five are two-seaters (converted Mark 9’s), three in the UK and two in the USA) Never mind that there are quite a few scale models flying around :) I reckon I was told only airworthy Spitfire in the world when it was actually onl airworthy Spitfire in Africa I suppose that's what happens when you don't fact-check. That'll teach me :-) -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] [Way OT] Tally ho!
On Sunday, June 29, 2014 12:18:06 AM Alan McKinnon wrote: On 28/06/2014 22:44, J. Roeleveld wrote: On Saturday, June 28, 2014 10:33:05 PM Alan McKinnon wrote: On 28/06/2014 16:54, Peter Humphrey wrote: It's Wakes Week here and we've just had a triple fly-by by a Hurricane from the Battle of Britain Commemorative Flight. Last Saturday it was a Spitfire. You have an actual flying Spitfire nearby? Wow! I thought Evelyn was the last airworthy model left anywhere. For those who don't know, Evelyn was a Mk IXe and spent years in a kid's playground in Pretoria (the city I grew up in) before someone started restoring her in the late 60s. She was rebuilt at Zwartkop Air Force Base (where I spent time as an apprentice) and stored at Lanseria Airport (where I've spent many a happy hour drinking fine wares at the restaurant above the apron). Last I heard, she was sold and ended up in Brazil... Considering there are companies selling flights in them: http://flywithaspitfire.com/ http://tigerairways.co.uk/spitfire-flights.html (from this one: To the best of our information there are about 50 Spitfires currently flying Worldwide. Of these only five are two-seaters (converted Mark 9’s), three in the UK and two in the USA) Never mind that there are quite a few scale models flying around :) I reckon I was told only airworthy Spitfire in the world when it was actually onl airworthy Spitfire in Africa Typical :) I suppose that's what happens when you don't fact-check. That'll teach me :-) Yep, that should teach you :P Btw, I do not have all the info, but it could be that they meant last one of that particular model. -- Joost
Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)
On Sat, Jun 28 2014, Canek Peláez Valdés wrote: That doesn't matter. Take a non-negative integer N; if you flip a coin an infinite number of times, then the probability of the coin landing on the same face N times in a row is 1. This is certainly true. This means that it is *guaranteed* to happen That is not as clear. Prob = 1 does not always mean certain (when there are infinite possibilities). For example the probability is zero that a random rational number chosen between 0 and 1 is exactly 1/2. So the probability is 1 that the number is not 1/2. However it is not certain that the random choice will not be 1/2. allan
Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)
On Sat, Jun 28, 2014 at 7:37 PM, gottl...@nyu.edu wrote: On Sat, Jun 28 2014, Canek Peláez Valdés wrote: That doesn't matter. Take a non-negative integer N; if you flip a coin an infinite number of times, then the probability of the coin landing on the same face N times in a row is 1. This is certainly true. This means that it is *guaranteed* to happen That is not as clear. Let me be more precise (and please correct me if I'm wrong): It is guaranteed to happen at some point in the infinite sequence of random flip coins, but we cannot know when it will happen, only that it will happen. That's the way I got it when I took my probability courses, admittedly many years ago. In any way, even if I'm wrong and it is not guaranteed, the main point remains true: the probability of getting a large sequence of the same number from a RNG is 1 for every true random RNG, and therefore seeing a large sequence of the same number form a RNG doesn't (technically) means that it is broken. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México
[gentoo-user] Re: Help! - I cannot emerge anything any more
On 06/27/2014 01:59 AM, Helmut Jarausch wrote: Hi, I am in a very strange situation where I cannot emerge anything any more. Since it occurs on two different machines it won't be a hardware problem. When I try to emerge a package, say portage, it builds it just fine and starts to install it (for portage, the last file shown is etc/etc-update.conf) but then it hangs forever - no CPU / no IO. It looks as if it has locked itself out. This is even with a single package emerge. The only interesting things which are shown by lsof are emerge 1747 root mem REG 0,16 46678298 /usr/lib64/gconv/gconv-modules.cache (path dev=0,18) emerge 1747 root0u CHR 136,0 0t03 /dev/pts/0 emerge 1747 root1u CHR 136,0 0t03 /dev/pts/0 emerge 1747 root2u CHR 136,0 0t03 /dev/pts/0 emerge 1747 root3w REG 8,17 149138217 /var/log/slim.log emerge 1747 root4u a_inode0,90 21 [eventpoll] emerge 1747 root5r FIFO0,8 0t091938 pipe emerge 1747 root6uW REG 0,30097094 /var/tmp/portage/sys-apps/.portage-.portage_lockfile emerge 1747 root7w FIFO0,8 0t091938 pipe emerge 1747 root8r FIFO 0,30 0t091946 /var/tmp/portage/sys-apps/portage-/.ipc_in emerge 1747 root 10u CHR5,2 0t0 1127 /dev/ptmx emerge 1747 root 11u CHR 136,0 0t03 /dev/pts/0 emerge 1747 root 12w REG 0,30 28295491945 /var/tmp/portage/sys-apps/portage-/temp/build.log Yes, I've tried to remove anything from /var/tmp/portage and the problem persists after reboot. :( I'm replying only because no one else has. You didn't say when the problem began. The problem started on the same day on both machines? You could try qlop -l to see what packages have updated recently. Does portage- mean you're running the unstable/development version of portage? The ebuild for portage- lists a git repository, so you might be able to check out a previous (working) version of portage using git?
[gentoo-user] Re: OT: Mapping random numbers (PRNG)
On Sat, 28 Jun 2014 19:53:08 -0500 Canek Peláez Valdés can...@gmail.com wrote: On Sat, Jun 28, 2014 at 7:37 PM, gottl...@nyu.edu wrote: On Sat, Jun 28 2014, Canek Peláez Valdés wrote: That doesn't matter. Take a non-negative integer N; if you flip a coin an infinite number of times, then the probability of the coin landing on the same face N times in a row is 1. This is certainly true. This means that it is *guaranteed* to happen That is not as clear. Let me be more precise (and please correct me if I'm wrong): It is guaranteed to happen at some point in the infinite sequence of random flip coins, but we cannot know when it will happen, only that it will happen. That's the way I got it when I took my probability courses, admittedly many years ago. The probability is 1 in the sense that the as the number of flips M increases, so does the probability of getting N heads (or tails) in a row also increases, and the upper bound for the sequence of probabilities is 1. It's not a probability about something which actually happens; no one so far has been able to flip a coin an infinite number of times, not even a computer. In any way, even if I'm wrong and it is not guaranteed, the main point remains true: the probability of getting a large sequence of the same number from a RNG is 1 for every true random RNG, and therefore seeing a large sequence of the same number form a RNG doesn't (technically) means that it is broken. It's true that that wouldn't *prove* the generator is broken. But it might be a good reason to take another look at the algorithm. Regards.
Re: [gentoo-user] Re: OT: Mapping random numbers (PRNG)
On Sat, Jun 28, 2014 at 8:46 PM, »Q« boxc...@gmx.net wrote: On Sat, 28 Jun 2014 19:53:08 -0500 Canek Peláez Valdés can...@gmail.com wrote: On Sat, Jun 28, 2014 at 7:37 PM, gottl...@nyu.edu wrote: On Sat, Jun 28 2014, Canek Peláez Valdés wrote: That doesn't matter. Take a non-negative integer N; if you flip a coin an infinite number of times, then the probability of the coin landing on the same face N times in a row is 1. This is certainly true. This means that it is *guaranteed* to happen That is not as clear. Let me be more precise (and please correct me if I'm wrong): It is guaranteed to happen at some point in the infinite sequence of random flip coins, but we cannot know when it will happen, only that it will happen. That's the way I got it when I took my probability courses, admittedly many years ago. The probability is 1 in the sense that the as the number of flips M increases, so does the probability of getting N heads (or tails) in a row also increases, and the upper bound for the sequence of probabilities is 1. It's not a probability about something which actually happens; no one so far has been able to flip a coin an infinite number of times, not even a computer. And no one will. Ever. In any way, even if I'm wrong and it is not guaranteed, the main point remains true: the probability of getting a large sequence of the same number from a RNG is 1 for every true random RNG, and therefore seeing a large sequence of the same number form a RNG doesn't (technically) means that it is broken. It's true that that wouldn't *prove* the generator is broken. But it might be a good reason to take another look at the algorithm. Agreed. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México
Re: [gentoo-user] smartctrl drive error @60%
Dale wrote: Howdy, I run this test every once in a while. How bad is this: root@fireball / # smartctl -l selftest /dev/sdc smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_DescriptionStatus Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offlineCompleted: read failure 60% 16365 2905482560 # 2 Extended offlineCompleted: read failure 60% 16352 2905482560 # 3 Extended offlineCompleted without error 00% 8044 - # 4 Extended offlineCompleted without error 00% 3121 - And better yet, is there any way to tell it to not use that part and finish the test? It seems it stopped when it got to that, or I think it did. Thoughts? Dale :-) :-) OK. Update. I got the new drive in, copied the files over, tested the new drive A LOT, then did a dd on the old drive and wiped the WHOLE thing. I let dd run until it ran out of space and died, which took a pretty good while. After dd finished, I ran the Smart test again. This is what I get now: root@fireball / # smartctl -l selftest /dev/sdd smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_DescriptionStatus Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offlineCompleted without error 00% 16466 - # 2 Extended offlineAborted by host 90% 16461 - # 3 Extended offlineCompleted: read failure 60% 16451 2905482560 # 4 Extended offlineCompleted: read failure 60% 16432 2905482560 # 5 Extended offlineCompleted: read failure 60% 16427 2905482560 Ignore the second one, I started the test on the old drive and was meaning to do it on the new drive. When dd finished, I wanted to start a fresh test so I killed the second one. As you can see in the latest test, no errors. So, thoughts? Did it mark that part as bad and all is well or is this going to be trouble down the line? Should I just fill the thing up with data and test the stuffin out of it to make sure? Thanks. Dale :-) :-)
Re: [gentoo-user] smartctrl drive error @60%
On Sat, Jun 28, 2014 at 11:27 PM, Dale rdalek1...@gmail.com wrote: So, thoughts? Did it mark that part as bad and all is well or is this going to be trouble down the line? Should I just fill the thing up with data and test the stuffin out of it to make sure? That is pretty typical. You wrote to every sector on the drive. You don't need to be able to read a sector to overwrite it, so doing this cleared out the drive's list of offline uncorrectable sectors. If you're fortunate it relocated those sectors in which case the drive is only using good sectors now. It can't relocate a sector unless it either gets a successful read, or it is overwritten, and you overwrote them. Either way the extended offline test passing isn't unusual. Either it relocated the sectors in which case the drive is completely good or the data written to the bad sectors was readable when the test was run, which doesn't guarantee that it will still be readable a day/week/month/year from now. Unfortunately I don't think there is any way to find out what the firmware is doing, or to predict the likelihood of another failure. The only thing we can say for sure that like all hard drives, it WILL fail sometime. Rich
Re: [gentoo-user] smartctrl drive error @60%
Rich Freeman wrote: On Sat, Jun 28, 2014 at 11:27 PM, Dale rdalek1...@gmail.com wrote: So, thoughts? Did it mark that part as bad and all is well or is this going to be trouble down the line? Should I just fill the thing up with data and test the stuffin out of it to make sure? That is pretty typical. You wrote to every sector on the drive. You don't need to be able to read a sector to overwrite it, so doing this cleared out the drive's list of offline uncorrectable sectors. If you're fortunate it relocated those sectors in which case the drive is only using good sectors now. It can't relocate a sector unless it either gets a successful read, or it is overwritten, and you overwrote them. Either way the extended offline test passing isn't unusual. Either it relocated the sectors in which case the drive is completely good or the data written to the bad sectors was readable when the test was run, which doesn't guarantee that it will still be readable a day/week/month/year from now. Unfortunately I don't think there is any way to find out what the firmware is doing, or to predict the likelihood of another failure. The only thing we can say for sure that like all hard drives, it WILL fail sometime. Rich What if I copied data to the drive until it was just about full. I'm thinking like maybe 90 or 95% or so. If I do that and run the test every few days, would it then catch a error after a few weeks or so of testing? I realize no one knows with 100% certainty but I would like to backup my data say every couple weeks just in case. If the drive works, fine. If it fails, well, it wouldn't be the first time and it won't be a primary drive so no big loss. I got to find me a good drive for backups tho. I'm waiting on a good sale of a brand other than Seagate tho. That should help keep two drives from failing at the same time. Well, a little anyway. I think it is called Dale's Law now. ;-) Dale :-) :-)