Systemplatte ersetzen

  • Hallo,


    ich versuch gerade meine Bootplatte mit RH9 Installation
    durch eine grössere Platte zu ersetzen.


    Die original Bootplatte ist eine IDE 30 GB, die neue eine IDE 180 GB.


    also, ich habe das Ganze mal mit Knoppix versucht, aber der 'dump'
    schlägt fehl. Der Inhalt der alten Platte /mntold soll auf die neue Platte /mntnew
    kopiert werden und natürlich wieder bootbar sein.


    hier die montierten Filesysteme:
    Filesystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
    /dev/root 1971 1641 330 84% /
    /dev/cdrom 716130 716130 0 100% /cdrom
    /dev/cloop 1871272 1871272 0 100% /KNOPPIX
    /ramdisk 201372 24 201348 1% /ramdisk
    /dev/hda2 172565696 32828 175767004 1% /mntnew
    /dev/fd0 1424 2 1422 1% /mnt
    /dev/hdb1 29032328 10999784 16557780 40% /mntold



    die Partitionstabelle:
    Platte /dev/hda: 180.0 GByte, 180045766656 Byte
    255 Köpfe, 63 Sektoren/Spuren, 21889 Zylinder
    Einheiten = Zylinder von 16065 * 512 = 8225280 Bytes

    Gerät boot. Anfang Ende Blöcke Id Dateisystemtyp
    /dev/hda1 1 63 506016 82 Linux Swap
    /dev/hda2 * 64 21889 175317345 83 Linux

    Platte /dev/hdb: 30.7 GByte, 30738677760 Byte
    255 Köpfe, 63 Sektoren/Spuren, 3737 Zylinder
    Einheiten = Zylinder von 16065 * 512 = 8225280 Bytes

    Gerät boot. Anfang Ende Blöcke Id Dateisystemtyp
    /dev/hdb1 * 1 3672 29495308+ 83 Linux
    /dev/hdb3 3673 3737 522112+ 82 Linux Swap


    dump 0af - /mntold | restore xf -
    DUMP: Date of this level 0 dump: Sat Jul 12 21:12:05 2003
    DUMP: Dumping /mntold (an unlisted file system) to standard output
    /mntold: Attempt to read block from filesystem resulted in short read
    while opening filesystem
    DUMP: The ENTIRE dump is aborted.
    restore: Tape read error on first record


    stimmt das Kommando nicht ?

    Gruß Marco


    HW: TT6400-S2
    SW: Fedora 37, kernel-6.1.6-200.fc37.x86_64, vdr-2.6.1-2.fc37.x86_64


    Fedora37 x86_64 Gnome Desktop 42.2 Ausgabe über das vdr-softhddevice plugin

    ViewSonic VX3276 HDMI-1 <------------> HDMI NVidia Geforce-gt-1030

    ViewSonic VX3276 HDMI-2 <------------> HDMI Technotrend S2-6400


  • zwischenfrage, nutzt du lilo? wenn ja, dann geht das anders ganz einfach.


    einfach platte unter /mnt mounten, alles rüberkopieren, platte umhängen, knoppix oder anderes booten und
    lilo /dev/hda (evtl auch lilo -d /dev/hda oder so mal manpage schauen)
    eintippen, das sollte reichen.
    Bei mir hat der umstieg von 40GB auf 120GB ganze 45min gedauert (40min kopieren, 5 min booten)


  • Auf Knoppix gibt dump die Auskunft dass ext2/ext3 unterstützt wird.
    Mit # dump 0af - /dev/hdb1 | ( cd /mntnew && restore -xf - )
    konnte ich die Platte jetzt dumpen.
    habe dann nochmals den Bootloader geschrieben
    # lilo -r /mntnew


    dass hat dann die laecherlichen 9 GB in ca. 2 Std. kopiert.
    am Schluß kam dann die Meldung dump complete
    set owner/mode for '.'?[yn]


    dass habe ich dann mit y beantwortet.


    dannach habe ich noch einen lilo -r /mntnew abgesetzt, weil beim Booten
    der neuen Platte nur LI kam.


    Die neue Platte bootet trotzdem nicht, folgende Meldungen kommen.


    Mounting /proc filesystem
    Creating block devices
    Creating root device
    mkrootdev: label / not found
    Mounting root filesystem
    mount: error2 mounting ext3
    pivotroot: pivot_root (/sysroot,/sysroot/initrd) failed: 2
    umount /initrd/proc failed: 2
    Freeing unused kernel memory: 112k freed
    Kernle panic: No init found. Try passing init= option to kernel.


    eine Anmerkung noch, die Quellplatte hatte die Linuxpartition auf hdb2
    und die neue Platte jetzt auf hdb1


    Ich habe aber keinen Hinweis in der /etc/fstab auf hdbx gefunden.

    Gruß Marco


    HW: TT6400-S2
    SW: Fedora 37, kernel-6.1.6-200.fc37.x86_64, vdr-2.6.1-2.fc37.x86_64


    Fedora37 x86_64 Gnome Desktop 42.2 Ausgabe über das vdr-softhddevice plugin

    ViewSonic VX3276 HDMI-1 <------------> HDMI NVidia Geforce-gt-1030

    ViewSonic VX3276 HDMI-2 <------------> HDMI Technotrend S2-6400



  • also so gehts jetzt:
    In der /etc/fstab den Eintrag mit "LABEL=/" durch
    "/dev/hdb1" ersetzen oder mit "tune2fs -L / /dev/hdb1" ein Label setzen.


    zur Sicherheit sollte man vorher die Platten noch checken mit:
    # e2fsck /dev/hdb1

    Gruß Marco


    HW: TT6400-S2
    SW: Fedora 37, kernel-6.1.6-200.fc37.x86_64, vdr-2.6.1-2.fc37.x86_64


    Fedora37 x86_64 Gnome Desktop 42.2 Ausgabe über das vdr-softhddevice plugin

    ViewSonic VX3276 HDMI-1 <------------> HDMI NVidia Geforce-gt-1030

    ViewSonic VX3276 HDMI-2 <------------> HDMI Technotrend S2-6400


Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!