The data storage disk is usually mounted in the "/storage/usbdisk1" directory. From the example above, it can be seen that 4.5G of 4.9G is currently available.
Disabling the disk
Before starting work, you should unmount the disk. To do this, run the script:
~ # /sbin/freestorage
Make sure that the data storage disk is no longer mounted:
First, delete the existing partition. This operation does NOT delete data on the disk, just edits the partition table.
Launching the Section Editor:
# fdisk /dev/sdb
The system will prompt you to enter a command, enter "d" and press Enter:
Command (m for help): d
Система запросит выбрать раздел к удалению, он один, вводим номер раздела «1» и жмем Enter:
Selected partition 1
Сохраняем таблицу разделов, вводим команду «w» и жмем Enter:
Command (m for help): w
Adding a larger section
Launching the Section Editor:
# fdisk /dev/sdb
The system will prompt you to enter a command, enter "n" and press Enter:
Command (m for help): n
Next, specify the command "p", the section will be primary, press Enter:
Command action p
Enter the number of the created section "1", press Enter:
Partition number (1-4): 1
Next, the system will ask you to enter the numbers of the first and last sector "First sector" / "Last sector", wait for Enter, do not enter anything and agree with the "default" values.
Checking a new partition
The size of the partition must match the size of the disk.
~# fdisk -l Disk /dev/sdb: 10 GB,10737418240 bytes,20971520 sectors1305 cylinders,255 heads,63 sectors/trackUnits: cylinders of 16065*512=8225280 bytesDevice Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type/dev/sdb1 0,1,11023,254,636320964824209647629.9G 83 Linux