[linux-support] Verschwundene Festplatte

Hans R. Gessler hrgessler at support-net.ch
Tue Jan 8 20:53:45 CET 2008


Hallo alle

In Ubuntu 6.06 wurde die IDE-Platte seinerzeit problemlos gemounted.

Als "anwendungsorientierter" Benutzer bin ich bezüglich Konsole nicht so 
sattelfest (d.h. ich kenne die Befehle nur rudimentär). Seid also bitte 
nachsichtig, wenn ich diesbezüglich Schwierigkeiten habe.

Ich habe GParted installiert und das findet tatsächlich beide Platten, 
nämlich eine hda und eine sda (beide mit allen Partitionen), allerdings 
mit der Warnung bei den hda-Partitionen "Unable to read the contents of 
this filesystem".
Bei der Installation wurden seinerzeit die beiden Platten auch erkannt 
und in menu.lst mit hd0 (für hda) resp. hd1 (für sda) bezeichnet. Mein 
Ubuntu (und damit auch Grub) ist auf sda, dementsprechend wurde auf hd1 
nach Ubuntu resp. Linux gezeigt. Die ursprüngliche hda wurde nun aber 
nicht mehr erkannt, d.h. dass nun nur noch die ursprüngliche sda 
existiert, die aber nun als hd0 bezeichnet wird (in Grub).

finddisk liefert folgendes:
/dev/disk
/dev/disk/by-label
/dev/disk/by-label/DATA
/dev/disk/by-label/BILDER
/dev/disk/by-label/PROGR
/dev/disk/by-label/IMAGEC
/dev/disk/by-uuid
/dev/disk/by-uuid/5542b9e5-0275-45dc-90cf-bb68a463448e
/dev/disk/by-uuid/45BE-4E6B
/dev/disk/by-uuid/EA3469643469352B
/dev/disk/by-uuid/a732bc6e-5bf2-4464-b5ad-6523eb07dbae
/dev/disk/by-uuid/D13A-ED75
/dev/disk/by-uuid/8B7C-9D9E
/dev/disk/by-uuid/45BE-55C7
/dev/disk/by-uuid/fc81f50a-225f-4a52-a83c-467d806cab3d
/dev/disk/by-uuid/4ad25de8-27ab-4a48-8945-a6568eccc5d7
/dev/disk/by-path
/dev/disk/by-path/pci-0000:00:06.0-ide-0:0
/dev/disk/by-path/pci-0000:00:06.0-ide-1:1
/dev/disk/by-path/pci-0000:00:06.0-ide-1:0
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part5
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part9
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part1
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part12
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part11
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part10
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part8
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part7
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part6
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0-part2
/dev/disk/by-path/pci-0000:00:07.0-scsi-1:0:0:0
/dev/disk/by-id
/dev/disk/by-id/ata-HDS728080PLAT20_PFD212S2U3DD0D
/dev/disk/by-id/ata-LITE-ON_COMBO_SOHC-5236V_2005091300002858
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part5
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part5
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part9
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part9
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part1
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part1
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part12
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part12
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part11
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part11
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part10
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part10
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part8
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part8
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part7
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part7
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part6
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part6
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263-part2
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263-part2
/dev/disk/by-id/ata-SAMSUNG_SP2504C_S09QJ1GLB76263
/dev/disk/by-id/scsi-1ATA_SAMSUNG_SP2504C_S09QJ1GLB76263
HDS72... ist die PATA-Platte. Sie erscheint zwar, aber ohne Partitionen. 
(Uebrigens fehlt hier auch der DVD-Brenner, aber er wird trotzdem 
eingebunden). Samsung ist die SATA-Platte.

lsdev liefert:
/dev/hda
/dev/hdc
/dev/hdd
/dev/sda
/dev/sda1
/dev/sda10
/dev/sda11
/dev/sda12
/dev/sda2
/dev/sda5
/dev/sda6
/dev/sda7
/dev/sda8
/dev/sda9
Die PATA-Platte erscheint also auch hier ohne ihre Partitionen. hdc und 
hdd sind die CD/DVD-Laufwerke.

cat /proc/partitions liefert:
major minor  #blocks  name

   8     0  244198584 sda
   8     1   20482843 sda1
   8     2          1 sda2
   8     5   20482843 sda5
   8     6    2048256 sda6
   8     7   16386268 sda7
   8     8   25607578 sda8
   8     9    6144831 sda9
   8    10    5124703 sda10
   8    11   11269566 sda11
   8    12   19535008 sda12
   3     0   80418240 hda

lspci liefert (Auszug):
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller 
(rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller 
(rev f3)

dmesg (Auszug) gibt vermutlich am ehesten einen Hinweis (ich kann damit 
aber nichts anfangen):
[    0.000000] Linux version 2.6.22-14-generic (buildd at terranova) (gcc 
version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue 
Dec 18 08:02:57 UTC 2007 (Ubuntu 2.6.22-14.47-generic)
.......
[   19.765854] scsi0 : sata_nv
[   19.765889] scsi1 : sata_nv
[   19.765932] ata1: SATA max UDMA/133 cmd 0xf884e480 ctl 0xf884e4a0 
bmdma 0x0001d400 irq 17
[   19.765935] ata2: SATA max UDMA/133 cmd 0xf884e580 ctl 0xf884e5a0 
bmdma 0x0001d408 irq 17
[   19.856384] Floppy drive(s): fd0 is 1.44M
[   19.901914] FDC 0 is a post-1991 82077
[   20.075586] ata1: SATA link down (SStatus 0 SControl 300)
[   20.543414] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.551574] ata2.00: ATA-7: SAMSUNG SP2504C, VT100-50, max UDMA7
[   20.551576] ata2.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   20.583555] ata2.00: configured for UDMA/133
[   20.583630] scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  
VT10 PQ: 0 ANSI: 5
[   20.583637] ata2: bounce limit 0xFFFFFFFFFFFFFFFF, segment boundary 
0xFFFFFFFF, hw segs 61
[   20.584166] ACPI: PCI Interrupt Link [APSJ] enabled at IRQ 21
[   20.584174] ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSJ] -> GSI 
21 (level, low) -> IRQ 18
[   20.584178] sata_nv 0000:00:08.0: Using ADMA mode
[   20.584217] PCI: Setting latency timer of device 0000:00:08.0 to 64
[   20.584294] scsi2 : sata_nv
[   20.584403] scsi3 : sata_nv
[   20.584530] ata3: SATA max UDMA/133 cmd 0xf8866480 ctl 0xf88664a0 
bmdma 0x0001e800 irq 18
[   20.584533] ata4: SATA max UDMA/133 cmd 0xf8866580 ctl 0xf88665a0 
bmdma 0x0001e808 irq 18
[   20.895278] ata3: SATA link down (SStatus 0 SControl 300)
[   21.207161] ata4: SATA link down (SStatus 0 SControl 300)
[   21.207438] ACPI: PCI Interrupt Link [APCF] enabled at IRQ 20
[   21.207443] ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [APCF] -> GSI 
20 (level, low) -> IRQ 19
[   21.207450] PCI: Setting latency timer of device 0000:00:02.0 to 64
[   21.207452] ohci_hcd 0000:00:02.0: OHCI Host Controller
[   21.207568] ohci_hcd 0000:00:02.0: new USB bus registered, assigned 
bus number 2
[   21.207581] ohci_hcd 0000:00:02.0: irq 19, io mem 0xf0102000
[   21.216064] sd 1:0:0:0: [sda] 488397168 512-byte hardware sectors 
(250059 MB)
[   21.216076] sd 1:0:0:0: [sda] Write Protect is off
[   21.216078] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   21.216089] sd 1:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[   21.216128] sd 1:0:0:0: [sda] 488397168 512-byte hardware sectors 
(250059 MB)
[   21.216134] sd 1:0:0:0: [sda] Write Protect is off
[   21.216136] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   21.216146] sd 1:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[   21.216149]  sda: sda1 sda2 < sda5 sda6 sda7 sda8 sda9<6>usb usb2: 
configuration #1 chosen from 1 choice
[   21.265231] hub 2-0:1.0: USB hub found
[   21.265240] hub 2-0:1.0: 10 ports detected
[   21.268568]  sda10 sda11 sda12 >
[   21.288443] sd 1:0:0:0: [sda] Attached SCSI disk
[   21.292159] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   21.367631] ACPI: PCI Interrupt Link [APCH] enabled at IRQ 23
[   21.367636] ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [APCH] -> GSI 
23 (level, low) -> IRQ 16
[   21.367641] PCI: Setting latency timer of device 0000:00:0a.0 to 64
[   21.367648] forcedeth: using HIGHDMA
[   21.670993] usb 2-7: new full speed USB device using ohci_hcd and 
address 2
[   21.737160] Attempting manual resume
[   21.737162] swsusp: Resume From Partition 8:6
[   21.737164] PM: Checking swsusp image.
[   21.737315] PM: Resume from disk failed.
[   21.761436] kjournald starting.  Commit interval 5 seconds
[   21.761445] EXT3-fs: mounted filesystem with ordered data mode.
[   21.876011] usb 2-7: configuration #1 chosen from 1 choice
[   21.887368] eth0: forcedeth.c: subsystem: 01458:e000 bound to 
0000:00:0a.0
[   21.887467] NFORCE-CK804: IDE controller at PCI slot 0000:00:06.0
[   21.887485] NFORCE-CK804: chipset revision 242
[   21.887487] NFORCE-CK804: not 100% native mode: will probe irqs later
[   21.887492] NFORCE-CK804: 0000:00:06.0 (rev f2) UDMA133 controller
[   21.887498]     ide0: BM-DMA at 0xf000-0xf007, BIOS settings: 
hda:DMA, hdb:DMA
[   21.887506]     ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: 
hdc:DMA, hdd:DMA
[   21.887512] Probing IDE interface ide0...
[   22.174872] hda: HDS728080PLAT20, ATA DISK drive
[   22.182799] usb 2-8: new low speed USB device using ohci_hcd and 
address 3
[   22.397839] usb 2-8: configuration #1 chosen from 1 choice
[   22.702605] usb 2-10: new full speed USB device using ohci_hcd and 
address 4
[   22.846812] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[   22.853125] Probing IDE interface ide1...
[   22.930645] usb 2-10: configuration #1 chosen from 1 choice
[   23.586345] hdc: LITE-ON COMBO SOHC-5236V, ATAPI CD/DVD-ROM drive
[   24.370052] hdd: PHILIPS SPD6000L1, ATAPI CD/DVD-ROM drive
[   24.427009] ide1 at 0x170-0x177,0x376 on irq 15
[   24.448288] ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
[   24.448296] ACPI: PCI Interrupt 0000:01:0a.0[A] -> Link [APC3] -> GSI 
18 (level, low) -> IRQ 20
[   24.498110] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[20]  
MMIO=[f0004000-f00047ff]  Max Packet=[4096]  IR/IT contexts=[4/8]
[   25.769539] ieee1394: Host added: ID:BUS[0-00:1023]  
GUID[0014855600e63e40]
[   27.820846] i2c-adapter i2c-0: nForce2 SMBus adapter at 0x1c00
[   27.820866] i2c-adapter i2c-1: nForce2 SMBus adapter at 0x1c40
[   27.878064] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   27.881930] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   28.162132] hda: max request size: 512KiB
[   28.162405] hda: 160836480 sectors (82348 MB) w/1719KiB Cache, 
CHS=16383/255/63, UDMA(133)
[   28.221533] hda: cache flushes supported
[   28.221572]  hda:hda: dma_intr: status=0x51 { DriveReady SeekComplete 
Error }
[   28.237295] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.237299] ide: failed opcode was: unknown
[   28.238706] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.238709] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.238711] ide: failed opcode was: unknown
[   28.245597] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.245600] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.245602] ide: failed opcode was: unknown
[   28.247010] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.247013] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.247015] ide: failed opcode was: unknown
[   28.292518] ide0: reset: success
[   28.295492] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.295495] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.295498] ide: failed opcode was: unknown
[   28.296912] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.296915] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.296917] ide: failed opcode was: unknown
[   28.303805] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.303809] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.303811] ide: failed opcode was: unknown
[   28.305226] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.305229] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.305231] ide: failed opcode was: unknown
[   28.352495] ide0: reset: success
[   28.362024] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.362029] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.362031] ide: failed opcode was: unknown
[   28.362035] end_request: I/O error, dev hda, sector 0
[   28.362039] Buffer I/O error on device hda, logical block 0
[   28.363479] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.363482] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.363484] ide: failed opcode was: unknown
[   28.364530] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.364533] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.364535] ide: failed opcode was: unknown
[   28.370334] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.370337] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.370340] ide: failed opcode was: unknown
[   28.371764] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   28.371767] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[   28.371769] ide: failed opcode was: unknown
[   28.416474] ide0: reset: success
[   28.418945] ldm_validate_partition_table(): Disk read failed.
[   28.418951] Dev hda: unable to read RDB block 0
[   28.419098]  unable to read partition table
[   28.420852] hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 1536kB Cache, UDMA(44)
[   28.420857] Uniform CD-ROM driver Revision: 3.20
[   28.426574] hdd: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, 
UDMA(66)
[   28.428808] 
/build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: 
usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 
pid 0x0100
.......

Hoffentlich helfen diese Angaben weiter, bevor ich Platten 
umhängen/ausbauen oder evtl. das System neu installieren muss.

Freundliche Grüsse

Hansruedi

Gaudenz Steinlin wrote:
> Hallo
>
> On Tue, Jan 08, 2008 at 05:07:28PM +0100, Theo Schmidt wrote:
>   
>> Hans R. Gessler schrieb:
>> ...
>>     
>>> Mein Problem ist, dass die IDE-Platte unter Linux nicht mehr 
>>> "existiert", ich möchte sie aber gerne auch unter Linux für Backups 
>>> verwenden.
>>>       
>> ...
>>
>> Vermutlich ist das Problem "SATA". Während Linux ideal mit dem guten 
>> alten PATA umging, werden bei modernen Distributionen SATA Laufwerke und 
>> gleich auch PATA Laufwerke nicht mehr im alten hda bis hdd System 
>> eingebunden, sondern als SCSI Geräte, also sda usw. Nun weiss man nicht 
>> mehr welche Laufwerke man hat, schlimmer als Windows. Ich habe dasselbe 
>> Problem mit USB-Laufwerken: der Buchstabe ist Glücksache. Vermutlich hat 
>> auch dein System so ein Problem.
>>     
>
> Ich versuche mal, aus meinem auch limitierten Verständins des Kernel
> etwas Licht ins Dunkel zu bringen, da der obige Absatz das ganze doch
> etwas pauschal "verurteilt". Wie so oft ist das ganze etwas komplexer.
>
> - Für SATA geräte wird libata (eine kernelkomponente, keine userspace
>   library) verwendet. Geräte, welche über libata angesprochen werden
>   erscheinen als SCSI geräte.
> - die IDE/PATA unterstützung im kernel ist voll überarbeitungswürdig.
>   Darum wird langfristig libata auch für PATA devices genutzt werden.
>   Soweit ich weis ist das aber noch in keinem aktuellen kernel
>   standardmässig aktiviert. Die IDE platte sollte also /dev/hd? sein.
> - Da es bei moderner hardware keine möglichkeit gibt, die devices
>   hardwaremässig in eine bei jedem boot gleiche reihenfolge zu bringen
>   wurde das konzept der stabilen devicenamen seit längerem aufgegeben
>   (gilt nicht nur für disks, sondern auch z.B. für netzwerkinterfaces).
>   Oft funktioniert es zwar, aber du kannst nicht sicher sein, dass deine
>   devices nach änderungen im bios oder der hardwarekonfiguration noch
>   die gleichen namen haben. Das ist meiner meinung nach eine gute sache,
>   da es dazu geführt hat, dass bessere identifikationsmechanismen wie
>   die MAC adresse oder das label eines dateisystems benutzt werden. Für
>   benutzer ist der devicename egal, solange immer die gleiche partition
>   am gleichen ort gemountet wird. Das erreicht man am einfachsten in dem
>   man in /etc/fstab anstatt des devices die UUID oder das LABEL des
>   dateisystems einträgt. 
>
> Und nun doch noch etwas zum eigentlichen problem:
> Aus was schliesst du, dass die Partiion (bzw. die IDE Platte) mit dem
> Windows drauf weg ist? Ich vermute, dass sie einfach nicht automatisch
> gemountet wird. Wenn ich das richtig im Kopf habe, wird das bei Ubuntu
> für nicht "removable" medien nicht automatisch gemacht.
>
> Falls es nicht daran liegt, würde der output folgender befehle
> weiterhelfen:
>
> dmesg
> lspci
> ls /dev/sd* /dev/hd* 
> find /dev/disk
> cat /proc/partitions
>
> Gruss Gaudenz
>
>
>   



More information about the Linux-support mailing list