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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.