PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Festplattentausch


HIMOZ
2005-12-19, 13:12:13
Hallo leute,
Ich hab meine Festplatte getauscht (von 160gb pata auf 250sata) und dort auch linux hinten drauf.

Bring ich mein altes sytem dort irgendwie rüber und auch zum laufen trotz geänderter pfade (hdd7 auf sda7)

Hätte gestern eine neuinstallation versucht doch selbst die hab ich nicht hinbekommen (Grub error 18) wohl die platte zu gross? Und Partition magic zeigt die bei der installation erstellten linuxpartition nach dem neustart als fehlerhaft/unformatiert an.

Ich verwende ubuntu 5.10, kann/will mir jemand aus dem schlamassel helfen?

ravage
2005-12-19, 13:30:00
Hrm ich würde an deiner Stelle von einer Live CD booten, die neue Platte wie gewünscht partitionieren, und dann die Daten rüberkopieren (man muss darauf achten, dass die Rechte mit kopiert werden!). Am ende noch die Werte in der grub.conf ändern und Grub in den MBR der neuen Platte installieren.

Sollte IMO eigentlich klappen. Und 250 GB sind sicher nicht zu gross für Linux ;)

noid
2005-12-19, 13:31:04
in der Regel musst du in der /etc/fstab nur die mount-punkte ändern (eben hdd7 auf sda7) und grub neu in den bootsektor schreiben (mittels knoppix und chroot sollte das gehen).

ravage
2005-12-19, 13:36:27
Ah die /etc/fstab hab ich vergessen ;)

HIMOZ
2005-12-19, 15:37:24
Ich hab nach wie vor eien 2te platte am parallelport hängen (ohne Betriebssystem) vieleicht schreibt ubuntu auf den mbr auf die falsche platte? Ode woher sollte sonst der error 18 kommen wenn 250 gig nicht zuviel sind?

ravage
2005-12-19, 15:45:42
Du kannst Grub doch selbst mitteilen, wo es sich rein installieren soll

Aus dem Gentoo Handbuch:
Alternativ: GRUB händisch installieren

Um mit der Konfiguration von GRUB zu beginnen, tippen Sie grub. Ihnen wird die grub> GRUB Kommdandozeile präsentiert. Nun müssen Sie die richtigen Befehle eintippen um den GRUB Boot Record auf Ihrer Festplatte zu installieren.

Befehlsauflistung 7: Starten der GRUB Shell

# grub

Notiz: Wenn das System kein Diskettenlaufwerk hat, fügen Sie die --no-floppy Option an das obige Kommando an, damit grub nicht nach nicht-existierenden Diskettenlaufwerken sucht.

In der Beispielskonfiguration wollen wir GRUB so installieren, dass es alle Informationen von der Boot Partition /dev/hda1 liest und den GRUB Boot Record auf dem MBR (Master Boot Record) der Festplatte installiert, damit das Erste was wir sehen, wenn wir den Computer einschalten die GRUB Eingabeaufforderung ist. Natürlich müssen Sie die Befehle entsprechend ändern, wenn Sie von der Beispielkonfiguration während der Installation abgewichen sind.

Der Tab-Komplettierungsmechanismus von GRUB kann innerhalb von GRUB benutzt werden. Zum Beispiel, wenn Sie "root (" eintippen, gefolgt von einem TAB, wird Ihnen eine Liste von Geräten gegeben (solche wie hd0). Wenn Sie "root (hd0," eintippen, gefolgt von einem TAB, wird Ihnen eine Liste von verfügbaren Partitionen angezeigt, unter denen Sie auswählen können (solche wie hd0,0).

Durch Benutzung der Tab-Komplettierung sollte das Einrichten von GRUB nicht allzu schwer sein. Also weiter in der Konfiguration von GRUB!

Befehlsauflistung 8: Installieren von GRUB im MBR

grub> root (hd0,0) (Angabe wo sich Ihre /boot Partition befindet)
grub> setup (hd0) (Installiere GRUB im MBR)
grub> quit (Verlasse die GRUB Shell)

Quelle (http://www.gentoo.org/doc/de/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2)

HIMOZ
2005-12-21, 10:58:55
weitere probleme, ich mounte die alte Platte (in einem USB Rahmen) und die neue unter knoppix4.0; ("mount dev/sdb7 /mnt/ubuntualt" bzw "mount dev/sda7 /mnt/ubuntu")

Starte MC und kopiere alles auf die neue, nach 1 Minute bleibt mc stehen und meldet keine schreibrechte, -- umount..... ; mount...... wieder eíne paar ordner und datein kopieren, spielchen von vorn, nach 2 stunden hab ich grad mal ein viertel der partiton geschafft.

Was mach ich da schon wieder falsch?!

Edit: ich hab das als sudo gemacht verliere ich daher ev. die rechte nach einer der minute?

klutob
2005-12-21, 11:53:56
weitere probleme, ich mounte die alte Platte (in einem USB Rahmen) und die neue unter knoppix4.0; ("mount dev/sdb7 /mnt/ubuntualt" bzw "mount dev/sda7 /mnt/ubuntu")

Starte MC und kopiere alles auf die neue, nach 1 Minute bleibt mc stehen und meldet keine schreibrechte, -- umount..... ; mount...... wieder eíne paar ordner und datein kopieren, spielchen von vorn, nach 2 stunden hab ich grad mal ein viertel der partiton geschafft.

Was mach ich da schon wieder falsch?!

Edit: ich hab das als sudo gemacht verliere ich daher ev. die rechte nach einer der minute?

Einfach per "mc" oder "cp" zu kopieren läuft so nicht! Wahrscheinlich hängt er sich bei "/dev" und "proc" auf, welche keine "normale" Verzeichnisse sind.
Hier gibts ein Howto zum richtigen Spiegeln zweier Platten:
http://portal.suse.com/sdb/de/1997/09/maddin_kopieren.html

Gnafoo
2005-12-21, 14:00:28
Einfach per "mc" oder "cp" zu kopieren läuft so nicht! Wahrscheinlich hängt er sich bei "/dev" und "proc" auf, welche keine "normale" Verzeichnisse sind.
Hier gibts ein Howto zum richtigen Spiegeln zweier Platten:
http://portal.suse.com/sdb/de/1997/09/maddin_kopieren.html

Hm normal geht cp doch auch recht problemlos, oder? Und an dev oder proc kann es ja eigentlich nicht liegen, weil die im zu kopierenden Dateibaum gar nicht eingehängt sind.
Die Anleitung von SUSE klingt aber ganz brauchbar. Wenn es so immer noch nicht geht, würde ich mal nachsehen, was dmesg und die logfiles sagen.

HIMOZ
2005-12-22, 07:49:15
Auch so nach der suse anleitung verliere ich nach ner minute den schreibzugriff, müsste wohl eine andere knoppix version ausprobieren, doch davon abgesen macht mitr grub weiterhin ptobleme.

Ich habe nun ubuntu neu aufgespielt und diesmal aufgepasst dass es in /dev/sda installiert wird oder beim 2ten versuch auf hd1 also sicher auf die richtige (sata) Platte doch er bleibt bei error18.

Dann hab ich lilo installiert und siehe da linux bootet! problemlos; Windows jedoch nicht mehr... es ist zum Haareraufen!

HIMOZ
2005-12-22, 19:42:13
bitte nochmal um hilfe wie muss ich diese lilo.conf ändern dass der rechner nicht sofort zu ubuntu durchstartet und mich nach dem zu startenden system frägt?# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt' (if you have created it), or |
# | install a new kernel. The computer will most likely fail to |
# | boot if a kernel-image post-install script or you don't |
# | remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/sda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/sda6

# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#


# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# If you used a serial console to install Ubuntu, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

initrd=/initrd.img

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

initrd=/initrd.img.old


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3
other=/dev/sda1
label=Windows
# restricted
# alias=2

HIMOZ
2005-12-24, 08:32:32
Hab aufgegeben anch einer Woche Partitionieren, verschieben, instaliieren möchte ich endlich meine PC auch wieder nutzen können und das nicht nur mit live DVD´s.
Habe wieder eine P-ATA Platte eingebaut und alles läuft auf Anhieb.