LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-02-2003, 01:21 PM   #1
jimmmac
Member
 
Registered: Oct 2002
Location: Florida
Distribution: RedHat
Posts: 109

Rep: Reputation: 15
Linux diskcopy : I lost it.


Hi all

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.

Jim
 
Old 02-03-2003, 03:42 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
 
Old 02-03-2003, 04:44 AM   #3
jimmmac
Member
 
Registered: Oct 2002
Location: Florida
Distribution: RedHat
Posts: 109

Original Poster
Rep: Reputation: 15
Hi Mik

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.

Jim
 
Old 02-03-2003, 05:44 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.

Last edited by Mik; 02-03-2003 at 05:47 AM.
 
Old 02-04-2003, 03:43 AM   #5
jimmmac
Member
 
Registered: Oct 2002
Location: Florida
Distribution: RedHat
Posts: 109

Original Poster
Rep: Reputation: 15
Hi Mik

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.

Jim
 
Old 09-23-2003, 05:42 PM   #6
fatuus
LQ Newbie
 
Registered: Sep 2003
Location: Sydney
Distribution: Slackware 9.0
Posts: 2

Rep: Reputation: 0
Will this work on CD-Rom's as well? - A friend of mine downloaded the 3 CD's for RH 9 and I wanted a copy of them (damn my 56k modem...)
 
Old 10-10-2003, 06:55 PM   #7
jimmmac
Member
 
Registered: Oct 2002
Location: Florida
Distribution: RedHat
Posts: 109

Original Poster
Rep: Reputation: 15
Hi fatuus.

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.

Jim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lost linux vendace Linux - Newbie 4 02-05-2005 02:57 PM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 09:01 AM
Linux installed, linux partitions lost, computer scragged, need serious help. B4UTRUST Linux - Newbie 4 01-23-2004 10:21 AM
Lost in Linux bvanemon LinuxQuestions.org Member Intro 2 08-30-2003 07:18 PM
lost in Linux Zarik Linux - Newbie 5 07-08-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration