hot swap gpt hdd destroys partion table during swaping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned | ||
Fedora |
New
|
Undecided
|
Unassigned |
Bug Description
Hallo,
I have a Asrock Z77 Pro4-m Board and a Seagate 3tb ST3000DM00-1CH166 with Firmware cc24.
with Ubutnu 12.10 64bit also tested it with fedora 18 beta
A Bios update did have I done. So the version is currently on 1.70.
The HDD Bios I cant update because there is no newer version.
The Hdd is connect to sata.
The HDD i have formated via gparted as primary partion with ext4 and gpt as partition table. Alignment was set to optimal.
The Problem occurs if hot unplug(with umount) the disk and try to hot replug(with mount) it. Then the partition table isnt recognized and gdisk shows me:
MBR: projective
GPT: damaged
In the case I can always start the system via Paragon Live Image which repairs me automatically the gpt header so that I have not to repair it inside the tool. After restarting Ubuntu I can mount the drive again.
In the case where the partition is damaged, the partion is the most of time recogonized but the filesystem is unknown. But not everytime.
The same occurs with the mainline kernel not only with the shipped kernel.
Smartvalues are ok.
I also changed the sata port,chipset and cable but the problem occurs further.
In the bios all controllers are set to AHCI.
Here some dmesg output:
[ 103.561920] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4090000 action 0xe frozen
[ 103.561925] ata6: irq_stat 0x00400040, connection status changed
[ 103.561928] ata6: SError: { PHYRdyChg 10B8B DevExch }
[ 103.561933] ata6: hard resetting link
[ 104.283829] ata6: SATA link down (SStatus 0 SControl 300)
[ 109.279026] ata6: hard resetting link
[ 109.583723] ata6: SATA link down (SStatus 0 SControl 300)
[ 109.583732] ata6: limiting SATA link speed to 1.5 Gbps
[ 114.578912] ata6: hard resetting link
[ 114.883622] ata6: SATA link down (SStatus 0 SControl 310)
[ 114.883630] ata6.00: disabled
[ 114.883644] ata6: EH complete
[ 114.883750] ata6.00: detaching (SCSI 5:0:0:0)
[ 114.885244] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 114.885275] sd 5:0:0:0: [sdb]
[ 114.885278] Result: hostbyte=
[ 114.885280] sd 5:0:0:0: [sdb] Stopping disk
[ 114.885288] sd 5:0:0:0: [sdb] START_STOP FAILED
[ 114.885290] sd 5:0:0:0: [sdb]
[ 114.885291] Result: hostbyte=
[ 128.864419] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen
[ 128.864424] ata6: irq_stat 0x00000040, connection status changed
[ 128.864426] ata6: SError: { DevExch }
[ 128.864433] ata6: hard resetting link
[ 133.203987] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 133.204890] ata6.00: ACPI cmd ef/10:06:
[ 133.204895] ata6.00: ACPI cmd f5/00:00:
[ 133.204899] ata6.00: ACPI cmd b1/c1:00:
[ 133.205459] ata6.00: HPA detected: current 5860531055, native 5860533168
[ 133.205604] ata6.00: ATA-8: ST3000DM001-1CH166, CC24, max UDMA/133
[ 133.205606] ata6.00: 5860531055 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 133.205786] ata6.00: failed to get Identify Device Data, Emask 0x1
[ 133.206812] ata6.00: ACPI cmd ef/10:06:
[ 133.206818] ata6.00: ACPI cmd f5/00:00:
[ 133.206821] ata6.00: ACPI cmd b1/c1:00:
[ 133.207722] ata6.00: failed to get Identify Device Data, Emask 0x1
[ 133.207728] ata6.00: configured for UDMA/133
[ 133.207743] ata6: EH complete
[ 133.207866] scsi 5:0:0:0: Direct-Access ATA ST3000DM001-1CH1 CC24 PQ: 0 ANSI: 5
[ 133.208676] sd 5:0:0:0: [sdb] 5860531055 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 133.208682] sd 5:0:0:0: [sdb] 4096-byte physical blocks
[ 133.208758] sd 5:0:0:0: [sdb] Write Protect is off
[ 133.208763] sd 5:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 133.208796] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 133.210849] sd 5:0:0:0: Attached scsi generic sg2 type 0
[ 133.224978] sdb: unknown partition table
[ 133.225190] sd 5:0:0:0: [sdb] Attached SCSI disk
---
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
DistroRelease: LinuxMint 14
InstallationDate: Installed on 2013-01-14 (0 days ago)
InstallationMedia: Linux Mint 14 "Nadia" - Release amd64 (20121120)
MarkForUpload: True
Package: linux (not installed)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
Tags: nadia
Uname: Linux 3.8.0-030800rc3
UnreportableReason: This is not an official LinuxMint package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
description: | updated |
description: | updated |
affects: | ubuntu → linux (Ubuntu) |
tags: | added: gpt hot hotplug swap |
information type: | Public → Private |
information type: | Private → Public |
affects: | linux (Ubuntu) → linuxmint |
Changed in linuxmint: | |
importance: | Medium → Undecided |
status: | Confirmed → New |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1099203
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.