Thursday, January 17, 2013

How to present/mount New Hard Disk in a FreeBSD Server

The sysinstall utility is used for installing and configuring FreeBSD systems including hard disks. sysinstall offers options to partition and label a new disk using its easy to use menus. Login as root user. Run sysinstall and enter the Configure menu. Within the FreeBSD Configuration Menu, scroll down and select the Fdisk option:

# sysinstall


Select Configure and press [enter]


Select Fdisk and press [enter]


Choose da1 da1 (x)  -> Ok [enter]
ps: da0 -> already use in root at 1st installation. So, use da1 for new disk


Choose A( Use Entire Disk) ->then choose Q(finish)

Choose Label -> Ok

Choose C (Create) -> ps: Make sure the disk at da1 ->
Choose all -> select fs (File System) -> /data

---------------------------------------------------------> OPEN NEW SESSION--->find next step
Choose W (write) -> yes -> Q(finish)

Next step before Write disklabel
Edit /etc/fstab to add an entry for your new disk
#ee /etc/fstab
-> Copy line with FStype (ufs)
-> Change Device same as in Disklabel Editor (Part) and  Mountpoint as in Disklabel Editor (Mount)
Then Back -> to Disklabel Editor in previous windows to write and save


Done.... and may check your disk using #df -h



No comments:

Post a Comment