Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #1045

Re: [RESOLVED] suddenly shrunk HDD?!

From Ivan Shmakov <oneingray@gmail.com>
Newsgroups comp.os.linux.hardware, comp.unix.admin
Subject Re: [RESOLVED] suddenly shrunk HDD?!
Date 2012-02-07 17:18 +0700
Organization Aioe.org NNTP Server
Message-ID <86wr7zdk0t.fsf_-_@gray.siamics.net> (permalink)
References (1 earlier) <86pqdrhmkj.fsf@gray.siamics.net> <jgpqbj$575$1@dont-email.me> <864nv3gwe5.fsf@gray.siamics.net> <jgqjb2$ato$1@dont-email.me> <861uq7eztt.fsf@gray.siamics.net>

Cross-posted to 2 groups.

Show all headers | View raw


>>>>> Ivan Shmakov <oneingray@gmail.com> writes:

[...]

 > The question is: how do I revert the HDD back to its original
 > 1953525168 sectors?

	So, I've disabled such obnoxiously programmed HPA with
	hdparm(8):

# hdparm -N /dev/sdb 

/dev/sdb:
 max sectors   = 1953523055/1953525168, HPA is enabled
# hdparm -N1953525168 /dev/sdb 

/dev/sdb:
 setting max visible sectors to 1953525168 (temporary)
 max sectors   = 1953525168/1953525168, HPA is disabled
# hdparm -N /dev/sdb 

/dev/sdb:
 max sectors   = 1953525168/1953525168, HPA is disabled
# 

	Of course, this hasn't revived the backup GPT table, but at the
	very least, both Linux and GNU Parted now recognize the primary
	one.

$ dmesg 
...
[8613672.086499] Alternate GPT is invalid, using primary GPT.
[8613672.086546]  sdb1 sdb2 sdb3 ...
...
$ 

# parted /dev/sdb unit mib print ok 
Error: The backup GPT table is corrupt, but the primary appears OK, so that will
be used.
Model: ATA WDC WD1001FALS-7 (scsi)
Disk /dev/sdb: 953870MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start      End        Size       File system     Name      Flags
 1      0.02MiB    16.0MiB    16.0MiB                    biosgrub  bios_grub
 2      16.0MiB    1024MiB    1008MiB    ext3            boot      boot
 3      1024MiB    16384MiB   15360MiB   linux-swap(v1)  swap
...

# 

-- 
FSF associate member #7257

Back to comp.os.linux.hardware | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: suddenly shrunk HDD?! Ivan Shmakov <oneingray@gmail.com> - 2012-02-07 16:51 +0700
  Re: [RESOLVED] suddenly shrunk HDD?! Ivan Shmakov <oneingray@gmail.com> - 2012-02-07 17:18 +0700

csiph-web