All of lore.kernel.org
 help / color / mirror / Atom feed
* writing disk image to file
@ 2003-06-09  3:53 James Miller
  2003-06-09  5:52 ` Ray Olszewski
  2003-06-10 19:40 ` Stephen Samuel
  0 siblings, 2 replies; 4+ messages in thread
From: James Miller @ 2003-06-09  3:53 UTC (permalink / raw)
  To: Linux-Newbie list

I've got a small disk whose contents I'd like to save as an image file, in
case I ever want to write it back to the disk it came from.  This is a 4MB
flash disk.  From what I gather in my Linux reading, I should do something
like the following: hook this tiny IDE disk up as, say /dev/hdb and the do
something like "dd if=/dev/hdb of=dev-hdb-image.img" ? ? ? (the question
marks outside the quotes indicates things I'm not sure about).  This will
write an image file to, I suppose the current dir - correct?  Is the
output file's name somewhat a matter of indifference, as it seems to me?
E.g., wouldn't necessarily require any extension (might be called simply
"dev-hdb-image"), though an extension might help me keep track of just
what sort of file it is.  And, finally, the question marks: I see
sometimes "bs=512" or some such following the proposed file name which, as
I get it, refers to block size.  I'm not really clear on block sizes and
what they do, but I have run accross information indicating that, in the
case of an image file, it's not too important and can be left out.  Can
anyone illumine my benightedness on this matter?

Thanks, James

PS Ray, I recall you asking at some point not long ago about copying
one disk to a disk of a different size.  In Rute User's Guide he writes
"If they (disks) are not the same size, you will have to use tar or
mirrordir to replicate the file system exactly."  I guess you got that
task accomplished, but did you do it using this means, or by some other?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-10 19:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-09  3:53 writing disk image to file James Miller
2003-06-09  5:52 ` Ray Olszewski
2003-06-10 19:40 ` Stephen Samuel
2003-06-10 19:57   ` Mike Dresser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.