Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [OPGELOST]Diskette lezen/schrijven  (gelezen 2646 keer)

[OPGELOST]Diskette lezen/schrijven
« Gepost op: 2010/01/31, 22:58:38 »
Hoe kan ik eigenlijk een (DOS / Windows) diskette lezen in Ubuntu?      ???

Als ik een diskette in de drive doe en dan in file browser dubbelklik op 'Floppy Drive' krijg ik:

    Unable to mount location
    No media in the drive.  (maar er zit wel een diskette in)

Ook rechts klikken op 'Floppy drive' en dan 'Mount' of 'Detect media' helpt niet.

Als ik iets wil kopieeren naar de diskette, doe ik
dd if=filenaam of=/dev/df0
en dat werkt wel.
« Laatst bewerkt op: 2010/02/01, 11:54:17 door henkoegema »
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline ivo

  • Lid
Re: Diskette lezen/schrijven
« Reactie #1 Gepost op: 2010/02/01, 09:18:02 »
Als je naar /dev/fd0 schrijft dan schrijf je naar het "raw" (ruwe) device, niet naar een geformatteerd filesysteem.
Als er een gewoon DOS filesysteem op staat moet je hem kunnen mounten en dan moet je gewoon met "cp" files erop kunnen zetten.
Dus:

mkdosfs /dev/fd0
mount -t vfat /dev/fd0 /media/floppy
cp /etc/hosts /media/floppy
ls -l /media/floppy
umount /media/floppy                   <<<---  pas hierna mag je de floppy eruit halen!!!



There are only 10 types of people in the world; those who understand binary and those who don't.

Re: Diskette lezen/schrijven
« Reactie #2 Gepost op: 2010/02/01, 10:45:46 »
Als je naar /dev/fd0 schrijft dan schrijf je naar het "raw" (ruwe) device, niet naar een geformatteerd filesysteem.
Als er een gewoon DOS filesysteem op staat moet je hem kunnen mounten en dan moet je gewoon met "cp" files erop kunnen zetten.
Dus:

mkdosfs /dev/fd0
mount -t vfat /dev/fd0 /media/floppy
cp /etc/hosts /media/floppy
ls -l /media/floppy
umount /media/floppy                   <<<---  pas hierna mag je de floppy eruit halen!!!

Dat werkt prima Ivo.   ;)

Maar ik zit nog steeds met de vraag waarom lukt dat niet als ik dubbelklik op 'Computer -> Foppy drive'  ?  (in File browser)

Moet ie dan niet automatisch mounten ?
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline ivo

  • Lid
« Laatst bewerkt op: 2010/02/01, 11:22:04 door ivo »
There are only 10 types of people in the world; those who understand binary and those who don't.

Re: Diskette lezen/schrijven
« Reactie #4 Gepost op: 2010/02/01, 11:25:23 »
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline ivo

  • Lid
Re: Diskette lezen/schrijven
« Reactie #5 Gepost op: 2010/02/01, 12:47:50 »


http://www.linuxquestions.org/questions/ubuntu-63/automagically-automount-floppy-drive-462097/page2.html



Wat je schreef (voor je edit   ^-^) werkt ook prima.

Je bent m'n held vandaag.   =D

Dan zal ik hier nog even neerzetten wat ik schreef voor mijn edit; wie weet heeft iemand er wat aan.

Misschien werkt het als je de noauto in /etdc/fstab verandert in auto.

/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
There are only 10 types of people in the world; those who understand binary and those who don't.

Re: Diskette lezen/schrijven
« Reactie #6 Gepost op: 2010/02/01, 12:53:11 »


http://www.linuxquestions.org/questions/ubuntu-63/automagically-automount-floppy-drive-462097/page2.html



Wat je schreef (voor je edit   ^-^) werkt ook prima.

Je bent m'n held vandaag.   =D

Dan zal ik hier nog even neerzetten wat ik schreef voor mijn edit; wie weet heeft iemand er wat aan.

Misschien werkt het als je de noauto in /etdc/fstab verandert in auto.

/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0



/etdc/fstab = /etc/fstab.    ;)
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline ivo

  • Lid
Re: Diskette lezen/schrijven
« Reactie #7 Gepost op: 2010/02/01, 13:01:07 »


http://www.linuxquestions.org/questions/ubuntu-63/automagically-automount-floppy-drive-462097/page2.html



Wat je schreef (voor je edit   ^-^) werkt ook prima.

Je bent m'n held vandaag.   =D

Dan zal ik hier nog even neerzetten wat ik schreef voor mijn edit; wie weet heeft iemand er wat aan.

Misschien werkt het als je de noauto in /etdc/fstab verandert in auto.

/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0



/etdc/fstab = /etc/fstab.    ;)

/etdc/fstab ≠ /etc/fstab    ;)

/etdc/fstab := /etc/fstab   

There are only 10 types of people in the world; those who understand binary and those who don't.

Re: [OPGELOST]Diskette lezen/schrijven
« Reactie #8 Gepost op: 2010/02/01, 13:12:52 »
Je hebt volkomen gelijk.      O0
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)