root
sd*
[root@dbdocs ~]# ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1
"Settings"
"Storage"
SATA controller
"Add Hard Disk"
dbdocs_1.vdi
/dev/sdc
[root@dbdocs ~]# ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdc
[root@dbdocs ~]# fdisk /dev/sdc Welcome to fdisk (util-linux 2.37.4). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x0f1bf131. Command (m for help): p Disk /dev/sdc: 10 GiB, 10737418240 bytes, 20971520 sectors Disk model: VBOX HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0f1bf131 Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-20971519, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-20971519, default 20971519): Created a new partition 1 of type 'Linux' and of size 10 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. [root@dbdocs ~]#
[root@dbdocs ~]# mkfs -t ext3 /dev/sdc1 mke2fs 1.46.5 (30-Dec-2021) Creating filesystem with 2621184 4k blocks and 655360 inodes Filesystem UUID: df2e1931-462d-49b7-8aba-589b32412cb2 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done [root@dbdocs ~]#
fdisk -l
--To create a user-friendly mount point, use the following command: mkdir /u03
/etc/fstab
cat /etc/fstab
/dev/sdc1 /u03 ext3 defaults 1 3
/u03
[root@dbdocs ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 890M 0 890M 0% /dev/shm tmpfs 356M 5.6M 351M 2% /run /dev/mapper/rhel-root 17G 14G 3.5G 80% / /dev/sda1 1014M 292M 723M 29% /boot /dev/sdb1 2.9G 92K 2.8G 1% /u02 /dev/sdc1 9.8G 92K 9.3G 1% /u03 tmpfs 178M 52K 178M 1% /run/user/42 tmpfs 178M 36K 178M 1% /run/user/0 [root@dbdocs ~]#