View previous topic :: View next topic |
Author |
Message |
McTango n00b
Joined: 11 Dec 2004 Posts: 66 Location: Formosa - Argentina
|
Posted: Tue Dec 01, 2009 1:25 pm Post subject: 60 GB Hard Disk partition problem on Ultra 10 |
|
|
Hi everyone...
I have problems partitioning an IDE 60 GB hard disk.
Disk is a Western Digital Caviar WD600BB-00JHA0
"hdparm -Ii /dev/hda" gives this info: Code: | Model=WDC WD600BB-00JHA0, FwRev=05.01C05, SerialNo=WD-WMAM92321556
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=66
BuffType=unknown, BuffSize=2048kB, MaxMultSect=128, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=no
IORDY=no, tPIO={min:120,w/IORDY:120}
PIO modes: pio0 pio3 pio4
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6
* signifies the current active mode
ATA device, with non-removable media
Model Number: WDC WD600BB-00JHA0
Serial Number: WD-WMAM92321556
Firmware Revision: 05.01C05
Standards:
Supported: 6 5 4
Likely used: 6
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 117231408
device size with M = 1024*1024: 57241 MBytes
device size with M = 1000*1000: 60022 MBytes (60 GB)
Capabilities:
LBA, IORDY(can be disabled)
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 0
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* DOWNLOAD_MICROCODE
SET_MAX security extension
Automatic Acoustic Management feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* SMART error logging
* SMART self-test
* SMART Command Transport (SCT) feature set
* SCT Long Sector Access (AC1)
* SCT LBA Segment Access (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct |
If i create an emtpy DOS partition table, i have no problems. It recognizes all the disk size, as you can see on this example partition scheme: Code: | Disk /dev/hda: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xc8e706aa
Device Boot Start End Blocks Id System
/dev/hda1 1 39684 20000704+ 83 Linux
/dev/hda2 39685 79368 20000736 83 Linux
/dev/hda3 79369 116301 18614232 83 Linux |
I can format ("mke2fs -j /dev/hda1") and mount all partitions with no size problems.
But, when i create a new empty Sun disklabel, it makes a partition scheme that seems to have all disk size, like this: Code: | Disk /dev/hda (Sun disk label): 16 heads, 63 sectors, 50765 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/hda1 0 116200 58564800 83 Linux native
/dev/hda2 u 116200 116301 50904 82 Linux swap
/dev/hda3 0 116301 58615704 5 Whole disk
| but as you can see, it says 50765 cylinders, so when i try to repartition hda1 an hda2, i can't select beyond 50765 cyl.
Because of this, i can handle only 25 GB using Sun disklabel, wasting about 23 GB.
I changed cylinders to 65535, and the changes was accepted because remains on 65535, so this is the best size i can get: Code: | Disk /dev/hda (Sun disk label): 16 heads, 63 sectors, 5400 rpm
65535 cylinders, 2 alternate cylinders, 65535 physical cylinders
0 extra sects/cyl, interleave 1:1
Label ID: Linux cyl 116301 alt 2 hd 16 sec 63
Volume ID:
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/hda1 0 19841 9999864 83 Linux native
/dev/hda2 19841 20833 499968 82 Linux swap
/dev/hda3 0 65535 33029640 5 Whole disk
/dev/hda4 20833 40674 9999864 83 Linux native
/dev/hda5 40674 65535 12529944 83 Linux native
| This gives me 32 GB instead of 25 GB.
I tried changing heads from 16 to 255, but after writing and restarting "fdisk", remains on 16 heads.
The problem is not OBP, because the machine has a secondary 160 GB IDE hard disk that was recognized entirely: Code: | Disk /dev/hdd (Sun disk label): 255 heads, 63 sectors, 5400 rpm
19457 cylinders, 2 alternate cylinders, 19457 physical cylinders
0 extra sects/cyl, interleave 1:1
Label ID: Linux cyl 19457 alt 2 hd 255 sec 63
Volume ID:
Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System
/dev/hdd1 0 2612 20980890 83 Linux native
/dev/hdd2 2612 5224 20980890 83 Linux native
/dev/hdd3 0 19457 156288352+ 5 Whole disk
/dev/hdd4 5224 7836 20980890 83 Linux native
/dev/hdd5 7836 19457 93345682+ 83 Linux native
|
So i think the problem with 60 GB hard disk is the disk itself.
Any ideas?
Thanks. _________________ Charly Tango
Formosa - Argentina
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
To emerge, or not to emerge: that is the question.
_________________ |
|
Back to top |
|
|
gtbX Tux's lil' helper
Joined: 11 Oct 2003 Posts: 126
|
Posted: Thu Dec 10, 2009 6:13 am Post subject: |
|
|
Yeah, it looks like it's your drive.
When you used a DOS partition table, it reported that you had 116301 cylinders, or 0x1C64D in hex. With the Sun Disklabel, it only reported 50765 cylinders, or 0xC64D in hex. Note that the Sun Disklabel is only using the lower 16 bits of the logical cylinder count from your drive (0xC64D). Even setting the cylinder count to 65535 (the maximum value you can represent with 16 bits) won't cut it because the drive has so few logical heads. Your 160GB drive, doesn't have this problem because it has 255 logical heads - it doesn't need as many cylinders to store more data.
Since it works fine with a DOS partition table, I say just use that. My Ultra 5 boots from a 1GB drive on /dev/hda that uses a Sun Disklabel. It also has a 320GB drive on /dev/sda that uses a DOS disklabel for /home, /usr and /var. I haven't had any problems with this setup so far. If you want to be able to boot off your 60GB drive though, you may be SOL |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|