LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-19-2012, 01:40 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
dd when geometries aren't exact


I've used dd hundreds of times and still do not understand it.

In theory (at least my theory) is that a stream multiplier should copy information bit for bit so if I want to make a boot flash image from an iso file it seems that all that would be required would be

Code:
dd if=~/distro.iso of=/dev/sdb
I've successfully done it in the past but sometimes it doesn't work

I remember last time I gave up hope I was installing fedora and eventually used a windows based gui program distributed by fedora. After closer examination I realized it was just using a windows port of dd. However they recommended first formatting the drive as fat16 before running the program.

Now, today I already tried creating sdb1 as a fat 16 partition and then using dd. No luck.

Honestly, why would you need to do that? I don't know a whole like about low level drive mechanics, but shouldn't dd write whatever bits are necessary to encapsulate partition, thereby creating partitions itself?

If anybody could tell me what preparation I should be making on the flash drive before running dd I would greatly appreciate it.
Any other technical explanations would be welcome as well.
 
Old 02-19-2012, 04:08 PM   #2
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
No ideas?

well I figured it out anyway... Sort of

based on a thread I found I tried the following line without any prior prep to the drive

PHP Code:
dd if=./thing.iso of=/dev/sdb ibs=4b obs=1b conv=notrunc,noerror 
So the question is why did it work. "noerror" is a debugging message"
It does seem sort of logical to make writes occur slower than reads.... Sort of, actually I'm not convinced this has a whole lot of effect. If you were slowing down writes perhaps that would make more sense but default write is 512 or 1b

I'm thinking the difference would be the "notrunc" flag. For no other reason than I exhausted all other options. I don't really see why any modification to an offset somewhere in the middle of the drive would affect the MBR

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
exact procedure of mount? j0hn_galt Linux - Newbie 5 08-11-2005 02:16 PM
Exact HD-to-HD copy samtheviking Fedora 7 02-25-2005 05:32 PM
hdparms gives conflicting geometries between -g and -i(I) ricalicious Linux - Hardware 6 01-13-2005 09:29 PM
making an exact cd copy coolamit78 Linux - Software 2 04-04-2004 02:03 PM
Exact URL to get gcc? ivanatora Linux - Newbie 4 09-19-2003 07:15 AM


All times are GMT -5. The time now is 07:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration