You are not logged in.
Pages: 1
Hi all, I have been converting a 2TB HDD from NTFS to EXT4 and I have a little problem now.
I deleted all partitions on the disk with cfdisk and then converted the disk to GPT using gdisk. I then created a new partition with cgdisk which filled the entire disk, I then ran "mkfs.ext4" on "/dev/sdb1" (I may have used sdb instead of sdb1)....anyway, now my 2TB drive is only 1TB in size.... and I cant figure out how to "reset" everything. I have no idea how I lost 1TB of space.
Gparted is currently trying to "rescue lost file systems" or something like that, its been going for a while but I dont think its going to help me out.
If anyone could help me out or point me in the right direction, id appreciate it.
Last edited by jrussell (2012-12-14 22:53:19)
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Posting some actual console output would be helpful, particularly whatever it is that says your disk is only 1TB.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Here is gdisk /dev/sdb:
GPT fdisk (gdisk) version 0.8.5
Type device filename, or press <Enter> to exit: /dev/sdb
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.this is a print of the partition table from gdisk:
Expert command (? for help): p
Disk /dev/sdb: 1953569134 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6ED6024D-8DFA-4F2D-BA1C-DDA422975F3F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953569100
Partitions will be aligned on 2048-sector boundaries
Total free space is 1953569067 sectors (931.5 GiB)
Number Start (sector) End (sector) Size Code Name
Expert command (? for help): Here is verifying disk from gdisk:
No problems found. 1953569067 free sectors (931.5 GiB) available in 1
segments, the largest of which is 1953569067 (931.5 GiB) in size.this is the output from fdisk after zaping the GPT table with gdisk:
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x4c21dd8c.
The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.
Command (m for help): Last edited by jrussell (2012-12-14 16:53:32)
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
If you want to start over use gdisk again, and from the interactive menu, hit x to get to that extra menu, and then z will "zap" everything and start you with a "fresh" disk.
As far as your 1 of 2TB issue, I don't know. If it were me I would make one big LVM partition though and alot space as needed.
Offline
I'll be honest, I was expecting a case of mistaken identiny. That's obviously not the case.
Other than "zapping GPT data structures" (see the expert menu in gdisk), the only thing I can suggest is to go back through your journal and see if you can figure out the what/when/how/etc.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
If you want to start over use gdisk again, and from the interactive menu, hit x to get to that extra menu, and then z will "zap" everything and start you with a "fresh" disk.
As far as your 1 of 2TB issue, I don't know. If it were me I would make one big LVM partition though and alot space as needed.
zapping doesnt help, I dont know what you mean about an LVM partition? My problem is that Ive lost 1TB of space on a 2TB drive. The 2TB drive only shows up as being 931.5GB in gdisk and fdisk, there are no partitions on it.
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
I'll be honest, I was expecting a case of mistaken identiny. That's obviously not the case.
Other than "zapping GPT data structures" (see the expert menu in gdisk), the only thing I can suggest is to go back through your journal and see if you can figure out the what/when/how/etc.
I wish it was
unfortunately this is the model number "WDC WD20EARX-00PASB0"
zaping doesnt help
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Yes but you asked how you might start over again... that is an easy way to start from the beginning.
Are there any circumstances where your drive actually shows up as the 2TB drive it is supposed to?
Last edited by WonderWoofy (2012-12-14 17:09:53)
Offline
Yes but you asked how you might start over again... that is an easy way to start from the beginning.
Are there any circumstances where your drive actually shows up as the 2TB drive it is supposed to?
Oh yes, but I ment with this specific drive, like a low level reset (Im no expert with any of this) but I was planning on setting up LVM with a couple of drives I have here.
And to answer your question, no. But, I have turned my 2TB into an 8TB by fiddleing with sector sizes and heads and tacks.
I ran:
sudo fdisk -H 224 -S 56 /dev/sdbfrom here: http://eric.gavaletz.com/2012/03/partit … ctors.html
and then:
sudo fdisk -H 224 -S 64 -b 4096 /dev/sdbnow I get:
Command (m for help): p
Disk /dev/sdb: 8001.8 GB, 8001819172864 bytes, 1953569134 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x60bec6acSo it must be somthing to do with sectors or cylinders or heads
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Install smartmontools. Then do
# smartctl --all /dev/sdb|lessAnd check the part that starts with User Capacity:
Whats your output?
Last edited by chris_l (2012-12-14 17:17:39)
"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.
Offline
Install smartmontools. Then do
# smartctl --all /dev/sdb|lessAnd check the part that starts with User Capacity:
Whats your output?
output of smartctl --all /dev/sdb|less:
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.6.9-1-ARCH] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Green (AF)
Device Model: WDC WD20EARX-00PASB0
Serial Number: WD-WCAZAD562439
LU WWN Device Id: 5 0014ee 05859ce68
Firmware Version: 51.0AB51
User Capacity: 1,000,227,396,608 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Dec 14 19:17:51 2012 SAST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (38880) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 375) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 167 158 021 Pre-fail Always - 6641
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 727
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 094 094 000 Old_age Always - 4826
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 125
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 70
193 Load_Cycle_Count 0x0032 173 173 000 Old_age Always - 81693
194 Temperature_Celsius 0x0022 113 103 000 Old_age Always - 37
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
I think at this point it's time to ask: is the drive still under warranty?
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I think at this point it's time to ask: is the drive still under warranty?
Yes
But I dont think that its a manufacturer/physical fault, I think I just messed something up
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
I think alphaniner is right... since no tool seems to indicate that the drive is larger than 1TB, you may be looking at a RMA here.
Offline
Ok, googling I found this:
http://forums.storagereview.com/index.p … up-as-1tb/
Similar hard disk.
They suggest to update the bios.
PD: Feel again like early 2000, when it was common having to update the bios for motherboards to detect correctly HDs sizes XD
Last edited by chris_l (2012-12-14 17:34:36)
"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.
Offline
Ok, googling I found this:
http://forums.storagereview.com/index.p … up-as-1tb/
Similar hard disk.They suggest to update the bios.
Thank you
I will try pop it into my other computer quick and I will try it on Windows. The bios on both computers is up-to-date
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Still 1TB...
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Yes
But I dont think that its a manufacturer/physical fault, I think I just messed something up
But there's no way you should be able to do that to a disk with normal partitioning/formatting tools. Plus WD Greens are... not exactly robust.
Unless the drive works fine on other machines, I think you have a reasonable claim.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Looks like I need to delete my HPA..both motherboards are gigibyte
http://community.wdc.com/t5/Other-Inter … 40589#M404
Last edited by jrussell (2012-12-14 18:01:22)
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Ok I have gotten this far, http://www.forensicswiki.org/wiki/DCO_and_HPA
But now:
[jason@jason-pc ~]$ sudo hdparm -N /dev/sdb
/dev/sdb:
max sectors = 1953569134/3907029168, HPA is enabledThose two numbers are different...in the website http://www.forensicswiki.org/wiki/DCO_and_HPA they are the same...help?
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
and then:
sudo fdisk -H 224 -S 64 -b 4096 /dev/sdbnow I get:
Command (m for help): p Disk /dev/sdb: 8001.8 GB, 8001819172864 bytes, 1953569134 sectors Units = sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x60bec6acSo it must be somthing to do with sectors or cylinders or heads
I realize this point has been dropped, but I just want to point out that fdisk's ability to set the sector size via -b is intended for old kernels -- and by "old," I mean, "so truly ancient that you don't want to ask about it." I've never heard of this being useful on modern disks, and it's definitely not useful in your case.
Also, the old cylinder/head/sector (CHS) geometry is pretty much obsolete these days. GPT doesn't even use it, except in the hybrid MBR, where GPT tools mostly ignore it.
I agree with the others that this reeks of a hardware failure. If you want to keep trying before getting an RMA, though, I recommend checking with WD to see if they've got updated firmware for the disk (not for your computer). If so, it's conceivable that pushing new firmware onto the disk will reset whatever's causing the problem. This is possible if it's a firmware glitch -- say, a bit that got flipped in a firmware data structure. I don't think I've ever upgraded the firmware on a hard disk, and I'm not sure how common such upgrades are. (I've heard of it being done on DVD drives, though.)
Offline
At my work we update f/w on HDDs all the time. In the case of WD drives, we just dl the f/w right from the WD website. But we use the "Enterprise" line of drives, so you might have a different experience when dealing with the "consumer grade" drives.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Thanks for all the replys, I have fixed it finally
this is what I did:
I first ran:
hdparm -N /dev/sdbwhich gave me:
/dev/sdb:
max sectors = 1953569134/3907029168, HPA is enabledthen running:
hdparm -N p3907029168 /dev/sdbfixed my problem. back to 2TB ![]()
This appears to have been the problem:
http://community.wdc.com/t5/Other-Inter … 40589#M404
And here is where I found out about hdparm and HPA:
http://www.forensicswiki.org/wiki/DCO_and_HPA
Last edited by jrussell (2012-12-14 22:52:14)
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Pages: 1