using sysinstall to add new harddisk for FreeBSD Server

I tried to expand a full harddsik but with no luck, it seems it is not possible, so I had to create new bigger harddisk and move all the data from the old harddisk.
sysinstall is the easiest way to do that :)





19.3.1 Using sysinstall(8)
Navigating sysinstall

sysinstall can be used to partition and label a new disk using its easy-to-use menus. As root, run sysinstall and enter the Configure menu. Within the FreeBSD Configuration Menu, scroll down and select the Fdisk option.


fdisk Partition Editor

Once inside fdisk, pressing A will use the entire disk for FreeBSD. When asked whether to “remain cooperative with any future possible operating systems”, answer YES. Write the changes to the disk using W. Exit the fdisk editor by pressing Q which will prompt about the “Master Boot Record”. Since the disk is being added to an already running system, choose None.


Disk Label Editor

Next, exit sysinstall and start it again. Follow the directions above, except this time choose the Label option. This will enter the Disk Label Editor. This editor is used to create traditional BSD partitions. A disk can have up to eight partitions, labeled a-h. A few of the partition labels have special uses. The a partition is used for the root partition (/). Only the disk the system boots from should have an a partition. The b partition is used for swap partitions, and there can be many disks with swap partitions. The c partition addresses the entire disk in dedicated mode, or the entire FreeBSD slice in slice mode. The other partitions are for general use.

The label editor in sysinstall favors the e partition for non-root, non-swap partitions. Within the label editor, create a single file system by pressing C. When prompted if this will be a FS (file system) or swap, choose FS and type in a mount point such as /mnt). When adding a disk in post-install mode, sysinstall will not create entries in /etc/fstab, so the mount point you specify is not important.

Press W to write the new label to the disk and create a file system on it. Ignore any errors from sysinstall indicating that it could not mount the new partition. Exit the label editor then sysinstall completely.


Finish

The last step is to edit /etc/fstab to add an entry for your new disk.

Post a Comment

0 Comments