[<prev] [next>] [day] [month] [year] [list]
Message-ID: <228420.83693.qm@web54502.mail.re2.yahoo.com>
Date: Sun, 10 Jun 2007 20:35:01 +0900 (KST)
From: yong Jung <yong_jk@...oo.com>
To: linux-kernel@...r.kernel.org
Subject: SETMAX.C seems not support SATA
Hi,
.
I tried this SETMAX.C program in order to delete HPA
area.
But some commands failed cause of "No such file or
directory" or "Input/output error" even though kernel
detect HPA and the whole disk information.
I am using SATA drive, 250GB with Fedora 7.
Could you please give me more information ?
I need setmax.c to disable hpa area.
I do appreicate your kind help.
Here is my testings.
...............
[root@...alhost temp]# uname -a
Linux localhost.localdomain 2.6.21-1.3194.fc7 #1 SMP
Wed May 23 22:35:01 EDT 2007 i686 i686 i386 GNU/Linux
.................
ata3.00: ata_hpa_resize 1: sectors = 467348955,
hpa_sectors = 488397168
ata3.00: Host Protected Area detected:
current size: 467348955 sectors
native size: 488397168 sectors
ata3.00: ATA-7: SAMSUNG SP2504C, VT100-50, max UDMA7
ata3.00: 467348955 sectors, multi 16: LBA48 NCQ (depth
0/32)
ata3.00: ata_hpa_resize 1: sectors = 467348955,
hpa_sectors = 488397168
ata3.00: Host Protected Area detected:
current size: 467348955 sectors
native size: 488397168 sectors
................
[root@...alhost temp]# df
Filesystem 1K-blocks Used Available
Use% Mounted on
/dev/sda3 21521440 3568596 16841952
18% /
/dev/sda2 101105 11560 84324
13% /boot
tmpfs 451808 0 451808
0% /dev/shm
...........................
[root@...alhost temp]# ./setmax -d 0 /dev/sda
Using device /dev/sda
setting delta=0
nativemax=251658240 (0xf000000)
HDIO_DRIVE_CMD_AEB failed SET_MAX: Input/output error
81 = 0x51
0 = 0x0
0 = 0x0
0 = 0x0
0 = 0x0
0 = 0x0
79 = 0x4f
[root@...alhost temp]#
..................................................
[root@...alhost temp]# ./setmax -delta 488397168
/dev/sda
Using device 488397168
open: No such file or directory
...................
[root@...alhost temp]# ./setmax /dev/sda
Using device /dev/sda
native max address: 251658240
that is 128849019392 bytes, 128.8 GB
lba capacity: 268435455 sectors (137438952960 bytes)
[root@...alhost temp]# df
Filesystem 1K-blocks Used Available
Use% Mounted on
/dev/sda3 21521440 3568800 16841748
18% /
/dev/sda2 101105 11560 84324
13% /boot
tmpfs 451808 0 451808
0% /dev/shm
.....................
[root@...alhost temp]# fdisk -l
Disk /dev/sda: 239.2 GB, 239282664960 bytes
255 heads, 63 sectors/track, 29091 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/sda1 * 1 26181 210298851 7
HPFS/NTFS
/dev/sda2 26182 26194 104422+ 83
Linux
/dev/sda3 26195 28960 22217895 83
Linux
/dev/sda4 28961 29091 1052257+ 5
Extended
/dev/sda5 28961 29091 1052226 82
Linux swap / Solaris
[root@...alhost temp]#
.................
Friendly,
Nobel
________________________________________________________
180µµ ´Þ¶óÁø ¾ßÈÄ! ¸ÞÀÏ - ¿©·¯ °³ÀÇ ¸Þ½ÃÁö¸¦ µ¿½Ã¿¡ È®ÀÎ? »õ·Î¿î ¾ßÈÄ! ¸ÞÀÏÀÇ ÅÇÀ¸·Î °¡´ÉÇØÁý´Ï´Ù.
http://kr.content.mail.yahoo.com/cgland
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists