Hallo Liste, vielleicht habe ich ja was daemliches gemacht .. Ich wollte eine Diskette formatieren und habe mir die Doku angesehen. Da stand: mformat a: für DOS /sbin/mkfs -t minix /dev/fd0u1440 1440 für minix und /sbin/mke2fs /dev/fd0u1440 für ext2 Habe dann auch gleich alle ausprobiert und, welch Wunder, kein Problem. Bliebt die Frage die ich Euch weiter geben moechte: Welches Dateisystem nimmt "man" denn (vom DOS mal abgesehen)? Jetzt kommt der daemliche Teil: weiter stand in der Doku das es auch ein low level format gibt zum anlegen der Tracks und Sektoren: fdformat /dev/fdu1440 hab' ich natuerlich gleich probiert und schon gibt's ein Problem. Als ich dann wieder highlevel formatieren wollte bekomme ich die Meldung: :~> /sbin/mke2fs /dev/fd0u1440 mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 184 inodes, 1440 blocks 72 blocks (5.00%) reserved for the super user First data block=1 1 block group 8192 blocks per group, 8192 fragments per group 184 inodes per group Writing inode tables: done Warning: could not erase block 0: Attempt to write block from filesystem resulted in short write Writing superblocks and filesystem accounting information: done Auch unter DOS ist die Diskette nicht mehr (high level) formatierbar. Das scheint ja nun eindeutig von meinem fdformat zu kommen aber was kann ich daraus schließen? - Darf man einmal low level formatierte Disketten nicht noch mal low level formatieren? - Woran erkenne ich das ich low level formatieren muss? - Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe? - Welche Dateisystem ist ok für Disketten? - Kann ich die o.g. Diskette noch reparieren (nein ich bin nicht zum Schwabe geworden - es interessiert mich halt) Vielen Dank Michael PS bevor ich hier einen OT ausloese: Schwaben sind ein nettes Volk, ich wohne selber seit einigen Jahren in im "Schwabenland" und mir gehts da gut. Kommentare bitte an PM (aber das soll keine! Aufforderung sein).
On Wed, Aug 15, 2001 at 11:44:02PM +0200, Michael Hoeller wrote:
Hallo Liste,
vielleicht habe ich ja was daemliches gemacht .. Ich wollte eine Diskette formatieren und habe mir die Doku angesehen. Da stand:
mformat a: für DOS /sbin/mkfs -t minix /dev/fd0u1440 1440 für minix und /sbin/mke2fs /dev/fd0u1440 für ext2
Ich persönlich benutze minix für Disketten.
Jetzt kommt der daemliche Teil: weiter stand in der Doku das es auch ein low level format gibt zum anlegen der Tracks und Sektoren:
fdformat /dev/fdu1440
hab' ich natuerlich gleich probiert und schon gibt's ein Problem. Als ich dann wieder highlevel formatieren wollte bekomme ich die Meldung:
[...]
Auch unter DOS ist die Diskette nicht mehr (high level) formatierbar. Das scheint ja nun eindeutig von meinem fdformat zu kommen aber was kann ich daraus schließen?
- Darf man einmal low level formatierte Disketten nicht noch mal low level formatieren?
Ich habe da keine Probleme. Allerdings mache ich immer: $ fdformat /dev/fd0 Das reicht. Er erkennt die Größe.
- Woran erkenne ich das ich low level formatieren muss? - Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe?
Idee: mounten und in der mtab gucken, aber nicht ausprobiert....
- Welche Dateisystem ist ok für Disketten?
Kommt drauf an, was DU mit denen machen wilst, ob Du die zum Austausch von Daten benutzt o.ä.
- Kann ich die o.g. Diskette noch reparieren (nein ich bin nicht zum Schwabe geworden - es interessiert mich halt)
versuch mal reines fsdormat (s.o.) Rene -- Rene Engelhard, Schwarzbach 4, 42277 Wuppertal, Germany Tel: +49-(0)202/2954561 | Mobiltel: +49-(0)179/2206957 Fax: +49-(0)202/641339 | ICQ-#: 98293398 | L I N U X ! ! !
On Thu, 16 Aug 2001, Rene Engelhard wrote:
On Wed, Aug 15, 2001 at 11:44:02PM +0200, Michael Hoeller wrote:
Allerdings mache ich immer:
$ fdformat /dev/fd0
Das reicht. Er erkennt die Größe.
Nein, das reicht nicht. Wenn die Diskette wirklich noch "roh" ist, wird die Groesse nicht erkannt. Bitte definitiv mit den richtigen Devives arbeiten. Immerhin hat man damit auch einmal die Moeglichkeit, sogenannte "Ueberformate" zu erzeugen - wenn denn das heute ueberhaupt noch Sinn macht. Wir haben so etwas frueher fuer Kopierschutzmechanismen genutzt, bis Thomas Moenkemeier mit seinem legendaeren VGA-Copy kam und uns zeigte, dass auch Programmierer unter DOS eine Menge drauf hatten.
- Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe?
Idee:
mounten und in der mtab gucken, aber nicht ausprobiert....
Solange der Mount-Befeh klaglos arbeitet. Wenn er aber den Typ des Formats angeben muss, weil Mount sonst nicht will, muss er es doch wissen. Mit "dd" einen Teil der ersten Bloecke auslesen und reinschauen.
- Kann ich die o.g. Diskette noch reparieren (nein ich bin nicht zum Schwabe geworden - es interessiert mich halt)
versuch mal reines fsdormat (s.o.)
Hast Du Dich da verschrieben? Sollte das der Befehl fuer DOS werden? Wenn er DOS hat, nimmt er den Befehl format a: /u und vergisst mir das "/u" auch nicht. Dann kriegt er die Diskette wohl wieder zum Laufen. Vielleicht ist die Diskette doch kaputt... Gruss Peter Blancke -- Nachtwaechter ist der Wahnsinn, weil er wacht...
On Thu, Aug 16, 2001 at 09:00:38AM +0200, Peter Blancke wrote:
On Thu, 16 Aug 2001, Rene Engelhard wrote:
On Wed, Aug 15, 2001 at 11:44:02PM +0200, Michael Hoeller wrote:
Allerdings mache ich immer:
$ fdformat /dev/fd0
Das reicht. Er erkennt die Größe.
Nein, das reicht nicht. Wenn die Diskette wirklich noch "roh" ist, wird die Groesse nicht erkannt. Bitte definitiv mit den richtigen Devives arbeiten. Immerhin hat man damit auch einmal die Moeglichkeit, sogenannte "Ueberformate" zu erzeugen - wenn denn das heute ueberhaupt noch Sinn macht. Wir haben so etwas frueher fuer Kopierschutzmechanismen genutzt, bis Thomas Moenkemeier mit seinem legendaeren VGA-Copy kam und uns zeigte, dass auch Programmierer unter DOS eine Menge drauf hatten.
Gut, hinzugelernt.
Solange der Mount-Befeh klaglos arbeitet. Wenn er aber den Typ des Formats angeben muss, weil Mount sonst nicht will, muss er es doch wissen. Mit "dd" einen Teil der ersten Bloecke auslesen und reinschauen.
Stimmt auch wieder...
- Kann ich die o.g. Diskette noch reparieren (nein ich bin nicht zum Schwabe geworden - es interessiert mich halt)
versuch mal reines fsdormat (s.o.)
Hast Du Dich da verschrieben? Sollte das der Befehl fuer DOS werden?
Sch* Tippfehler. Ich meinte Linux' fdformat. Aber oben habe ich ja erfahren das das bei einer *ganz neuen* und *nicht* vorvorfmatierten DIsk nicht geht. Grüße Rene -- Rene Engelhard, Schwarzbach 4, 42277 Wuppertal, Germany Tel: +49-(0)202/2954561 | Mobiltel: +49-(0)179/2206957 Fax: +49-(0)202/641339 | ICQ-#: 98293398 | L I N U X ! ! !
On Wed, 15 Aug 2001, Michael Hoeller wrote:
mformat a: für DOS /sbin/mkfs -t minix /dev/fd0u1440 1440 für minix und /sbin/mke2fs /dev/fd0u1440 für ext2
Bliebt die Frage die ich Euch weiter geben moechte: Welches Dateisystem nimmt "man" denn (vom DOS mal abgesehen)?
Kommt darauf an... Ich persoenlich nehme aus reiner Gewohnheit immer ext2, aber das ist auch gleich Byte-Verschwendung auf einer Diskette, wenn es darum geht, nur "mal eben schnell" ein paar Daten zu kopieren. Dann waere sicherlich minix richtig. Es kommt auch darauf an, _was_ Du eigentlich auf Deine Diskette bringen moechtest. Du kannst die auch im "Rohzustand", also nach Low-Level-Format - ohne Dateisystem - verwenden. Suche Dir mal dazu eine Datei, die garantiert nicht groesser als 1,44 MB gross ist und kopiere die mit dd if=meinedatei of=/dev/fd0 auf die Diskette. Kopiere sie dann zurueck mit dd if=/dev/fd0 of=meineneuedatei und siehe da: Zwei identische Dateien. Hier hatte die Diskette nun gar kein spezielles Format.
Jetzt kommt der daemliche Teil: weiter stand in der Doku das es auch ein low level format gibt zum anlegen der Tracks und Sektoren:
Nein, das ist nicht daemlich, das nehme ich grundsaetzlich, damit ich gleichzeitig die Diskette geprueft weiss.
fdformat /dev/fdu1440
Hmmm... Ich kenne da gerade den Unterschied nicht ganz genau. Muss es nicht richtig fdformat /dev/fdh1440 heissen? Probiere das doch mal, vielleicht ist es dann wieder richtig.
Writing inode tables: done Warning: could not erase block 0: Attempt to write block from filesystem resulted in short write
Tja, kam mir noch nicht vor. Entweder es geht nun wieder richtig mit /dev/fdh1440 oder Deine Diskette ist kaputt.
- Darf man einmal low level formatierte Disketten nicht noch mal low level formatieren?
Doch natuerlich, das ist eindeutig falsch. Das kannst Du so oft machen, bis Du Deine Diskette in Form von sauber zugeschnittenen Ringen aus dem Diskettenlaufwerk nimmst.
- Woran erkenne ich das ich low level formatieren muss?
Gar nicht. Das machst Du, wenn Du den dringenden Wunsch hast, ganz sicher zu sein, dass die Diskette noch hundertprozentig in Ordnung ist.
- Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe?
Ja, Du musst Dir - wiederum mit dd - die ersten Bloecke der Diskette auslesen und ansehen. Und Du musst dafuer ein bisschen mehr Ahnung der Internas haben, die Du da zu sehen bekommst.
- Welche Dateisystem ist ok für Disketten?
Alle - je nach Anwendungsfall.
- Kann ich die o.g. Diskette noch reparieren (nein ich bin nicht zum Schwabe geworden - es interessiert mich halt)
Klar, probier den Befehl da oben nochmal aus.
PS bevor ich hier einen OT ausloese: Schwaben sind ein nettes Volk, ich wohne selber seit einigen Jahren in im "Schwabenland"
Kann ich Dir nur beipflichten. Meine allererste "richtige" [1] Freundin war aus Schwaben. Von der habe ich eine Menge gelernt - was naemlich _nichts_ mit Linux zu tun hat. Carmen, die Gute... *schnief* Gruss Peter Blancke [1] Was ist eine "richtige" Freundin? Siegmund Freud hat sich da drueber sehr exakt ausgelassen, siehe dazu die Kapitel zu "Geschlechtsverkehr und Abnabelung von der Mutter". -- Nachtwaechter ist der Wahnsinn, weil er wacht...
Peter Blancke wrote:
Es kommt auch darauf an, _was_ Du eigentlich auf Deine Diskette bringen moechtest.
Um mal eben Daten auf Diskette zu schieben (z.B. zur Etablierung des uralten Turnschuh-Protokolls - auch IP over Birkenstock genannt) benutzte ich den Klassiker tar. Die Diskette enthält kein Dateisystem. Ich formatiere sie einfach mit fdformat. Die Diskette braucht auch nicht gemountet zu werden. Was auch sehr praktisch ist. Kein Dateisystem -> Kein Streß. sichern: tar -czMf /dev/fd0 Datei laden: tar -xzMf /dev/fd0 Mit M ist man gleich gerüstet für Dateien, die größer als 1,44 MB sind. Man bracht dann nur die nächste Diskette einlegen und weiter geht es. Genau wie bei WinZip. Peter Blancke wrote:
Nein, das ist nicht daemlich, das nehme ich grundsaetzlich, damit ich gleichzeitig die Diskette geprueft weiss.
fdformat /dev/fdu1440
Hmmm... Ich kenne da gerade den Unterschied nicht ganz genau. Muss es nicht richtig
fdformat /dev/fdh1440
heissen? Probiere das doch mal, vielleicht ist es dann wieder richtig.
Wenn dann fdformat /dev/fd0h1440 Sonst weiß er nicht, ob er Floppy 0 oder 1 bearbeiten soll. Und /dev/fdu1440 bzw. /dev/fd0u1440 kenne ich gar nicht. Es ist richtig, daß diese Devices existieren, aber ich kenne sie nicht als Angabe für fdformat. Die man-Page nennt diese Devices auch nicht. Kann natürlich sein, daß ich etwas verpaßt habe. Michael Hoeller wrote:
- Darf man einmal low level formatierte Disketten nicht noch mal low level formatieren? - Woran erkenne ich das ich low level formatieren muss?
Anzeichen für eine notwendige low-level-Formatierung gibt es nicht. Und du kannst das so oft machen wie du willst. Ich führe z.B. grundsätzlich eine low-level-Formatierung durch, wenn ich wichtige Daten auf Diskette ziehe. So weiß ich, daß die Diskette in Ordnung und definitv leer ist. Dennis
On Thu, 16 Aug 2001, Dennis Boller wrote:
Um mal eben Daten auf Diskette zu schieben, benutzte ich den Klassiker tar.
Die Diskette enthält kein Dateisystem. Ich formatiere sie einfach mit fdformat. Die Diskette braucht auch nicht gemountet zu werden. Was auch sehr praktisch ist. Kein Dateisystem -> Kein Streß.
sichern: tar -czMf /dev/fd0 Datei
laden: tar -xzMf /dev/fd0
Ja, richtig. Mein Beispiel mit "dd" ist ja auch insofern nicht gut gewaehlt, weil man da auf die Dateigroesse keinen ricntigen Einfluss hat. Ich hatte eigentlich auch tar gemeint. So mache ich das naemlich auch.
fdformat /dev/fdh1440
Wenn dann
fdformat /dev/fd0h1440
Ja, klar. Die Hitze... *schwitz* Gruss Peter Blancke -- Nachtwaechter ist der Wahnsinn, weil er wacht...
Am Donnerstag, 16. August 2001 08:55 schrieb Peter Blancke:
Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe?
Ja, Du musst Dir - wiederum mit dd - die ersten Bloecke der Diskette auslesen und ansehen. Und Du musst dafuer ein bisschen mehr Ahnung der Internas haben, die Du da zu sehen bekommst.
Danke für die Antwort, leider habe ich da als Linux-Neuling meine Schwierigkeiten. Ich habe zwar man dd gelesen aber dd gibt es viel verwirrendes. Wieviel/was muss ich auslesen und wie interpretier ich das Ergebnis? Hast du evt ein Beispiel oder eine Stell wo ich so ein Beispiel nachlesen kann?
Welche Dateisystem ist ok für Disketten? Alle - je nach Anwendungsfall. Hm, glaubst Du ich weis jetzt mehr? :-)
In welchem Anwendungs fall nehme ich den was? Ein paar Antworten kamen ja schon ueber andere Postings. - Schnell mal ein paar Daten ablegen = nur low level - Gewohnheit ext2 scheinbat mit overhead verbunden - minix scheint den geringsten Platzbedarf zu haben. Vielen Dank Michael
Am 17 Aug 2001 19:08:59 +0200 schrieb Michael Hoeller:
Am Donnerstag, 16. August 2001 08:55 schrieb Peter Blancke:
Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe?
Welche Dateisystem ist ok für Disketten? Alle - je nach Anwendungsfall. Hm, glaubst Du ich weis jetzt mehr? :-) Ganz einfach: Solange Dir niemand ein FS vorschreibt, kannst Du grundsätzlich nehmen, was Du willst. Einige haben allerdings einen Overhead der sie für kleinen Partitionen nur wenig geeignet erscheinen lassen.
In welchem Anwendungs fall nehme ich den was? Was immer Du willst, ich verwende:
Zum Datenaustausch mit anderen Linux-Systemen: Was immer Du willst. Zum Datenaustausch mit DOS/WIN-Systemen: Am einfachsten FAT, falls tar vorhanden auch tar. Zum Datenaustausch mit anderen Nicht-Linux-Systemen: Oft am einfachsten FAT, am flexiblesten: rohes tar (tar xf /dev/fd0 <Dateien>). Datensicherung: rohes tar. Arbeitsdisketten unter Linux: Minix oder ext2.
Ein paar Antworten kamen ja schon ueber andere Postings. - Schnell mal ein paar Daten ablegen = nur low level Nur low level? Nein. Aber oft eine zweckmässige Möglichkeit.
- Gewohnheit ext2 scheinbat mit overhead verbunden Ja. Hält sich aber in Grenzen.
- minix scheint den geringsten Platzbedarf zu haben. Ja, hat aber, wenn ich mich recht entsinne, Beschränkungen in Bezug auf Dateinamenlangen (32 Buchstaben?) und Verzeichnistiefen (8?)
Es ist lange her, dass ich das letzte Mal minix verwendet habe, ich verwende entweder tar oder ext2. Ralf
Hallo, aus der SuSE supportdatenbank hatte ich den folgenden Befehl für eine low level format von Disketten fdformat /dev/fdu1440. Erst Peters Bemerkung hat mich stutzig gemacht: Am Donnerstag, 16. August 2001 08:55 schrieb Peter Blancke:
Hmmm... Ich kenne da gerade den Unterschied nicht ganz genau. Muss es nicht richtig fdformat /dev/fdh1440 heissen?
Ich konnte keine Doku zu fdu1440 finden, wohl aber zu fdh1440. Durch reines Probieren konnte ich keine Unterschiede feststellen. Das beschränkt sich aber nur auf die Funktionalität, die technischen Details kann ich (noch) nicht beruteilen. Weis einer der Profis wo der Unterschied zuwischen fdu1440 und fdh1440 liegt und wann man was verwenden solltet? Hier ist leider ein zweite Punkt wo ich mit den u.g. Internas kaempfe: Am Donnerstag, 16. August 2001 08:55 schrieb Peter Blancke:
Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe? Ja, Du musst Dir - mit dd - die ersten Bloecke der Diskette auslesen und ansehen. Und Du musst dafuer ein bisschen mehr Ahnung der Internas haben, die Du da zu sehen bekommst.
In man dd und info dd steht ja eine Menge aber wo steht _was_ die Parameter bedeuten? In Bezug auf vorhergegangene Beiträge möchte ich noch erwähnen, das ich nicht danach frage mir eine man page vorzulesen. Eine Zeile wie der richtige dd Befehl aussehen soll der die ersten Bloecke der Diskette ausliest und der Verweis auf die Stelle wo steht wie ich das Ergebnis interpretiere sollen völlig genug sein. Schon jetzt vielen Dank Michael MichaelHoeller@t-online.de
Hallo, Michael Hoeller wrote:
Hallo,
aus der SuSE supportdatenbank hatte ich den folgenden Befehl für eine low level format von Disketten fdformat /dev/fdu1440. Erst Peters Bemerkung hat mich stutzig gemacht:
Am Donnerstag, 16. August 2001 08:55 schrieb Peter Blancke:
Hmmm... Ich kenne da gerade den Unterschied nicht ganz genau. Muss es nicht richtig fdformat /dev/fdh1440 heissen?
Ich konnte keine Doku zu fdu1440 finden, wohl aber zu fdh1440. Durch reines Probieren konnte ich keine Unterschiede feststellen. Das beschränkt sich aber nur auf die Funktionalität, die technischen Details kann ich (noch) nicht beruteilen. Weis einer der Profis wo der Unterschied zuwischen fdu1440 und fdh1440 liegt und wann man was verwenden solltet?
/dev/fd0hxyz steht eigentlich für 5",25 High-Density Disketten mit einer Kapazität von xyz MByte im ersten Laufwerk (A:). So gesehen gab's /dev/fd0h1440 nie ;-) /dev/fd0u1440 ist das heute übliche 3",5 Laufwerk mit 1,44 MByte Kapazität. Wegen irgendwelcher obskuren Unterschiede zwischen den verschiedenen Laufwerken sollte man sicherheitshalber für doe 3",5 er Laufwerken die /dev/fd0uxyz Gerätedatei verwenden. Wie man an der Doku sieht, scheint's den Entwicklern aber nicht wirklich wichtig gewesen zu sein ;-)
Hier ist leider ein zweite Punkt wo ich mit den u.g. Internas kaempfe:
Am Donnerstag, 16. August 2001 08:55 schrieb Peter Blancke:
Kann ich das Dateisystem einer Diskette auslesen - um zu wissen was ich in der Hand habe? Ja, Du musst Dir - mit dd - die ersten Bloecke der Diskette auslesen und ansehen. Und Du musst dafuer ein bisschen mehr Ahnung der Internas haben, die Du da zu sehen bekommst.
In man dd und info dd steht ja eine Menge aber wo steht _was_ die Parameter bedeuten? In Bezug auf vorhergegangene Beiträge möchte ich noch erwähnen, das ich nicht danach frage mir eine man page vorzulesen. Eine Zeile wie der richtige dd Befehl aussehen soll der die ersten Bloecke der Diskette ausliest und der Verweis auf die Stelle wo steht wie ich das Ergebnis interpretiere sollen völlig genug sein.
Schon jetzt vielen Dank Michael
MichaelHoeller@t-online.de
Die Zeile dd if=/dev/fd0 count=1 bs=512 gibt den nur ersten (count=1) Sektor/Block der Größe 512 Bytes (bs=512) von der Eingabedatei (Input File if=) Diskette (dev/fd0) aus Bye bye Roland
participants (6)
-
Dennis Boller
-
MichaelHoeller@t-online.de
-
Peter Blancke
-
Ralf Corsepius
-
Rene Engelhard
-
Roland Hilkenbach