| View previous topic :: View next topic |
| Author |
Message |
henke Apprentice


Joined: 30 Sep 2002 Posts: 165 Location: Stockholm, Sweden
|
Posted: Fri Nov 15, 2002 3:28 am Post subject: I borked /dev/fd0 :( |
|
|
I did a | Code: | | dd of=floppy.image if=/dev/fd0 bs=1024 |
I got the out and in files mixed up (Shouldn't be logged in as root after 1 am )
When I now run | Code: | | dd of=/dev/fd0 if=floppy.image bs=1024 | I get the following error
| Code: | dd: writing `/dev/fd0': No space left on device
5+0 records in
4+0 records out |
I know my floppy drive can handle disks larger than 5kb
Anyone have any ideas about how to fix this mess?
**Edited the subject since the old one made less sense** |
|
| Back to top |
|
 |
px Guru


Joined: 26 Sep 2002 Posts: 497 Location: Metz, France
|
Posted: Fri Nov 15, 2002 4:52 pm Post subject: |
|
|
first try mounting /dev/fd0 with a valid floppy. I never tried this command before for floppy, only for cd to make iso...maybe this command grab everything from floppy and can't write things like hardware vendor id or I don't know what else... Have you ever done this before? I am a pure newbie with floppy on linux, but noone seems to want to help you :'( _________________ Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry] |
|
| Back to top |
|
 |
henke Apprentice


Joined: 30 Sep 2002 Posts: 165 Location: Stockholm, Sweden
|
Posted: Sat Nov 16, 2002 2:49 am Post subject: |
|
|
The debian boot floppies are created this way...
I've created floppies this way before so it should work.
Trying again I get
| Code: | #dd if=fdlinux-v2-1-0.img of=/dev/fd0
0+0 records in
0+0 records out
|
I think what has happend is that I have broken my devfs somehow |
|
| Back to top |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Nov 16, 2002 2:59 am Post subject: |
|
|
Moved from Newbies to OTG at request of poster. Is /dev/fd0 still a link to /dev/floppy/0? /dev/floppy/0 should be major number 2, minor number 0 if you want to try mknod. _________________ For every higher wall, there is a taller ladder |
|
| Back to top |
|
 |
henke Apprentice


Joined: 30 Sep 2002 Posts: 165 Location: Stockholm, Sweden
|
Posted: Sat Nov 16, 2002 3:56 am Post subject: |
|
|
| rac wrote: | | /dev/floppy/0 should be major number 2, minor number 0 if you want to try mknod. |
/dev/floppy has the correct major and minor numbers
| Code: | ls -l /dev/floppy/0
brw-rw---- 1 hetr9922 floppy 2, 0 Jan 1 1970 /dev/floppy/0 |
| Quote: | | Is /dev/fd0 still a link to /dev/floppy/0? |
I'm not sure
| Code: | ls -l /dev/fd0
lr-xr-xr-x 1 root root 8 Nov 15 23:51 /dev/fd0 -> floppy/0 |
Should that be /dev/fd0 -> /dev/floppy/0 instead? If so should I symlink or hardlink /dev/fd0 to /dev/floppy/0? |
|
| Back to top |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Nov 16, 2002 4:41 am Post subject: |
|
|
| henke wrote: | | Should that be /dev/fd0 -> /dev/floppy/0 instead? |
Either way: it doesn't matter - that link looks OK to me. _________________ For every higher wall, there is a taller ladder |
|
| Back to top |
|
 |
Matje l33t

Joined: 29 Oct 2002 Posts: 612 Location: Hasselt, Belgium
|
Posted: Sat Nov 16, 2002 3:13 pm Post subject: |
|
|
Are you sure you didn't just b0rk your floppy.image - file with running dd wrong the first time??? Try mounting a floppy and see if you can use it properly, also check out the properties of your floppy.image. If I'm guessing correctly the contents of your floppy has been written into it...
Edit: The last time u tried it you didn't enter your blocksize (bs=1024), that's why no blocks were written (I think ) |
|
| Back to top |
|
 |
henke Apprentice


Joined: 30 Sep 2002 Posts: 165 Location: Stockholm, Sweden
|
Posted: Sat Nov 16, 2002 6:25 pm Post subject: |
|
|
| Matje wrote: | | Are you sure you didn't just b0rk your floppy.image - file with running dd wrong the first time??? |
I did. I forgot to mention that I downloaded the image again.
| Quote: | | Try mounting a floppy and see if you can use it properly, also check out the properties of your floppy.image. If I'm guessing correctly the contents of your floppy has been written into it... |
I don't have loopback support in my kernel I guess I'll have to fix that next time I recompile |
|
| Back to top |
|
 |
henke Apprentice


Joined: 30 Sep 2002 Posts: 165 Location: Stockholm, Sweden
|
Posted: Sat Nov 16, 2002 6:44 pm Post subject: |
|
|
I'm a moron I didn't run fdformat before trying to dd. Everyting works fine now  |
|
| Back to top |
|
 |
Matje l33t

Joined: 29 Oct 2002 Posts: 612 Location: Hasselt, Belgium
|
Posted: Sat Nov 16, 2002 11:03 pm Post subject: |
|
|
| Zelfkennis is het begin van alle wijsheid. Roughly translated: Self knowledge is the start of all wisdom... |
|
| Back to top |
|
 |
henke Apprentice


Joined: 30 Sep 2002 Posts: 165 Location: Stockholm, Sweden
|
Posted: Sun Nov 17, 2002 12:12 am Post subject: |
|
|
| Thanks for the help guys |
|
| Back to top |
|
 |
|