View previous topic :: View next topic |
Author |
Message |
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Thu Jul 19, 2007 2:48 pm Post subject: creating boot floppy with dd and .img |
|
|
Hello, been trying to create a spinrite floppy with spinrite.img file and dd but for somereason the floppy won't boot but the iimg is of a boot floppy?
have tried:
Code: |
dd if=/dev/fd0 of=floppy.img
and
dd if=/dev/zero of=floppy.img bs=1024 count=1440
|
but neither give a floppy that boots?
any ideas?
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Thu Jul 19, 2007 3:30 pm Post subject: |
|
|
Well, the second creates a wiped (empty) image so I wouldn't expect that to boot.
The first looks backward: it copies the floppy to an image file. Don't you want that the other way around? Code: | dd if=spinrite.img of=/dev/fd0 bs=1024 conv=sync | Or have I misunderstood? _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Thu Jul 19, 2007 4:13 pm Post subject: |
|
|
timeBandit wrote: | Well, the second creates a wiped (empty) image so I wouldn't expect that to boot.
The first looks backward: it copies the floppy to an image file. Don't you want that the other way around? Code: | dd if=spinrite.img of=/dev/fd0 bs=1024 conv=sync | Or have I misunderstood? |
Yes you are correct, i should actually read my notes and not just copy paste
Tried your suggestion but did not work?
also tried
Code: |
dd if=spinrite.img of=/dev/fd0
and
dd if=spinrite.img of=/dev/floppy/0
|
mount -l
Code: |
/dev/floppy/0 on /mnt/floppy type msdos (rw,noexec,nosuid,nodev)
|
When i run these commands they finish straight away, then bit after some writing occurs on floppy but the img is transfered?
run from dir with .img in it.
Code: |
dd if=SpinRite.img of=/dev/fd0
2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 0.00851199 s, 173 MB/s
dd if=SpinRite.img of=/dev/floppy/0
2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 0.00805361 s, 183 MB/s
|
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Thu Jul 19, 2007 4:31 pm Post subject: |
|
|
carpman wrote: | When i run these commands they finish straight away, then bit after some writing occurs on floppy but the img is transfered?
Code: | dd if=SpinRite.img of=/dev/fd0
2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 0.00851199 s, 173 MB/s |
|
That's an impossibly high transfer rate for a floppy. Your image isn't making it to the media. What you describe sounds like cached writes but I've never seen a floppy device behave that way--a mounted filesystem on a floppy, sure, but not the raw device. Then again, there are many things I haven't seen that people assure me are possible.
Try issuing a sync command after dd. That will flush all pending writes from the cache and buffers and will not return until the physical writes are finished. If that doesn't work it's time to start investigating permissions and basic device operation. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Thu Jul 19, 2007 4:51 pm Post subject: |
|
|
yep something is amiss, those transfer rates can't be correct?
Just not sure what is amiss?
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sat Jul 21, 2007 3:06 pm Post subject: |
|
|
Technically when you use dd to make an image or copy it you dont mount the /dev. How big is the spinrite image ? If its bigger than standard high density foppy then I have never been able to get dd to work. Try Code: | umount /mnt/floppy
dd if=spinrite.img of=/dev/floppy/0 bs=2x80x18b conv=notrunc,noerror |
For a good guide to dd look up " How To Do Eveything With DD " on LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
|