Mount New Hardisk
- Mount New Hardisk via virtual or physical
- Restart the server.
Determine Drive Information
# lshw -C disk
It will display the hardisk that you mount
Command Line Partitioning
- Initiate fdisk with the following command:# fdisk /dev/sdb
- m
- choose n -> add new partition
- then choose p -> for primary partition
- then choose 1 -> Since this will be the only partition on the drive, number 1. Enter "1" and enter
- Now that the partition is entered, choose option "w" to write the partition table to the disk. Type "w" and enter.
Command Line Formatting
Use "ext3" if the drive will only be used with Ubuntu. For file-sharing between Ubuntu and Windows, you should use "fat32."
# mkfs -t ext3 /dev/sdb1
Create A Mount Point
# mkdir data
OR
# mkdir /data
# mkdir /data
Mount driver
#nano /etc/fstab
-> add another line with new logical name and directory.
# mount -a
# df -h
if duplicate name... you can unmount and mount it back.
# unmount -a
No comments:
Post a Comment