Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a one instance(ubuntu 12.10) and volume in amazon account. I have attached volume with same instance using ec2-attach-volume command using /dev/sdp as a device name. After attaching in amazon ubuntu instance one more xvdp file is created in /proc/partitions file.
After i have executed follwoing command.
mkfs -t ext4 /dev/xvdp
mkdir /mnt/xvdp (Its a simple directory in /mnt/ directory)
mount /dev/xvdp /mnt/xvdp (mounted xvdp file system on mounted directory)
chmod 777 /mnt/xvdp
I have uploaded one ubuntu 11.10 image in /mnt/xvdp location using rsync command.
now i have image.raw file in the /mnt/xvdp location. now i want transfer the .raw file into /dev/xvdp through follwoing command.
dd if=/mnt/xvdp of=/dev/xvdp bs=10M
This is throwing input/output error.
The big problem is files which is there in /mnt/xvdp location is completely disappeared. Again i have to upload and doing the procedure.
Please help me out.
Thanks in advance.
Last edited by leader1201; 03-11-2013 at 04:04 AM.
What is your goal? the command: dd if=/mnt/xvdp of=/dev/xvdp is completely useless, it cannot work.
/mnt/xvdp and /dev/xvdp are the same device, the only difference is: /dev/xvdp is a raw device, you can write an image onto it. /mnt/xvdp is a filesystem (using the same device, same disk), just it uses this device as a filesystem. Therefore you can have a file named image.raw on it. Writing the raw device directly will destroy the filesystem, so your dd command will obviously fail.
You need another filesystem to store the image file.