Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Dale rdalek1...@gmail.com [14-07-26 09:54]:
 meino.cra...@gmx.de wrote:
  Hi,
 
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
 
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  LifeTime(hours) 
   LBA_of_first_error
  # 1  Extended offlineCompleted: read failure   90% 14460
   4288352511
  197 Current_Pending_Sector  0x0032   200   200   000Old_age   Always
 -   1
 
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
 
  My partition layout is:
  # sudo fdisk -lu /dev/sda
 
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
 
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
 
 
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
 
  Or (more obvious) I did something wrong...
 
  How can I correctly identify the partition, which contains the bad
  block?
  How can I get a full list of all bad blocks (if any) from a mounted
  file systems?
  How severe is the problem?
 
  Thank you very much for any help in advance!
  Best regards,
  mcc
 
 
 I ran into this recently on the drive that has my home partition on it. 
 Someone posted that it *may* be fixable without moving data etc etc.  I
 didn't have a backup at the time and nothing large enough to make one so
 I just ordered a new drive.  When I got the new drive in and moved my
 data over, then I played with the drive a bit.  I used dd to erase the
 drive, then stuck a file system back on it and filled it up.  After
 doing that, the drive seems to have marked that part as bad and doesn't
 use it anymore.  It has passed every test since then. 
 
 My point is this, backups for sure just in case but you may be able to
 get the drive to mark that area as bad by moving that data off there. 
 In my case, the files were corrupted and gone.  Yea, I might could have
 sent it somewhere but I ain't into that.  To much money for files I can
 replace if needed.  I think it was like 3 or 4 video files.  I'd find
 out what files are there, see what damage has occurred so that you can
 correct later, then find one really good howto and follow it.   From my
 understanding, if you can move that data in the bad spot off there, the
 drive sort of fixes itself.  If yours works like mine did, you should be
 OK but I'd use it for stuff that ain't so important.  I use mine as a
 backup drive and test it a lot.  ;-)  I may trust it again, one day. 
 
 So, most likely you will have some files corrupted at least.  The drive
 *may* be fixable if you can figure out what files to move so that the
 drive can do its magic.  Key thing is, finding out what to move so that
 the drive can do its work.  Two options, try to move files so the drive
 can do its thing or move all the data to another drive, do like I did
 mine with dd and give it a fresh start that way.   I didn't feel I had
 the experience to try and move the files so I took the 2nd option.  Now
 I wish I had done option #1 and took notes that I could pass on.  That
 would likely help you more. 
 
 BTW, my drive gave that error for weeks and never got worse.  I could be
 lucky on that one so do what needs doing as soon as you can, just in
 case.  The last drive that really failed on me years ago, I got a
 serious warning from SMART.  It even said I had like 24 hours to get my
 data off.  It needs attention in your case but hopefully you will have
 the results I did in the end and you have time to deal with it.
 
 Dale
 
 :-)  :-) 
 


Hi Dale,

thank you very much for the explanations you gave...and for the hope
in it ;) :)

In the meanwhile I found ddrescue... :)

It took me five hours to copy the disk (1T) binaryly (this word looks
wrong...) to another identical one with ddrescue. This beast is
smart...it first copies all what it is able to read 

Re: [gentoo-user] Re: acroread woes

2014-07-26 Thread Mick
On Saturday 26 Jul 2014 03:23:18 James wrote:
 Hmmm. I cannot find 'qpdfviewer' even as an overlay?  How did you install
 it?

I beg your pardon!  I meant to have typed qpdfview:

qfile /usr/bin/qpdfview
app-text/qpdfview (/usr/bin/qpdfview)


$ eix -l qpdfview
[I] app-text/qpdfview
 Available versions:  
0.4.3   [cups dbus djvu +pdf postscript sqlite +svg synctex 
LINGUAS=ast az bg bs ca cs da de el en_GB eo es eu fi fr he hr id it ky ms my 
pl pt_BR ro ru sk tr ug uk zh_CN]
   ~0.4.7   [cups dbus djvu +pdf postscript sqlite +svg synctex 
LINGUAS=ast az bg bs ca cs da de el en_GB eo es eu fi fr gl he hr id it kk ky 
ms my pl pt pt_BR ro ru sk tr ug uk zh_CN]
 Installed versions:  0.4.3(14:44:10 06/29/13)(cups dbus pdf sqlite svg -
djvu -postscript -synctex LINGUAS=en_GB -ast -az -bg -bs -ca -cs -da -de -el 
-eo -es -eu -fi -fr -he -hr -id -it -ky -ms -my -pl -pt_BR -ro -ru -sk -tr -ug 
-uk -zh_CN)
 Homepage:http://launchpad.net/qpdfview
 Description: A tabbed document viewer

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Mick
On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
 Hi,
 
 After running smartctl for an extended offline test I got
 a badblock (information extracted from the report):
 
 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining  LifeTime(hours)
  LBA_of_first_error # 1  Extended offlineCompleted: read failure  
 90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
  200   000Old_age   Always   -   1
 
 I found a explanation to map the LBA to a partition here:
 http://smartmontools.sourceforge.net/badblockhowto.html
 
 My partition layout is:
 # sudo fdisk -lu /dev/sda
 
 Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
 Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos
 Disk identifier: 0x07ec16a2
 
 Device Boot  StartEndBlocks  Id System
 /dev/sda1  *  2048 104447 51200  83 Linux
 /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
 /dev/sda3 12687360  222402559 104857600  83 Linux
 /dev/sda4222402560 1953525167 865561304   5 Extended
 /dev/sda5222404608  232890367   5242880  83 Linux
 /dev/sda6232892416  442607615 104857600  83 Linux
 /dev/sda7442609664  652324863 104857600  83 Linux
 /dev/sda8652326912  862042111 104857600  83 Linux
 /dev/sda9862044160 1071759359 104857600  83 Linux
 /dev/sda10  1071761408 1281476607 104857600  83 Linux
 /dev/sda11  1281478656 1491193855 104857600  83 Linux
 /dev/sda12  1491195904 1953525167 231164632  83 Linux
 4288352511   The number reported by smartctl
 
 
 Following the linked document...
 It seems the bad LBA is not on the checked harddisk.
 
 Or (more obvious) I did something wrong...

You are probably comparing different units.  The Start and End of fdisk are 
reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
reported by smartctl in bytes, you have:

4,288,352,511 ÷ 512 = 8,375,688.5

which would place it within your swap partition.

I would do this:

 swapoff /dev/sda2

 dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc

 mkswap -L swap -c /dev/sda2

 swapon /dev/sda2

and hopefully the problem will be gone when you run the next smartctl test.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] adobe flash

2014-07-26 Thread Peter Humphrey
On Friday 25 July 2014 15:26:11 I wrote:
 On Friday 25 July 2014 09:30:43 Neil Bothwick wrote:
  On Fri, 25 Jul 2014 08:32:23 +0100, Peter Humphrey wrote:
 I can't use any of the other packages because I use the BBC's radio
 streaming service every day, and none of them work with it (as far
 as I know).

Have you looked at the get_iplayer script?
   
   No, I hadn't heard of it. Looks interesting - thanks Mick.
  
  There's also radiotray is you want an unobtrusive way of listening to the
  radio without the web 2.0 enhanced experience.
 
 Even better! I'm running it now, having found a working URL from their
 bookmarks file.
 
 Thank you both, gents.

Postscript:

There's a comprehensive list of BBC stations at [1]. If anyone's interested 
and wants to use it, you'll have to fix a bug first. The 45 bookmark entries 
in the full BBC regional group are all missing a / character just before the 
line end.

I've attached a fixed version hereto to save you the bother.

[1] http://jbbr.co.uk/jbbr/2013/02/23/radiotray-bbc-radio-bookmarks-xml/

-- 
Regards
Peter


bookmarks.xml
Description: XML document


Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Mick michaelkintz...@gmail.com [14-07-26 11:28]:
 On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
  Hi,
  
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
  
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  LifeTime(hours)
   LBA_of_first_error # 1  Extended offlineCompleted: read failure  
  90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
   200   000Old_age   Always   -   1
  
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
  
  My partition layout is:
  # sudo fdisk -lu /dev/sda
  
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
  
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
  
  
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
  
  Or (more obvious) I did something wrong...
 
 You are probably comparing different units.  The Start and End of fdisk are 
 reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
 reported by smartctl in bytes, you have:
 
 4,288,352,511 ÷ 512 = 8,375,688.5
 
 which would place it within your swap partition.
 
 I would do this:
 
  swapoff /dev/sda2
 
  dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 
  mkswap -L swap -c /dev/sda2
 
  swapon /dev/sda2
 
 and hopefully the problem will be gone when you run the next smartctl test.
 
 -- 
 Regards,
 Mick

Hi MIck, 

thanks a lot for the clearification!

It also solves the problem, that fsck does not report any problem
for the partitions...because there is none ;)
Which are good news.

I will clear the swap and report later what happens!

Best regards and have a nice weekend!
mcc








Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Mick michaelkintz...@gmail.com [14-07-26 11:28]:
 On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
  Hi,
  
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
  
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  LifeTime(hours)
   LBA_of_first_error # 1  Extended offlineCompleted: read failure  
  90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
   200   000Old_age   Always   -   1
  
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
  
  My partition layout is:
  # sudo fdisk -lu /dev/sda
  
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
  
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
  
  
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
  
  Or (more obvious) I did something wrong...
 
 You are probably comparing different units.  The Start and End of fdisk are 
 reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
 reported by smartctl in bytes, you have:
 
 4,288,352,511 ÷ 512 = 8,375,688.5
 
 which would place it within your swap partition.
 
 I would do this:
 
  swapoff /dev/sda2
 
  dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 
  mkswap -L swap -c /dev/sda2
 
  swapon /dev/sda2
 
 and hopefully the problem will be gone when you run the next smartctl test.
 
 -- 
 Regards,
 Mick

Hi Mick,

got this:

# /rootmkswap -L swap -c /dev/sda2
1 bad page
Setting up swapspace version 1, size = 6291448 KiB
LABEL=swap, UUID=71686035-fad3-427c-a3a5-c86ac6aefa2f


...so the dd-command hasn't triggered the remapping?

What do you suggest how to proceed?
New harddrive?
Or?

Best regards,
mcc








Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Mick michaelkintz...@gmail.com [14-07-26 11:28]:
 On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
  Hi,
  
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
  
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  LifeTime(hours)
   LBA_of_first_error # 1  Extended offlineCompleted: read failure  
  90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
   200   000Old_age   Always   -   1
  
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
  
  My partition layout is:
  # sudo fdisk -lu /dev/sda
  
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
  
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
  
  
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
  
  Or (more obvious) I did something wrong...
 
 You are probably comparing different units.  The Start and End of fdisk are 
 reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
 reported by smartctl in bytes, you have:
 
 4,288,352,511 ÷ 512 = 8,375,688.5
 
 which would place it within your swap partition.
 
 I would do this:
 
  swapoff /dev/sda2
 
  dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 
  mkswap -L swap -c /dev/sda2
 
  swapon /dev/sda2
 
 and hopefully the problem will be gone when you run the next smartctl test.
 
 -- 
 Regards,
 Mick


Sorry for stuutering postings...overlocked this one:
#dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
dd: error writing ‘/dev/sda2’: Input/output error

Hrrrmpfff...

Why does it nt remap those ones?

Best regards,
mcc








Re: [gentoo-user] wxGTK compilation fails missing thread.h

2014-07-26 Thread Adam Carter
On Fri, Jul 25, 2014 at 5:48 PM, Peter Humphrey pe...@prh.myzen.co.uk
wrote:

 On Wednesday 23 July 2014 15:38:42 Adam Carter wrote:
  Here's what i get;
 
 /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/u
  nix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or directory
  make: *** [basedll_threadpsx.o] Error 1
 
  Any ideas? Would thread.h be supplied by another package? linux-headers
  doesnt have it.

 I sometimes find this error coming from multi-thread compilation. I fix it
 by
 prepending the emerge command with MAKEOPTS=-j1. You could try that.


I always try -j1 when anything fails to avoid troubling the list, however
it didnt help in this case. Did you suspect that thread.h is generated by
the package build process, or is there some other reason why parallel build
could cause this problem? AFAIK header files are not generated. I would
have guessed its a path problem or missing dependency.


Re: [gentoo-user] wxGTK compilation fails missing thread.h

2014-07-26 Thread Alexander Kapshuk
On 07/26/2014 01:47 PM, Adam Carter wrote:
 On Fri, Jul 25, 2014 at 5:48 PM, Peter Humphrey pe...@prh.myzen.co.uk
 mailto:pe...@prh.myzen.co.uk wrote:

 On Wednesday 23 July 2014 15:38:42 Adam Carter wrote:
  Here's what i get;
 
 
 /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/u
  nix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or
 directory
  make: *** [basedll_threadpsx.o] Error 1
 
  Any ideas? Would thread.h be supplied by another package?
 linux-headers
  doesnt have it.

 I sometimes find this error coming from multi-thread compilation.
 I fix it by
 prepending the emerge command with MAKEOPTS=-j1. You could try that.


 I always try -j1 when anything fails to avoid troubling the list,
 however it didnt help in this case. Did you suspect that thread.h is
 generated by the package build process, or is there some other reason
 why parallel build could cause this problem? AFAIK header files are
 not generated. I would have guessed its a path problem or missing
 dependency.
I seem to have the same version of wxGTK as you:
equery -q l wxGTK
x11-libs/wxGTK-2.8.12.1-r1

To the best of my knowledge, I did not experience any trouble building
the package in question.

threadpsx.cpp has these two references to 'thread.h':
wxPython-src-2.8.12.1/src/unix/threadpsx.cpp:27,29
#if wxUSE_THREADS

#include wx/thread.h

wxPython-src-2.8.12.1/src/unix/threadpsx.cpp:50,52
#ifdef HAVE_THR_SETCONCURRENCY
#include thread.h
#endif

You may want to check if you have this file available on your system:
/usr/include/wx-2.8/wx/thread.h




Re: [gentoo-user] Regular user can't mount/unmount mtpfs; root is OK

2014-07-26 Thread Dark Templar
25.07.2014 02:52, Neil Bothwick пишет:
 On Tue, 22 Jul 2014 18:23:47 -0400, Walter Dnes wrote:

   I'm a total noobie at mtpfs/FUSE.  My excellent adventure started
 yesterday when I got a clearout 7 tablet, and took a sample photo, and
 tried mounting the tablet... no /dev/sdb to be found anywhere.  I went
 to Mr. Google for help, and found out that MTP is the new and
 improved way of doing things.
 Improved, maybe, necessary, definitely. The old way of using mass storage
 meant the storage had to be unmounted on the phone first, which could
 break running applications.

 So I installed mtpfs.  It works great
 for root, but a regular user can't mount the tablet.  The mtpfs command
 immediately returns to the command prompt, with no error message or any
 other info.
 I has problems with mtpfs and switched to jmtpfs, which works much
 better. Or you can install SSHd on the tablet and use scp/sshfs.


I had problems with mtpfs and switched to simple-mtpfs, which works fine
for me.



Fwd: Re: [gentoo-user] wxGTK compilation fails missing thread.h

2014-07-26 Thread Alexander Kapshuk
Forgot to mention.

equery -q b /usr/include/wx-2.8/wx/thread.h
x11-libs/wxGTK-2.8.12.1-r1





Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Volker Armin Hemmann
Am 26.07.2014 03:49, schrieb meino.cra...@gmx.de:
 How severe is the problem?

first bad block? Not at all. Your drive's firmware knows about it, so
all read/write access should either generate an error your system can
deal with or will be mapped tranparently to a working reserve block.

Since it is swap, no fs error occured and no data was lost. So... be happy.



[gentoo-user] re: which NTPd package to use?

2014-07-26 Thread Alexander Kapshuk
Howdy,

Which NTPd package would the list recommend using, ntp, openntpd, or
some other package?

openntpd seems to be easier to set up according to wiki.gentoo.org.

The list's advice would be much appreciated.




Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Volker Armin Hemmann
Am 26.07.2014 12:26, schrieb meino.cra...@gmx.de:
 Mick michaelkintz...@gmail.com [14-07-26 11:28]:
 On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
 Hi,

 After running smartctl for an extended offline test I got
 a badblock (information extracted from the report):

 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining  LifeTime(hours)
  LBA_of_first_error # 1  Extended offlineCompleted: read failure  
 90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
  200   000Old_age   Always   -   1

 I found a explanation to map the LBA to a partition here:
 http://smartmontools.sourceforge.net/badblockhowto.html

 My partition layout is:
 # sudo fdisk -lu /dev/sda

 Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
 Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos
 Disk identifier: 0x07ec16a2

 Device Boot  StartEndBlocks  Id System
 /dev/sda1  *  2048 104447 51200  83 Linux
 /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
 /dev/sda3 12687360  222402559 104857600  83 Linux
 /dev/sda4222402560 1953525167 865561304   5 Extended
 /dev/sda5222404608  232890367   5242880  83 Linux
 /dev/sda6232892416  442607615 104857600  83 Linux
 /dev/sda7442609664  652324863 104857600  83 Linux
 /dev/sda8652326912  862042111 104857600  83 Linux
 /dev/sda9862044160 1071759359 104857600  83 Linux
 /dev/sda10  1071761408 1281476607 104857600  83 Linux
 /dev/sda11  1281478656 1491193855 104857600  83 Linux
 /dev/sda12  1491195904 1953525167 231164632  83 Linux
 4288352511   The number reported by smartctl


 Following the linked document...
 It seems the bad LBA is not on the checked harddisk.

 Or (more obvious) I did something wrong...
 You are probably comparing different units.  The Start and End of fdisk are 
 reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
 reported by smartctl in bytes, you have:

 4,288,352,511 ÷ 512 = 8,375,688.5

 which would place it within your swap partition.

 I would do this:

  swapoff /dev/sda2

  dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc

  mkswap -L swap -c /dev/sda2

  swapon /dev/sda2

 and hopefully the problem will be gone when you run the next smartctl test.

 -- 
 Regards,
 Mick

 Sorry for stuutering postings...overlocked this one:
 #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 dd: error writing ‘/dev/sda2’: Input/output error

 Hrrrmpfff...

 Why does it nt remap those ones?

 Best regards,
 mcc







smartctl -a /dev/sda

without those information: crystal ball.

that said: it is swap. You shouldn't have to do anything. Don't touch dd.





Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Dale
Volker Armin Hemmann wrote:
 Am 26.07.2014 03:49, schrieb meino.cra...@gmx.de:
 How severe is the problem?

 first bad block? Not at all. Your drive's firmware knows about it, so
 all read/write access should either generate an error your system can
 deal with or will be mapped tranparently to a working reserve block.

 Since it is swap, no fs error occured and no data was lost. So... be happy.

 .


I wish I could have been that lucky.  ;-)

Dale

:-)  :-)



Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 14:08]:
 Am 26.07.2014 12:26, schrieb meino.cra...@gmx.de:
  Mick michaelkintz...@gmail.com [14-07-26 11:28]:
  On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
  Hi,
 
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
 
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  
  LifeTime(hours)
   LBA_of_first_error # 1  Extended offlineCompleted: read failure  
  90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
   200   000Old_age   Always   -   1
 
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
 
  My partition layout is:
  # sudo fdisk -lu /dev/sda
 
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
 
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
 
 
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
 
  Or (more obvious) I did something wrong...
  You are probably comparing different units.  The Start and End of fdisk 
  are 
  reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
  reported by smartctl in bytes, you have:
 
  4,288,352,511 ÷ 512 = 8,375,688.5
 
  which would place it within your swap partition.
 
  I would do this:
 
   swapoff /dev/sda2
 
   dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 
   mkswap -L swap -c /dev/sda2
 
   swapon /dev/sda2
 
  and hopefully the problem will be gone when you run the next smartctl test.
 
  -- 
  Regards,
  Mick
 
  Sorry for stuutering postings...overlocked this one:
  #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
  dd: error writing ‘/dev/sda2’: Input/output error
 
  Hrrrmpfff...
 
  Why does it nt remap those ones?
 
  Best regards,
  mcc
 
 
 
 
 
 
 
 smartctl -a /dev/sda
 
 without those information: crystal ball.
 
 that said: it is swap. You shouldn't have to do anything. Don't touch dd.
 
 
 


Hi Volker,

what happens if swapped is used and the write access tapped on the
bad area?

Here is the output of smartctl:


smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.13-RT] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Green (AF)
Device Model: WDC WD10EARS-00Y5B1
Serial Number:WD-WMAV51276611
LU WWN Device Id: 5 0014ee 001f5fb47
Firmware Version: 80.00A80
User Capacity:1,000,204,886,016 bytes [1.00 TB]
Sector Size:  512 bytes logical/physical
Device is:In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:Sat Jul 26 14:16:19 2014 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x84) Offline data collection activity
was suspended by an interrupting 
command from host.
Auto Offline Data Collection: Enabled.
Self-test execution status:  ( 121) The previous self-test completed having
the read element of the test failed.
Total time to complete Offline 
data collection:(19380) seconds.
Offline data collection
capabilities:(0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off 
support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
 

Re: [gentoo-user] re: which NTPd package to use?

2014-07-26 Thread Dale
Alexander Kapshuk wrote:
 Howdy,

 Which NTPd package would the list recommend using, ntp, openntpd, or
 some other package?

 openntpd seems to be easier to set up according to wiki.gentoo.org.

 The list's advice would be much appreciated.




I have used ntp before, seen others recommend openntps.  At some point I
had trouble getting ntp and opentnpd to work so I started using chrony. 
It worked.  So, if you have trouble with the ntp options, give chrony a
try. 

My preference tho, ntp.  Both seems to be relatively active so flip a
coin and see which works.  :-)

Dale

:-)  :-)



Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Mick
On Saturday 26 Jul 2014 11:26:54 meino.cra...@gmx.de wrote:

 got this:
 
 # /rootmkswap -L swap -c /dev/sda2
 1 bad page

OK, so we know for sure now that the bad block was on your swap.  :-)


 Sorry for stuutering postings...overlocked this one:
 #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 dd: error writing ‘/dev/sda2’: Input/output error
 
 Hrrrmpfff...
 
 Why does it nt remap those ones?


As Volker posted since you don't even get a records in / records out from 
dd, it seems that it is the first block.  You can verify with badblocks -c 1  
-e 1 -o my_bad_blocks.txt if this is so.

The mkswap -c command will identify and mark the badblock so that this is not 
used again for allocating data to it.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] re: which NTPd package to use?

2014-07-26 Thread Alexander Kapshuk
On 07/26/2014 03:18 PM, Dale wrote:
 Alexander Kapshuk wrote:
 Howdy,

 Which NTPd package would the list recommend using, ntp, openntpd, or
 some other package?

 openntpd seems to be easier to set up according to wiki.gentoo.org.

 The list's advice would be much appreciated.



 I have used ntp before, seen others recommend openntps.  At some point I
 had trouble getting ntp and opentnpd to work so I started using chrony. 
 It worked.  So, if you have trouble with the ntp options, give chrony a
 try. 

 My preference tho, ntp.  Both seems to be relatively active so flip a
 coin and see which works.  :-)

 Dale

 :-)  :-)

Understood. Thanks.




[gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Holger Hoffstätte
On Sat, 26 Jul 2014 15:05:23 +0300, Alexander Kapshuk wrote:

 Which NTPd package would the list recommend using, ntp, openntpd, or
 some other package?

chrony - no competition, even for servers. ntpd is way overrated,
unnecessarily hard to setup correctly, fragile and contrary to
popular belief not even that accurate, unless you use external
HW clocks. Chrony is maintained by Red Hat in cooperation with the
timekeeping code in the kernel.

 openntpd seems to be easier to set up according to wiki.gentoo.org.

Many many years ago I helped port openntpd to Linux. It was OK-ish at
the time and easier/less hassle than ntpd, but the portable version for
Linux stopped working reliably many years ago due to kernel changes.
IMHO it really should no longer be in the tree since it gives a false
sense of accuracy.

just my 0.01€..

-h




Re: [gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Alexander Kapshuk
On 07/26/2014 03:31 PM, Holger Hoffstätte wrote:
 On Sat, 26 Jul 2014 15:05:23 +0300, Alexander Kapshuk wrote:

 Which NTPd package would the list recommend using, ntp, openntpd, or
 some other package?
 chrony - no competition, even for servers. ntpd is way overrated,
 unnecessarily hard to setup correctly, fragile and contrary to
 popular belief not even that accurate, unless you use external
 HW clocks. Chrony is maintained by Red Hat in cooperation with the
 timekeeping code in the kernel.

 openntpd seems to be easier to set up according to wiki.gentoo.org.
 Many many years ago I helped port openntpd to Linux. It was OK-ish at
 the time and easier/less hassle than ntpd, but the portable version for
 Linux stopped working reliably many years ago due to kernel changes.
 IMHO it really should no longer be in the tree since it gives a false
 sense of accuracy.

 just my 0.01€..

 -h


Thanks. That sounds interesting.




Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?

2014-07-26 Thread Alan McKinnon
On 26/07/2014 04:47, walt wrote:
 In this case, the brain dead sysadmin would be moi :)
 
 For years I've been using NFS to share /usr/portage with all of the
 gentoo machines on my LAN.
 
 Problem:  occasionally it stops working for no apparent reason.
 
 Example:  two days ago I updated two ~amd64 gentoo machines, both of
 which have been mounting /usr/portage as NFS3 shares for at least a
 year with no problems.
 
 One machine worked normally after the update, the other was unable to
 mount /usr/portage because rpc.statd wouldn't start correctly.
 
 After two frustrating days I discovered that I had never enabled the
 rpcbind.service on the broken machine.  So I enabled rpcbind, which
 fixed the breakage.
 
 So, why did the broken machine work normally for more than a year
 without rpcbind until two days ago?  (I suppose because nfs-utils was
 updated to 1.3.0 ?)
 
 The real problem here is that I have no idea how NFS works, and each
 new version is more complicated because the devs are solving problems
 that I don't understand or even know about.
 
 So, please, what's the best way to learn and understand NFS?


I think you are asking for the impossible :-)

NFS is not easy to set up, and even harder to describe. It is easy to
*use* once it's set up correctly - you just mount something and the only
difference to a local mount is you add an IP address.

NFS uses RPC to do some heavy lifting - I don't know how familiar you
are with this, so here's the quick version:

When you mount something locally, and need to use the mounted
filesystem, kernel calls are used to get at the data. This works easily
as the source disk is local and the kernel can get to it. With NFS, the
source disk is remote and it's the remote kernel that must do the
accessing. RPC is a way to safely ask a remote kernel to do something
and get a result that behaves identical to a local kernel call.
Obviously, this is rather hard to implement correctly.

The original RPC was written by Sun and other newer implementations
exist, like libtirpc - to support useful features like not being stuck
with only UDP. That's what the ti means - Transport Independant.

RPC has been in a state of flux for some time and I too have run into
init-script oddities as things change.

In my case, I have nfs-utils-1.3.0, and rc-update configuredd to start
rpc.statd. This works because

depend() {
...
need portmap
...
}

and in the init.d file for rpcbind:

depend() {
...
provide portmap
}

So rpcbind starts at boot time and all my nfs mounts JustWork

Looks to me like your problem is actually with rpc and more specifically
with what things are currently named today (which could be different to
yesterday). Unfortunately I don't know of a place where this is all
nicely described in a sane manner except inside the init files themselves.



-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
The first reboot after recent update of the system have
shown that I cannot open any webpage in Firefox.

More exactly, Firefox or my system cannot any more resolve
URL to IP address (sorry if I use wrong terms).

Thus,
   host gmail.com
gives:
   ;; connection timed out no servers could be reached

Nevertheless
dig @8.8.8.8 gmail.com
reports the corresponding IP adresses.

I have not changed any my network settings and my
/etc/conf.d/net file still contains list of my DNS servers
that contains server 8.8.8.8 as well but somehow it is
not enough any more. :(

During my last system update, I suddenly found that
I had to update about 150 packages, what was a little
bit strange as I update my system at least once a week.

I have attributed that to the remnants of gnome2 (now I am using
fxce4) that I have not cleaned completely and that is now going
to update. So, I deviated a bit from my usual system update routine
trying to fix that. Nevertheless, as to my view, during my system update
I did nothing to distroy the DNS lookup.

Luckily, I save my system update logs and now can attach
the last one to this e-mail.

Please, help me to recover my internet access,
as I still have to do a lot of real work till Monday
and have not enough time to investigate this problem
alone and without a proper internet access. :(
# emerge-webrsync
Fetching most recent snapshot ...
Trying to retrieve 20140724 snapshot from http://de-mirror.org/gentoo ...
Fetching file portage-20140724.tar.xz.md5sum ...
Fetching file portage-20140724.tar.xz.gpgsig ...
Fetching file portage-20140724.tar.xz ...
Checking digest ...
Checking signature ...
gpg: Signature made Fri 25 Jul 2014 03:55:29 AM EEST using RSA key ID C9189250
gpg: Good signature from Gentoo Portage Snapshot Signing Key (Automated 
Signing Key) [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the owner.
Primary key fingerprint: DCD0 5B71 EAB9 4199 527F  44AC DB6B 8C1F 96D8 BF6D
 Subkey fingerprint: E1D6 ABB6 3BFC FB4B A02F  DF1C EC59 0EEA C918 9250
Getting snapshot timestamp ...
Syncing local tree ...

Number of files: 180119
Number of files transferred: 5148
Total file size: 327.62M bytes
Total transferred file size: 35.67M bytes
Literal data: 35.67M bytes
Matched data: 0 bytes
File list size: 4.56M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 16.10M
Total bytes received: 124.13K

sent 16.10M bytes  received 124.13K bytes  135.75K bytes/sec
total size is 327.62M  speedup is 20.20
Cleaning up ...
q: Updating ebuild cache ... 
q: Finished 37417 entries in 0.297930 seconds

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)
@

# emerge --update --deep --with-bdeps=y --newuse --ask world

These are the packages that would be merged, in order:

Calculating dependencies... done!

The following packages are causing rebuilds:

  (media-libs/libmng-2.0.2-r1::gentoo, ebuild scheduled for merge) causes 
rebuilds for:
(dev-qt/qtgui-4.8.5-r3::gentoo, ebuild scheduled for merge)
  (gnome-base/gnome-desktop-3.12.2::gentoo, ebuild scheduled for merge) causes 
rebuilds for:
(gnome-extra/gnome-screensaver-3.6.1::gentoo, ebuild scheduled for merge)
  (media-libs/x264-0.0.20140308::gentoo, ebuild scheduled for merge) causes 
rebuilds for:
(media-video/vlc-2.1.2::gentoo, ebuild scheduled for merge)
[ebuild U  ] virtual/libintl-0-r1 [0] ABI_X86=(64%*) -32% (-x32) 
[ebuild U  ] media-libs/vo-aacenc-0.1.3 [0.1.2] ABI_X86=(64%*) (-32) 
(-x32) 
[ebuild U  ] gnome-base/gnome-common-3.12.0 [3.10.0]
[ebuild U  ] dev-libs/vala-common-0.24.0 [0.22.1]
[ebuild U  ] media-libs/libpng-1.6.12 [1.6.10]
[ebuild U  ] sys-libs/cracklib-2.9.1-r1 [2.9.1] ABI_X86=(64%*) (-32) 
(-x32) 
[ebuild U  ] x11-libs/gnome-pty-helper-0.36.3 [0.34.9]
[ebuild   R] media-libs/lcms-2.5 
[ebuild  r  U  ] media-libs/libmng-2.0.2-r1 [1.0.10-r1] ABI_X86=(64%*) (-32) 
(-x32) 
[ebuild  r  U  ] media-libs/x264-0.0.20140308 [0.0.20111220] USE=sse%* 
-opencl% ABI_X86=(64%*) (-32) (-x32) 
[ebuild U  ] media-libs/xvid-1.3.3 [1.3.2] ABI_X86=(64%*) (-32) (-x32) 
[ebuild U  ] dev-libs/gobject-introspection-common-1.40.0 [1.38.0]
[ebuild U  ] virtual/perl-Test-Simple-0.980.0-r5 [0.980.0-r4]
[ebuild U  ] perl-core/IO-1.25-r1 [1.25]
[ebuild U  ] virtual/perl-Digest-1.170.0-r3 [1.170.0-r1]
[ebuild U  ] virtual/perl-File-Spec-3.400.0-r2 [3.400.0-r1]
[ebuild U  ] dev-lang/orc-0.4.19 [0.4.18]
[ebuild U  ] virtual/perl-Scalar-List-Utils-1.270.0-r2 [1.270.0-r1]
[ebuild U  ] virtual/perl-Test-Harness-3.260.0-r2 [3.260.0-r1]
[ebuild U  ] virtual/perl-IO-Compress-2.60.0-r1 [2.60.0]
[ebuild U  ] perl-core/Archive-Tar-1.900.0-r1 [1.900.0]
[ebuild U  ] dev-db/sqlite-3.8.4.3 [3.8.2] ABI_X86=(64%*) (-32) (-x32) 
[ebuild   R] dev-libs/libgcrypt-1.5.3 
[ebuild U  ] 

Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 14:08]:
 Am 26.07.2014 12:26, schrieb meino.cra...@gmx.de:
  Mick michaelkintz...@gmail.com [14-07-26 11:28]:
  On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
  Hi,
 
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
 
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  
  LifeTime(hours)
   LBA_of_first_error # 1  Extended offlineCompleted: read failure  
  90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
   200   000Old_age   Always   -   1
 
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
 
  My partition layout is:
  # sudo fdisk -lu /dev/sda
 
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
 
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
 
 
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
 
  Or (more obvious) I did something wrong...
  You are probably comparing different units.  The Start and End of fdisk 
  are 
  reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
  reported by smartctl in bytes, you have:
 
  4,288,352,511 ÷ 512 = 8,375,688.5
 
  which would place it within your swap partition.
 
  I would do this:
 
   swapoff /dev/sda2
 
   dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 
   mkswap -L swap -c /dev/sda2
 
   swapon /dev/sda2
 
  and hopefully the problem will be gone when you run the next smartctl test.
 
  -- 
  Regards,
  Mick
 
  Sorry for stuutering postings...overlocked this one:
  #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
  dd: error writing ‘/dev/sda2’: Input/output error
 
  Hrrrmpfff...
 
  Why does it nt remap those ones?
 
  Best regards,
  mcc
 
 
 
 
 
 
 
 smartctl -a /dev/sda
 
 without those information: crystal ball.
 
 that said: it is swap. You shouldn't have to do anything. Don't touch dd.
 
 
 

I ask since only the FIRST bad sector is reported...:

...Since I have a read error in te very beginning of my hardisk...
Does this mean, that all coming smartcontrol tests will fail early and
the rest of the disc is NOT tested then?


best regards,
mcc






Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Volker Armin Hemmann
Am 26.07.2014 14:16, schrieb meino.cra...@gmx.de:
 Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 14:08]:
 Am 26.07.2014 12:26, schrieb meino.cra...@gmx.de:
 Mick michaelkintz...@gmail.com [14-07-26 11:28]:
 On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
 Hi,

 After running smartctl for an extended offline test I got
 a badblock (information extracted from the report):

 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining  
 LifeTime(hours)
  LBA_of_first_error # 1  Extended offlineCompleted: read failure  
 90% 14460 4288352511 197 Current_Pending_Sector  0x0032   200 
  200   000Old_age   Always   -   1

 I found a explanation to map the LBA to a partition here:
 http://smartmontools.sourceforge.net/badblockhowto.html

 My partition layout is:
 # sudo fdisk -lu /dev/sda

 Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
 Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos
 Disk identifier: 0x07ec16a2

 Device Boot  StartEndBlocks  Id System
 /dev/sda1  *  2048 104447 51200  83 Linux
 /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
 /dev/sda3 12687360  222402559 104857600  83 Linux
 /dev/sda4222402560 1953525167 865561304   5 Extended
 /dev/sda5222404608  232890367   5242880  83 Linux
 /dev/sda6232892416  442607615 104857600  83 Linux
 /dev/sda7442609664  652324863 104857600  83 Linux
 /dev/sda8652326912  862042111 104857600  83 Linux
 /dev/sda9862044160 1071759359 104857600  83 Linux
 /dev/sda10  1071761408 1281476607 104857600  83 Linux
 /dev/sda11  1281478656 1491193855 104857600  83 Linux
 /dev/sda12  1491195904 1953525167 231164632  83 Linux
 4288352511   The number reported by smartctl


 Following the linked document...
 It seems the bad LBA is not on the checked harddisk.

 Or (more obvious) I did something wrong...
 You are probably comparing different units.  The Start and End of fdisk 
 are 
 reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
 reported by smartctl in bytes, you have:

 4,288,352,511 ÷ 512 = 8,375,688.5

 which would place it within your swap partition.

 I would do this:

  swapoff /dev/sda2

  dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc

  mkswap -L swap -c /dev/sda2

  swapon /dev/sda2

 and hopefully the problem will be gone when you run the next smartctl test.

 -- 
 Regards,
 Mick
 Sorry for stuutering postings...overlocked this one:
 #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 dd: error writing ‘/dev/sda2’: Input/output error

 Hrrrmpfff...

 Why does it nt remap those ones?

 Best regards,
 mcc







 smartctl -a /dev/sda

 without those information: crystal ball.

 that said: it is swap. You shouldn't have to do anything. Don't touch dd.




 Hi Volker,

 what happens if swapped is used and the write access tapped on the
 bad area?

nothing. As soon as someone tries to write on that sector, the drive
will map it out.

That means 'pending'. Nobody tried to write on it yet, so the drive had
no reason to 'reallocate' it so far.

 Here is the output of smartctl:


 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.13-RT] (local build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

 === START OF INFORMATION SECTION ===
 Model Family: Western Digital Caviar Green (AF)
 Device Model: WDC WD10EARS-00Y5B1
 Serial Number:WD-WMAV51276611
 LU WWN Device Id: 5 0014ee 001f5fb47
 Firmware Version: 80.00A80
 User Capacity:1,000,204,886,016 bytes [1.00 TB]
 Sector Size:  512 bytes logical/physical
 Device is:In smartctl database [for details use: -P show]
 ATA Version is:   ATA8-ACS (minor revision not indicated)
 SATA Version is:  SATA 2.6, 3.0 Gb/s
 Local Time is:Sat Jul 26 14:16:19 2014 CEST
 SMART support is: Available - device has SMART capability.
 SMART support is: Enabled

 === START OF READ SMART DATA SECTION ===
 SMART overall-health self-assessment test result: PASSED

 General SMART Values:
 Offline data collection status:  (0x84)   Offline data collection activity
   was suspended by an interrupting 
 command from host.
   Auto Offline Data Collection: Enabled.
 Self-test execution status:  ( 121)   The previous self-test 
 completed having
   the read element of the test failed.
 Total time to complete Offline 
 data collection:  (19380) seconds.
 Offline data collection
 capabilities:  (0x7b) SMART execute Offline immediate.
   Auto Offline data collection on/off 
 support.
 

Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Alan McKinnon
On 26/07/2014 17:23, Grand Duet wrote:
 The first reboot after recent update of the system have
 shown that I cannot open any webpage in Firefox.
 
 More exactly, Firefox or my system cannot any more resolve
 URL to IP address (sorry if I use wrong terms).
 
 Thus,
host gmail.com http://gmail.com
 gives:
;; connection timed out no servers could be reached
 
 Nevertheless
 dig @8.8.8.8 http://8.8.8.8 gmail.com http://gmail.com
 reports the corresponding IP adresses.
 
 I have not changed any my network settings and my
 /etc/conf.d/net file still contains list of my DNS servers
 that contains server 8.8.8.8 as well but somehow it is
 not enough any more. :(
 
 During my last system update, I suddenly found that
 I had to update about 150 packages, what was a little
 bit strange as I update my system at least once a week.
 
 I have attributed that to the remnants of gnome2 (now I am using
 fxce4) that I have not cleaned completely and that is now going
 to update. So, I deviated a bit from my usual system update routine
 trying to fix that. Nevertheless, as to my view, during my system update
 I did nothing to distroy the DNS lookup.
 
 Luckily, I save my system update logs and now can attach
 the last one to this e-mail.
 
 Please, help me to recover my internet access,
 as I still have to do a lot of real work till Monday
 and have not enough time to investigate this problem
 alone and without a proper internet access. :( 



what is the contents of /etc/resolve.conf?





-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Jc García
2014-07-26 9:23 GMT-06:00 Grand Duet grand.d...@gmail.com:
 The first reboot after recent update of the system have
 shown that I cannot open any webpage in Firefox.

 More exactly, Firefox or my system cannot any more resolve
 URL to IP address (sorry if I use wrong terms).

 Thus,
host gmail.com
 gives:
;; connection timed out no servers could be reached

 Nevertheless
 dig @8.8.8.8 gmail.com
 reports the corresponding IP adresses.

 I have not changed any my network settings and my
 /etc/conf.d/net file still contains list of my DNS servers
 that contains server 8.8.8.8 as well but somehow it is
 not enough any more. :(

 During my last system update, I suddenly found that
 I had to update about 150 packages, what was a little
 bit strange as I update my system at least once a week.

 I have attributed that to the remnants of gnome2 (now I am using
 fxce4) that I have not cleaned completely and that is now going
 to update. So, I deviated a bit from my usual system update routine
 trying to fix that. Nevertheless, as to my view, during my system update
 I did nothing to distroy the DNS lookup.

 Luckily, I save my system update logs and now can attach
 the last one to this e-mail.

 Please, help me to recover my internet access,
 as I still have to do a lot of real work till Monday
 and have not enough time to investigate this problem
 alone and without a proper internet access. :(




You did verify your settings where correctly used to generate
/etc/resolv.conf ? if not, append some known dns to that file this
way:
nameserver 8.8.8.8
nameserver 8.8.4.4

verify connection to your gateway and internet with ping.



Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread meino . cramer
Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 18:00]:
 Am 26.07.2014 14:16, schrieb meino.cra...@gmx.de:
  Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 14:08]:
  Am 26.07.2014 12:26, schrieb meino.cra...@gmx.de:
  Mick michaelkintz...@gmail.com [14-07-26 11:28]:
  On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
  Hi,
 
  After running smartctl for an extended offline test I got
  a badblock (information extracted from the report):
 
  SMART Self-test log structure revision number 1
  Num  Test_DescriptionStatus  Remaining  
  LifeTime(hours)
   LBA_of_first_error # 1  Extended offlineCompleted: read failure

  90% 14460 4288352511 197 Current_Pending_Sector  0x0032   
  200 
   200   000Old_age   Always   -   1
 
  I found a explanation to map the LBA to a partition here:
  http://smartmontools.sourceforge.net/badblockhowto.html
 
  My partition layout is:
  # sudo fdisk -lu /dev/sda
 
  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x07ec16a2
 
  Device Boot  StartEndBlocks  Id System
  /dev/sda1  *  2048 104447 51200  83 Linux
  /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
  /dev/sda3 12687360  222402559 104857600  83 Linux
  /dev/sda4222402560 1953525167 865561304   5 Extended
  /dev/sda5222404608  232890367   5242880  83 Linux
  /dev/sda6232892416  442607615 104857600  83 Linux
  /dev/sda7442609664  652324863 104857600  83 Linux
  /dev/sda8652326912  862042111 104857600  83 Linux
  /dev/sda9862044160 1071759359 104857600  83 Linux
  /dev/sda10  1071761408 1281476607 104857600  83 Linux
  /dev/sda11  1281478656 1491193855 104857600  83 Linux
  /dev/sda12  1491195904 1953525167 231164632  83 Linux
  4288352511   The number reported by smartctl
 
 
  Following the linked document...
  It seems the bad LBA is not on the checked harddisk.
 
  Or (more obvious) I did something wrong...
  You are probably comparing different units.  The Start and End of fdisk 
  are 
  reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
  reported by smartctl in bytes, you have:
 
  4,288,352,511 ÷ 512 = 8,375,688.5
 
  which would place it within your swap partition.
 
  I would do this:
 
   swapoff /dev/sda2
 
   dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 
   mkswap -L swap -c /dev/sda2
 
   swapon /dev/sda2
 
  and hopefully the problem will be gone when you run the next smartctl 
  test.
 
  -- 
  Regards,
  Mick
  Sorry for stuutering postings...overlocked this one:
  #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
  dd: error writing ‘/dev/sda2’: Input/output error
 
  Hrrrmpfff...
 
  Why does it nt remap those ones?
 
  Best regards,
  mcc
 
 
 
 
 
 
 
  smartctl -a /dev/sda
 
  without those information: crystal ball.
 
  that said: it is swap. You shouldn't have to do anything. Don't touch dd.
 
 
 
 
 so you got one defective sector, the drive knows about it, it has 200
 spares and will use one when the need arises.
 
 


Unfortunaltely: No it doesnt.

I did a dd (as reported previously) of zeroes accross the affected
partition and dd fails to write ot the sector in question (IO error).

The selftest following again reports that sector as bad.

So...?

Best regards,
mcc





Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Mick
On Saturday 26 Jul 2014 16:23:20 Grand Duet wrote:
 The first reboot after recent update of the system have
 shown that I cannot open any webpage in Firefox.
 
 More exactly, Firefox or my system cannot any more resolve
 URL to IP address (sorry if I use wrong terms).
 
 Thus,
host gmail.com
 gives:
;; connection timed out no servers could be reached

OK, what does 'cat /etc/resolve.conf' shows?

It seems that you do not have a nameserver set up in your system?
 
 Nevertheless
 dig @8.8.8.8 gmail.com
 reports the corresponding IP adresses.

I'm guessing that 'dig gmail.com' doesn't come up with an answer?


 I have not changed any my network settings and my
 /etc/conf.d/net file still contains list of my DNS servers
 that contains server 8.8.8.8 as well but somehow it is
 not enough any more. :(

Do you then define the nameservers statically?

Do you use dhcpcd, or something else?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
2014-07-26 19:02 GMT+03:00 Alan McKinnon alan.mckin...@gmail.com:

 On 26/07/2014 17:23, Grand Duet wrote:
  The first reboot after recent update of the system have
  shown that I cannot open any webpage in Firefox.
 
  More exactly, Firefox or my system cannot any more resolve
  URL to IP address (sorry if I use wrong terms).
 
  Thus,
 host gmail.com http://gmail.com
  gives:
 ;; connection timed out no servers could be reached
 
  Nevertheless
  dig @8.8.8.8 http://8.8.8.8 gmail.com http://gmail.com
  reports the corresponding IP adresses.
 
  I have not changed any my network settings and my
  /etc/conf.d/net file still contains list of my DNS servers
  that contains server 8.8.8.8 as well but somehow it is
  not enough any more. :(
 
  During my last system update, I suddenly found that
  I had to update about 150 packages, what was a little
  bit strange as I update my system at least once a week.
 
  I have attributed that to the remnants of gnome2 (now I am using
  fxce4) that I have not cleaned completely and that is now going
  to update. So, I deviated a bit from my usual system update routine
  trying to fix that. Nevertheless, as to my view, during my system update
  I did nothing to distroy the DNS lookup.
 
  Luckily, I save my system update logs and now can attach
  the last one to this e-mail.
 
  Please, help me to recover my internet access,
  as I still have to do a lot of real work till Monday
  and have not enough time to investigate this problem
  alone and without a proper internet access. :(

 what is the contents of /etc/resolve.conf?

   # Generated by net-scripts for interface lo
   domain mynetwork

That is all.

I tried to add here lines like:

  nameserver 8.8.8.8

but found out that this file is rewritten on every reboot.

My net try was to create /etc/resolv.conf.tail file
and put that line there but that did not help either.



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Jc García
2014-07-26 10:16 GMT-06:00 Grand Duet grand.d...@gmail.com:


# Generated by net-scripts for interface lo
domain mynetwork

 That is all.

 I tried to add here lines like:

   nameserver 8.8.8.8

 but found out that this file is rewritten on every reboot.

 My net try was to create /etc/resolv.conf.tail file
 and put that line there but that did not help either.

if your system is using resolvconf to generate /etc/resolv.conf you
can use /etc/resolv.conf.head also with the same syntax, and its
content will get at the top on every reboot



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
2014-07-26 19:09 GMT+03:00 Jc García jyo.gar...@gmail.com:
 2014-07-26 9:23 GMT-06:00 Grand Duet grand.d...@gmail.com:
 The first reboot after recent update of the system have
 shown that I cannot open any webpage in Firefox.

 More exactly, Firefox or my system cannot any more resolve
 URL to IP address (sorry if I use wrong terms).

 Thus,
host gmail.com
 gives:
;; connection timed out no servers could be reached

 Nevertheless
 dig @8.8.8.8 gmail.com
 reports the corresponding IP adresses.

 I have not changed any my network settings and my
 /etc/conf.d/net file still contains list of my DNS servers
 that contains server 8.8.8.8 as well but somehow it is
 not enough any more. :(

 During my last system update, I suddenly found that
 I had to update about 150 packages, what was a little
 bit strange as I update my system at least once a week.

 I have attributed that to the remnants of gnome2 (now I am using
 fxce4) that I have not cleaned completely and that is now going
 to update. So, I deviated a bit from my usual system update routine
 trying to fix that. Nevertheless, as to my view, during my system update
 I did nothing to distroy the DNS lookup.

 Luckily, I save my system update logs and now can attach
 the last one to this e-mail.

 Please, help me to recover my internet access,
 as I still have to do a lot of real work till Monday
 and have not enough time to investigate this problem
 alone and without a proper internet access. :(




 You did verify your settings where correctly used to generate
 /etc/resolv.conf ?

I guess, no.

 if not, append some known dns to that file this way:
 nameserver 8.8.8.8
 nameserver 8.8.4.4

This does not help as /etc/resolv.conf is overwritten on every reboot.
Creating /etc/resolv.conf.tail also did not help.

 verify connection to your gateway and internet with ping.

It is ok. I am writing from the same subnet.



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Jc García
2014-07-26 10:22 GMT-06:00 Grand Duet grand.d...@gmail.com:
etc/resolv.conf ?

 I guess, no.

 if not, append some known dns to that file this way:
 nameserver 8.8.8.8
 nameserver 8.8.4.4

 This does not help as /etc/resolv.conf is overwritten on every reboot.
 Creating /etc/resolv.conf.tail also did not help.

 verify connection to your gateway and internet with ping.

 It is ok. I am writing from the same subnet.

That was just the trouble-shooting part, I use /etc/resolv.conf.head
as my permanent solution to dns nameservers setting on my desktop(see
my previous mail).



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
2014-07-26 19:13 GMT+03:00 Mick michaelkintz...@gmail.com:
 On Saturday 26 Jul 2014 16:23:20 Grand Duet wrote:
 The first reboot after recent update of the system have
 shown that I cannot open any webpage in Firefox.

 More exactly, Firefox or my system cannot any more resolve
 URL to IP address (sorry if I use wrong terms).

 Thus,
host gmail.com
 gives:
;; connection timed out no servers could be reached

 OK, what does 'cat /etc/resolve.conf' shows?

  # Generated by f***ing net-scripts for interface lo
  domain mynetwork

 It seems that you do not have a nameserver set up in your system?

I have everything in /etc/conf.d/net:
  dns_servers_...=... ... 8.8.8.8
but currently nothing in /etc/resolv.conf

 Nevertheless
 dig @8.8.8.8 gmail.com
 reports the corresponding IP adresses.

 I'm guessing that 'dig gmail.com' doesn't come up with an answer?

You are right. :)

 I have not changed any my network settings and my
 /etc/conf.d/net file still contains list of my DNS servers
 that contains server 8.8.8.8 as well but somehow it is
 not enough any more. :(

 Do you then define the nameservers statically?

I think, yes.

 Do you use dhcpcd, or something else?

I assign IP for my Gentoo computer statically in /etc/conf.d/net:
  config_...=my.local.IP netmask ...
  routes_...=default via my.local.router.IP
but I have not changed all this since last reboot when everything worked ok.



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
2014-07-26 19:27 GMT+03:00 Jc García jyo.gar...@gmail.com:
 2014-07-26 10:22 GMT-06:00 Grand Duet grand.d...@gmail.com:
 etc/resolv.conf ?

 I guess, no.

 if not, append some known dns to that file this way:
 nameserver 8.8.8.8
 nameserver 8.8.4.4

 This does not help as /etc/resolv.conf is overwritten on every reboot.
 Creating /etc/resolv.conf.tail also did not help.

 verify connection to your gateway and internet with ping.

 It is ok. I am writing from the same subnet.

 That was just the trouble-shooting part, I use /etc/resolv.conf.head
 as my permanent solution to dns nameservers setting on my desktop(see
 my previous mail).

Moving my /etc/resolv.conf.tail with nameservers IPs to
/etc/resolv.conf.head changed nothing on reboot.



Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-26 Thread Volker Armin Hemmann
Am 26.07.2014 18:09, schrieb meino.cra...@gmx.de:
 Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 18:00]:
 Am 26.07.2014 14:16, schrieb meino.cra...@gmx.de:
 Volker Armin Hemmann volkerar...@googlemail.com [14-07-26 14:08]:
 Am 26.07.2014 12:26, schrieb meino.cra...@gmx.de:
 Mick michaelkintz...@gmail.com [14-07-26 11:28]:
 On Saturday 26 Jul 2014 02:49:15 meino.cra...@gmx.de wrote:
 Hi,

 After running smartctl for an extended offline test I got
 a badblock (information extracted from the report):

 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining  
 LifeTime(hours)
  LBA_of_first_error # 1  Extended offlineCompleted: read failure
   
 90% 14460 4288352511 197 Current_Pending_Sector  0x0032   
 200 
  200   000Old_age   Always   -   1

 I found a explanation to map the LBA to a partition here:
 http://smartmontools.sourceforge.net/badblockhowto.html

 My partition layout is:
 # sudo fdisk -lu /dev/sda

 Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
 Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos
 Disk identifier: 0x07ec16a2

 Device Boot  StartEndBlocks  Id System
 /dev/sda1  *  2048 104447 51200  83 Linux
 /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
 /dev/sda3 12687360  222402559 104857600  83 Linux
 /dev/sda4222402560 1953525167 865561304   5 Extended
 /dev/sda5222404608  232890367   5242880  83 Linux
 /dev/sda6232892416  442607615 104857600  83 Linux
 /dev/sda7442609664  652324863 104857600  83 Linux
 /dev/sda8652326912  862042111 104857600  83 Linux
 /dev/sda9862044160 1071759359 104857600  83 Linux
 /dev/sda10  1071761408 1281476607 104857600  83 Linux
 /dev/sda11  1281478656 1491193855 104857600  83 Linux
 /dev/sda12  1491195904 1953525167 231164632  83 Linux
 4288352511   The number reported by smartctl


 Following the linked document...
 It seems the bad LBA is not on the checked harddisk.

 Or (more obvious) I did something wrong...
 You are probably comparing different units.  The Start and End of fdisk 
 are 
 reporting sectors, each sector being 512 bytes.  Therefore if the LBA is 
 reported by smartctl in bytes, you have:

 4,288,352,511 ÷ 512 = 8,375,688.5

 which would place it within your swap partition.

 I would do this:

  swapoff /dev/sda2

  dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc

  mkswap -L swap -c /dev/sda2

  swapon /dev/sda2

 and hopefully the problem will be gone when you run the next smartctl 
 test.

 -- 
 Regards,
 Mick
 Sorry for stuutering postings...overlocked this one:
 #dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
 dd: error writing ‘/dev/sda2’: Input/output error

 Hrrrmpfff...

 Why does it nt remap those ones?

 Best regards,
 mcc







 smartctl -a /dev/sda

 without those information: crystal ball.

 that said: it is swap. You shouldn't have to do anything. Don't touch dd.



 so you got one defective sector, the drive knows about it, it has 200
 spares and will use one when the need arises.


 Unfortunaltely: No it doesnt.

 I did a dd (as reported previously) of zeroes accross the affected
 partition and dd fails to write ot the sector in question (IO error).

 The selftest following again reports that sector as bad.

 So...?

 Best regards,
 mcc





you can try hdparm's write-sector command to force a reallocation. But I
would backup first. Just in case.



[gentoo-user] ECC-ram, it is worth it.

2014-07-26 Thread Volker Armin Hemmann
[894019.770058] [Hardware Error]: MC4 Error (node 0): DRAM ECC error
detected on the NB.
[894019.770084] EDAC MC0: 1 CE on mc#0csrow#2channel#0 (csrow:2
channel:0 page:0x2aa6ce offset:0xc60 grain:0 syndrome:0x63e1)
[894019.770090] [Hardware Error]: Error Status: Corrected error, no
action required.
[894019.770098] [Hardware Error]: CPU:0 (10:4:2)
MC4_STATUS[-|CE|MiscV|-|AddrV|CECC]: 0x9c70c00063080a13
[894019.770105] [Hardware Error]: MC4_ADDR: 0x0002aa6cec60
[894019.770110] [Hardware Error]: cache level: L3/GEN, mem/io: MEM,
mem-tx: RD, part-proc: RES (no timeout)

and this, my children, is why I am using ECC ram.

Using zfs showed me, that there are errors that the system does not
catch but corrupts data.

And this evening, with a thunderstorm outside I got that beauty above...



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Volker Armin Hemmann
Am 26.07.2014 18:47, schrieb Grand Duet:
 2014-07-26 19:27 GMT+03:00 Jc García jyo.gar...@gmail.com:
 2014-07-26 10:22 GMT-06:00 Grand Duet grand.d...@gmail.com:
 etc/resolv.conf ?
 I guess, no.

 if not, append some known dns to that file this way:
 nameserver 8.8.8.8
 nameserver 8.8.4.4
 This does not help as /etc/resolv.conf is overwritten on every reboot.
 Creating /etc/resolv.conf.tail also did not help.

 verify connection to your gateway and internet with ping.
 It is ok. I am writing from the same subnet.

 That was just the trouble-shooting part, I use /etc/resolv.conf.head
 as my permanent solution to dns nameservers setting on my desktop(see
 my previous mail).
 Moving my /etc/resolv.conf.tail with nameservers IPs to
 /etc/resolv.conf.head changed nothing on reboot.


and /etc/resolvconf.conf?



[gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Nikos Chantziaras

On 26/07/14 20:39, Volker Armin Hemmann wrote:

[...]
and this, my children, is why I am using ECC ram.


I don't really care if the porn I'm watching has one frame with 
corrupted pixels on it.





Re: [gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Alexander Kapshuk
On 07/26/2014 03:31 PM, Holger Hoffstätte wrote:
 On Sat, 26 Jul 2014 15:05:23 +0300, Alexander Kapshuk wrote:

 Which NTPd package would the list recommend using, ntp, openntpd, or
 some other package?
 chrony - no competition, even for servers. ntpd is way overrated,
 unnecessarily hard to setup correctly, fragile and contrary to
 popular belief not even that accurate, unless you use external
 HW clocks. Chrony is maintained by Red Hat in cooperation with the
 timekeeping code in the kernel.

 openntpd seems to be easier to set up according to wiki.gentoo.org.
 Many many years ago I helped port openntpd to Linux. It was OK-ish at
 the time and easier/less hassle than ntpd, but the portable version for
 Linux stopped working reliably many years ago due to kernel changes.
 IMHO it really should no longer be in the tree since it gives a false
 sense of accuracy.

 just my 0.01€..

 -h


Is this gentoo wiki article still relevant when it comes to configuring
chrony on gentoo?
http://www.gentoo-wiki.info/Chrony

Or should I stick to the instructions given here:
/usr/share/doc/chrony-1.29.1/chrony.txt.bz2

Thanks.




Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Alan McKinnon
On 26/07/2014 18:16, Grand Duet wrote:
 2014-07-26 19:02 GMT+03:00 Alan McKinnon alan.mckin...@gmail.com:

 On 26/07/2014 17:23, Grand Duet wrote:
 The first reboot after recent update of the system have
 shown that I cannot open any webpage in Firefox.

 More exactly, Firefox or my system cannot any more resolve
 URL to IP address (sorry if I use wrong terms).

 Thus,
host gmail.com http://gmail.com
 gives:
;; connection timed out no servers could be reached

 Nevertheless
 dig @8.8.8.8 http://8.8.8.8 gmail.com http://gmail.com
 reports the corresponding IP adresses.

 I have not changed any my network settings and my
 /etc/conf.d/net file still contains list of my DNS servers
 that contains server 8.8.8.8 as well but somehow it is
 not enough any more. :(

 During my last system update, I suddenly found that
 I had to update about 150 packages, what was a little
 bit strange as I update my system at least once a week.

 I have attributed that to the remnants of gnome2 (now I am using
 fxce4) that I have not cleaned completely and that is now going
 to update. So, I deviated a bit from my usual system update routine
 trying to fix that. Nevertheless, as to my view, during my system update
 I did nothing to distroy the DNS lookup.

 Luckily, I save my system update logs and now can attach
 the last one to this e-mail.

 Please, help me to recover my internet access,
 as I still have to do a lot of real work till Monday
 and have not enough time to investigate this problem
 alone and without a proper internet access. :(

 what is the contents of /etc/resolve.conf?
 
# Generated by net-scripts for interface lo
domain mynetwork
 
 That is all.
 
 I tried to add here lines like:
 
   nameserver 8.8.8.8
 
 but found out that this file is rewritten on every reboot.
 
 My net try was to create /etc/resolv.conf.tail file
 and put that line there but that did not help either.

Then the problem is obvious - you have no nameserver entries as you
don't create any. The computer can't make them up by magic..

You need to create static nameserver entries because you use a static
(i.e. no dhcp) configuration. Add them to /etc/resolvconf.conf

If it still gets removed across restarts then you have some local
modification going on that does deletions you don't know about. You then
have too find them and turn them into something you do know about.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Volker Armin Hemmann
Am 26.07.2014 19:58, schrieb Nikos Chantziaras:
 On 26/07/14 20:39, Volker Armin Hemmann wrote:
 [...]
 and this, my children, is why I am using ECC ram.

 I don't really care if the porn I'm watching has one frame with
 corrupted pixels on it.




but you will care when your kernel writes the next file right over the
partition boundary.



Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Mick
On Saturday 26 Jul 2014 19:23:20 Volker Armin Hemmann wrote:
 Am 26.07.2014 19:58, schrieb Nikos Chantziaras:
  On 26/07/14 20:39, Volker Armin Hemmann wrote:
  [...]
  and this, my children, is why I am using ECC ram.
  
  I don't really care if the porn I'm watching has one frame with
  corrupted pixels on it.
 
 but you will care when your kernel writes the next file right over the
 partition boundary.

Ooh!  Scary!  O_O

Isn't there some kind of kernel/fs check mechanism that ought to check this 
doesn't happen?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Mick
On Saturday 26 Jul 2014 17:47:51 Grand Duet wrote:
 2014-07-26 19:27 GMT+03:00 Jc García jyo.gar...@gmail.com:
  2014-07-26 10:22 GMT-06:00 Grand Duet grand.d...@gmail.com:
  etc/resolv.conf ?
  
  I guess, no.
  
  if not, append some known dns to that file this way:
  nameserver 8.8.8.8
  nameserver 8.8.4.4
  
  This does not help as /etc/resolv.conf is overwritten on every reboot.
  Creating /etc/resolv.conf.tail also did not help.
  
  verify connection to your gateway and internet with ping.
  
  It is ok. I am writing from the same subnet.
  
  That was just the trouble-shooting part, I use /etc/resolv.conf.head
  as my permanent solution to dns nameservers setting on my desktop(see
  my previous mail).
 
 Moving my /etc/resolv.conf.tail with nameservers IPs to
 /etc/resolv.conf.head changed nothing on reboot.

Have you checked that:

udev has not changed the name of your NIC and if it has, that your symlinks in 
/etc/init.d are correct.

Similarly, interface names are correct in your /etc/conf.d/net.

The syntax in /etc/conf.d/net is in line with /usr/share/doc/netifrc-
*/net.example.bz2


If all of the above are as they should be, then I'm running out of ideas.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Holger Hoffstätte
On Sat, 26 Jul 2014 21:14:04 +0300, Alexander Kapshuk wrote:

 Is this gentoo wiki article still relevant when it comes to configuring
 chrony on gentoo?
 http://www.gentoo-wiki.info/Chrony
 
 Or should I stick to the instructions given here:
 /usr/share/doc/chrony-1.29.1/chrony.txt.bz2

The wiki article is from 2008 and doesn't seem too wrong,
but the current ebuilds are a bit more up to date wrt.
default config and init script. The current template config also
contains very detailed instructions and is probably the best way
to get started. How much you need to set up depends on your specific
use case - pure client, steady/interrupted connectivity, server for
other machines on the LAN..

If you only want to be a client just add one or multiple servers
to the config and you are good to go; chrony works well pretty much
out of the box.

-h




Re: [gentoo-user] adobe flash

2014-07-26 Thread Peter Humphrey
On Saturday 26 July 2014 10:46:35 Peter Humphrey wrote:
 On Friday 25 July 2014 15:26:11 I wrote:
  On Friday 25 July 2014 09:30:43 Neil Bothwick wrote:
   On Fri, 25 Jul 2014 08:32:23 +0100, Peter Humphrey wrote:
  I can't use any of the other packages because I use the BBC's
  radio
  streaming service every day, and none of them work with it (as far
  as I know).
 
 Have you looked at the get_iplayer script?

No, I hadn't heard of it. Looks interesting - thanks Mick.
   
   There's also radiotray is you want an unobtrusive way of listening to
   the
   radio without the web 2.0 enhanced experience.
  
  Even better! I'm running it now, having found a working URL from their
  bookmarks file.
  
  Thank you both, gents.
 
 Postscript:
 
 There's a comprehensive list of BBC stations at [1]. If anyone's interested
 and wants to use it, you'll have to fix a bug first. The 45 bookmark entries
 in the full BBC regional group are all missing a / character just before
 the line end.
 
 I've attached a fixed version hereto to save you the bother.
 
 [1]   http://jbbr.co.uk/jbbr/2013/02/23/radiotray-bbc-radio-bookmarks-xml/

Postpostscript:

The author's now fixed the original. I haven't checked it though.

-- 
Regards
Peter




Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread J. Roeleveld
On 26 July 2014 20:27:14 CEST, Mick michaelkintz...@gmail.com wrote:
On Saturday 26 Jul 2014 19:23:20 Volker Armin Hemmann wrote:
 Am 26.07.2014 19:58, schrieb Nikos Chantziaras:
  On 26/07/14 20:39, Volker Armin Hemmann wrote:
  [...]
  and this, my children, is why I am using ECC ram.
  
  I don't really care if the porn I'm watching has one frame with
  corrupted pixels on it.
 
 but you will care when your kernel writes the next file right over
the
 partition boundary.

Ooh!  Scary!  O_O

Isn't there some kind of kernel/fs check mechanism that ought to check
this 
doesn't happen?

There is. But all that happens in memory...

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Peter Humphrey
On Saturday 26 July 2014 12:31:55 Holger Hoffstätte wrote:
 On Sat, 26 Jul 2014 15:05:23 +0300, Alexander Kapshuk wrote:
  Which NTPd package would the list recommend using, ntp, openntpd, or
  some other package?
 
 chrony - no competition, even for servers. ntpd is way overrated,
 unnecessarily hard to setup correctly, fragile and contrary to
 popular belief not even that accurate, unless you use external
 HW clocks. Chrony is maintained by Red Hat in cooperation with the
 timekeeping code in the kernel.

I too have been using chrony since before I can remember, when ntpd could only 
step the clock. Chrony just works - I haven't even bothered to look round for 
an alternative. As the docs say (somewhere or other), if you run any kind of 
mail service, you certainly don't want your clock to step backwards suddenly.

I didn't know Red Hat had taken over its maintenance - thanks for the info.

-- 
Regards
Peter




Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
2014-07-26 21:38 GMT+03:00 Mick michaelkintz...@gmail.com:
 On Saturday 26 Jul 2014 17:47:51 Grand Duet wrote:
 2014-07-26 19:27 GMT+03:00 Jc García jyo.gar...@gmail.com:
  2014-07-26 10:22 GMT-06:00 Grand Duet grand.d...@gmail.com:
  etc/resolv.conf ?
 
  I guess, no.
 
  if not, append some known dns to that file this way:
  nameserver 8.8.8.8
  nameserver 8.8.4.4
 
  This does not help as /etc/resolv.conf is overwritten on every reboot.
  Creating /etc/resolv.conf.tail also did not help.
 
  verify connection to your gateway and internet with ping.
 
  It is ok. I am writing from the same subnet.
 
  That was just the trouble-shooting part, I use /etc/resolv.conf.head
  as my permanent solution to dns nameservers setting on my desktop(see
  my previous mail).

 Moving my /etc/resolv.conf.tail with nameservers IPs to
 /etc/resolv.conf.head changed nothing on reboot.

 Have you checked that:

 udev has not changed the name of your NIC and if it has,
 that your symlinks in /etc/init.d are correct.

 Similarly, interface names are correct in your /etc/conf.d/net.

 The syntax in /etc/conf.d/net is in line with /usr/share/doc/netifrc-
 */net.example.bz2

 If all of the above are as they should be, then I'm running out of ideas.

I am also.

After having a break, I decided to manually edit /etc/resolv.conf and then
chmod it to be unoverwrittable. But I had no chance to check this solution:
after booting my Gentoo computer once again, I have found out that now
/etc/resolv.conf was created *with* DNS servers IPs, and everything works
fine.

But it is *very* strange as I have *not* changed anything after my
previous reboot.
Absolutely.

Have I discovered a new Windows-like fix for a Gentoo system that can be called
Just reboot it several times?



Re: [gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Alexander Kapshuk
On 07/26/2014 09:38 PM, Holger Hoffstätte wrote:
 On Sat, 26 Jul 2014 21:14:04 +0300, Alexander Kapshuk wrote:

 Is this gentoo wiki article still relevant when it comes to configuring
 chrony on gentoo?
 http://www.gentoo-wiki.info/Chrony

 Or should I stick to the instructions given here:
 /usr/share/doc/chrony-1.29.1/chrony.txt.bz2
 The wiki article is from 2008 and doesn't seem too wrong,
 but the current ebuilds are a bit more up to date wrt.
 default config and init script. The current template config also
 contains very detailed instructions and is probably the best way
 to get started. How much you need to set up depends on your specific
 use case - pure client, steady/interrupted connectivity, server for
 other machines on the LAN..

 If you only want to be a client just add one or multiple servers
 to the config and you are good to go; chrony works well pretty much
 out of the box.

 -h


Understood. Thanks.

For the time being, I just want to be a client.These are the options
I've got enabled in the config:
grep '^[a-z][a-z]*' /etc/chrony/chrony.conf
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
maxupdateskew 5
driftfile /var/lib/chrony/drift
keyfile /etc/chrony/chrony.keys
commandkey 1
logdir /var/log/chrony
log measurements statistics tracking




Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Peter Humphrey
On Saturday 26 July 2014 22:16:53 Grand Duet wrote:
 2014-07-26 21:19 GMT+03:00 Alan McKinnon alan.mckin...@gmail.com:
  On 26/07/2014 18:16, Grand Duet wrote:
  2014-07-26 19:02 GMT+03:00 Alan McKinnon alan.mckin...@gmail.com:
  On 26/07/2014 17:23, Grand Duet wrote:
  The first reboot after recent update of the system have
  shown that I cannot open any webpage in Firefox.
  
  More exactly, Firefox or my system cannot any more resolve
  URL to IP address (sorry if I use wrong terms).
  
  Thus,
  
 host gmail.com http://gmail.com
  
  gives:
 ;; connection timed out no servers could be reached
  
  Nevertheless
  
  dig @8.8.8.8 http://8.8.8.8 gmail.com http://gmail.com
  
  reports the corresponding IP adresses.
  
  I have not changed any my network settings and my
  /etc/conf.d/net file still contains list of my DNS servers
  that contains server 8.8.8.8 as well but somehow it is
  not enough any more. :(
  
  During my last system update, I suddenly found that
  I had to update about 150 packages, what was a little
  bit strange as I update my system at least once a week.
  
  I have attributed that to the remnants of gnome2 (now I am using
  fxce4) that I have not cleaned completely and that is now going
  to update. So, I deviated a bit from my usual system update routine
  trying to fix that. Nevertheless, as to my view, during my system
  update
  I did nothing to distroy the DNS lookup.
  
  Luckily, I save my system update logs and now can attach
  the last one to this e-mail.
  
  Please, help me to recover my internet access,
  as I still have to do a lot of real work till Monday
  and have not enough time to investigate this problem
  alone and without a proper internet access. :(
  
  what is the contents of /etc/resolve.conf?
  
 # Generated by net-scripts for interface lo
 domain mynetwork

That isn't right. It should say it's for interface eth0. At first I thought 
eth0 wasn't being brought up, but then you quoted replies from dig, so it must 
be.

  That is all.
  
  I tried to add here lines like:
nameserver 8.8.8.8
  
  but found out that this file is rewritten on every reboot.
  
  My net try was to create /etc/resolv.conf.tail file
  and put that line there but that did not help either.
  
  Then the problem is obvious - you have no nameserver entries as you
  don't create any. The computer can't make them up by magic...
 
 But it did it just before the last update: it created DNS entries in
 /etc/resolv.conf
 from my /etc/conf.d/net file on every reboot. And now it cannot do this
 magic?
  You need to create static nameserver entries because you use a static
  (i.e. no dhcp) configuration. Add them to /etc/resolvconf.conf
 
 It does not help as /etc/resolv.conf is overwritten on every reboot.
 
  If it still gets removed across restarts
 
 Yes, it does.

Do you still have netifrc installed? Maybe it got lost in all that updating 
work. Try emerging it again anyway.

Do your 90-network-rules look like mine?

$ cat /lib/udev/rules.d/90-network.rules
# do not edit this file, it will be overwritten on update

# /etc/udev/rules/90-network.rules:  triggering network init-scripts

# Activate our network if we can
SUBSYSTEM==net, ACTION==add,RUN+=net.sh %k start
SUBSYSTEM==net, ACTION==remove, RUN+=net.sh %k stop

I'm clutching at straws here, and I hear others doing the same  ;-(

-- 
Regards
Peter




Re: [gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Dale
Alexander Kapshuk wrote:
 On 07/26/2014 03:31 PM, Holger Hoffstätte wrote:
 On Sat, 26 Jul 2014 15:05:23 +0300, Alexander Kapshuk wrote:

 Which NTPd package would the list recommend using, ntp, openntpd, or
 some other package?
 chrony - no competition, even for servers. ntpd is way overrated,
 unnecessarily hard to setup correctly, fragile and contrary to
 popular belief not even that accurate, unless you use external
 HW clocks. Chrony is maintained by Red Hat in cooperation with the
 timekeeping code in the kernel.

 openntpd seems to be easier to set up according to wiki.gentoo.org.
 Many many years ago I helped port openntpd to Linux. It was OK-ish at
 the time and easier/less hassle than ntpd, but the portable version for
 Linux stopped working reliably many years ago due to kernel changes.
 IMHO it really should no longer be in the tree since it gives a false
 sense of accuracy.

 just my 0.01€..

 -h


 Is this gentoo wiki article still relevant when it comes to configuring
 chrony on gentoo?
 http://www.gentoo-wiki.info/Chrony

 Or should I stick to the instructions given here:
 /usr/share/doc/chrony-1.29.1/chrony.txt.bz2

 Thanks.





This is my chrony.conf without all the commented out parts. 

server  64.6.144.6
server  67.159.5.90
server  67.59.168.233
server  204.62.14.98

server  69.50.219.51
server  209.114.111.1

driftfile /etc/chrony.drift

keyfile /etc/chrony/chrony.keys

commandkey 1

logdir /var/log/chrony
log measurements statistics tracking rtc


The last two lines are optional.  Use those if you like to be nosy and
watch it do its thing.  I still have ntpdate installed and use it to
check and see how close it is on occasion.  This is what I get from the
test:

root@fireball / # ntpdate -b -u -q pool.ntp.org
server 198.144.194.12, stratum 2, offset -0.003320, delay 0.10658
server 173.44.32.10, stratum 2, offset -0.003313, delay 0.07515
server 70.60.65.40, stratum 2, offset -0.003059, delay 0.09262
server 38.229.71.1, stratum 2, offset -0.001002, delay 0.09563
26 Jul 15:16:00 ntpdate[10232]: step time server 173.44.32.10 offset
-0.003313 sec
root@fireball / # 

I did a fair sized upgrade the other day and went to the boot runlevel
afterwards to restart the services that were updated.  I'm pretty sure
it has been doing its thing since then without me doing anything to it. 
I think you can use mirrorselect to find the best mirrors for your
area.  I can't recall the command but I bet a search of the Gentoo
forums would find it fairly quick. 

Looking at the howto, the only thing I do different is put it in the
default runlevel.  Unless I am in the default runlevel, there is no
internet access available anyway.  No internet access, no way to set the
clock anyway.  ;-)

Hope that helps.

Dale

:-)  :-) 



Re: [gentoo-user] Something went wrong with DNS, plz help!

2014-07-26 Thread Grand Duet
2014-07-26 22:43 GMT+03:00 Peter Humphrey pe...@prh.myzen.co.uk:
 On Saturday 26 July 2014 22:16:53 Grand Duet wrote:
 2014-07-26 21:19 GMT+03:00 Alan McKinnon alan.mckin...@gmail.com:
  On 26/07/2014 18:16, Grand Duet wrote:
  2014-07-26 19:02 GMT+03:00 Alan McKinnon alan.mckin...@gmail.com:
  On 26/07/2014 17:23, Grand Duet wrote:
  The first reboot after recent update of the system have
  shown that I cannot open any webpage in Firefox.
 
  More exactly, Firefox or my system cannot any more resolve
  URL to IP address (sorry if I use wrong terms).
 
  Thus,
 
 host gmail.com http://gmail.com
 
  gives:
 ;; connection timed out no servers could be reached
 
  Nevertheless
 
  dig @8.8.8.8 http://8.8.8.8 gmail.com http://gmail.com
 
  reports the corresponding IP adresses.
 
  I have not changed any my network settings and my
  /etc/conf.d/net file still contains list of my DNS servers
  that contains server 8.8.8.8 as well but somehow it is
  not enough any more. :(
 
  During my last system update, I suddenly found that
  I had to update about 150 packages, what was a little
  bit strange as I update my system at least once a week.
 
  I have attributed that to the remnants of gnome2 (now I am using
  fxce4) that I have not cleaned completely and that is now going
  to update. So, I deviated a bit from my usual system update routine
  trying to fix that. Nevertheless, as to my view, during my system
  update
  I did nothing to distroy the DNS lookup.
 
  Luckily, I save my system update logs and now can attach
  the last one to this e-mail.
 
  Please, help me to recover my internet access,
  as I still have to do a lot of real work till Monday
  and have not enough time to investigate this problem
  alone and without a proper internet access. :(
 
  what is the contents of /etc/resolve.conf?
 
 # Generated by net-scripts for interface lo
 domain mynetwork

 That isn't right. It should say it's for interface eth0. At first I thought
 eth0 wasn't being brought up, but then you quoted replies from dig,
 so it must be.

After the last reboot I magically have got the right /etc/resolv.conf
with DNS servers IPs.

Even more strange is that it happened *without* my intervention:
just a few reboots (one was no enough!).

This, by the way, reminds me MS Windows very much.

I am afraid that you will not believe me, but I really did not changed
any configuration and have not (re)emerged anything after the previous
reboot. Why it did not worked then and does work now?

It is really very strange!

  That is all.
 
  I tried to add here lines like:
nameserver 8.8.8.8
 
  but found out that this file is rewritten on every reboot.
 
  My net try was to create /etc/resolv.conf.tail file
  and put that line there but that did not help either.
 
  Then the problem is obvious - you have no nameserver entries as you
  don't create any. The computer can't make them up by magic...

 But it did it just before the last update: it created DNS entries in
 /etc/resolv.conf
 from my /etc/conf.d/net file on every reboot. And now it cannot do this
 magic?
  You need to create static nameserver entries because you use a static
  (i.e. no dhcp) configuration. Add them to /etc/resolvconf.conf

 It does not help as /etc/resolv.conf is overwritten on every reboot.

  If it still gets removed across restarts

 Yes, it does.

 Do you still have netifrc installed? Maybe it got lost in all that updating
 work. Try emerging it again anyway.

As I have already written, DNS resolution now magically works
again and without any intervention from my side: just a few
reboots (one was no enough!).

So, no need to re-emerge netifrc now.

 Do your 90-network-rules look like mine?

 $ cat /lib/udev/rules.d/90-network.rules
 # do not edit this file, it will be overwritten on update

 # /etc/udev/rules/90-network.rules:  triggering network init-scripts

 # Activate our network if we can
 SUBSYSTEM==net, ACTION==add,RUN+=net.sh %k start
 SUBSYSTEM==net, ACTION==remove, RUN+=net.sh %k stop

My file is exactly the same, and it was changed on May 10, 2014 last time.
So, it could not be the cause.

 I'm clutching at straws here, and I hear others doing the same  ;-(

Everything is very, very strange.



[gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread walt
On 07/26/2014 10:39 AM, Volker Armin Hemmann wrote:
 [894019.770058] [Hardware Error]: MC4 Error (node 0): DRAM ECC error
 detected on the NB.
 [894019.770084] EDAC MC0: 1 CE on mc#0csrow#2channel#0 (csrow:2
 channel:0 page:0x2aa6ce offset:0xc60 grain:0 syndrome:0x63e1)
 [894019.770090] [Hardware Error]: Error Status: Corrected error, no
 action required.
 [894019.770098] [Hardware Error]: CPU:0 (10:4:2)
 MC4_STATUS[-|CE|MiscV|-|AddrV|CECC]: 0x9c70c00063080a13
 [894019.770105] [Hardware Error]: MC4_ADDR: 0x0002aa6cec60
 [894019.770110] [Hardware Error]: cache level: L3/GEN, mem/io: MEM,
 mem-tx: RD, part-proc: RES (no timeout)
 
 and this, my children, is why I am using ECC ram.
 
 Using zfs showed me, that there are errors that the system does not
 catch but corrupts data.
 
 And this evening, with a thunderstorm outside I got that beauty above...

Is ECC memory a drop-in replacement for ordinary RAM, or does it need
a special motherboard?






Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Edward MN

On 07/26/14 15:55, walt wrote:

On 07/26/2014 10:39 AM, Volker Armin Hemmann wrote:

[894019.770058] [Hardware Error]: MC4 Error (node 0): DRAM ECC error
detected on the NB.
[894019.770084] EDAC MC0: 1 CE on mc#0csrow#2channel#0 (csrow:2
channel:0 page:0x2aa6ce offset:0xc60 grain:0 syndrome:0x63e1)
[894019.770090] [Hardware Error]: Error Status: Corrected error, no
action required.
[894019.770098] [Hardware Error]: CPU:0 (10:4:2)
MC4_STATUS[-|CE|MiscV|-|AddrV|CECC]: 0x9c70c00063080a13
[894019.770105] [Hardware Error]: MC4_ADDR: 0x0002aa6cec60
[894019.770110] [Hardware Error]: cache level: L3/GEN, mem/io: MEM,
mem-tx: RD, part-proc: RES (no timeout)

and this, my children, is why I am using ECC ram.

Using zfs showed me, that there are errors that the system does not
catch but corrupts data.

And this evening, with a thunderstorm outside I got that beauty above...


Is ECC memory a drop-in replacement for ordinary RAM, or does it need
a special motherboard?





  yeah, requires a motherboard that supports ECC ram.



Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Volker Armin Hemmann
Am 27.07.2014 00:55, schrieb walt:
 On 07/26/2014 10:39 AM, Volker Armin Hemmann wrote:
 [894019.770058] [Hardware Error]: MC4 Error (node 0): DRAM ECC error
 detected on the NB.
 [894019.770084] EDAC MC0: 1 CE on mc#0csrow#2channel#0 (csrow:2
 channel:0 page:0x2aa6ce offset:0xc60 grain:0 syndrome:0x63e1)
 [894019.770090] [Hardware Error]: Error Status: Corrected error, no
 action required.
 [894019.770098] [Hardware Error]: CPU:0 (10:4:2)
 MC4_STATUS[-|CE|MiscV|-|AddrV|CECC]: 0x9c70c00063080a13
 [894019.770105] [Hardware Error]: MC4_ADDR: 0x0002aa6cec60
 [894019.770110] [Hardware Error]: cache level: L3/GEN, mem/io: MEM,
 mem-tx: RD, part-proc: RES (no timeout)

 and this, my children, is why I am using ECC ram.

 Using zfs showed me, that there are errors that the system does not
 catch but corrupts data.

 And this evening, with a thunderstorm outside I got that beauty above...
 Is ECC memory a drop-in replacement for ordinary RAM, or does it need
 a special motherboard?






depends on your motherboard. ASUS boards support ECC officially. You
just put it in. With Gigabyte some boards support it, some don't - and
they don't advertise it. But on their forums are threads about it. Rest:
I have no idea.



Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Rich Freeman
On Sat, Jul 26, 2014 at 6:55 PM, walt w41...@gmail.com wrote:

 Is ECC memory a drop-in replacement for ordinary RAM, or does it need
 a special motherboard?


It requires both CPU and motherboard support I believe.  The RAM
itself isn't much more expensive - really just reflecting the cost of
the extra capacity required.

If you were already going to buy a CPU or motherboard that supports
ECC then the incremental cost is almost certainly worth it IMHO.  The
problem is that if you weren't otherwise going to buy either then the
incremental cost to upgrade all the components to support it can add
up quite a bit.  So, when people say that it is just an extra $10-20
for the RAM, that bay be a rather misleading figure.

Rich



[gentoo-user] Re: Something went wrong with DNS, plz help!

2014-07-26 Thread walt
On 07/26/2014 02:00 PM, Grand Duet wrote:
 After the last reboot I magically have got the right /etc/resolv.conf
 with DNS servers IPs.
 
 Even more strange is that it happened *without* my intervention:
 just a few reboots (one was no enough!).

I'm glad the evil spirits decided to depart.  Are you using networkmanager?
My resolv.conf says it was created by networkmanager.

 This, by the way, reminds me MS Windows very much.

:)




Re: [gentoo-user] Re: re: which NTPd package to use?

2014-07-26 Thread Neil Bothwick
On Sat, 26 Jul 2014 20:10:12 +0100, Peter Humphrey wrote:

  Chrony is maintained by Red Hat in cooperation with the
  timekeeping code in the kernel.  
 
 I didn't know Red Hat had taken over its maintenance - thanks for the
 info.

So the stories about Red Hat trying to force everyone to use systemd and
its components aren't true after all?


-- 
Neil Bothwick

Bury a lawyer 12 feet under, because deep down they're nice.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-26 Thread Volker Armin Hemmann
Am 27.07.2014 01:07, schrieb Rich Freeman:
 On Sat, Jul 26, 2014 at 6:55 PM, walt w41...@gmail.com wrote:
 Is ECC memory a drop-in replacement for ordinary RAM, or does it need
 a special motherboard?

 It requires both CPU and motherboard support I believe.  The RAM
 itself isn't much more expensive - really just reflecting the cost of
 the extra capacity required.

AFAIK all AMD cpus support it.