What has happened to the ability to use "of=/dev/sr0"? I am certain that I used to be able to burn an image directly to a CD/DVD with "dd", but now it always complains that "/dev/sr0" is a read-only filesystem. Have I lost my mind and this was never possible?
|
You could try formatting a DVD-RW and then a command like this:
Code:
wodim -vv dev=/dev/sr0 -sao -fs=500m -speed=4 < dd if=/home/sam/image.iso Code:
dd if=/home/sam/image.iso | wodim -vv dev=/dev/sr0 -sao -fs=500m -speed=4 |
OK AM, if you say it can't be done, then it can't. I guess my memory is faulty. Thanks.
|
Quote:
|
hello all - good day dear linux-experts
first of all : a very very happy new year to all of you! have to save the data of a lenovo-notebook: want to achive that with knoppix. what is aimed: how to do with knoppix a dd on windows machine with nine (9) partitions the notebook: lenovo G 780 Notebook the os: windows 8 see the lenovo-support-links: https://forums.lenovo.com/t5/Lenovo-...6d69642eea6ce7 http://support.lenovo.com/us/en/documents/HT080887 so the below is only an example to show you the difficulties of the 9 partitions this beast has got! Quote:
how to do this - with the dd command? i want to store the stuff to external drive well this is no easy task - but i want to do it. Again - a happy happy new year to all of you!! greetings |
Code:
# dd if=/dev/sda of=/dev/sdb bs=4096;sync |
usb flash 8GB disk image to USB flash 32GB disk
To senior Linux techies..
I got my PC troubleshooting bootable USB 8GB with parted magic, kali and few other isos by yumi utilities, it boots and works well. But now i want to migrate image of it to new USB flash disk 32GB. i made image of it on my Ubuntu machine and now want to transfer it to new one. I tried using your dd examples, but it works out 8gb capacity on new disk wasting lots of memory space but it boots. I tried to expand this partition using gparted but it ruins the bootable option. I guess as per your words i need to use : dd if=/dev/sda skip=1 of=/dev/sdb seek=1 bs=4k conv=noerror (good when u have two devices but i got one image and new usb left) if yes, it all good but to further challenge, i already image as usb_8g.img on my desktop and i need to move it to bigger usb_32gb. (after making image, i formatted my usb_8gb :( Regards Ron Quote:
|
Quote:
|
Thanks!
|
useful and well explained. Need more posts like this.
|
conv=sparse?
Hello LQ world:
Awesome writeup of dd. I found it when trying to use dd to make a sparse file, when cloning MBR and first partition of disk. When I scroll through results from Code:
man dd Code:
sparse try to seek rather than write the output for NUL input blocks Code:
dd: invalid argument 'sparse' to 'conv' Now I started back up from the slackware USB installer, which has 9GB free space left on the thumb drive, and I want to create a sparse image from my 10GB partition, and I want the image to include the MBR, I want it to be called disk.raw, and I want to save it on the USB drive. I mounted the thumb drive to /mnt. The command I concocted that doesn't work is as follows: Code:
dd if=/dev/sda of=/mnt/disk.raw bs=1048 count=10485760 conv=sparse |
I have just tried using dd to image a partition and then compress it using this command as in the first post of this thread:
Code:
dd if=/dev/sdb2 ibs=4096 | gzip > partition.image.gz conv=noerror Code:
dd if=/dev/sdb2 ibs=4096 conv=noerror | gzip > partition.image.gz I mention this only to assist others who may use the command, and it is in no way a criticism of an outstanding guide to the dd command which I have referred to on many occasions. Thank you! Updated code: Code:
dd if=/dev/sdb2 ibs=4096 conv=noerror,sync | gzip > partition.image.gz |
Quote:
Code:
dd if=/dev/sdb2 ibs=4096 conv=noerror,sync | gzip > partition.image.gz |
Quote:
'sparse is not one of the 'dd' convert (conv) arguments. A sparse file is like a place marker on the disk. It is a file that at least some of it contains nothing. To write a 45MB sparse file, try: Code:
dd if=/dev/zero of=/home/sam/sparse.file count=45 bs=1M Sparse file that grows from zero Bytes to 45MB as you fill it: Code:
dd if=/dev/zero of=/home/sam/sparse.file count=0 seek=45 bs=1M If you simply want to write one disk partition to another, try: Code:
dd if=/dev/sda of=/thumbdrive_root/partition_image.bin bs=4096 |
conv=noerror
Quote:
Code:
conv=noerror Code:
conv=noerror If it only works with the 'noerror' flag, then the compressed image may be flawed. It's always a bad sign when you have to use 'noerror' to get 'dd' to work. I have not found a good use for this conversion flag since the program Code:
ddrescue |
All times are GMT -5. The time now is 03:24 PM. |