Add new hard drives in Linux

zhaozj2021-02-12  132

Prepare Oracle in VMware, suddenly found that the hard disk space is not enough, I have to add a virtual SCSI hard drive.

#fdisk / dev / sdb enters the fdisk command mode, press M to see help, n Create a new area Command (M for help): n Enter P to create the main partition (a total of 4, here I only build one OK) Command Action E Extended P Primary Partition (1-4) P Input Partition No. 1Partion Number (1-4): 1First Cylinder (1-1014, Default 1): 1 // First Primary Partition Starting Disk Cylinder Last Cylindet Or Siza Or Sizem OR SIZEK: 2048M / / Partition size, I added a total of 2gok, the partition is completed. Next format #mkfs -t ext3 -c / dev / sdb1 // format the second hard disk The partition 1 is listed next to the EXT3 file system to mount the partition to a directory #mkdir Oracle // Establish / Oracle Directory #mount / dev / sdb1 / oracle But then reload each restart, so to modify / etc / FSTAB is automatically loaded #vi / etc / fstab plus / dev / sdb1 / oracle ext3 defaults 1 2 to get taking care!

转载请注明原文地址:https://www.9cbs.com/read-6867.html

New Post(0)