geekvenue.net

Welcome to Chucktips HELP WITH DEAD OS Hardware Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


Expanding a partition -adding a hard drive
Documentation Posted by Understudy on Friday April 26, @05:20PM
from the from the been there done that dept.

What do you do when you hard drive has maxed out on a FreeBSD box. Well I decided to add a second one. Figuring this would be no problem. I would just use it to add to my directories. Well it just isn't that simple.


And since it was so much fun I decided I would share my experience with you.

Just adding a hard drive and doing an Fdisk and adding a directory doesn't cut it. Can you just smell the stink of my windoze background. I am slowly easing my way off windoze. As I have been doing so I have been making notes on similarities and differences between the two. I think this is my best documented one.



<  |  >

 

Related Links
  • Articles on Documentation
  • Also by Understudy
  • Contact author
  • ThinkGeek

    Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: Expanding a partition -adding a hard drive
    by Jason on Saturday April 27, @10:42AM
    Another way to solve this problem is to move your entire installation to another (larger) hard disk drive.

    Here is a tutorial: HOWTO: Move FreeBSD to a new had disk
    [ Add a Reply to this ]
    Re: Expanding a partition -adding a hard drive
    by adam on Tuesday July 02, @07:33PM
    I have bought a new 20gig HDD and I did fdisk in DOS before formatting it an insatlling windows 2000, When I partitioned it I said for the computer to do a 100% partition, instead it only partitioned and formatted 2gig. I got into disk managment and partitioned and formatted the left over 18gig after installing win2k, i didnt assign a drive letter to the new partition, is there a way to add that 18gig (new partition) the that other 2gig on c:? thanx for ur help.
    [ Add a Reply to this ]
    • Re: Expanding a partition -adding a hard drive
      by Understudy on Friday July 05, @01:55PM
      In order for a partition to be assigned a drive letter with DOS/ Windows it must be a primary partition not a logical partition . I have learned that when I create a partition the first time ( for windows )it is created as a logical partition. I use Partition magic with windows. Once the partition is created I go back and change it from logical to primary. If you are looking to add this partition you would then have to merge it with the original partition. I am lazy in doing this with windoze and use partition magic to do this because fdisk tends to hate me. I have learned that even using fdisk for a dos partition is a very different game than merging a partition in FreeBSD. Which is done from a command line and not quite as flexible as with a fat32 partition. However with that said I also have a lot more control of my slices with FreeBSD.
      [ Reply to this ]
    Re: Expanding a partition -adding a hard drive
    by Amy on Wednesday January 22, @05:59AM
    I am trying to add 2nd hard drive to my Freebsd box. My problem is to get space back from my old hard drive. Here is my ad0.
    8 partitions:
    # size offset fstype [fsize bsize bps/cpg]
    a: 262144 0 4.2BSD 2048 16384 94 # (Cyl. 0 - 16*)
    b: 951616 262144 swap # (Cyl. 16*- 75*)
    c: 78156162 0 unused 0 0 # (Cyl. 0 - 4864*)
    e: 8388608 1213760 4.2BSD 2048 16384 89 # (Cyl. 75*- 597*)
    f: 204800 9602368 4.2BSD 2048 16384 97 # (Cyl. 597*- 610*)
    g: 68348994 9807168 4.2BSD 2048 16384 89 # (Cyl. 610*- 4864*)

    f is my /tmp, e is /var, and g is /usr. I need to merge e and g. I tried to edit disk label using sysinstall, but didn't work. Please help.

    Thank you.
    Amy
    [ Add a Reply to this ]
    • Re: Expanding a partition -adding a hard drive
      by Understudy on Wednesday January 22, @04:05PM
      Amy,

      FreeBSD won't allow you to merge e & g together. Why because they don't sit next to one another. You can merge e&f or f&g but not e&g.

      If you could not see the harddrive with the sysinstall you may have issues witht the hard drive or it's master/slave settings. You will need to see the hard drive in the sysinstall before you can go through and change the partitions.

      Sorry I don't have better news for you. Let me know how it goes.
      [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]