Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I borked /dev/fd0 :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Fri Nov 15, 2002 3:28 am    Post subject: I borked /dev/fd0 :( Reply with quote

I did a
Code:
dd of=floppy.image if=/dev/fd0 bs=1024


I got the out and in files mixed up :oops: (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
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Fri Nov 15, 2002 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sat Nov 16, 2002 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 16, 2002 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sat Nov 16, 2002 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 16, 2002 4:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 612
Location: Hasselt, Belgium

PostPosted: Sat Nov 16, 2002 3:13 pm    Post subject: Reply with quote

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 :D)
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sat Nov 16, 2002 6:25 pm    Post subject: Reply with quote

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 :oops: I guess I'll have to fix that next time I recompile
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sat Nov 16, 2002 6:44 pm    Post subject: Reply with quote

I'm a moron :oops: I didn't run fdformat before trying to dd. Everyting works fine now :)
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 612
Location: Hasselt, Belgium

PostPosted: Sat Nov 16, 2002 11:03 pm    Post subject: Reply with quote

Zelfkennis is het begin van alle wijsheid. Roughly translated: Self knowledge is the start of all wisdom...
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sun Nov 17, 2002 12:12 am    Post subject: Reply with quote

Thanks for the help guys
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum