2.4TB disk - MBR and GPT coexist?

Nikolay Pavlov quetzal at zone3000.net
Thu Jan 11 21:35:13 UTC 2007


On Thursday, 11 January 2007 at 11:00:56 -0800, Jo Rhett wrote:
> I think I have a decent way to make the application deal with two 1.2  
> TB filesystems.  Obviously bsdlabel is limited to 2TB, but I should  
> be able to mount a partition from the second slice.
> 
> So how do I accomplish this?  Fdisk apparently won't make that second  
> slice that crosses the 2TB boundary...

You need to create to RAID arrays as separate devices, for example 
in my case (ARECA raid) it would be da0 and da1.
On the first da0 drive install MBR with fdisk and labels as usual, but on
second da1 install GPT with gpt utility (man gpt)

gpt create -f /dev/da1
gpt add -t ufs /dev/da1

Skeep disklabel procedure and format /dev/da1p1 with newfs utility like 
this:

newfs /dev/da1p1
mount -t ufs /dev/da1p1 /mnt/mnt2

Thats it.

/dev/da1p1     4.3T     26G    4.3T     1%    /mnt/mnt2

> 
> Sorry for the rookie questions, but I've done dozens of searches and  
> there's lots of discussion of the issues but no real obvious solutions.
> 
> On Jan 11, 2007, at 1:04 AM, Jo Rhett wrote:
> >So I have a raid array of 2.4TB.  And yes, I really need 2.4TB, and  
> >no there's no room for another set of disks to boot from.
> >/    1g
> >/var 16g
> >/big **everything else
> >
> >Sysinstall recognized the drive properly and everything looked  
> >dandy during install.  However, it turns out that fdisk and  
> >bsdlabel both just chopped off the last partition at 248GB.  (why  
> >248gb and not 2tb?)
> >
> >Reading the various mailing lists, it strikes me that I need to  
> >make partition 1 be normal MBR, and then use GPT to create another  
> >partition table in slice 2.  Makes sense to me.
> >
> >How?  In theory this seems simple, but I can't figure out how to  
> >modify the slices without fdisk, which won't play ball with the  
> >larger size.
> >
> >And why 248GB anyway?  I'd almost be willing to lose the extra .4tb  
> >if it just stopped at 2TB.  Why does it slap back down to 248gb?
> >
> >NOTE: yes I already understand about PC BIOS and MBR, and not  
> >reading GPT format.  The question is -- how do I make them coexist?
> >
> >-- 
> >Jo Rhett
> >senior geek
> >Silicon Valley Colocation
> >_______________________________________________
> >freebsd-stable at freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> >To unsubscribe, send any mail to "freebsd-stable- 
> >unsubscribe at freebsd.org"
> 
> -- 
> Jo Rhett
> senior geek
> Silicon Valley Colocation
> 
> 
> 
> 
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  



More information about the freebsd-stable mailing list