Re: Festplatte ausbauen im laufenden System
On Sat, Mar 19, 2005 at 12:01:25AM +0100, Martin hehnen wrote:
Deshalb die Frage, gibt es ein tool, das die Platte reinitialisieren würde ?
shutdown -r now Anders geht's nach meinen Versuchen nicht. (Plastik-IDE-Wechselrahmen) -- Peter
Hi Peter und alle anderen, bin wohl etwas auf der spur, habe es versucht mit folgendem Link http://www.joachimschlosser.de/linuxtips.html#IDEHotplug leider konnte ich den quellcode nicht compelieren Martin Quellcode : ---------------- snip ------------------ #include <linux/config.h> #include <linux/module.h> #include <linux/hdreg.h> #include <linux/kernel.h> #include "linux/version.h" static int host; int init_module(void) { host = ide_register(0x170, 0x376, 15); if (host == -1) { printk(KERN_NOTICE "IDE-Register failed on host %d \n", host); return host; } printk(KERN_NOTICE "IDE-Register successfull on host %d \n", host); return 0; } void cleanup_module(void) { printk(KERN_NOTICE "Trying to ide_unregister host %d\n", host); ide_unregister(host); } /*
gcc -O2 -Wall -D__KERNEL__ -DMODVERSIONS -include /usr/include/linux/ modversions.h -I/usr/src/linux/include -DMODULE -DCPU=586 -c -o ideinsert.o ideinsert.c Copyright David Hinds <dhinds@hyper.stanford.edu>, Uwe Bonnes */ ------------------------ snap ----------------------- Am Samstag, 19. März 2005 00:24 schrieb Peter Wiersig: On Sat, Mar 19, 2005 at 12:01:25AM +0100, Martin hehnen wrote:
Deshalb die Frage, gibt es ein tool, das die Platte reinitialisieren würde ?
shutdown -r now
Anders geht's nach meinen Versuchen nicht. (Plastik-IDE-Wechselrahmen)
-- Peter
Hallo, Am Sat, 19 Mar 2005, Martin hehnen schrieb:
bin wohl etwas auf der spur, habe es versucht mit folgendem Link http://www.joachimschlosser.de/linuxtips.html#IDEHotplug
leider konnte ich den quellcode nicht compelieren
Wenn du nicht weisst warum und vor allem ohne Fehlermeldung ist das auch besser so. Der Code passt eh nicht zum Kernel 2.4 / 2.6. -dnh PS: Lass bitte das TOFU -- On two occasions I have been asked [by members of Parliament!], `Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. --Charles Babbage
Hallo David
Der Code passt eh nicht zum Kernel 2.4 / 2.6.
Hätte ja sein können das es eine Lösung gibt für den Kernel 2.6. Das dieser Quellcode nicht passte, war mir nach dem Versuch auch klar. Trotzdem Danke für deinen Hinweis Martin
Hallo, Am Sat, 19 Mar 2005, Martin hehnen schrieb:
Der Code passt eh nicht zum Kernel 2.4 / 2.6.
Hätte ja sein können das es eine Lösung gibt für den Kernel 2.6. Das dieser Quellcode nicht passte, war mir nach dem Versuch auch klar.
Das Interface von ide_register hat sich geaendert[0], ob sich die Funktionalitaet (also was ide_register macht) geaendert hat habe ich nicht nachgeschaut (zumal ich grad nicht weiss, wo ich einen 2.2.x (oder aelteren) Kernel auf meinen HDDs rumfahren habe). Falls die Funktionalitaet von 'ide_register/ide_unregister' noch passt koennte man den Code wohl anpassen -- ob's damit dann aber funktionieren wuerde weiss ich nicht. Das sollte aber jemand machen, der sich damit auskennt. Und damit bin ich auch (so gut wie) raus, aber ich hab grad eh keine Zeit[1]. Grundsaetzlich ist IDE eben einfach _nicht_ hotplugging-faehig.[punkt] Allein fuer's "grillfreie" An- oder Abstecken der Kabel braucht man ja schon spezielle Hardware[2]. -dnh [0] Das ist auch ok so, das ist praktisch eine Treiber-interne Funktion. [1] gegen Geld wuerde ich die Zeit aber finden *scnr* [2] ein blosser (billiger) "Wechselrahmen" allein tut's nicht -- "Getting a penguin to pee on demand is _messy_." -- Linus Torvalds
Hi zusammen, nachdem ich Eure Meinungen gelesen habe, wird es wohl besser sein die Platte in einem USB-Gehäuse unterzubringen. Scheint mir die preiswerteste und sicherste Alternative zu sein. Gibt es hier Erfahrungen mit speziellen Anbietern, bzw Empfehlungen für ein solches Gehäuse ? Oder ist es egal welcher Anbieter / Marke ? Danke im vorraus Martin
participants (3)
-
David Haller
-
Martin hehnen
-
Peter Wiersig