Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Trying to install a 4TB storage device on a CentOS 5.2 machine. Guess I need to use parted but can't figure out how to tell parted to use the max ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    45

    [SOLVED] What handles 4TB?

    Trying to install a 4TB storage device on a CentOS 5.2 machine.
    Guess I need to use parted but can't figure out how to tell parted to use the max partition size.

    Mike

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You can use GParted or PartedMagic LiveCDs for that. Both have Graphical Interface.
    Or install GParted in CentOS.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    You need to use a GPT/EFI table to support large volumes.

    Google > Tutorial

  4. #4
    Just Joined!
    Join Date
    Apr 2008
    Posts
    45
    Ya, I've been trying parted, reading about it, looking at documentation but I'm missing something. The raw total is around 4.3TB but I can't seem to find a way of finding out what size to enter as the secon entry to the starting/ending.

    (parted) mkpart primary 0 4000G
    (parted) print

    Model: AMCC 9500S-12 DISK (scsi)
    Disk /dev/sda: 4400GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 32.3kB 1801GB 1801GB primary

    (parted) quit

    This gave me a formatted/mounted size of;

    /dev/sda1 3.6T 68M 3.4T 1% /shared

    Close but, still wasting the rest of the storage and prefer not to have a second partition.

    Mike

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149

  6. #6
    Just Joined!
    Join Date
    Apr 2008
    Posts
    45
    Can you just explain what you are telling me? Reading about ext3 is not helping me. When I use gpt as the label, I am not given the option to use ext3.

    Do you mean when formatting?

    mkfs.ext3 /dev/sdx1

    I can't recall if I used mkfs or the above now?

    Anyhow, here's what I've done but now it's giving me different results.

    (parted) mklabel gpt
    Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want
    to continue?
    Yes/No? yes
    New disk label type? [msdos]?
    (parted) mkpart primary 0 4300G
    (parted) quit
    Information: Don't forget to update /etc/fstab, if necessary.

    # ./mkfs ext3 /dev/sda1
    mke2fs 1.39 (29-May-2006)
    mkfs.ext2: invalid blocks count - /dev/sda1

    Thanks.

    Mike

  7. #7
    Just Joined!
    Join Date
    Apr 2008
    Posts
    45
    Ah, ya, that was the error, not using the right mkfs version. Ya could have simply told me that .

    Using mkfs.ext3 /dev/sda1 gave me the rest of the storage and formatted it correctly.

    Mike

  8. #8
    Just Joined!
    Join Date
    Apr 2008
    Posts
    45
    So, how do I figure out how to use the max size of the storage then?

    For example, I have 4399.8GB says fdisk.
    So I used;
    mkpart primary 0 4300G
    but still end up with only;
    /dev/sda1 3.9T 195M 3.7T

  9. #9
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    ext3 loses some disk space (5%ish?) from journaling, inodes, superblocks, etc, you will never get 100% with ext3, also by default when making filesystem it reserves 5% blocks for root user, you can disable with
    Code:
    tune2fs -m 0 /dev/sda1

  10. #10
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    this is a little old, but has some information, you can get more disk space out of it with different FS
    Filesystems (ext3, reiser, xfs, jfs) comparison on Debian Etch

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...