e911 [Solved] How can I install a 3TB HDD? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Storage

Storage Place to ask questions about partitioning, labelling, filesystems, encryption or anything else related to storage area.

Reply
 
Thread Tools Display Modes
  #1  
Old September 5th, 2012, 16:51
ghostcorps ghostcorps is offline
Member
 
Join Date: May 2009
Posts: 254
Thanks: 73
Thanked 1 Time in 1 Post
Default How can I install a 3TB HDD?

Hi guys,

I am trying to install a 3TB Seagate HDD but it is not as easy as I expected... nothing ever is.

Using this thread I have tried the following method:

First I get the disk info:



Code:
ad12
        512             # sectorsize
        3000592982016   # mediasize in bytes (2.7T)
        5860533168      # mediasize in sectors
        5814021         # Cylinders according to firmware.
        16              # Heads according to firmware.
        63              # Sectors according to firmware.
        W1F03HGG        # Disk ident.
Using the thread above I calculate the following to be the correct geometry:

Code:
        32768            # sectorsize
        3000592982016    # mediasize in bytes (2.7T)
        5860491264       # mediasize in sectors
        5814021          # Cylinders according to firmware.
        16               # Heads according to firmware.
        63               # Sectors according to firmware.
        W1F03HGG         # Disk ident.
I set this geometry in fdisk though sysinstall:

Code:
Disk name:      ad12                                   FDISK Partition Editor
DISK Geometry:  5814021 cyls/16 heads/63 sectors = 5860533168 sectors (2861588MB)

Offset       Size(ST)        End     Name  PType       Desc  Subtype    Flags

         0         63         62        -     12     unused        0
        63 5860533105 5860533167   ad12s1      8    freebsd      165
I then use newfs to create the filesystem as follows:

Code:
# newfs -S 4096 -b 32768 -f 4096 -O 2 -U -m 8 -o space -L mediabackup /dev/ad12s1
But rather than using the geometry I set previously it uses the following:

Code:
/dev/ad12s1: 764436.4MB (1565565808 sectors) block size 32768, fragment size 4096
        using 1034 cylinder groups of 740.00MB, 23680 blks, 47360 inodes.
        with soft updates
This results in a partition of 735G.

Where did I go wrong?
__________________
FreeBSD 8.3 RELEASE

Last edited by ghostcorps; September 5th, 2012 at 18:55.
Reply With Quote
  #2  
Old September 5th, 2012, 16:58
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,860
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Don't use sysinstall(8), it's deprecated.

The maximum disk size supported by MBR is about 2TB, I suggest you use gpart(8) and the GPT scheme.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old September 5th, 2012, 17:05
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,853
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

That thread is old and somewhat outdated. Disk Setup On FreeBSD shows how to use gpart(8) to set up aligned GPT partitions.

Fixed drive geometry is an obsolete concept. Drives put more sectors on the outer tracks because there is more room, and have been doing that for many years. So trying to calculate an imaginary geometry to satisfy the imaginary geometry used by fdisk(8) is pointless. GPT is easier and more versatile.
Reply With Quote
  #4  
Old September 5th, 2012, 18:15
ghostcorps ghostcorps is offline
Member
 
Join Date: May 2009
Posts: 254
Thanks: 73
Thanked 1 Time in 1 Post
Default

Thanks for the quick reply guys!

I'll give that article a go.
__________________
FreeBSD 8.3 RELEASE
Reply With Quote
  #5  
Old September 5th, 2012, 18:54
ghostcorps ghostcorps is offline
Member
 
Join Date: May 2009
Posts: 254
Thanks: 73
Thanked 1 Time in 1 Post
Default

Aaaaand it's done, too easy

Thanks again guys.


On a sidenote, if anyone is here with the same question you will likely need to destroy the partition before beginning, as explained HERE
__________________
FreeBSD 8.3 RELEASE
Reply With Quote
  #6  
Old September 5th, 2012, 19:27
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,853
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Quote:
Originally Posted by ghostcorps View Post
On a sidenote, if anyone is here with the same question you will likely need to destroy the partition before beginning, as explained HERE
A easier way, without having to delete all the partitions first:
# gpart destroy -F ada0
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
ghostcorps (September 17th, 2012)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to convert scripted install iso to pxe install but fails trying to mount acd0 highurtenflurst Installing & Upgrading 6 March 2nd, 2012 23:57
HOWTO: Install FreeBSD8.2 on Laptop when Firewire and ACPI blocks normal install disc Identical Howtos & FAQs (Moderated) 0 November 27th, 2011 10:46
Going for first install with some doubts (Processor Family, Medium, Chroot Install) vfbsilva Installing & Upgrading 18 July 18th, 2011 14:52
Multi-boot install: partition sizes and install order vodoomoth Installing & Upgrading 3 December 25th, 2010 20:05
Do I need install Samba3 if samba4-devel install by default mfaridi Installation and Maintenance of FreeBSD Ports or Packages 1 September 16th, 2010 13:07


All times are GMT +1. The time now is 14:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0