Questions tagged [dd]

This command is used to do low level copying of data.

Convert and copy a file, write disk headers, boot records, create a boot floppy. dd can make an exact clone of an (unmounted) disk, this will include all blank space so the output destination must be at least as large as the input.

For more info refer to the manpage.

210 questions
3
votes
2 answers

Unable to mount cloned partition via ddrescue

I have a problem with mounting the cloned partition. To clone it, I used as root: ddrescue -f -n /dev/sda3 ./sda3_rescue.img ./rescue.log The partition which I cloned, was a broken NTFS partition. Broken, because during the resizing of this NTFS…
dave
  • 303
  • 3
  • 16
3
votes
2 answers

Can't dd /dev/kmem in Ubuntu Jaunty

I am keen to dump the contents of physical RAM into a flat file on my Ubuntu box but all I get is a 1MB file using dd (Which is odd as I have 4GB of RAM!). The command I am using is dd if=/dev/mem of=/usr/dd.mem. I have also tried using /dev/kmem as…
Luke Bibby
  • 137
  • 3
  • 6
3
votes
1 answer

Mount new partition on a removable disk after dd?

How do I mount a new partition on a removable disk after dd without removing and re-inserting the device? If I use dd to write an image to a removable device, such as a usb-stick or an sd-card, the partitions on the device might change. When I use…
Ola
  • 203
  • 1
  • 9
3
votes
1 answer

On a system with 64GB mem the Linux Buffer run full while copying with dd to dev null and io stops till manual drop_caches

I am running a server with linux software raid 10. It is a dual CPU system with 64GB Ram. 2x16GB dimms related to each of the CPUs. I want to use dd to backup kvm virtual machines and run into a serious io problem. First I thought is related to the…
user219392
  • 73
  • 1
  • 8
3
votes
1 answer

Large write with dd fail on RAID-5

I have a server with a RAID controller which connects to a JBOD over SAS. JBOD is populated with 16 SAS-HDDs of 3TB (8 of one make and 8 of other, same rpm). I have configured 3 logical drives with RAID-5, each having 5 physical HDDs (+1 as…
hrs
  • 151
  • 6
3
votes
3 answers

Creating an iso file in Linux

I have created iso files by using two commands: dd if=/dev/cdrom of=filename cp /dev/cdrom filename What's the difference between the two, both have worked for me.
Osama ALASSIRY
  • 824
  • 3
  • 8
  • 22
3
votes
2 answers

How to view a full disk data (more than one partition) cloned with dd

I've a disk image done with dd: dd if=/dev/sda of=/mnt/fulldisk.img /dev/sda have some partitions (Windows+Linux) My problem is: I need to know if the image is done well, how can I access data? (especially Linux data) I've tried with Windows…
Ferran
  • 31
  • 1
3
votes
2 answers

Raw copy with sector precision on windows

Is there some program for windows that is able to do what dd does in linux out of the box? I need to copy from a file to a physical disk in raw mode where I need to define offsets for input and output. So for dd, I'd need to use the seek and skip…
user462982
  • 175
  • 1
  • 6
3
votes
2 answers

Monitor Disk I/O Using DD

I've bee looking into the possibility that my server is experiencing a lot of iowait issues. I've found a lot online about running the dd command. I am unable to run this conv: [root@vps ~]# dd if=/dev/zero of=/tmp/test bs=64k count=16k…
noidea
  • 31
  • 1
  • 2
3
votes
5 answers

Creating a 80GB image with dd on a FAT32 drive

I have a question concerning the creation of an drive image with dd. Normally i would simply type: "dd if=/dev/foo of=/dev/bar". But in this case i only have a fat32 formatted drive at hand, which should be used for the output. Fat32 only allows…
Darokthar
  • 133
  • 1
  • 4
3
votes
1 answer

Will this DD command work?

I've mounted my Google drive and would like to make a live backup image of my raspberry pi. Would this command work? sudo dd status=progress if=/dev/mmcblk0 bs=10M conv=sync,noerror | gzip -9 - | dd of=~/mnt/gdrive/RPI/"home server"/backups/$(date…
Rich Fedor
  • 31
  • 1
2
votes
2 answers

Bad Sector on disk causes the whole server to crash

Our dedicated server's hard disk was recently diagnosed with bad-sectors, and each time certain data on the disk are about to get accessed, the whole server goes non-responding before i i issue a restart over robot panel. We asked our server…
chakmeshma
  • 121
  • 2
2
votes
1 answer

Initramfs error after image restore using dd

I need to create backups of a Ubuntu system in a way that I can easily restore the data and system as it is exactly in a ready to go state. So, I decided to go with dd to create a whole HHD images. I created the image as follows: dd…
CuriousGuy
  • 125
  • 6
2
votes
4 answers

DD copy works at terminal but not by cron

On an RHEL5.4 system I setup a script to backup a drive with dd copy every night by cron. I spit the dd output into a log file and email. It is in /etc/crontab and /var/spool/cron/root when I figured out it wouldn't even run under cron. The script…
hamstar
  • 745
  • 3
  • 9
  • 20
2
votes
1 answer

PXE booting .IMG and .DD images

I have read many forum posts but still can't PXE boot image files. usb-image.dd is my image file. Instead of using USB sticks I would like to boot live Linux by using PXE. DEFAULT menu.c32 PROMPT 0 timeout 300 MENU TITLE PXE Menu LABEL memtest86 …
JPX
  • 151
  • 2
  • 2
  • 7