Public bug reported:

I have a new 640GB 2.5" SATA drive attached via a Supertop chipset SATA-USB 
bridge.
Scenario 1) Create a primary partition under Linux using fdisk - save the 
partition data. Unplug the drive, re-attach it. fdisk now shows a virgin 
partition record.
Scenario 2) Create the partition table under Windows. Unplug and attached the 
device to Linux. Use fdisk to view the partition table. It appears as setup as 
under windows. Now format one of the partitions using mkfs.ext4. fdisk now 
shows a virgin partition table. It has completely vanished. Scenario 3) Use 
Windows to create an NTFS partition. Copy a file to the partition under 
windows. Attach the device to a linux system. It mounts and the windows file is 
readble. Next create another partition. Cleanly removed the device and 
reattach. The NTFS partition has gone.

Further investigation shows that the CWB header is being written to the
disk in the place whether the data should go. I see the USBC signature
where the data should be. Then I see the data in the next block.

So to prove this I traced the USB packets using wireshark while using hexedit 
to write to sector 0 offset 0, 40 bytes of 11x.
I see the packet to write my data, actually 1KB is written. My data begins at 
+18x into the user data area. There's no USBC characters in that packet.
When I use hexedit a second time I see the USBC command packet written to 
sector 0 and my data written to sector 1.

If I write to sector 2, then sectors 2 and 3 get globbered and sector 3
has the data I intended for sector 2. If I edit 2 consequtive sectors at
once the second sector goes to a completely different disk location.

Now compare the with an external IDE drive pluged into a USB bridge.

I see them same type of data packet from wireshark. My data at +18 into
the data buffer. IDE seems to want to write to the disk in 4K chunks
(not relevant I think). This time data stays where I put it. And there
are no USBC strings on the disk - at least none that I could see.


I have further discovered that this problem exists on Lucid Desktop, Precious 
Desktop and Quantal Desktop.  I does not occur on Oneric Server or Qualtal 
Server.  Circumstantially it appears that the server versions of Ubuntu don't 
have this issue.

I've repeated this problem on three different systems: 64-bit IBM  Intel
server,  IBM T43p and IBM T61p thinkpads. I've not been able to
determine whether it is confined solely to the Super Top SATA/USB
bridge.  It's very easy to demonstrate using hexedit to write directly
to the disk (hexedit /dev/sdb) and edit sector 0.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-42-generic 2.6.32-42.95
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-42.95-generic 2.6.32.59+drm33.24
Uname: Linux 2.6.32-42-generic i686
NonfreeKernelModules: openafs symap_custom_2.6.32_42_generic_i686 
symev_custom_2.6.32_42_generic_i686 nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  richardm   3432 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe220000 irq 17'
   Mixer name   : 'Analog Devices AD1984'
   Components   : 'HDA:11d41984,17aa20bb,00100400'
   Controls      : 29
   Simple ctrls  : 18
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 
7KHT24WW-1.08'
   Mixer name   : 'ThinkPad EC 7KHT24WW-1.08'
   Components   : ''
   Controls      : 1
   Simple ctrls  : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Fri Oct 19 15:33:44 2012
HibernationDevice: RESUME=UUID=edd30c85-1f51-4ed2-aaa3-60d56c519948
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MachineType: LENOVO 6457C37
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-42-generic 
root=UUID=3d6ccbdf-117f-49d7-afd6-afd874f43b3b ro quiet splash
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.14
SourcePackage: linux
dmi.bios.date: 05/11/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 7LETC6WW (2.26 )
dmi.board.name: 6457C37
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: 
dmi:bvnLENOVO:bvr7LETC6WW(2.26):bd05/11/2009:svnLENOVO:pn6457C37:pvrThinkPadT61p:rvnLENOVO:rn6457C37:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 6457C37
dmi.product.version: ThinkPad T61p
dmi.sys.vendor: LENOVO

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid needs-upstream-testing regression-release

** Attachment added: "dmesg extract"
   https://bugs.launchpad.net/bugs/1068675/+attachment/3404322/+files/dmesg.out

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1068675

Title:
  Disk corruption external SATA drive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1068675/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to