Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Very simple one. I want to create a backup of my bootdisk. I went to google once and there was a nice 5 step list of commands to format the floppy, mount it, create an image of the floppy in the /tmp directory using dd, then write it out to the new floppy with the reverse of the dd command. For some reason it has disappeared from google, or I am not searching right. When I do, I will put it in a text file in my home directory so that I will never lose it again. Thanks everyone.
Well I'm not sure what the 5 steps where and what they exactly accomplished but here is a few commands that might help you out.
Mounting and unmounting can be done like this:
mount /dev/fd0 /mnt/floppy
umount /dev/fd0
You have to make sure the /mnt/floppy exist.
To create an image of the floppy in the /tmp directory:
dd if=/dev/fd0 of=/tmp/floppy.iso
To copy the image to floppy:
dd if=/tmp/floppy.iso of=/dev/fd0
To format the floppy you can use the mkfs command. You will have to add the filesystem type you would like to create. Something like:
mkfs -t vfat /dev/fd0
You could always read the man pages for more detailed descriptions on each command. Or search google for each command.
Now that you have put them up, most are the ones that I remember. But the dd commands had, as I can remember, some kind of a size parameter for the floppy's. I used it to create a backup of my RedHat startup disk. I knew about the mount and umount commands, and in this little list, things came in a certain order. If I remember, first you format, then mount, then dd to /temp, change disks, write it out again and them umount. It is just some of the parameters that I can't remember. Or find. Thanks for your response.
Well with dd you can specify a size using bs and count but without it, it should stop when it reaches the end of either the input or the ouput stream.
What exactly are you trying to do with the commands. A dd copies a complete image. The filesystem will also be present in the image so it's not necessary to format first before you copy to a new disk. You should also not be mounting the floppy when you want to use dd.
So if all you want to do is copy a floppy directly then the two dd commands would be enough.
Thanks for the info. I wasn't sure if you needed the parameters or whether they were critical in doing the diskcopy. Apparently they are not, which makes the whole thing a lot easier. Thanks again for the help.
Not sure. But I don't see why not. If you have the hard drive space. Make sure and post if it does work. It would be a nice way to copy disks. And it would be easier to do that than download the whole thing again. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.