- Creating a partition with fdisk
- Creating an ext3 file system
- Mounting the file system
- Updating the /etc/fstab file
- Rebooting the instance
- Checking the file system
see the volume in the console
lsblksudo fdisk -lsudo fdisk /dev/sdbWhen you press "m" and confirm the entry with Enter, the program will provide a page of available commands
- use the entire disk space, press the "
n" key and Enter. - The system will ask about the type of partition select "
p" - primary. - The partition number select "
1"
Save the changes by pressing "w" and confirm the selection with the Enter key.
see the volume in the console
lsblksudo /sbin/mkfs.ext3 /dev/sdb1Create a directory
sudo mkdir /oradiskvdb1change the access rights to the directory. Only root and only read and write.
sudo chmod -R 660 /oradiskvdb1Mount
sudo mount /dev/sdb1 /oradiskvdb1To mount the disk automatically when the system boots, edit the /etc/fstab file.
sudo nano /etc/fstabAt the very end of the file, insert the line:
/dev/sdb1 /oradiskvdb1 ext3 defaults 0 0
sudo rebootlsblkchown -R $USER:$USER /oradiskvdb1
You might also to use the newer
ext4instead ofext3, but that's just my personal preference. But you probably should use/dev/oracleoci/oraclevda1instead of/dev/sdb1in the fstab if you have consistent device paths for your block volume.