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:
~ # df -h
Filesystem Size Used Available Use% Mounted on
none 281.3M 324.0K 281.0M 0% /dev
/dev/sda2 392.3M 388.3M 0 100% /offload
/dev/sda3 14.1M 915.0K 12.9M 6% /cf
Editing the Partition table
Deleting a partition
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 sectors
1305 cylinders, 255 heads, 63 sectors/track
Units: cylinders of 16065 * 512 = 8225280 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/sdb1 0,1,1 1023,254,63 63 20964824 20964762 9.9G 83 Linux