[03:53] <mwalsh> WHen I try to write a .iso file "to disk," only a write to image option is listed, not one of my drives. Can anyone help me with this?
[04:02] <nothlit> to disc you mean?
[04:02] <nothlit> are you trying to make an iso from a disc or burn an iso to a disc
[04:06] <nothlit> making an iso is dd if=/dev/cdrom of=/home/user/file.iso
[12:35] <jenda> Mez: muted till you turn off public away.
[05:32] <Linuturk> mnoir:
[05:32] <mnoir> hi
[05:32] <Linuturk> nice and quiet
[05:32] <mnoir> better for extended conversation and i detect a need for a lesson
[05:32] <Linuturk> :) yes please
[05:33] <mnoir> 1.  the utility less would be a good vchoice if you have not yet installed most
[05:33] <mnoir> try ' less messages'
[05:34] <mnoir> tell me if you get a screenfull
[05:34] <Linuturk> I get a single line
[05:34] <mnoir> ??
[05:34] <mnoir> paste line?
[05:34] <Linuturk> Jan 26 11:19:35 FAIA-CACTI syslogd 1.4.1#17ubuntu7: restart.
[05:34] <Linuturk> the restart of my machine, apparently
[05:34] <mnoir> that is it in the file messages?
[05:34] <Linuturk> yes
[05:35] <mnoir> ok - ls -l | grep messages please
[05:35] <Linuturk> ok
[05:35] <mnoir> you get several?
[05:35] <Linuturk> we have 5 messages files
[05:35] <mnoir> try less messages.0
[05:36] <mnoir> log rotate automatically is filing them
[05:36] <mnoir> note the older ones are compressed
[05:36] <Linuturk> got a bunch
[05:36] <Linuturk> a bunch of information
[05:36] <mnoir> messages.0 is the most recent - ru lessing it?
[05:37] <Linuturk> yes, I am viewing it via less
[05:37] <mnoir> ok - some of the keystrokes available in less
[05:37] <mnoir> type a capital G
[05:37] <Linuturk> Jan 26 00:34:54 FAIA-CACTI -- MARK -- << that is the last entry before our restart
[05:37] <Linuturk> takes me to the end?
[05:38] <mnoir> yes
[05:38] <mnoir> slash followed by a string searches
[05:38] <mnoir> # followed by G goes to that line
[05:38] <Linuturk> searches down, correct?
[05:38] <mnoir> yes
[05:38] <mnoir> there is a go back but i forgot it - plus up and down arrows work
[05:39] <Linuturk> lowercase g takes me to the top
[05:39] <mnoir> 'most' is a better version
[05:39] <mnoir> cool - i didnt know that - probably g is search backwards
[05:39] <mnoir> no number means highest (or lowest :) )
[05:39] <Linuturk> ok, I think I got this
[05:40] <mnoir> ok - you got a big gap
[05:40] <Linuturk> now, the messages log isn't helping
[05:40] <Linuturk> b/c of the gap
[05:40] <mnoir> often it does not
[05:40] <mnoir> you can look at system and daemon
[05:40] <mnoir> but i bet you find nothing
[05:40] <mnoir> feels like a mobo, ram ot diak problem
[05:41] <mnoir> ot diak= or disk
[05:41] <mnoir> done memtest yet?
[05:41] <Linuturk> before I installed
[05:41] <Linuturk> yes
[05:41] <mnoir> you might want to use tune2fs to set fsck to occur every boot
[05:42] <mnoir> how old is machine?
[05:42] <Linuturk> the actual hardware is fairly used and old
[05:42] <Linuturk> but the install is fairly new
[05:42] <mnoir> there can be weaknesses in drivers for very old systems plus hardware is suspect
[05:43] <mnoir> i figured that install was new
[05:43] <Linuturk> ok
[05:43] <Linuturk> I've looked in the syslog
[05:43] <mnoir> also, linux tends to drive hardware harder
[05:43] <mnoir> anything interesting?
[05:43] <Linuturk> the last activity is a snmp request to localhost
[05:43] <mnoir> around time of failure?
[05:43] <Linuturk> from the cacti install I have
[05:43] <Linuturk> yes
[05:44] <mnoir> hmm - snmp stuff is fairly low level
[05:44] <mnoir> it is possible hat sumpin in it was not very happy
[05:44] <mnoir> hat=that
[05:44] <Linuturk> well, I can't imagine what
[05:45] <mnoir> why?
[05:45] <Linuturk> there is plenty of drive space
[05:45] <Linuturk> the system has run fine for the last few weeks
[05:45] <mnoir> might not be due to running out of space...
[05:45] <Linuturk> what other logs did you say check?
[05:46] <mnoir> the reason i started with ls -latr is it shows you reverse update order
[05:46] <mnoir> this gives you a start on which logs are most active
[05:46] <mnoir> on a treasure hunt like this, you need educated guesses
[05:47] <mnoir> nothing is set in stone.
[05:47] <mnoir> since the issue is clearly very sporadic you will be meditating for a while before you find the pattern
[05:47] <mnoir> unless it get worse.
[05:47] <mnoir> or never happens again :)
[05:48] <Linuturk> so there isn't much I can do but wait for it to happen again/
[05:48] <Linuturk> ?
[05:48] <mnoir> that is what i think
[05:48] <mnoir> except making the system do some extra checking like fsck every boot for a while
[05:49] <mnoir> and run some memtests using the special boot from grub
[05:49] <Linuturk> o, I have a question real quick
[05:49] <mnoir> k
[05:49] <Linuturk> how do I check free drive space via the cli?
[05:49] <mnoir> df -h is the most popular way
[05:49] <Linuturk> thank god
[05:50] <mnoir> ??
[05:50] <Linuturk> I have been looking for that forever
[05:50] <mnoir> it is a simple question :)
[05:50] <mnoir> also remember thar man is your friend at the cli
[05:50] <mnoir> thar=that
[05:50] <Linuturk> yes, I agree
[05:50] <mnoir> type man df
[05:50] <mnoir> oh - you know about man
[05:50] <Linuturk> but if I type man drive space
[05:50] <mnoir> good
[05:51] <Linuturk> lol
[05:51] <Linuturk> ;p
[05:51] <Linuturk> I have to know the command before I can learn about it
[05:51] <mnoir> no - only works for commands, configs etc
[05:51] <mnoir> :)
[05:51] <mnoir> consider installing most
[05:51] <Linuturk> well, thanks, you've helped
[05:51] <mnoir> it is more like a text editor but assumes no editing
[05:52] <mnoir> or no changing
[05:52] <mnoir> k - back to the playpen :)
[09:36] <warlock> gonna see if it workde
[09:36] <LjL> warlock: this time i've tried it, and it seemed to
[09:37] <warlock> ye works mate
[09:37] <warlock> thanks, you saved me 4hours
[09:37] <warlock> BIG thanks.
[09:37] <LjL> you're quite welcome :) want to know the specifics of that command's parts?
[09:37] <warlock> else i'd have to edit all files manually
[09:37] <warlock> sure
[09:38] <warlock> would help :)
[09:38] <LjL> warlock: well, the first part if a for loop.   for VariableName in ShellPattern ; do     .................     ; done     repeats the "..." for every file matched by ShellPattern (*.conf in this case)
[09:39] <LjL> warlock: of course, every time it sets VariableName to the name of the relevant file (i've called that variable File)
[09:39] <warlock> oi
[09:39] <warlock> I always tend to learn something new :p
[09:39] <LjL> warlock: "sed" is used in this case to change text into other text. the "-i" option means it changes a file "in place" (i.e. it just changes the files, not output the changes to the console)
[09:40] <LjL> warlock: the "s/blah/blah/" syntax contains regular expressions... in general, s/blah1/blah2/ changes "blah1" into "blah2"
[09:41] <LjL> warlock: in that command specifically, mytest= is just mached, then the .* means "match anything" ("." is "any character", and "*" is "any number of times")
[09:41] <LjL> warlock: then the $ means "end of line" (probably reduntant)
[09:41] <warlock> ooh
[09:41] <LjL> warlock: the round brackets ( ) mean "remember this part" (they needed to be escaped with \, so \( and \), but this is not really important)
[09:42] <LjL> warlock: and in fact, the .* part is remembered, and recalled by "\1" later - \1 means "recall the first thing you remembered"
[09:42] <LjL> warlock: so, if you had mytest=abcdefg, it will repeat mytest= and the abcdefg again
[09:42] <warlock> oic
[09:42] <LjL> warlock: then the ",something2" is simply added
[09:43] <warlock> perfect :)
[09:43] <LjL> so, s/   mytest=   ( .* )  /   mytest=  \1  ,something2   /
[09:43] <LjL> the final "g" simply means "repeat this for every instance", so if there's more than one "mytest=", it'll work for all of them
[09:43] <LjL> then "$File" of course is that File variable we defined in the "for" command
[09:44] <LjL> (when using variables - as opposed to declaring them - you need to prefix a $)
[09:45] <warlock> :o