General :: Combining A Badblock Scan With A Time Output

Jul 7, 2009

I have a Lenny Raid-5 setup, and I use rsnapshot to occasionally backup the raid to an old external hard drive that I otherwise leave unplugged. That external went bad, so I figured I should setup its replacement with encryption and keep it off site when not in use.

While googling and coming across LUKS, I can across this post this post that mentioned the drive should be be filled with random data before setting it up for encryption, and had the following as a potential sufficiently-good option over the time-intensive dd /dev/random route:
badblocks -c 10240 -s -w -t random -v /dev/sdx

I was unfamiliar with badblocks, and came across this post after a google session which noted the time duration of scan is an important factor as well as the result.

I sshed into the NAS, and was about to run badblocks first in read mode, then in write mode, but then I considered the time consideration. I was going to use something similar to the following: nohup badblocksstuff &

My Question: Is there a way I can append to the resulting nohup.out a time to complete value?

View 3 Replies


ADVERTISEMENT

Debian :: Eeepc Wifi - Every Time Scan For Network Using Iwconfig Wlan0 Scan Or Wicd And Computer Completely Freezes

Jan 9, 2011

I installed squeeze on my eeepc 1015ped and downloaded the correct firmware-brcm80211 drivers but every time I scan for my network using iwconfig wlan0 scan or wicd, my computer completely freezes. I previously had a solid install running xmonad, and wicd was working like a charm (using the same broadcom driver) but i tinkered too much with it and decided to do a fresh install. I haven't quite run into a problem like this before.

View 2 Replies View Related

Programming :: Display Only IP Or IP And Hostname Output Of Nmap Scan?

Mar 28, 2011

I am running a scan via nmap (nmap -sP) and the out put looks similar to this:

Nmap scan report for x.y.z.com (10.x.x.x)
Nmap scan report for 10.x.x.x

If it can resolve the hostname it does, if not it just spits out the IP. I would like to know the best syntax to use with cut, or awk, so that the only output is either the IP or IP - HOSTNAME.

View 3 Replies View Related

Hardware :: Scan Multiple Pages At A Time?

Jul 1, 2010

Is there any scanner that can scan multiple pages at a time? Without human intervention. Then put all the scanned pages in 1 tiff file or multiple gif or png or jpg files. A scanner that works with Linux. I need make and model.

View 1 Replies View Related

General :: Show Output On Terminal And Save To A File At The Same Time?

Jul 1, 2010

I am using:

user@unknown:~$ sudo command -option > log

to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?

I am using ubuntu 10.04 lts.

View 3 Replies View Related

General :: Ping To Show The Requests 'time Out' Instead Of Omitting The Output?

Apr 12, 2011

How can I make the Linux ping to show the requests 'time out' instead of omitting the output?

Just like the Windows version of ping.

View 3 Replies View Related

General :: Make Dmesg Post Output To Tty12 In Real Time

Apr 3, 2011

Terminal with real time dmesg output I want to use tty12 for system messages. Is there a way to mirror all kernel messages to there?

View 2 Replies View Related

General :: Combining Records With Same Key?

Apr 4, 2010

Input file (already sorted on the key field):

204 Daniel Barton
206 Mary Halston
206 David Coleman
206 Carson Coleman
207 Roland Highsmith
207 Annie Highsmith
209 Connie Ward

Desired output file:

204 Daniel Barton
206 Mary Halston David Coleman Carson Coleman
207 Roland Highsmith Annie Highsmith
209 Connie Ward

View 1 Replies View Related

General :: Combining Multiple .xls Spreadsheets Into One Document?

Nov 7, 2010

I have multiple .xls documents that are formatted as such,

<?xml version="1.0"?>
<?mso-application Excel.Sheet?>

They are all given different filenames bob_smells.xls, nancy_smells_worse.xls etc. I was wondering using Linux (LUbuntu specifically), would it be possible to combine all of these worksheets into one document, with each of the seperate files becoming a tab / sheet within the one file (And the name reflecting the original name of the document)?

View 2 Replies View Related

Server :: When Executed Last Command Its Showing System Ip Logged In Time And Logged Out Time The Output?

Feb 27, 2011

logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system
oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in

View 2 Replies View Related

Ubuntu Security :: Difference In The Output Of A Port Scan Using Zenmap On The Same System With UFW Turned Off And Then With It Turned On

Feb 16, 2010

This is the difference in the output of a port scan using Zenmap on the same system with UFW turned off and then with it turned on. It is obvious that UFW works.

View 6 Replies View Related

General :: Interpret The Output Of The "time" Command?

Sep 21, 2011

time a.out
106.130u 0.000s 1:46.28 99.8% 0+0k 0+0io 83pf+0w

As per my understanding of the man page:

the first value is the time since the code execution started and ended,
the second values is the time spent in usermode
the third one being in kernel mode

Is the 99.8% indicating time spent in kernel mode?

Also, what does this indicate?

0+0k 0+0io 83pf+0w .

The program definitely takes more than a minute to execute - then why is the first value so small?

View 2 Replies View Related

Programming :: Output Time In Ms From Gettimeofday?

Apr 23, 2010

i am trying to print the time in ms using the gettimeofday function, but on execution the shell gives: Segmentation fault (core dumped) error and leaves the program.. here is the code:

struct timeval time1,time2;
double time_used1;
//get time1
gettimeofday(&time1, NULL);

[code]....

View 3 Replies View Related

Networking :: Print AND Real-time Output Of PING Command ?

May 3, 2011

Let's say I am pinging a host, and want to output to a file each reply and its timestamp of when this started.

I know that it can be done with a loop and a shell script. Something like this

DO

echo "$(date)" >> results.txt ###includes the time and outputs results to txt###
ping -c 4 HOST >> results.txt ###a total of 4 pings at a rate of 1 per second###

REPEAT UNTIL USER PRESSES CTRL-C

Now, my first issue is that I need to be able to see results real-time as well.

Is there a way one can print to BOTH a screen and output? If one uses the ">>" command, it is essentially sending everything to the file. Running another ping command in parallel is not an option.

View 3 Replies View Related

General :: Parsing Text And Combining The Parsed Text?

Oct 28, 2010

EDIT1: I should note that I was trying to do this in PERL, not sure if other alternatives are more simple?EDIT2: I should note that for text file 3 (reference), it's a long list of MANY cnp_id values and their corresponoding chr, start, and end values. So, the code will have to take the cnp_id from text file 1 and/or 2 and search through textfile 3 (reference) to match on the cnp_id and then take the corresponding chr, start, and end values and add to the relevant line in the output.EDIT3: Sorry, I should mention that the text file entries are all tab-delimited.I have 3 text files:File 1:Columns represent sample IDs (sample_id) and rows represent CNP IDs (cnp_id). Cells represents the confidence level (confidence) for each sample and CNP.Quote:

cnp_idP5E6_SNP6.0_JHP5_010408.CELP5E11reh_SNP6.0_JHP5_011808.CELP7C7_SNP6.0_JHP7_021208.CEL ... etc.
CNP100.0044798340.0027929510.00305613

[code]...

View 6 Replies View Related

Fedora :: Combining 2 Systems Into 1?

Mar 31, 2009

I have been running one computer with Fedora 9 and one with Windows XP Pro. to conserve space, I have moved the Fedora hard drive into the Windows computer (newer). Both are sata drives and each boots completely on its on. I would really like to make it a dual boot system so I can choose which drive to boot without having to open the case and swap the cables around. The Linux disk is readable by the windows OS but not the other way.

Everything I have read about dual-boot is how to do it at installation time. Is there anyway to do it, without reinstalling one of the OS.

View 5 Replies View Related

Ubuntu Multimedia :: Combining Two Dvd Into One?

Jan 26, 2010

Is there any software that will allow me to combine like DVD Shrink does? Without having to convert them muliple times. In DVD Shrink, you open one titleset and choose the movie you want and then open the second titleset and then do the same, and have DVD Shrink combine and shrink them into another titleset, then I make a menu with Titlewriter.

View 4 Replies View Related

Software :: Combining OGV Files Into One Big File?

Jan 2, 2011

I've tried several methods without success. These OGV files are 7 parts of a single screen cast. I tried ffmpeg but every option I try I either get crappy video or the audio/video is out of sync. Latest attempt was:

Code:

ffmpeg -v 9 -i XDF_Demo-PART-0-video.ogg -r 15 frames-part1/XDF_Demo_%06d.png

But that failed because the png quality. mplayer and mencoder I mostly just couldn't get it to play the files together. easy way to combined these files so media players and html5 can play it in one pass?

View 1 Replies View Related

Programming :: AWK - Combining Multiple Columns?

Feb 23, 2010

I have a folder with only 24 files named <number>.dat (i.e. 4.dat, 6.dat and so on) where <number> is between 0 and 256. Each file has just two columns of data and nothing else.

I'm trying to combine all the second columns ($2) together. I've been fiddling around with getline and so far have

awk '{ getline ln < "6.dat" ; print ln" "$2 }' 4.dat

which takes file 4.dat and adds $2 from 6.dat, but I want a single command to take each $2 from every file and add them to (for example) 4.dat (having $1 from 4.dat is no problem). A command that takes every file in the folder and grabs $2 and places them in a common file would be ideal. Frankly I can work around if you combine both columns from every file.

View 5 Replies View Related

Hardware :: Mem - 'input Output Error On Sr0 Logical Block (a Large Number) After A Long Time The Booting Proceeds To A Point

Aug 29, 2010

I have been having a lot of trouble lately with installing from CD/DVD. The DVD reader/writer on this laptop is new. Nevertheless, trying to install Ubuntu onto an exernal HD, I get 'input output error on sr0 logical block (a large number) After a long time the booting proceeds to a point, but I never get the actual installation started, and have to shut down manually.

The CD is fine, says the Ubuntu-checker. I just installed using my sons laptop, and there was no trouble. Question: does this indicate a motherboard failure? A memory block damaged? Do you know of a diagnostic tool I can use to check the reading of a CD/DVD?

View 7 Replies View Related

OpenSUSE Network :: Combining Vncviewer Switches ?

Mar 21, 2011

I use vncviewer (win32) to connect to my SuSE 11.3 box. The SuSE box has the "standard" xinetd started Xvnc server running (includes the -inetd switch).

My client (the vncviewer) has to go through a firewall with limited ports available and so I use the command line:

Code:

However, if there is a problem with the connection, such that the client disconnects, it seems that subsequent request to the Xvnc server create a new session/display. The text in the client window reports "nobody's x11 desktop (host:1)", then "...(host:2)", then "...(host:3)" etc.

I have tried combining the display and the port parameters, like this:

Code:

Can anyone suggest an alternative way of reconnecting to a broken vnc session?

View 1 Replies View Related

Ubuntu Multimedia :: Audacity And Combining MP3 Files?

Mar 1, 2010

So I asked around and to combine audio files apparently I want to use Audacity.

It seems easy enough to LAYER audio files, but how do you string them together in sequence? I have an audiobook divided into 5 minute chapters and I want to combine them into longer chapters....my MP3 player likes to play them out of order which makes them difficult to listen to. I want to make it 1 long tract, or maybe 6 medium length tracks.

How do I combine tracks with Audacity...Not layering them but putting them in order into 1 long track?

View 5 Replies View Related

Networking :: Combining Multiple Interfaces With Multicast?

Apr 1, 2010

I have 4 interfaces, dvb0_0 - dvb0_3. Each one has a multicast stream coming in on it. The program I am using to decode these streams only accepts one interface though. How can I "combine" so that the program, listening on 1 ip can get all 4 streams? they are on groups 224.0.1.1-4

View 1 Replies View Related

Software :: Combining An Archive And Script File

Oct 30, 2010

So what I am looking to do is combine an archive and a script file. I would like to have a number of files compressed into an archive package and when a user double clicks on the package instead of having it open with the archive manager, instead have it run a shell script that is also packaged with the files.

This shell script will do a number of things including handling where the files are extracted to. Over all this would be similair to a self-extracting installer Windows users are used to using.

View 5 Replies View Related

Ubuntu Multimedia :: Combining Streams Of Video Into One File?

Feb 6, 2011

I'm looking for a program of some kind that I can combine 4 (if not 2 minimum) streams of video into one file. The only program so far that I've found that does this is avisynth but I can't seem to make it work at all. Does it even work under ubuntu? I've tried numerous guides and how to's but nothing seems to be working.

Basically I just need something that will take a video file, from several different sources (cameras placed around a car) and be able to place them in a grid form into one file. Basically in a format like this, where each letter is a different video file:
a b
c d

View 5 Replies View Related

Programming :: Combining Commands And Var's In Bash Shell Script?

Jan 5, 2011

I have a command which on the command line needs to look like this

rlam -if3 '!pvalue -H image1.jpg' > image2.jpg

Nevermind what rlam or pvalue do ... they are part of a program package I am using. The above command works on the command line, and also when written verbatim in a bash shell script.

My problem is: in the script I wish to replace image1.jpg with the content of a variable, e.g.

IM1=image1.jpg

How to I get the script to insert the value of $IM into the command when the pvalue part of it needs to be quoted?

View 1 Replies View Related

Software :: Combining Antivirus Data / Image Recovery?

Aug 9, 2010

I tried the Linux-based live CD's of the main Windows anti-virus vendors (Kaspersky, BitDefender, AVG, Avira). They work well, but they are single-purpose solutions while affected Windows users also need a solution to 1) pull data (or what's left of it) out of their contaminated Windows host onto a USB thumb drive or a remote host, and 2) restore a clean image using eg. CloneZilla. Asking users to burn and run three different CD's is not very user-friendly. Has someone already investigated combining those three features into a single live CD?

View 8 Replies View Related

General :: Scan-to-PDF Software For Linux?

Dec 12, 2010

I have a workflow whereby I scan paper documents into searchable PDFs using a Fujitsu ScanSnap S500 document scanner. I am not a great fan of the bundled software, but it's dead simple to use: place a stack of paper at the top, push the green button and a searchable PDF comes out.Now, I'd like to do something similar on Linux (Ubuntu 10.10). The scanner is supported out of the box.I've looked at gscan2pdf and XSane:

XSane looks powerful, but not really suitable as a workflow solution;gscan2pdf is a bit closer to the "push the button, get the PDF" ideal, but still not 100% there.

View 1 Replies View Related

General :: Hp 1050 Can't Print Or Scan?

Feb 24, 2011

I have just started using puppy linux 5.2 ( lucid) which has transformed my old PC . The only real problem encountered is that I cant get my HP 1050C to print or scan . Running the cups wizard gives me the option of the printer and I found a driver in the list. The table below shows the printer settings being used . Sending jobs or maintenance to the printer has no effect although the cups system says they are complete . Xsane does not see the scanner . The printer functions fine under windows . I am obviously missing something very basic

Description:HP Deskjet 1050 J410 series
Location:table
Driver:HP DesignJet 1050C PS3 v3010.106 (color)
Connection:usb://HP/Deskjet%201050%20J410%20series?serial=CN0C133YFV05 HW
Defaults:job-sheets=none, none media=unknown

View 3 Replies View Related

General :: Scan New EMC SAN Lun / Disk In RHEL5?

Apr 7, 2011

How to see/scan new EMC SAN lun/disk in RHEL 5?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved