mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: yong Jung <yong_jk@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: SETMAX.C seems not support SATA
Date: Sun, 10 Jun 2007 20:35:01 +0900 (KST)	[thread overview]
Message-ID: <228420.83693.qm@web54502.mail.re2.yahoo.com> (raw)

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

                 reply	other threads:[~2007-06-10 13:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=228420.83693.qm@web54502.mail.re2.yahoo.com \
    --to=yong_jk@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®