martin@linux-mt4c:~> su
Password:
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdb
Disk /dev/sdb: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc172711f
Device Boot Start End Blocks Id System
/dev/sdb1 1 2351 18876375 7 HPFS/NTFS
/dev/sdb2 2351 7296 39728713+ f W95 Ext'd (LBA)
/dev/sdb5 2354 7296 39704647+ 83 Linux
linux-mt4c:/home/martinrehm # mount
/dev/sda6 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda7 on /home type ext3 (rw,acl,user_xattr)
/dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sdb5 on /local type ext3 (rw,noexec,nosuid,nodev,acl,user_xattr)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
linux-mt4c:/home/martinrehm # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by-id/usb-HTS54806_0M9AT00___________-0:0-part1 /media/disk vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/disk/by-id/usb-HTS54806_0M9AT00___________-0:0-part5 /local ext3 user,acl,user_xattr 1 2
Ich denke du hast alle Partitionen gelöscht, ist aber nicht mehr nötig. Wir editieren also manuell als root die Datei /etc/fstab mit einem beliebigen Texteditor, bitte keine Textverarbeitungen aus einem Office-Paket verwenden. Wenn du KDE benutzt kannst du auch einfach folgenden Befehl in einem Konsolenfenster eingeben:Device Boot Start End Blocks Id System
/dev/sdb1 1 2351 18876375 7 HPFS/NTFS
/dev/sdb2 2351 7296 39728713+ f W95 Ext'd (LBA)
/dev/sdb5 2354 7296 39704647+ 83 Linux
/dev/disk/by-id/usb-HTS54806_0M9AT00___________-0:0-part1 /media/disk vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/disk/by-id/usb-HTS54806_0M9AT00___________-0:0-part5 /local ext3 user,acl,user_xattr 1 2
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdb
linux-mt4c:/home/martinrehm # mount
/dev/sda6 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda7 on /home type ext3 (rw,acl,user_xattr)
/dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
linux-mt4c:/home/martinrehm # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 1 957 7679070 7 HPFS/NTFS
Partition 1 endet nicht an einer Zylindergrenze.
dd if=/dev/sda of=/dev/sdb count=1 bs=512
dd if=/dev/sda1 of=/dev/sdb1 bs=64k
Die Datenträgerstrukur ist beschädigt und nicht lesbar
/media/disk-1/Dokumente und Einstellungen/xp/Eigene Dateien/mydocs/Erste Schritte - Google Earth-Nutzerhandbuch.htm
linux-mt4c:/home/martinrehm # fdisk -l
Platte /dev/sda: 20.0 GByte, 20003880960 Byte
255 Köpfe, 63 Sektoren/Spuren, 2432 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0xa20ea20e
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 1 957 7679070 7 HPFS/NTFS
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sda2 * 957 2432 11855907+ f W95 Erw. (LBA)
/dev/sda5 957 1020 514017 82 Linux Swap / Solaris
/dev/sda6 1021 1673 5245191 83 Linux
/dev/sda7 1674 2432 6096636 83 Linux
Warnung: ignoriere weitere Daten in Partitionstabelle 5
Warnung: ignoriere weitere Daten in Partitionstabelle 5
Warnung: ignoriere weitere Daten in Partitionstabelle 5
Warnung: Schreiben wird ungültiges Flag 0x7777 in Part.-tabelle 5 korrigieren
Platte /dev/sdb: 60.0 GByte, 60011642880 Byte
255 Köpfe, 63 Sektoren/Spuren, 7296 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x7103c27e
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 1 957 7679070 7 HPFS/NTFS
linux-mt4c:/home/martinrehm # mount
/dev/sda6 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda7 on /home type ext3 (rw,acl,user_xattr)
/dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sdb1 on /media/disk-1 type ntfs (rw,nosuid,nodev,uid=1000)
linux-mt4c:/home/martinrehm # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Da ist eigentlich gar nichts chaotisch dran. Es ging nur darum eine Partition sdb1 zu erzeugen, mit exakt passender Größe zum kopierenden Filesystem. Da die Quellpartition aber nicht auf einer Zylindergrenze endet, verweigern die meisten Tools eine derartige Partition zu erstellen. Also war das einfache Kopieren der Partitionstabelle für mich die einfachste Lösung. Sie enthält zwar nur die Einträge für die primären Partitionen (1-4), aber mehr brauchen wir auch nicht und sie befindet sich im MBR.mrehm schrieb:ein bisschen chaotisch, die Vorgehensweise.
Und so wie ich das sehe hast du diesen Absatz einfach ignoriert, sonst wäre jetzt auf der neuen Platte nicht eine erweiterte und eine logische Partition (sdb2, sdb5). Anderseits kann man aber auch erkennen, das das Kopieren der Partitionstabelle funktioniert hat. Die Definition der Partitionen sdb1, sdb2 entsprechen exakt in Größe und Position denen von sda1, sda2.Tooltime schrieb:Anschließend entfernen wir gleich wieder die Überflüssigen Partitionen auf sdb, so das sie nur die Partition sdb1 enthält. Dazu kann ein beliebiges Tool verwendet werden, im Zweifelsfall das mit dem man am besten umgehen kann. Sollten keine Partitionen angezeigt werden, einmal USB-Platte abziehen, kurz warten und Platte wieder einstecken. Per hotplug sollten die Partitionstabellen neu eingelesen werden. Ein sicheres entfernen ist nicht notwendig, da sich noch keine Dateisysteme auf der Platte befinden.
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 1 957 7679070 7 HPFS/NTFS
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sda2 * 957 2432 11855907+ f W95 Erw. (LBA)
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 1 957 7679070 7 HPFS/NTFS
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sdb2 * 957 2432 11855907+ f W95 Erw. (LBA)
Platte /dev/sdb: 60.0 GByte, 60011642880 Byte
255 Köpfe, 63 Sektoren/Spuren, 7296 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x7103c27e
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 1 957 7679070 7 HPFS/NTFS
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sdb2 * 957 2432 11855907+ f W95 Erw. (LBA)
/dev/sdb5 ? 192451 364168 1379318718+ 77 Unbekannt
/dev/sdb 55,8GB
/dev/sdb1 7,3GB linux native /media/disk-1
/dev/sdb2 0,0MB linux native
Die Partitionierung auf Festplatte /dev/sdb kann mit dem Partitionierungswerkzeug 'parted' nicht gelesen werden, das zum Ändern der Partitionstabelle verwendet wird
Sie können die Partitionen auf Festplatte /dev/sdb unverändert übernehmen. Sie können sie formatieren und ihnen Einhängepunkte zuweisen. Sie können mit diesem Werkzeug jedoch keine Partitionen auf dieser Festplatte hinzufügen, bearbeiten, entfernen oder in der Größe ändern
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdb
Disk /dev/sdb: 60.0 GB, 60011642880 bytes
1 heads, 63 sectors/track, 1860480 cylinders
Units = cylinders of 63 * 512 = 32256 bytes
Disk identifier: 0x7103c27e
Device Boot Start End Blocks Id System
/dev/sdb1 2 243781 7679070 7 HPFS/NTFS
fehler
Die Größe kann nicht verändert werden:
ntfsresize v1.13.1 (linntfs9:0;0)
ERROR: Device /dev/sdb1 is mounted read/write. You must umount it first
Fehler
Die Größe von Partition /dev/sdb1 kann nicht geändert werden, da das Dateisystem inkonsistent zu sein scheint
linux-mt4c:/home/martinrehm # umount /dev/sdb1
Lokaler Datenträger E:
Dateisystem NTFS
Freier Speicher 11.4 GB
Gesamtgrösse 17.6 GB
linux-mt4c:/home/martinrehm # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sdb1 /media/disk-1 ntfs-3g users,gid=users,umask=0002,utf8=true 0 0
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdc
Platte /dev/sdc: 60.0 GByte, 60011642880 Byte
255 Köpfe, 63 Sektoren/Spuren, 7296 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x7103c27e
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdc1 1 2299 18466686 7 HPFS/NTFS
linux-mt4c:/home/martinrehm # fdisk-l /dev/sdc1
bash: fdisk-l: command not found
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdc1
Platte /dev/sdc1: 18.9 GByte, 18909886464 Byte
255 Köpfe, 63 Sektoren/Spuren, 2298 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x444c544e
Das sieht nicht wie eine Partitionstabelle aus.
Sie haben wahrscheinlich das falsche Gerät ausgewählt.
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdc1p1 ? 110102 110577 3815730+ 6b Unbekannt
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sdc1p2 ? 113965 200777 697317940+ 75 PC/IX
Partition 2 endet nicht an einer Zylindergrenze.
/dev/sdc1p3 ? 106997 106998 1286+ 41 PPC PReP Boot
Partition 3 endet nicht an einer Zylindergrenze.
/dev/sdc1p4 175983 175986 26459 0 Leer
Partition 4 endet nicht an einer Zylindergrenze.
Partitionstabelleneinträge sind nicht in Platten-Reihenfolge
Disk /dev/sdb: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7103c27e
Device Boot Start End Blocks Id System
/dev/sdb1 1 2299 18466686 7 HPFS/NTFS
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdb
Disk /dev/sdb: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7103c27e
Device Boot Start End Blocks Id System
/dev/sdb1 1 2299 18466686 7 HPFS/NTFS
linux-mt4c:/home/martinrehm # fdisk -l /dev/sdb1
Disk /dev/sdb1: 18.9 GB, 18909886464 bytes
255 heads, 63 sectors/track, 2298 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x444c544e
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdb1p1 ? 110102 110577 3815730+ 6b Unknown
Partition 1 does not end on cylinder boundary.
/dev/sdb1p2 ? 113965 200777 697317940+ 75 PC/IX
Partition 2 does not end on cylinder boundary.
/dev/sdb1p3 ? 106997 106998 1286+ 41 PPC PReP Boot
Partition 3 does not end on cylinder boundary.
/dev/sdb1p4 175983 175986 26459 0 Empty
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
linux-mt4c:/home/martinrehm # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sdb1 /media/disk-1 ntfs-3g users,gid=users,umask=0002,utf8=true 0 0
linux-mt4c:/home/martinrehm #
Partition Typ Filesystem Größe Name/Mountpoint
sdb1 primär NTFS 18 GB Win-C (bereits vorhanden)
sdb2 primär ext3 10 GB root
sdb3 primär SWAP 1.5 GB SWAP-Linux
sdb4 erweitert keins 27 GB Erweiterte Partition (Container für sdb5)
sdb5 logisch EXT3 27 GB /home
dump -0a -b 64 -f - /home | restore -b 64 -rf -
Operation not supported
Nach Standard-PC-Design kann eine Festplatte maximal vier primäre Partitionen besitzen, wobei man frei wählen kann welche dieser vier automatisch gebootet wird, in dem man sie in der Partitionstabelle als aktiv markiert. Eine erweiterte Partition macht also eigentlich nur Sinn wenn man mehr als 4 Partitionen benötigt, bzw. wenn man die vierte Partition als logische Partition in der erweiterten Partition einrichtet, falls man sie später in kleinerer Partitionen aufteilen will. Natürlich gibt es eine namenhafte Ausnahme, die Probleme kriegt sobald mehr als eine primäre Partition ein FAT-Dateisystem enthält. Vielleicht soll das aber auch nur ein Alibi dafür sein, möglichst schnell eine erweiterte Partition anlegen zu können, um eine PC-Konforme-Installation eines weiteren Betriebssystem zu verhindern. Alternative Betriebssysteme oder Bootloader sind dann gezwungen als Startpunkt den MBR zu wählen, den besagte Ausnahme gerne einfach mal überschreibt, ist ganz bestimmt nur ein Versehen.mrehm schrieb:Kannst Du mir erklären, warum Du die Festplattenpartitionierung gegenüber /sda mit win auf der primären und dem gesamten linux auf der erweiterten Partition verändert hast zu 3 primären Partitionen auf /sdb und für win, /root und /swap und /home auf der erweiterten Partition?
linux-mt4c:/home/martinrehm # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
linux-mt4c:/home/martinrehm # cat /boot/grub/device.map
(hd0) /dev/sda
linux-mt4c:/home/martinrehm # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Sep 13 23:06:11 WEST 2008
default 0
timeout 8
gfxmenu (hd0,5)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,5)
kernel /boot/vmlinuz-2.6.25.16-0.1-default root=/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 resume=/dev/sda5 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-default
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,5)
kernel /boot/vmlinuz-2.6.25.16-0.1-default root=/dev/disk/by-id/scsi-SATA_IC25N020ATCS04-_CSH204DMJDURVB-part6 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-default
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd0,5)
chainloader (hd0,0)+1