2
votes
1answer
32 views

DDRescue - Did I do the wrong command which is causing it to take longer then expected

I am running the following command on a 500GB drive: ddrescue --force --direct /dev/sde2 /home/backups/sde2.img sde2_logfile.ddrescue However, the time has been almost 24hrs and all it has done so ...
0
votes
2answers
51 views

changing permissions of Read-only file system in linux

i use this command to make a bootable flash disk of linux mint sudo dd if=~/Desktop/linuxmint.iso of=/dev/sdx oflag=direct bs=1048576 it's work, but now my flash disk is lock and i can't change ...
-1
votes
1answer
24 views

Best way to duplicate Linux system drive

I'm upgrading a Centos server's core system harddrive from an IDE drive to a new SATA drive. The server already has 3 other SATA drives running being used as storage areas. What is the best process ...
1
vote
1answer
24 views

Will copying to an identically sized disk cause issues if the output disk has bad sectors?

I just made a copy from one 160gb disk to another, identical 160gb disk, using the command sudo dd if=/dev/sda of=/dev/sdb (run on a live Ubuntu CD) However, the SMART test on /dev/sdb shows 20 ...
0
votes
2answers
40 views

Does `dd` work on physical level or on filesystem level?

When you delete a file from a device, let's say an USB stick, then (without doing any further stuff) only the entry in the filesystem is deleted, the raw bytes of this file are still on the device ...
1
vote
1answer
41 views

How can I backup the entire file system on a backup image file?

I am pretty new to Linux. I am configuring my RaspBerry that use RaspBian (that is a minimalistic Debian distribution). Before changing some settings I want to have a backup of my entire system in ...
0
votes
0answers
21 views

Restoring backup with dd

I have made a backup of an hard drive using ddrescue. Now I have the .img file. How can I restore the .img Backup to an other hard drive? I have tried dd if=backup.img of=/dev/sdc but the hdd sdc is ...
-1
votes
2answers
35 views

How to unpack dd file on Windows?

Is it possible to unpack files created with linux dd tool on Windows? I have tried that tool http://www.chrysocome.net/dd, but it crashes under Windows 7. Any ideas?
0
votes
1answer
40 views

dd immidiately completes but actually needs sync

I use dd to copy an iso to a USB drive. I have a SSD so it reads it very fast however I have a USB 2.0 drive, which is at most 480 Mbps but it says it copied with 404 MB/s, which is impossible. I need ...
0
votes
1answer
30 views

dd MBR and one partition

I have 2 partitions on a drive and I need to use dd to create a new image of just the MBR and second partition. Here is the output of fdisk -l /dev/sda Device Start End Blocks ...
0
votes
1answer
41 views

dd a partition and keep device structure

How can I dd a partition while keeping its device structure? Source device: [root@cal-7-3 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 37.3G 0 disk └─sda1 8:1 0 ...
2
votes
1answer
48 views

Hex of filesize

I am following a tutorial on few kernel dev. I encountered an operation where I have to use dd like dd ... if=PBL.bin of=... count=block_number The block_number variable is defined to be as The ...
2
votes
3answers
608 views

How to get Linux to be loaded to RAM?

I'm soon to acquire several new computers on the grounds that I wipe their hard disks. I don't need the drives to be randomized, just zeroed out with dd. How can I can boot Linux from a flash drive ...
1
vote
1answer
488 views

Extract the contents of ELF and write to binary file

I have been trying to extract the contents of a firmware and putting it to a binary file, but with no success. I see the right hex contents, but am not sure how to laid them in bits into a file. ...
0
votes
1answer
517 views

How do I make a USB flash drive writable on Linux?

I want to reformat a SanDisk Cruzer Edge USB flash drive but it appears read-only: $ sudo dd if=/dev/zero of=/dev/sdg dd: failed to open ‘/dev/sdg’: Read-only file system I checked the readonly ...
-2
votes
2answers
65 views

cronjob for creating two files with 2 GB of size each

I need to create a cron job that runs every hour. This cron job should create two files, each 2GB, one should be created from /dev/urandom and the other one from /dev/zero and should be written to a ...
2
votes
2answers
872 views

Can I expand the size of a file based disk image?

I created an empty disk image using dd, then I used mkfs to make it a real filesystem image. I am mounting and using it fine. What I need is to be able to expand or shrink this file based disk image ...
2
votes
1answer
100 views

Can cat be used to clone a partition?

For example, can I do: cat /dev/sda1 > /dev/sda2 instead of using dd, and if not, why will this not work?
0
votes
2answers
111 views

Accidentally erased SSD with “dd”, any chance of recovery?

I was trying to clone a SSD last night and made a very simple, stupid mistake. Instead of doing dd if=/dev/sdb of=/dev/sda, I did the reverse, dd if=/dev/sda of=/dev/sdb Essentially I read from a ...
0
votes
1answer
125 views

Linux dd Command - Possible to do a full disk copy from larger to smaller drive? [duplicate]

I have a 500 gig drive as well as an 80 gig drive. I would like to clone the 500 gig over to the 80 gig and I think it might work because there is not 80 gigs of data on the 500 gig drive. Will this ...
0
votes
1answer
125 views

Use Linux dd to copy and read file at specified location

I want to use the dd command to write one file at any location of the hard drive and then to read the same file from this location. I need to be independent on any file system or partitioning. It ...
1
vote
1answer
120 views

Bootable linux backups without DD

I'd like to backup the state of my system. It only runs Manjaro. What I've done in the past when I need to install something else on the machine temporarily is just to dd the whole drive to a file ...
1
vote
2answers
306 views

hdd recovery: can I speed up dd?

I am currently trying to recover a hard drive I accidentally formatted, but am of course, using dd if=/dev/sdb of=/dev/sdc conv=noerror,sync to make a backup to work on first. I have two questions, ...
0
votes
1answer
112 views

Created image of single partition from Imac harddrive using dd - how to mount?

Alright, you'll have to forgive that I don't have an abundance of knowledge with using these tools. I've tried to follow the tips provided in this thread: How to mount a HFS partition in Ubuntu as ...
14
votes
1answer
7k views

Mac OSX - Why is /dev/rdisk 20 times faster than /dev/disk

According to the rasbery pi documentation, You can load your OS to a flash card with either /dev/disk or /dev/rdisk. rdisk stands for raw disk. /dev/disk is a block level device, why would rdisk ...
-1
votes
1answer
129 views

what are the types of error messages that dd outputs? [duplicate]

What are the error messages that dd outputs? I tried to look at manual, but it does not say anything about it. Or I do not know how to look at manuals (man). Edit: OK. I'll make it simple: what error ...
2
votes
1answer
149 views

What happens if dd encounters errors while output of dd is being piped to gzip?

Suppose that dd if=/dev/sda bs=100M | gzip -c > somefile.img.gz is done. If errors occur in dd, do I get to see error messages in terminal, or do they get ignored? Also, suppose that dd ...
-1
votes
1answer
7k views

What does dd conv=sync,noerror do?

So what is the case when adding conv=sync,noerror makes a difference when backing up an entire hard disk onto an image file? Is conv=sync,noerror a requirement when doing forensic stuff? If so, why is ...
2
votes
2answers
1k views

DD: No Space Left On Device

I've been messing with an old Brother WP-2200 and I've hit a bit of a snag. I was hoping I would be able to make images out of the floppies I typed on it using dd under Linux. Unfortunately that ...
0
votes
1answer
131 views

Rescue data from ext4 ISO image?

so, my SD card got broken and cannot be read completely (escpacially the directory I want to read from has problems). I was able to create an ISO image of the partition using dd but cannot mount it. ...
2
votes
1answer
4k views

Why do we use cp to copy files and not dd? (in unix-derivatives)

For normal file copying in *nix, I've only ever seen people use cp (eg. cp /mnt/mydevice/myfile ~/myfile), but I eventually ran into dd, which appears to do the exact same thing (dd ...
0
votes
1answer
551 views

dd restore image to HDD (having issues)

I had made a complete image (at least I think I have) using dd if=/dev/sda of=/mnt/sda.img bs=32M where mnt is an external HD I use. I came to restore that image this morning, so I booted up on a ...
2
votes
1answer
104 views

Consequences of zeroing out a partition with dd

I have a partition called sdb1 formatted as ext4. The partition is currently mounted. If I do the following: dd if=/dev/zero of=/dev/sdb1 What are the consequences (beyond all data on the being ...
10
votes
2answers
16k views

creating a bootable USB from command line on linux

I have a CD that's created from an ISO file which I use to install a custom version of Ubuntu via plop linux. The cd works fine but I'd like to use a bootable USB drive instead. I used the command dd ...
1
vote
3answers
600 views

How do I image a 128GB drive to a 120GB one using Linux dd?

I have 2 SSD's. My system (Ubuntu 12.04) is installed on one and I want to clone it to another. The problem is that the system is currently on a 128GB drive and the new one is only 120GB. Is it ...
10
votes
6answers
991 views

What happens if I dd zeros to the drive where dd resides?

Will this command: dd if=/dev/zero of=/dev/sda bs=1M succeed if the dd command was originally on /dev/sda? Will this complete because dd is in memory at that time?
0
votes
2answers
322 views

Why does dd copy slower with really small and really big block sizes?

I have realized that if I use really small block sizes, the dd copy is slower, but if I use really big block sizes, it also is slow. I have found that 1M is optimum. Why is this?
0
votes
2answers
557 views

How come writing varying file sizes results in varying speeds? [duplicate]

Here is some output from the dd command: $ dd if=/dev/zero of=test.file bs=10M count=1 1+0 records in 1+0 records out 10485760 bytes (10 MB) copied, 0.130214 s, 80.5 MB/s $ dd if=/dev/zero ...
0
votes
1answer
281 views

dd cloned drive not recognised by Windows

I have a Lenovo Windows 7 laptop with an MBR hard drive I want to clone. I used a Linux (Kali, FYI) live USB stick, booted on the PC and used dd if=/dev/sda of=/dev/sdc bs=100M conv=notrunc to clone ...
3
votes
1answer
3k views

Use losetup and dd to make filesystems images ready to be deployed

Introduction Using dd, one can easily backup the MBR and partition table of a disk. It's as easy as: dd if=/dev/disk2 of=~/Desktop/disk2_mbr bs=512 count=1 One can also backup whole partitions: dd ...
0
votes
1answer
150 views

how to dd capture partitions of a VMware Player VM

I have a Linux VM that runs in VMware Player. It has /dev/sda1 mounted as /boot and /dev/sda2 mounted as /. I want to use dd to capture both partitions. I now know from the answer to this post that ...
3
votes
0answers
2k views

Attempting to access RAM /dev/mem… says “Operation not permitted”

I am using Ubuntu 12.04 I read the following tutorial on how to access the contents of RAM in Linux.... http://www.rootninja.com/using-dd-to-search-for-strings-in-memory-or-devices/ Code: dd ...
0
votes
0answers
225 views

Operating System not found when loading DD image in VMware

I provide much details below to hopefully make my issue as clear as possible. Using dd if=/dev/ps3da2 of=/mnt/edexhdd/EDPS3LINUX.iso bs=16384 I copied a fairly huge partition from a physical Linux ...
1
vote
1answer
201 views

Use ntfsundelete on dd image

I have a feeling the answer to this is right in front of me, but I am not seeing it. :/ I used dd to to create an image of a failing drive. Now, I would like to attempt to recover anything I can from ...
-2
votes
1answer
2k views

Make Live USB with dd

The last time I booted from USB was back in 2006. Ever since, I keep failing at making live usb bootables. I tried getting Fedora 18, Ubuntu, and ton of other distros to boot from USB and never ever ...
1
vote
2answers
111 views

dd /dev/sda to img on drive

If I run: sudo dd if=/dev/sda1 of=~/image.img bs=1M Will the image.img (which is located on /dev/sda1) be continuously copied onto itself? As it gets bigger from data, will that additional data be ...
1
vote
3answers
3k views

How to create an image of a Live system over ssh?

I have a question about a FreeBSD server that I cannot access at the moment. But because we would like to try some new stuff we want to create a backup of this system first. The question is: is ...
2
votes
2answers
2k views

dd command to create bootable iso image of hard disk

Is it possible to use the dd command to create a bootable ISO image? I use the following command to do it: dd if=/dev/sda of=/mnt/sdb/my.iso I am able to create ISO, however I am not able to boot ...
0
votes
3answers
451 views

How can I untar a filesystem backup into a VM disk image?

I've been provided a .tar.gz archive containing the files from a VM file system (but not the filesystem itself) and I need to untar these into a raw disk image so that I may mount them as a VM. How ...
2
votes
2answers
476 views

linux DD disk backup - file smaller than disk?

I got small problem. I need to make a mirror of a disk. Zero it and then restore data. I'm using DD linux command to copy data to a file. sudo dd if=/dev/sde of=/media/Rozne-new/hitachi_disk2.img ...