|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
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 |
|
||||
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''. |
|
||||
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. |
|
||||
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''. |
|
|
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 |