Subscribe to the RSS Feed

 

Grow FreeBSD UFS filesystem on VmWare HDDs

In this artice I’m going to show you how to expand your UFS filesystem under FreeBSD that runs in a Vmware Virtual Machine.

FreeBSD uses slices instead of traditional PC partitions. To sum it up shortly, it means that your whole disk contains only a single traditional partition with the partition type ‘freebsd(165)’. Inside this partition you will have slices. In a typical FreeBSD installation you have seperate slices for /, /usr, /var, /tmp and swap. In most cases the last slice on the partition is the /usr, and hopefully this is the one we have to extend, because in this case the only thing needed is to add some space to the end of the drive and extend the last slice. Sounds easy? Don’t think so!

The main steps are:

  1. Increase the actual (virtual) hdd size
  2. Extend the partition to cover the whole disk
  3. Extend the size of the last slice to cover the whole partition
  4. Extend the actual UFS filesystem on the newly modified slice

All the details:
First, forget livecds like gparted-live, knoppix, other partition hacking tools because they will not work.

Posted 2009/11/30 07:31 by jos


Comments

  1. Jun 14, 09:46 AM

    BMac Says:

    I followed your instructions exactly. Did the calculations you recommended and intentionally made it larger to see if fdisk would correct the value (to verify my calculations) and it was correct. I edited the disk label as instructed and it matches the values from fdisk -s (I verified that the fdisk -s size values matched the raw size in bsdlabel on two other FreeBSD machines and they did) however.. growfs STILL will not grow….

    # growfs /dev/da0s1f
    GEOM_LABEL: Label ufsid/4b60blahblah
    growfs: we are not growing (3204711->3204711)
    GEOM_LABEL: Label for provider da0s1f is ufsid 4b60blahblah

    #

    any advice?

  2. Sep 16, 06:30 AM

    Anesti Bubulya Says:

    I had to boot into single user mode to run fdisk -u to change the geometry of the partition. I actually moved the files onto a backup slice. Then I had to boot using a boot CD/Floppy to make changes to the slice in question. I deleted the slice I was trying to grow, then created the slice again and moved all the files back. Cumbersome, but it worked.

  3. Sep 17, 11:11 AM

    Alexey Says:

    Could you please expand the step
    1.First the line where it says do not edit…
    2.To get the new size…

    What was before and what was after (bsdlabel screenshots). Thank you

  4. Feb 14, 04:52 PM

    David Basquin Says:

    In case one get stucked at bsdlabel step, this might be helpful…

    Before I found this article, I was having a hard time with bsdlabel. Even though my /tmp and /usr were mounted, I was unable to write changes.

    So I ended up using another /tmp mount point by creating a specific file system in physical memory (#mdmfs -M -S -s 100m md /tmp). Problem solved.

  5. May 18, 04:12 AM

    luxury Bally bags Says:

    Articles are moving every reader with heart, and full of appeal. Let us have to admire, thank your article!

  6. May 23, 03:48 AM

    D & G handbags wholesale Says:

    Thank you! I LOVE this. I made one. I use it all the time. I will be posting a picture of mine and providing a link on my blog.

  7. Nov 23, 04:25 PM

    Ihor Kaharlichenko Says:

    On FreeBSD-8.2 I get Operation not permitted from bsdlabel. In order to resize the /ad0s1f partition I used gpart:

    # gpart resize -i 6 /dev/ad0s1

    By default gpart resize makes the partition occupy all the available space saving you from messing with bsdlabel calculations. The parameter to -i flag is the index of the partition in the slice being edited (6 for f )and can be taken from gpart list output.

  8. Mar 10, 07:52 AM

    crystal case for iphone 4 Says:

    I amazed with the research you made to make this actual put up amazing. Wonderful task!

  9. Apr 20, 01:52 PM

    Xosa Says:

    Simply and powerfull. Some kind of this info must be put in the handbook. The world virtualize all resources.

  10. Oct 17, 04:08 AM

    Maria Welborn Says:

    In freebsd 9.0 you can make the first (partition) resize step slightly easier by doing gpart resize -i 1 /dev/da0
    (gpart is a BSD base system utility and should not be confused with gparted, they are unrelated. See the man page)
    replace the 1 with your partition number if not the first partition and you would use /dev/ad0 if you have IDE/SATA disks and not SCSI. If you don’t want to resize to fill the disk -s will let you specify the size but growing to fill the whole disk is default. The manual disklabel step is unfortunately still needed.

  11. Dec 22, 10:06 AM

    Andrew Azarov Says:

    It’s not necessary to use this nowadays.
    From Freebsd 8.3 (or you can just boot live cd of bsd 9) you can do
    gpart show (remember the extendable partition)
    gpart resize -i index_of_partition geom
    gpart resize -i index_of_partition geom_slice
    growfs geom_slice_partition

  12. Jan 23, 06:47 PM

    Delois Rothamel Says:

    For latest news you have to pay a quick visit internet and on web I found this web page as a finest site for latest updates.

  13. Feb 28, 04:54 PM

    Milo Says:

    Your blog was interesting. You seem very knowledgeable in your field. dd1

  14. Mar 9, 08:54 AM

    visit the following page Says:

    Pretty! This was an incredibly wonderful post. Thank
    you for supplying this info.

  15. Mar 12, 03:16 AM

    best gps running watches for women reviews Says:

    I simply had to thank you so much once more. I do not know the things I might have carried out in the absence of the thoughts shared by you about this
    question. It absolutely was a challenging crisis for me personally, however ,
    taking a look at your professional tactic you resolved it forced
    me to jump over contentment. Now i am thankful for the guidance
    and hope that you know what a great job that you are getting into training other individuals by
    way of your site. More than likely you haven’t come across any of us.

  16. Mar 24, 10:55 PM

    Anatomy and Physiology Quizzes Says:

    all the time i used to read smaller posts that also
    clear their motive, and that is also happening with this piece of writing which I am reading at this place.

  17. Mar 26, 07:38 PM

    fast cure for yeast infection Says:

    Thanks to my father who told me concerning this website, this website is really amazing.

  18. Apr 10, 04:56 AM

    colonic hydrotheraphy Says:

    Hello! I just wanted to ask if you ever have any trouble with hackers?

    My last blog (wordpress) was hacked and I ended up losing
    many months of hard work due to no back up. Do you have any solutions to stop hackers?

  19. Apr 18, 12:00 PM

    reduce weight Says:

    Heya! I just wanted to ask if you ever have any problems with hackers?

    My last blog (wordpress) was hacked and I ended
    up losing several weeks of hard work due to no data backup.
    Do you have any methods to protect against hackers?

  20. May 3, 02:05 AM

    Http://www.Ocseocompany.Com Says:

    Have you ever thought about publishing an ebook or guest authoring on other sites?
    I have a blog centered on the same information you discuss and would really like to have you share some stories/information.

    I know my subscribers would value your work. If you’re even remotely interested, feel free to shoot me an email.

  21. May 3, 06:55 PM

    www.onlinedatingpromocodes.com Says:

    As the admin of this website is working, no doubt very shortly it will be well-known,
    due to its quality contents.

  22. May 15, 04:18 PM

    economic-geography.org Says:

    Hello There. I found your blog the use of msn. This is a very neatly written article.
    I’ll be sure to bookmark it and return to learn extra of your useful information. Thank you for the post. I will certainly comeback.

  23. Jun 10, 04:47 PM

    Anatomy and Physiology flash cards Says:

    Hello i am kavin, its my first occasion to commenting anywhere, when i read
    this post i thought i could also make comment due to this sensible piece of writing.

  24. Jul 3, 12:37 PM

    xbox controller driver windows 8 Says:

    Thanks a lot for sharing this with all people you actually recognize what you’re talking approximately! Bookmarked. Kindly also seek advice from my website =). We will have a link trade contract between us

  25. Aug 7, 04:19 PM

    Dirk Says:

    Thank you very much, very helpful.

  26. Aug 21, 02:12 PM

    Cialis Says:

    I’m gone to convey my little brother, that he should also pay a quick visit this website on regular basis to obtain updated from newest reports.

  27. Aug 22, 12:59 PM

    Cambogia Trim Says:

    Hello! Do you use Twitter? I’d like to follow you if that would be okay. I’m undoubtedly enjoying your blog
    and look forward to new updates.

  28. Sep 11, 02:44 AM

    Best online backup Says:

    Today, I went to the beachfront with my children.
    I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to
    her ear and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is totally off topic
    but I had to tell someone!

  29. Oct 23, 11:43 AM

    Pure Natural Cleanse Says:

    Hmm is anyone else encountering problems with the images on this
    blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog.

    Any feed-back would be greatly appreciated.

  30. Oct 27, 01:15 PM

    Easiest way to earn money Says:

    Fantastic goods from you, man. I’ve understand your stuff previous to and you’re just extremely
    great. I really like what you have acquired here, certainly like what you are saying
    and the way in which you say it. You make it enjoyable and
    you still take care of to keep it sensible. I can’t
    wait to read far more from you. This is really a wonderful web site.

  31. Oct 28, 01:30 PM

    lesbian massage Says:

    I’m gone to say to my little brother, that he should
    also pay a quick visit this web site on regular basis to obtain updated from most up-to-date gossip.

  32. Oct 31, 04:23 AM

    do shrooms stay in your body forever Says:

    Porcini and chantarelles are examples of mushrooms that
    are used to make medicines or sold commercially need to be purchased in order
    to learn magic mushrooms long term effects body
    the proper way on how to grow magic mushrooms. In order to encourage the production
    of a high content of selenium in mushrooms can lower the risk of blood cancer.
    So if you are growing mushrooms for the first time.

  33. Nov 25, 03:45 PM

    ugg boots black friday sale Says:

    I’ve been surfing online more than 4 hours today, yet I never found any interesting article like
    yours. It is pretty worth enough for me. In my view, if all web owners
    and bloggers made good content as you did, the net will be a lot more useful than evera before.

    ugg boots black friday sale

  34. Nov 26, 04:24 AM

    michael kors outlet online Says:

    I have been browsing online more than 3 hours today, yet I never found any interesting article like yours.

    It’s pretty worth enough for me. In my opinion, if all
    website owners and bloggers made good content as you did, the internet
    will be a lot more useful than ever before.|
    I could not resist commenting

    michael kors outlet online

  35. Dec 23, 04:33 AM

    ยาลดความอ้วน Says:

    Hi there just wanted to give you a quick heads up and let you know
    a few of the pictures aren’t loading properly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different browsers and both show the same results.

  36. Dec 29, 07:25 PM

    Edwina Says:

    He told the david cameron BBC’s Daily Politics his and
    Chancellor George Osborne. ‘His second nominee is a community nurse, Tara Kerr-Elliott, who was nearly buried alive when
    the north tower of the World would not have contained so many contemporary
    pop songs.

  37. Jan 8, 11:53 AM

    id=4421077427242744&languageId=4000 Says:

    I am sure this piece of writing has touched all the internet people, its really really nice
    piece of writing on building up new webpage.

  38. Jan 9, 01:59 PM

    sbobet Says:

    First of all I want to say awesome blog! I had a quick question which I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and clear your thoughts prior to writing.
    I’ve had a difficult time clearing my thoughts in getting my
    thoughts out. I do enjoy writing however it just seems like the first 10 to 15 minutes are usually lost simply just trying
    to figure out how to begin. Any suggestions or hints?
    Thank you!

  39. Jan 10, 06:32 AM

    Full Piece of writing Says:

    I needed to send you a bit of word just to give many thanks as before relating to the awesome opinions you’ve provided at this time.
    It was particularly open-handed with people like you to deliver freely all that a few individuals could possibly have advertised as an e-book to generate some dough for their own end, notably considering the fact that you
    might well have tried it if you decided.
    Those principles in addition worked to become great way to realize that most people have a similar dreams just like my own to know a good
    deal more related to this condition. I am certain there are
    numerous more pleasant occasions ahead for individuals
    that discover your website. http://loyalhustlefamily.com/index.php?option=com_easyblog&view=entry&id=9&Itemid=6,Canada Goose Jacken

  40. Jan 25, 04:34 AM

    buy facebook likes cheap Says:

    You actually make it seem really easy with your presentation however I find this topic to
    be really one thing which I believe I would
    never understand. It sort of feels too complex and extremely broad for me.
    I am having a look forward in your subsequent publish, I’ll attempt to get the grasp of it!

  41. Jan 31, 09:26 PM

    Nashville Internet Marketing Says:

    Hello, I enjoy reading all of your post. I like to write
    a little comment to support you.

  42. Feb 7, 01:26 PM

    https://office.centredexpertises.com Says:

    Choose a courier company, there are courier insurance quite a few.
    It said: ‘Either ensure your cat is kept away from the store, the number of women in their 40s having babies has fallen steadily across the country”.

  43. Feb 10, 07:32 AM

    Hp-Compaq Presario Cq42-209Au Says:

    Aрpreciating thhe сommitment you putt іnto ƴour site aand in deptfh infoгmation you
    present. Ιt’s nice to come acrross a blog every once in a while that isn’t the same old
    rеҺashed mɑterial. Wonderful read! I’ve bookmakeɗ your sitee aanԀ I’m including your RSS feeds to mmy Gοogle accօunt.

    Fiix Your Laptop Screen Witɦ Skս

    Search More inffo oon Fixіng Your Screen Here Acer
    Laptop Screen

    Dο not ggo doաn anyy path that, iff you ever let
    yourself to be totally honest, obviousy iѕ nnot likely to helρ yօu alߋng.

    Ƴoou cannot hope for ɑ differeгnt rеsult should yyou nօt take anny brznd new actions.
    The only man or woman who cаn cеrtainly fgure out when it’s tthe timе to puesue a brand
    new course of action iss definitely you. #links# is surly an excellent spot to visit if you have tto find considerɑbly
    more wjtҺ this sսbject.

    Fix Yourr Dell Laptop Screen Fix It Here For The Toshiba Screens
    Toshiba Laptpp Ѕcreen

    All Ѕizes Like 15.6 Fix
    b156xw02

    Search More ihfo on Fixing Yoour Screen Heree Laptop Screen

  44. Feb 22, 01:30 AM

    live sex Says:

    When live I first came here there weren’t so many brothels.
    You will be assigned an agent who will guide you
    through the initial setup process, and be available for you every step of
    the way if you need help with anything. If you have to find a wife.
    No 7: The padlock – karmasutra sex position The
    Nirvana sex position is a classic. If you decide to
    have a private show, for a more intimate connection with the women
    you fantasize about?

  45. Mar 5, 12:50 PM

    St. Louis Missouri SEO Says:

    Many companies have online ordering or phone ordering for your customers and
    will ship products directly to your customers some
    MLM companies. It also allows you to learn from the professionals and make corrections as you go.

    This will be especially convenient for pet owners
    who work long hours or who need to go on vacation.

  46. Mar 7, 07:50 AM

    replica nfl jerseys Says:

    I am actually happy to read this weblog posts which contains tons
    of useful data, thanks for providing these kinds
    of data.

  47. Mar 18, 01:48 AM

    arcane legends hack free download Says:

    Excellent post. I was checking constantly this blog and I am impressed!
    Very useful info particularly the last part :) I care for such info a lot.

    I was looking for this particular information for a very long time.
    Thank you and best of luck.

  48. Mar 18, 06:16 AM

    marvel avengers hack download Says:

    Excellent post! We will be linking to this particularly great post on our website.
    Keep up the good writing.

  49. Mar 18, 07:18 AM

    ช่างกุญแจ Says:

    Thanks for the marvelous posting! I really enjoyed reading it, you can be a great author.I will remember to bookmark your blog and definitely will come back
    someday. I want to encourage you continue your great writing,
    have a nice holiday weekend!

  50. Mar 20, 07:14 PM

    Katlyn Says:

    Surely people aren’t going to do real damage. I know there will be no
    escaping this decision, no ‘remind me david cameron later’ and then it never gets done.
    Secretary of State, telling a CBS correspondent out of the
    EU in response to Cameron’s statement. More recently, his
    party has been facing difficulties over some of his ideas, while there were things the government could
    help that goal.

  51. Mar 25, 05:48 AM

    Optimus Green Coffee Says:

    Cereal: It is revealed that people who take cereal as breakfast everyday, comparing to those who don’t have daily
    cereal, are rarely found to get obesity or diabetes.
    Add about a tablespoon of raw honey in your water bottle and fill it with cold, fresh water.
    In fact you can eventually crash and experience big rebound weight gain.

  52. Mar 27, 03:51 AM

    www.youtube.com Says:

    Thank you a lot for sharing this with all folks you
    really know what you are talking approximately!
    Bookmarked. Kindly also consult with my site =). We will have a link exchange agreement among us

  53. Mar 29, 06:44 PM

    jungle heat hack tool download Says:

    After I originally commented I appear to have clicked the -Notify me
    when new comments are added- checkbox and from now on each time a comment is added
    I recieve four emails with the same comment. There has to be a means you can remove me from that service?
    Many thanks!

  54. Mar 30, 12:50 PM

    hack hungry shark evolution android Says:

    Why users still use to read news papers when in this technological world the whole thing is accessible on web?

  55. Apr 2, 12:06 AM

    hungry shark evolution hack tool download Says:

    Hi there, I want to subscribe for this web site to obtain hottest updates, so where
    can i do it please help.

  56. Apr 2, 01:21 AM

    hungry shark evolution hack tool download Says:

    Hi there, just wanted to mention, I liked this post.

    It was helpful. Keep on posting!

  57. Apr 2, 06:06 AM

    Www.Youtube.com Says:

    I think that is among the such a lot important
    info for me. And i’m satisfied reading your article.

    However should statement on some common things, The site taste is perfect, the articles is in reality excellent : D.
    Good activity, cheers

  58. Apr 3, 09:12 AM

    jungle heat hack tool Says:

    Thanks for a marvelous posting! I actually enjoyed reading it, you can be a great author.

    I will make certain to bookmark your blog and will eventually come back someday.
    I want to encourage you continue your great writing, have a nice morning!

  59. Apr 3, 09:55 AM

    green laser pointer Says:

    I am sure this paragraph has touched all the internet users, its really really nice paragraph on building up new webpage.

  60. Apr 3, 10:32 AM

    courier insurance rates Says:

    If there is no denying that 1% on national insurance will
    not help our teacher recruitment in hard-pressed areas, such as FedEx or UPS.
    Because of this professionalism, you may be thinking to send
    parcel courier anywhere around the world wonder courier insurance why there is
    so much more efficient. However, in some cases, the sensation of
    pressure is still present, which can put up with various transports during their courier insurance delivery.

  61. Apr 3, 03:32 PM

    jungle heat hack download Says:

    I do not even know how I finished up right
    here, however I thought this post used to be good. I don’t realize who you’re but certainly you
    are going to a famous blogger should you
    are not already. Cheers!

  62. Apr 3, 11:08 PM

    Hungry shark evolution hack android Says:

    Remarkable things here. I am very satisfied to peer your article.
    Thanks so much and I’m taking a look forward to touch you.
    Will you please drop me a e-mail?

  63. Apr 4, 02:36 PM

    hungry shark evolution hack android Says:

    I usually do not write many remarks, but after reading through a few of the responses on BSD Based: Grow FreeBSD UFS filesystem on VmWare HDDs.
    I actually do have a few questions for you if you
    do not mind. Is it only me or do a few of the comments look like they are coming from brain dead people?
    :-P And, if you are posting on additional social sites,
    I’d like to follow you. Could you make a list of all of your social sites
    like your linkedin profile, Facebook page or twitter
    feed?

  64. Apr 5, 09:28 AM

    jungle heat hack download Says:

    I read this article fully regarding the resemblance of most up-to-date
    and earlier technologies, it’s awesome article.

  65. Apr 5, 12:58 PM

    hack hungry shark evolution android Says:

    Great beat ! I would like to apprentice at the same time as you amend your web site, how could i
    subscribe for a blog site? The account aided me a applicable
    deal. I have been a little bit familiar of this your broadcast provided bright transparent idea

  66. Apr 5, 10:53 PM

    Susana Says:

    I really like what you guys tend to be up too. This kind of clever work and exposure!
    Keep up the wonderful works guys I’ve added you guys to our blogroll.

  67. Apr 6, 12:55 PM

    อาหารเสริม Says:

    Hello! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in trading links or maybe guest
    authoring a blog article or vice-versa? My website discusses a lot of the same topics as yours and I feel we could greatly benefit from each other.
    If you are interested feel free to send me an email.
    I look forward to hearing from you! Superb blog by the way!

  68. Apr 8, 05:41 AM

    hungry shark evolution money hack Says:

    Fantastic website you have here but I was curious about if you knew of any user discussion
    forums that cover the same topics discussed in this article?
    I’d really like to be a part of group where I can get feed-back from other knowledgeable individuals that share
    the same interest. If you have any recommendations, please let me
    know. Appreciate it!

  69. Apr 8, 06:42 PM

    ครีมฟ้าขาว ของแท้ Says:

    Good info. Lucky me I came across your blog by accident (stumbleupon).
    I’ve bookmarked it for later!

  70. Apr 9, 06:00 AM

    jungle heat hack tool Says:

    What’s up colleagues, its fantastic piece
    of writing regarding teachingand entirely defined, keep it up all the
    time.

  71. Apr 9, 12:30 PM

    Amber Says:

    I love your blog.. very nice colors & theme. Did you make this website yourself or did
    you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog and would like to know where u got this from.
    thank you

  72. Apr 9, 02:31 PM

    Cierra Says:

    This article presents clear idea in support of the new visitors of blogging, that in fact how to do running a blog.

  73. Apr 10, 07:12 AM

    ทัวร์เกาหลี Says:

    always i used to read smaller articles that as well clear their motive, and that is also happening with this article
    which I am reading here.

  74. Apr 10, 08:09 AM

    jungle heat hack download Says:

    hello!,I really like your writing very so much! proportion we communicate more approximately your article on AOL?
    I need an expert on this space to solve my problem.

    Maybe that is you! Having a look forward to look you.

  75. Apr 11, 02:55 PM

    ชาทีมิกซ์ Says:

    Unquestionably believe that which you stated. Your favorite reason seemed to be on the internet the simplest thing to be aware of.
    I say to you, I certainly get irked while people think about worries that they plainly do not
    know about. You managed to hit the nail upon the top and also
    defined out the whole thing without having side effect ,
    people could take a signal. Will probably be back to get more.

    Thanks

  76. Apr 12, 05:29 PM

    Kathie Says:

    What’s up everyone, it’s my first visit at this site, and
    piece of writing is really fruitful in support of me, keep up
    posting these types of articles.

  77. Apr 13, 09:55 AM

    สลิมมิ่งไดเอท Says:

    Excellent blog you’ve got here.. It’s hard to find excellent writing like yours these days.
    I truly appreciate people like you! Take care!!

  78. Apr 16, 12:40 AM

    Gamdroids Heroes of Camelot Hack Says:

    Hmm it appears like your website ate my first comment (it was super long)
    so I guess I’ll just sum it up what I had written and
    say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer
    but I’m still new to everything. Do you have any tips and hints for beginner blog writers?
    I’d genuinely appreciate it.

  79. Apr 16, 02:31 PM

    Quick Ways To Make Money Says:

    Hello colleagues, pleasant post and pleasant urging commented here, I am genuinely enjoying by these.

  80. Apr 17, 02:53 AM

    Web Marketing Says:

    Hi there, I discovered your website by means of Google at the
    same time as searching for a comparable matter, your website came up, it
    looks great. I’ve bookmarked it in my google bookmarks.

    Hello there, simply turned into alert to your blog through Google, and found that it is really
    informative. I am gonna watch out for brussels. I’ll appreciate
    if you happen to proceed this in future. Numerous people will probably be benefited out of your writing.
    Cheers!

Leave a Comment

Add your comment. Preview then Submit.


Hidden


Textile Help