Is there a quick way to search all text files for a string?
By "text file" I mean ASCII files, like log files, config files etc,
but excluding binaries like executables, database files, etc?
What I want is something like:
find / -type a -exec grep 192.168.100.1 \{\} \;
.. or similar, except that I made up "-type a" for ascii.
(I'm trying to find all places that an IP address is mentioned so that
I can change ones that need to be changed.)
--
Mark Rogers // More Solutions Ltd (…
[View More]Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
[View Less]
Can anyone shed light on what the following entries in /var/log/syslog
actually mean?
Jun 16 11:43:45 mark-pc kernel: [92204.212656] sd 11:0:0:2: [sdf]
tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
Jun 16 11:43:45 mark-pc kernel: [92204.212669] sd 11:0:0:2: [sdf]
tag#0 Sense Key : Hardware Error [current]
Jun 16 11:43:45 mark-pc kernel: [92204.212675] sd 11:0:0:2: [sdf]
tag#0 Add. Sense: No additional sense information
Jun 16 11:43:45 mark-pc kernel: [92204.212683] sd 11:0:0:…
[View More]2: [sdf]
tag#0 CDB: Read(10) 28 00 06 87 47 30 00 00 08 00
Jun 16 11:43:45 mark-pc kernel: [92204.212688] blk_update_request: I/O
error, dev sdf, sector 109528880
Jun 16 11:43:45 mark-pc kernel: [92204.212696] Buffer I/O error on dev
sdf1, logical block 13690854, async page read
Background: This a pretty new Sandisk [1] 128GB MicroSD (UHS) card,
taken out of my phone and plugged into my PC via a card reader (USB2).
A previous card caused issues in my phone so I replaced it with this
one, and it now is not behaving well (usually OK but sometimes if I
try to look at photos on the card the phone will lock up temporarily).
I'm trying to back everything up onto my PC so I can copy it across
onto a Samsung card to see if that's better. The above errors crop up
periodically in syslog whilst copying.
Is the issue the card, the card reader, the PC, the drivers, ...?
[1] I believe it to be genuine Sandisk, it was purchased from Amazon.
Advice on how to verify it's not a fake welcomed!
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
[View Less]
I have a small server Thinkserver ts140 for serving files via sftp to
my colleagues, as well as a few other services.
I run ubuntu 14.04 from a 500gig drive backed up nightly offsite, and
have a separate raid10 array 4x 4TB (WD Reds) for the storage.
They've been running fine for over a year until yesterday, when I
received an email saying the array was degraded.
" A DegradedArray event had been detected on md device /dev/md/0.
P.S. The /proc/mdstat file currently contains the following:
…
[View More]Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md0 : active raid10 sdb1[0] sde1[3] sdc1[4]
7813772288 blocks super 1.2 512K chunks 2 near-copies [4/3] [UU_U]
unused devices: <none>"
First thing I did was backup the most important files to an external
drive via rsync. (I have run out of space for a full 8TB external
drive backup and can't afford to buy any more drives just now) We also
keep these more important files offsite)
mdadm -D /dev/md0 shows that my third drive sdd1 was removed. I
checked the smart tools to see if the drive was failing and saw
nothing, even after running a self-test. I didn't check for disk
errors on the drive itself as I'm not sure how this works in a raid
setup. I did try re-adding the disk to the raid and it immediately
picked it up and started recovering.
This was the mdadm --examine shows of the raid status *before* I tried
re-adding the removed drive: http://pastebin.com/P4Q4YhN7
I can't see anything wrong here, the only difference I saw was in the
sdd section showing Array State AAAA instead of AA.A as the others
were (. = missing)
This morning I woke up to another email with the same message, and the
disk sdd1 was removed again. I am adding the drive again to see what
happens, but suspect the same results.
Here's the mdadm --detail now: http://pastebin.com/CkBm6SbH
dmesg since a recent reboot, with a lot of the repeats taken out:
http://pastebin.com/jzWnYizV
1) Should I run any more tests on the drive itself? Any specific
suggestions? Do you think it could be a hardware fault unrelated to
the actual drive? I'm nervous of starting to swap things around to
test this.
2) The drives are in warranty so I have contacted WD to ask for a
replacement, although if the SMART tests don't show anything I don't
know if they'll replace the drive
3) Should I tell my colleagues we're going to have to switch the
machine off until the new drive arrives? (I am paranoid of a second
drive failing before I get a new one)
Any advice as to what I could do to test the drive/setup is
appreciated. Please be aware I'm no linux guru, my field is in
something completely different and I just happen to love learning
about linux and have found it very useful to complement my office
setup and work.
Many thanks
John
[View Less]
I have set up syncthing on my systems and it works very well for
folders where one wants to synchronise all the files.
However I have a few what one might call 'isolated' files that I want
to synchronise and I can't see any easy way to do this with syncthing.
It's possible to use syncthing's .stignore file to do it but it's very
clumsy and one would need to edit several files just to add one file
to the list to be synchronised.
I have pondered putting the 'isolated' files in a directory by
…
[View More]themselves (which syncthing can synchronise) and having symbolic links
to them from where they are actually used. However adding one file to
the list would mean edits in several places.
Any better ideas anyone?
--
Chris Green
[View Less]
Hi I'm new to this, but have been 'Lurking' for a while as recommended
for 'Noobs'.
However, this is something I may be able to shed some light on, so here
goes!
There is an excellent website with lots of carefully prepared info on
this topic and tools to help diagnose problems, test cards and make
images.
However, it is in Russia, and similar sites it is hosted alongside can
have a bad reputation. Antivirus companies will make sweeping
assumptions and some class the site as 'Bad'. I …
[View More]disagree, but you must
decide for yourself. I suggest using Virustotal.com to check all the
links and files before you download anything. I have successfully
downloaded all the tools and have not had any issues. If you are not
familiar with Virustotal you will be happy to know it scans what is on
the internet before you download, simulating the use of the top 60
AntiVirus packages in the world and providing a comprehensive
assessment.
Having said that, 1 or 2 may try to indicate generic this and that. I
believe this is just reverse engineering of one A/V by another based on
a false positive. But you may decide to keep well clear - that's fine.
You could always use a machine off your network that can be rebuilt /
reimaged easily. But hey, isn't this one of Linux's strengths ?
Here is the link, the text on it's own is quite informative and unlikely
to infect anyone, many of the tools can also be found elsewhere too...
https://www.raymond.cc/blog/test-and-detect-fake-or-counterfeit-usb-flas
h-drives-bought-from-ebay-with-h2testw/
Cheers,
Xorsyst
-----Original Message-----
From: main [mailto:main-bounces@lists.alug.org.uk] On Behalf Of Mark
Rogers
Sent: 16 June 2016 11:54
To: alug-main
Subject: [ALUG] MicroSD card read issues
Can anyone shed light on what the following entries in /var/log/syslog
actually mean?
Jun 16 11:43:45 mark-pc kernel: [92204.212656] sd 11:0:0:2: [sdf]
tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
Jun 16 11:43:45 mark-pc kernel: [92204.212669] sd 11:0:0:2: [sdf]
tag#0 Sense Key : Hardware Error [current]
Jun 16 11:43:45 mark-pc kernel: [92204.212675] sd 11:0:0:2: [sdf]
tag#0 Add. Sense: No additional sense information
Jun 16 11:43:45 mark-pc kernel: [92204.212683] sd 11:0:0:2: [sdf]
tag#0 CDB: Read(10) 28 00 06 87 47 30 00 00 08 00
Jun 16 11:43:45 mark-pc kernel: [92204.212688] blk_update_request: I/O
error, dev sdf, sector 109528880
Jun 16 11:43:45 mark-pc kernel: [92204.212696] Buffer I/O error on dev
sdf1, logical block 13690854, async page read
Background: This a pretty new Sandisk [1] 128GB MicroSD (UHS) card,
taken out of my phone and plugged into my PC via a card reader (USB2).
A previous card caused issues in my phone so I replaced it with this
one, and it now is not behaving well (usually OK but sometimes if I
try to look at photos on the card the phone will lock up temporarily).
I'm trying to back everything up onto my PC so I can copy it across
onto a Samsung card to see if that's better. The above errors crop up
periodically in syslog whilst copying.
Is the issue the card, the card reader, the PC, the drivers, ...?
[1] I believe it to be genuine Sandisk, it was purchased from Amazon.
Advice on how to verify it's not a fake welcomed!
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
_______________________________________________
main(a)lists.alug.org.uk
http://www.alug.org.uk/http://lists.alug.org.uk/mailman/listinfo/main
Unsubscribe? See message headers or the web site above!
[View Less]
I have just installed a beta of Mageia 6. In the description online it
says that KDE 4.14 can be installed -
https://wiki.mageia.org/en/Mageia_6_Release_Notes#KDE in the
traditional manner but I can't see how I might select it and I don't
like Plasma.
I selected KDE out of the three choices - KDE, Gnome or XFCE - when I
installed Mageia and I fully expected to see the usual KDE desktop. But
I don't.
What do I have to do to make it work please?
--
__ __| |_ __ __ .--------------------------…
[View More]--------------------.
/ _/ _` \ V V / | mailto:alug_cdw@the-walker-household.co.uk |
\__\__,_|\_/\_/ |______________________________________________|
[View Less]
ALUG Announce
Please send announcements to Announce(a)lists.alug.org.uk
Unsub, change settings via http://lists.alug.org.uk/mailman/listinfo/announce
-----
Hello Norwich Aluggers,
Our monthly ALUG Norwich social meeting will be held this Thursday,
9th June at The Coach and Horses (82 Thorpe Road, Norwich, NR1 1BA).
The meeting officially starts at 8pm, although some people may arrive
earlier. More information on those people can be found on the list and
the IRC channel. If you are unsure if …
[View More]you will recognise us then make
yourself and your intent to attend known by either posting on list or
visiting us on IRC so we can look out for you rather than hiding in
the corner. Optionally you could ask at the bar if they know where the
geeky computer weirdos are and they'll point you in the right direction
(seriously!). Another possibility is look for heaps of electronics on a
table that may possibly look like movie props that would used for
detonating explosives.
Feel free to bring electronics/laptops/gadgets to the meet, you will by
no means be alone.
Ben Bewick aka Viperfang
NB: This mail is automated, please refer to the usual sources for more
information.
ALUG Contact Details:
Website : http://www.alug.org.uk/
IRC : #alug on irc.alug.org.uk
List : http://lists.alug.org.uk/mailman/listinfo
Twitter : http://twitter.com/anglianlug
Identica: TBA
Facebook: http://www.facebook.com/group.php?gid=2381613902
-----
Send discussion replies to main(a)lists.alug.org.uk (Reply-To set)
Unsub, change settings via http://lists.alug.org.uk/mailman/listinfo/announce
[View Less]