Questions tagged [sata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
63
votes
5answers
74k views

How can I safely remove a SATA disk from a running system?

I sometimes need to plug a disk into a disk bay. At other times, I have the very weird setup of connecting a SSD using a SATA-eSATA cable on my laptop while pulling power from a desktop. How can I ...
18
votes
4answers
22k views

Given a kernel ATA exception, how to determine which physical disk is affected? [duplicate]

I woke up this morning to a notification email with some rather disturbing system log entries. Dec 2 04:27:01 yeono kernel: [459438.816058] ata2.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x6 ...
15
votes
3answers
18k views

Does a bad sector indicate a failing disk?

My Ubuntu 13.10 system has been performing very poorly over the last day or so. Looking at the kernel logs, it appears that the <1yr old 3TB SATA disk is having issues with a particular sector: ...
13
votes
1answer
13k views

How to (really) disable NCQ in Linux

I implemented my own Serial-ATA Host-Bus-Adapter (HBA) in VHDL and programmed it onto a FPGA. A FPGA is chip which can be programmed with any digital circuit. It's also equipped with serial ...
11
votes
3answers
10k views

Names for ATA and SATA disks in Linux

Assume that we have two disks, one master SATA and one master ATA. How will they show up in /dev?
10
votes
4answers
5k views

How to map ataX.0 identifiers in kern.log error messages to actual /dev/sdY devices?

Consider following kern.log snippet: ata4.00: failed command: WRITE FPDMA QUEUED ata4.00: cmd 61/00:78:40:1e:6c/04:00:f0:00:00/40 tag 15 ncq 524288 out res 41/04:00:00:00:00/04:00:00:00:00/...
9
votes
1answer
6k views

Why do my SATA devices show up under /proc/scsi/scsi?

I have 3 SATA devices on my system. They show up under /proc/scsi/scsi, although these are not SCSI devices. Why do my SATA devices show up under the SCSI directory? $ cat /proc/scsi/scsi Attached ...
8
votes
3answers
10k views

How can I tell if my hard drive is PATA or SATA?

I have an ATA hard disk in my laptop, running Fedora 11, kernel 2.6.30.10-105.2.23.fc11.i586. I am looking to upgrade the disk in here (would love to get an SSD) but I forgot if it's a serial ATA or ...
6
votes
2answers
2k views

LVM with SSD and SATA hard disks

Is it possible to create LVM partitions for both SSD and SATA hard disks? I mean if there isn't any conflicts.
6
votes
1answer
8k views

Unclaimed device in lshw

I have added in my computer a PCI Express controler card with 2 USB3 ports and 2 sata3 ports. (http://www.ldlc.be/fiche/PB00121886.html). The USB ports are working correctly but the HDD plugged in ...
6
votes
1answer
845 views

How to check if a drive supports hotswap?

Not all SATA drives support hot-swap. Especially older models do not seem to work correctly and require the system to be rebooted, despite the fact that the controller works well with newer drives. ...
5
votes
1answer
8k views

Match PCI address of SATA controller and SCSI address of attached disks

I have a PCI-attached SATA controller connected to a (variable) number of disks on a machine with a Linux 2.6.39 kernel. I am trying to find the physical location of the disk, knowing the PCI address ...
5
votes
1answer
896 views

Does ZFS for Linux over stress VirtualBox?

I've been using MD raid + LVM for many years, but recently decided to take a look at ZFS. In order to try it, I created a VirtualBox VM with a similar layout to my main server - 7 'SATA' drives or ...
4
votes
1answer
2k views

Do I need pata_atiixp or ata_generic kernel modules on a SATA only system?

I don't have any IDE drives and my only SATA hard drive is running in AHCI mode, but my initrd image loads the pata_atiixp module. Is it safe to disable this module? And what about the ata_generic one?...
4
votes
1answer
2k views

Possible issues with SSD SATA3 drive

While investigating the issue with my SATA3 SSD drive being recognized as SATA2 (for some reason had to change SATA ports to fix it) I noticed the following messages when I run: $ dmesg | grep ata3....
4
votes
1answer
871 views

Boot delay due to non-existent SATA disk

My ASUS M4A87TD EVO board has two on-board disk controllers, one of them is a JMicron JMB361 with one old IDE disk connected. When I boot Arch Linux, it shows in the system journal like this: Nov 02 ...
3
votes
3answers
4k views

Why does dd change the filesystem on the external disk?

I took out a 250 GB SATA disk from my netbook, filled it with zeroes with dd and connected it to my laptop via the usb adapter. It's correctly detected by fdisk: Disk /dev/sdb: 250.1 GB, 250059350016 ...
3
votes
1answer
12k views

Is there a way to change a device id in /dev/disk/by-id?

I have a S2 SAMSUNG 320GB USB-HDD which I use in both Ubuntu 13.10 (Kernel 3.11.0-17-generic) and Fedora 17. It works fine; I can read/write from/to them. Although, I am experiencing an issue with a ...
3
votes
2answers
227 views

How to prevent FreeBSD from disconnecting a drive device?

While accessing a drive with high error rates (as, for example, here for opensuse) in FreeBSD, the system eventually disconnects the drive and it disappears from /dev. This makes it impossible to run ...
3
votes
1answer
452 views

What do the fields in the libata device probe line in dmesg mean?

When the kernel boots, it prints out lines like this for each SATA device: [ 0.919450] ata2.00: ATA-8: ST2000DM001-1CH164, CC24, max UDMA/133 [ 0.919487] ata2.00: 3907029168 sectors, multi 16: ...
3
votes
2answers
10k views

Drivers for Marvell 88SE9230 SATA controller on Linux

I have just purchased a SuperMicro X10SBA, where i intend to use the onboard Marvell 88SE923 SATA controller for RAID1. Unfortunately SuperMicro has written that RAID is only compatible on Windows ...
3
votes
1answer
126 views

HDD Testing En Masse

Does anyone have any ideas about how to set up automatic detection and conditional formatting of a LOT of HDDs? I tried posting this on TomsHardwareForums, but I don't think the responder read my ...
3
votes
1answer
1k views

libata patch to allow disable sata port

My question is related to the patch introduced in this post How to tell Linux Kernel > 3.0 to completely ignore a failing disk? If the kernel is patched with this code what is the kernel parameter ...
3
votes
1answer
300 views

Why my SSDs are in /dev/hdx instead of /dev/sdx on CentOS 5.9?

I have two SSDs Kingston SH103S3240G plugged on SATA ports of my Intel Server Board S3000AH. The SSDs apear like a PATA device (hdx instead of sdx) on my CentOS 5.9. I'm having problems related to ...
3
votes
1answer
152 views

Find out that driver is installed properly

I have got a pci sata controller on my machine. I am not sure that the driver is installed properly. The lspci -v output of the card is: 00:09.0 RAID bus controller: VIA Technologies, Inc. VT6421 ...
3
votes
0answers
601 views

Prevent the optical drive to wake up (with noise) after suspend and at startup

Each time I wake up my computer from suspend mode, the cd/dvd player activate and make some noise (it probably checks if there is no cd inside). This happens also at startup. I don't have this ...
3
votes
0answers
328 views

Can a disk be made to identify specific pending sectors?

smartd will happily log messages like this: Sep 2 12:33:59 Watt smartd[438]: Device: /dev/sda, 2 Offline uncorrectable sectors Sep 2 12:34:01 Watt smartd[438]: Device: /dev/sdc, 16 Currently ...
3
votes
0answers
135 views

monitoring block access to disk

I am looking for a way to monitor access to disk blocks, and to monitor the access as a bitmap of blocks. I also need the capability to freeze (and queue) the device block access (and also to ...
3
votes
2answers
8k views

ATA error: COMRESET failed (errno=-32)

Today I boot my laptop (HP pavilion dv6) running debian 7, and the window manager won't start. I just get over and over again errors as: [###.######] ata6: COMRESET failed (errno=-32) [###.######] ...
3
votes
0answers
951 views

The proper way to turn off an external sata encolsure?

I have an e-sata external enclosure with a port expander and 4 sata disks in it that I use for periodic backups. I have what I think is a sound method for powering it off, but not sure if it is the ...
3
votes
0answers
2k views

Debian driver needed for Intel ICH7M SouthBridge I/O controller

I am using a motherboard based on this architecture. http://www.intel.com/content/www/us/en/intelligent-systems/navy-pier/embedded-intel-atom-n270-with-mobile-intel-945gse-express-chipset.html I ...
3
votes
1answer
158 views

How to make my linux-2.6.24.4 to identify a hard disk with serial mode on intel 3201 mainboard

How to make my linux-2.6.24.4 to identify a SATA hard disk on an intel 3201 mainboard? I have pre-load modules libata.ko ahci.ko scsi_mod.ko sd_mod.ko, but it doesn't work on intel 3210 mainboard. On ...
2
votes
1answer
8k views

Disk Error: failed command: READ DMA EXT

I have a fairly old system board from 2010 and two newer hard drives (HGST 6-TB) running CentOS. I repeatedly get the following errors in the dmesg output for each hard drive (proceeded by a loud ...
2
votes
3answers
82 views

Hot Removed SATA drive mount remains

After removing a bay mounted SATA connected drive the kernel will most of the time remove the mount. However, sometimes the mount remains even though the disk has been removed. Is there a way to avoid ...
2
votes
2answers
2k views

Are any SCSI modules needed in initrd if only SATA and IDE disks are used?

I am creating a cloning script to automate a minimalistic installation of Cent OS 5.5 on about 100 workstations of various hardware and age (2-10 years). The workstations are all either IDE or SATA. ...
2
votes
1answer
61 views

Why does ATA Secure Erase occur concurrently rather than in parallel with PATA drives?

When issuing the ATA secure erase command via hdparm against multiple SATA (non-SSD) drives it occurs in parallel. However when the same command is issued against PATA drives, it occurs ...
2
votes
3answers
3k views

How to map a sata device name to a physical sata interface for RAID systems

I have a system with 10 SATA ports, and another SATA as the boot disk. The 10 SATA ports make up 5 software RAID1 arrays. The RAID disks may be removed between boots, and swapped in with arbitrary ...
2
votes
1answer
4k views

Devices get renamed when SATA disk attached

I have an HP xw8200 workstation running linux with two small, fast SCSI drives hooked up to the onboard LSI SCSI controller. The drives get labeled /dev/sda & /dev/sdb in /dev, respectively. I ...
2
votes
1answer
2k views

Marvell 88SE9128 (9123?) SATA Card Weird Behaviour - OpenSUSE

after no response on the OpenSUSE forum (here: https://forums.opensuse.org/showthread.php/511116-Sata-card-erratic-behaviour-amp-failure-Marvell-88SE9128-(9123-)-Chipset ) I am posing this query to ...
2
votes
0answers
498 views

How can I check if sata controller supports hotswap?

Is there a programmatic/generic way to check if sata controller supports howswap? I'd love this question to be generic, so people can apply answer regardless of controller they have. However, in ...
2
votes
1answer
313 views

I am trying to figure out why a Marvell 88C9215 SATA adapter wont work with Slackware

I have a Syba SI-PEX-40064 SATA adapter I am trying to install on a Slackware box with a ASRock G41M-S3 motherboard. After boot, I can see the interface with lspci, but it doesn't seem to have been ...
2
votes
0answers
209 views

how to do data scrubbing (i.e. mass storage bit rot mitigation) in linux/unix?

data scrubbing is presented to me as a way to mitigate what is refered to as bit rot (on mass storage). The rationale is that data on hard disks can "decay"/"rot" and hence get corrupted, and to ...
1
vote
2answers
5k views

List of mount points of external storage devices such as USB keyfobs and SATA external drives, from the cli

I need to list all mount points associates to external storage devices such as USB keyfobs and SATA external drives. The only way I found under Ubuntu, is to call 'mount' and grep for '/media'. But ...
1
vote
2answers
4k views

What causes the ata exceptions in my syslog and how to solve them

I have a new system with debian (omv) a SSD hard drive for the OS and a software RAID 6 for the data. I only saw now that I have very regular exceptions in my syslog. I'm worried now, what could ...
1
vote
1answer
2k views

Sata hotplug doesn't work

Can you help me understand, why my SATA hotplug doesn't work? When I plug sata disk, lsblk doesn't change. There is only my system disk /dev/sda. I have linux: $ uname -a Linux Z170-D3H 4.9.0-3-...
1
vote
1answer
578 views

Custom Kernel to Disable SATA and USB Devices

I am setting up diskless clients that will run on an internal network. I have disabled SATA and USB ports using a BIOS locked with a password, but this is easy to get around by using the jumper to ...
1
vote
1answer
2k views

SATA: what linux kernel drivers are needed for basic support?

I am looking for the basic kernel drivers to enable SATA support. I have a Braswell (Intel SoC) setup and I would like to reduce the number of kernel drivers to a minimum. Does SATA support need the ...
1
vote
1answer
472 views

SATA ssd drives

I have a question regarding the support for SATA ssd drives in the Linux Kernel. I read on the internet that one should enable PCI support for proper usage of the sata drives. Could someone please ...
1
vote
1answer
546 views

How to erase SAS SSD

For SATA SSD, I know that there exists an open source program named hdparm for secure erase by issuing ATA command and this tool has been embedded within linux operating system. For SAS SSD, I want to ...
1
vote
1answer
215 views

What changed in Linux kernel (2.6.22) that gives hdparm support for power-on in standby?

Hdparm man page lists for parameter -s: Enable/disable the power-on in standby feature, if supported by the drive. VERY DANGEROUS. Do not use unless you are abso- ...