Re: SATL support for hdparm?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 14, 2009 at 07:15:36PM -0500, Mark Lord wrote:

> >Turns out I was stracing /sbin/hdparm and not ./hdparm (doh).  If I
> >strace the right binary I get:
> >
> >	ioctl(3, SG_IO, {'S', SG_DXFER_NONE, cmd[12]=[a1, 06, 20, 05, fd, 
> >	00, 00, 00, 40, ef, 00, 00], mx_sb_len=32, iovec_count=0, 
> >	dxfer_len=0, timeout=5000, flags=0, status=02, masked_status=01, 
> >	sb[22]=[72, 0b, 00, 00, 00, 00, 00, 0e, 09, 0c, 00, 04, 00, fd, 00, 
> >	00, 00, 00, 00, 00, 40, 51], host_status=0, driver_status=0x8, 
> >	resid=0, duration=1, info=0x1}) = 0
> >
> >Does that mean the drive doesn't support SET_FEATURES/{05,85} (weird)?
> ..
> 
> Dunno.. do this instead, and show the output:
> 
>  hdparm --verbose -B /dev/sdb

	[root@heth hdparm-9.10]# ./hdparm --verbose -B 254 /dev/sdb

	/dev/sdb:
	 setting Advanced Power Management level to 0xfe (254)
	outgoing cdb:  a1 06 20 05 fe 00 00 00 40 ef 00 00 00 00 00 00
	SG_IO: ATA_12 status=0x2, host_status=0x0, driver_status=0x8
	SG_IO: sb[]:  72 0b 00 00 00 00 00 0e 09 0c 00 04 00 fe 00 00 00 00 00 00 40 51 00 00 00 00 00 00 00 00 00 00
	SG_IO: desc[]:  09 0c 00 04 00 fe 00 00 00 00 00 00
	      ATA_12 stat=51 err=04 nsect=fe lbal=00 lbam=00 lbah=00 dev=40
	I/O error, ata_op=0xef ata_status=0x51 ata_error=0x04
	 HDIO_DRIVE_CMD failed: Input/output error
	[root@heth hdparm-9.10]# 
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux