(Solved) Trying to create a single data drive installation

  • I am trying to set up OMV with a single WD Red 2TB drive (shows up in the interface as 1.82TiB) which I expected.


    I then created an ext4 file system on the drive and once mounted it's capacity shows as 1007.93GiB (smaller than I expected).


    Did I do something wrong or is my hard drive math faulty?


    PS: I am using a 32bit Pentium 4 if that makes a difference


    Thanks

  • df -hT /dev/sdb1 shows


    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sdb1 ext4 1008G 12G 997G 2% /media/f26608ff-b42c-4749-b84c-bca19a0139bb


    If that is not what you meant how to I find out what you are asking?

  • root@omv:~# gdisk -l /dev/sdb
    GPT fdisk (gdisk) version 0.8.1


    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present


    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 3BFC4AE3-11AE-4373-8046-5DC0BFB92C13
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 3907029134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 1759547501 sectors (839.0 GiB)


    Number Start (sector) End (sector) Size Code Name
    1 2048 2147483647 1024.0 GiB 8300
    root@omv:~#

  • Okay for anyone interested here is how I solved this issue:


    parted /dev/sdb
    mkpart gpt
    unit TB
    mkpart primary 0.00TB 2.00TB
    quit
    mkfs.ext4 /dev/sdb1


    I can only suppose that OMV's/Debians process for creating file systems on 32 bit hardware makes some assumptions. Either way I can now see 2 TB's of my disk.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!