dd

How to backup LIF formatted disk?

I have several old 3.5in floppy disks that I would like to backup. My attempts to create an image of the disks have failed. I tried using the UNIX utility dd_rescue, but when the kernel tries to open (/dev/fd0) I get a kernel error "floppy0: probe failed...". I would like an image because some of the floppies are using the LIF file sy...

do stdout output with specific speed

For a load test of my application (under Linux), I'm looking for a tool that outputs data on stdout at a specific rate (like 100 bytes/s), so that I can pipe the output to netcat which sends it to my application. Some option for dd would be ideal, but I didn't find anything so far. It doesn't really matter what kind of data is printed (N...

Reading a sector on the boot disk

This is a continuation of my question about reading the superblock. Let's say I want to target the HFS+ file system in Mac OS X. How could I read sector 2 of the boot disk? As far as I know Unix only provides system calls to read from files, which are never stored at that location. Does this require either 1) the program to run kernel ...

DD img different MD5's?

We have a smart media card with a linux install on it that we need to duplicate. We created an img with DD and then used dd to write the img back to a couple of new smart media cards. We have compared the MD5 checksum of both the original and the new copies and they are different. Here is what we used: dd if=/dev/sdb of=myimage.img d...

How to query datetime based on date in c#

I have an MS-Access database with a DateTime column. ex: 03/08/2009 12:00:00 AM. I want query based on date like: select * from tablename where date='03/08/2009' I want display data as 03/08/2009 12:00:00 AM. How would I write this query in C#? Please help me. ...

T-SQL Problem

I have following table (SQL Server) Table name is LandParcels Blockid ParcelNo Stateorprivate ======================== 11001901 30 Deemana 11001901 35 Deemana 11001901 41 State 11001901 45 State 11001901 110 Private 11001901 111 Private 11001902 1 Deemana 11001902 11 Sta...

Guarantee the content of a file is flushed when using dd conv=fsync

Hi I am trying to do a wear leveling test on a series of SD cards. I relation to this my idea was to use dd to write, read, rewrite and reread the same "first block" on the SD card - my for doing this is the following - dd if=data of=/dev/sdb bs=512 count=1 conv=fsync rm readdata >/dev/null dd if=/dev/sdb of=readdata bs=512 count=1 con...

How to style dt and dd so they are on the same line?

Using CSS, how can I style the following: <dl> <dt>Mercury</dt> <dd>Mercury (0.4 AU from the Sun) is the closest planet to the Sun and the smallest planet.</dd> <dt>Venus</dt> <dd>Venus (0.7 AU) is close in size to Earth, (0.815 Earth masses) and like Earth, has a thick silicate mantle around an iron core.</dd> <dt>E...

Styling the DD tag

I am using dl,dt and dd tags in one of my project . Now I want give a bullet before dd . How can I make my dd's to a bulleted list using css ? Any Ideas ??? ...

How to hide the "dt" when following "dd"s are hidden

hello everyone, I have a triggered javascript function to hide "dd"s which have the same class name. But the problem is, sometimes, only the dt is left alone. For example, the first dt dd block, when I hidden the all 3 dd's. the dt (today) one is still there. I want to hide the dt too when no dd is associated. How can i do that? thank...

How to redirect output from dd command to /dev/null ?

In shell script i need to redirect output from dd command to /dev/null - how to do that? ( dd if=/dev/zero of=1.txt count=1 ) 2>&1 /dev/null didn't work! ...

dd block size optimisation?

For a long time, I always thought that the bs and count parameters for dd were merely for human convenience; as dd would just multiply them and use the byte value. A month ago, when installing Ubuntu for my mother, I shrunk a partition to the right (don't ever do that, it takes ages) and saw gparted calculating an 'optimal block size'. ...

Grab a random number of bytes from a file with bash?

I have a file of 256MB. I'd like to retrieve a random amount of data from this file and copy it to another file. Is there a way to do this in bash or some other way? G-Man Edit: choose a random number between 1 and 256 then copy that number of mb from one file to another. ...

dd Command - How to determine cbs

I have a input file in EBCDIC format. I have no idea how many records there are in the file. In that case, if I want to convert it to ASCII, what would be ibs, obs, and cbs? ...

Can't reach speeds of dd

Hi, I'm writing C code with some real-time constraints. I tested out the speed I can write to a disk with dd: dd if=/dev/zero of=/dev/sdb bs=32K count=32768 oflag=direct This writes 1GB of zeros to /dev/sdb in 32K block sizes I reach about 103 MB/s with this Now I programmatically do something similar: open("/dev/sdb",O_WRONLY|O_CR...

Explaination of dd command in nasm

I am reading osdev wiki. I came across these two lines of code. nasm kernel.asm -f bin -o kernel.bin dd if=kernel.bin of=/dev/fd0 I can understand the first line but I can't understand the second line. what the second line do? what is this dd command? what is this /dev/fd0 here? Can anybody explain me this please? Thanks in adva...