DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th May 2008
Johnny2Bad Johnny2Bad is offline
Port Guard
 
Join Date: May 2008
Posts: 21
Thanked 0 Times in 0 Posts
Smile Installing another HD

Hi,
I've got my freeBSD system up and running and doing everything I want. But I am running out of disk space and wish to add a new HD.

If I do so, will I have to re-install FreeBSD or will I be able to partition the new disk which will be recognised as part of the filesystem?

Thanks,
Jonathan.

PS: I am running FreeBSD 7.0
Reply With Quote
  #2   (View Single Post)  
Old 20th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Yes and the handbook has a fine chapter on adding new disks.


The process basically amounts to shutdown (needed on regular PCs), install the disk, boot FreeBSD, fdisk it, bsdlabel it, newfs it, add it to /etc/fstab. It is quite simple especially on FreeBSD.


If you want to move your current installation to the new disk I would suggest a boot into single user mode, mount the afore mentioned and installed second drive and do a dump/restore from old drive to new drive; porting the fstab file as necessary and then shut down and physically swap the disks.



My OpenBSD machine was installed on a single 8GB disk. Later I hooked up an 80GB disk with two partitions in the slice which mounts as srv on / and local on /usr.

Code:
Terry@vectra-$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/wd0a      147M   31.2M    109M    22%    /
/dev/wd0h      393M    936K    372M     0%    /home
/dev/wd0d     98.3M    226K   93.2M     0%    /tmp
/dev/wd0g      6.7G    738M    5.6G    11%    /usr
/dev/wd0e      148M   32.7M    108M    23%    /var
/dev/wd1a     11.8G   44.2M   11.2G     0%    /usr/local
/dev/wd1d     44.3G   12.2G   29.8G    29%    /srv
Terry@vectra-$
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 20th May 2008
Calderon's Avatar
Calderon Calderon is offline
Real Name: Patrick Ääripää
Fdisk Soldier
 
Join Date: May 2008
Location: Finland
Posts: 57
Thanked 0 Times in 0 Posts
Default

Hi! I have a similar question. But i have a disk which allready has previous install of freebsd and i would like to keep one partition of it.

Can i somehow wipe out rest of the partitions and extend the one i want to keep with it´s data?
Reply With Quote
  #4   (View Single Post)  
Old 20th May 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Yes, cetainly, but I have never done it.

The answer will certainly involve the growfs(8) utility, which will happily expand an ufs partition to whatever size you need it.
Read the manpage and you'll find out. It is a little complex, however, as it requires you to set up the disklabel first, and then growfs will expand to it. You will probably need dd to move the partition to the start of the disk first, as well.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #5   (View Single Post)  
Old 20th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

be sure to take a backup of anything important and get it off that disk before trying that, just in case of human error.


(dump and tar are useful -- and paranoia saved the cats ninth life)
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
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
Installing Xorg NetBSD NetBSD Installation and Upgrading 20 9th June 2009 02:22 PM
installing openbsd bsdnewbie999 OpenBSD Installation and Upgrading 12 4th May 2009 11:55 AM
installing X11 hirohitosan FreeBSD Installation and Upgrading 3 25th June 2008 09:37 AM
Installing 4.2 on PowerMac G4 533 MHz grid17 OpenBSD Installation and Upgrading 1 15th May 2008 09:10 PM
Installing gnome again qweasdzxc FreeBSD Ports and Packages 2 6th May 2008 11:27 AM


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick