SETMAX.C seems not support SATA

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

 



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@localhost 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@localhost 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@localhost 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@localhost temp]#
..................................................
[root@localhost temp]# ./setmax -delta 488397168
/dev/sda
Using device 488397168
open: No such file or directory
...................
[root@localhost 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@localhost 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@localhost 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@localhost 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux