LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   HDD size problem (https://www.linuxquestions.org/questions/linux-server-73/hdd-size-problem-4175518337/)

!! hack-back !! 09-12-2014 06:40 AM

HDD size problem
 
i add new hard drives
HDD = 3 TERRA

Code:

root@debian:~# fdisk -l

Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
191 heads, 5 sectors/track, 6136683 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x17b9c867

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1            2048  4294967294  2147482623+  83  Linux



but in df -h its says it is just 2 TERRA

Code:

root@debian:~# df -h
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  212G  1.6G  199G  1% /
udev                                                    10M    0  10M  0% /dev
tmpfs                                                  3.2G  280K  3.2G  1% /run
/dev/disk/by-uuid/c39afcd4-8634-4a67-a3d4-821e7e506ca5  212G  1.6G  199G  1% /
tmpfs                                                  5.0M    0  5.0M  0% /run/lock
tmpfs                                                  8.1G    0  8.1G  0% /run/shm
/dev/sda1                                              2.0T  33M  2.0T  1% /cache01

in saidar also the same ... so what is the problem ???

Ser Olmy 09-12-2014 06:44 AM

fdisk is used to create and manipulate old-style MBR partition tables, which have a hard partition size limit of 2 Tb.

As you can see from the output form fdisk, the drive reports the number of sectors to be 5860533168, but your partition (/dev/sda1) only covers sectors 2048 - 4294967294. To use the entire drive, you'll have to switch to a GUID partition table (GPT), which also means using a different partitioning tool (like parted).

!! hack-back !! 09-12-2014 06:52 AM

so i cant use reiserfs ??

!! hack-back !! 09-12-2014 07:00 AM

ok i used gdisk+reiserfs

and problem solved
now i have

/dev/sdf1 2.8T 33M 2.8T 1% /cache05

but my next question is , gdisk dont make problem with squid cache ??
thanks.

Ser Olmy 09-12-2014 07:43 AM

Squid is an application. It deals with files in a file system, and does not care about partitions or partition types.

!! hack-back !! 09-12-2014 07:59 AM

Thank you .


All times are GMT -5. The time now is 09:56 AM.