- 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
lsblk
sudo fdisk -l
sudo fdisk /dev/sdb
When 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
lsblk
sudo /sbin/mkfs.ext3 /dev/sdb1
Create a directory
sudo mkdir /oradiskvdb1
change the access rights to the directory. Only root and only read and write.
sudo chmod -R 660 /oradiskvdb1
Mount
sudo mount /dev/sdb1 /oradiskvdb1
To mount the disk automatically when the system boots, edit the /etc/fstab file.
sudo nano /etc/fstab
At the very end of the file, insert the line:
/dev/sdb1 /oradiskvdb1 ext3 defaults 0 0
sudo reboot
lsblk
chown -R $USER:$USER /oradiskvdb1