Ubuntu show wrong disk sizes, how to solve it?Need to reboot twice when Ubuntu 12.04.1 mdadm RAID1 degradedThe volume boot has only 40mb disk space remainingDrive failure in Raid1. Can't replaceBreaking boot-up Raid 1 array into two independent drivesChanging disk space allocationIs it possible to add some disk space to ubuntu installed drive?if then what is the way?RAID disk size is less than display in SSA on HP Proliant DL380 Gen10Ubuntu 17.10 UEFI with raidMultiple Hard disks raid 1 adding space?Help figuring out what's taking up disk space

Polar contour plot in Mathematica?

Airline power sockets shut down when I plug my computer in. How can I avoid that?

Testing control surfaces pre flight; what feedback does pilot recieve?

Output with the same length always

"A y'vama acquires herself through chalitza", really?

Does the Temple of the Gods spell nullify critical hits?

Did Wernher von Braun really have a "Saturn V painted as the V2"?

Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)

Installing the original OS X version onto a Mac?

Installing certbot - error - "nothing provides pyparsing"

What should I do with the stock I own if I anticipate there will be a recession?

Check disk usage of files returned with spaces

Have made several mistakes during the course of my PhD. Can't help but feel resentment. Can I get some advice about how to move forward?

When does The Truman Show take place?

Why is the name Bergson pronounced like Berksonne?

Why doesn't mathematics collapse down, even though humans quite often make mistakes in their proofs?

Designing a prison for a telekinetic race

Vegetarian dishes on Russian trains (European part)

Can I submit a paper computer science conference using an alias if using my real name can cause legal trouble in my original country

How to add a table description to a longtable?

Tabularx with hline and overrightarrow vertical spacing

Unsolved Problems due to Lack of Computational Power

Can 'in-' mean both 'in' and 'no'?

Metal that glows when near pieces of itself



Ubuntu show wrong disk sizes, how to solve it?


Need to reboot twice when Ubuntu 12.04.1 mdadm RAID1 degradedThe volume boot has only 40mb disk space remainingDrive failure in Raid1. Can't replaceBreaking boot-up Raid 1 array into two independent drivesChanging disk space allocationIs it possible to add some disk space to ubuntu installed drive?if then what is the way?RAID disk size is less than display in SSA on HP Proliant DL380 Gen10Ubuntu 17.10 UEFI with raidMultiple Hard disks raid 1 adding space?Help figuring out what's taking up disk space






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








7















I have a server with these characteristics:



CPU: Intel Core i7-2600
PLUSRAID Controller 4-Port SATA PCI-E - Adaptec 5405

One each, SATA SSD, 240 GB

Two each, SATA HDDs, 3.0 TB Enterprise

Two each, 8 GB DDR3 RAM



I installed Ubuntu on it, but it shows the space such as this, far less than the true capacity:




root@ns1 /boot # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


and




root@ns1 /boot # df -lh
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 5.3M 1.6G 1% /run
/dev/md2 226G 17G 198G 8% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/md1 488M 176M 287M 38% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0



I don't seem to be using all the space available on the sda disk at all, the two 3 terabytes disks.



What am I doing wrong?



Thanks!










share|improve this question





















  • 2





    What is wrong ?

    – Soren A
    Aug 6 at 12:45











  • Thanks Soren, you've pointed something out I hadn't even noticed. So the 3TB disk(s) are there in lsblk but the total capacity I'm allowed to use like this is far less than 3TB.

    – Lex Thoonen
    Aug 6 at 13:16







  • 9





    One problem I see here. You did a RAID 1 (mirrored) on a 3TB drive and a 240GB drive. The problem is that the Mirrored RAID will only be at the size of the SMALLEST drive so you will only get 240GB out of 3TB. Destroy your RAID and do them as separate drives but you will lose data so backup first.

    – Terrance
    Aug 6 at 13:53












  • Also of note, the SWAP partition should only be on the SSD and not the adaptec, which will slow it to a fraction of its possible performance

    – Richie Frame
    Aug 7 at 4:15











  • Thanks people! I'll go for this.

    – Lex Thoonen
    Aug 7 at 9:09


















7















I have a server with these characteristics:



CPU: Intel Core i7-2600
PLUSRAID Controller 4-Port SATA PCI-E - Adaptec 5405

One each, SATA SSD, 240 GB

Two each, SATA HDDs, 3.0 TB Enterprise

Two each, 8 GB DDR3 RAM



I installed Ubuntu on it, but it shows the space such as this, far less than the true capacity:




root@ns1 /boot # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


and




root@ns1 /boot # df -lh
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 5.3M 1.6G 1% /run
/dev/md2 226G 17G 198G 8% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/md1 488M 176M 287M 38% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0



I don't seem to be using all the space available on the sda disk at all, the two 3 terabytes disks.



What am I doing wrong?



Thanks!










share|improve this question





















  • 2





    What is wrong ?

    – Soren A
    Aug 6 at 12:45











  • Thanks Soren, you've pointed something out I hadn't even noticed. So the 3TB disk(s) are there in lsblk but the total capacity I'm allowed to use like this is far less than 3TB.

    – Lex Thoonen
    Aug 6 at 13:16







  • 9





    One problem I see here. You did a RAID 1 (mirrored) on a 3TB drive and a 240GB drive. The problem is that the Mirrored RAID will only be at the size of the SMALLEST drive so you will only get 240GB out of 3TB. Destroy your RAID and do them as separate drives but you will lose data so backup first.

    – Terrance
    Aug 6 at 13:53












  • Also of note, the SWAP partition should only be on the SSD and not the adaptec, which will slow it to a fraction of its possible performance

    – Richie Frame
    Aug 7 at 4:15











  • Thanks people! I'll go for this.

    – Lex Thoonen
    Aug 7 at 9:09














7












7








7








I have a server with these characteristics:



CPU: Intel Core i7-2600
PLUSRAID Controller 4-Port SATA PCI-E - Adaptec 5405

One each, SATA SSD, 240 GB

Two each, SATA HDDs, 3.0 TB Enterprise

Two each, 8 GB DDR3 RAM



I installed Ubuntu on it, but it shows the space such as this, far less than the true capacity:




root@ns1 /boot # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


and




root@ns1 /boot # df -lh
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 5.3M 1.6G 1% /run
/dev/md2 226G 17G 198G 8% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/md1 488M 176M 287M 38% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0



I don't seem to be using all the space available on the sda disk at all, the two 3 terabytes disks.



What am I doing wrong?



Thanks!










share|improve this question
















I have a server with these characteristics:



CPU: Intel Core i7-2600
PLUSRAID Controller 4-Port SATA PCI-E - Adaptec 5405

One each, SATA SSD, 240 GB

Two each, SATA HDDs, 3.0 TB Enterprise

Two each, 8 GB DDR3 RAM



I installed Ubuntu on it, but it shows the space such as this, far less than the true capacity:




root@ns1 /boot # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


and




root@ns1 /boot # df -lh
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 5.3M 1.6G 1% /run
/dev/md2 226G 17G 198G 8% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/md1 488M 176M 287M 38% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0



I don't seem to be using all the space available on the sda disk at all, the two 3 terabytes disks.



What am I doing wrong?



Thanks!







partitioning hard-drive raid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 6 at 16:50









K7AAY

4,6843 gold badges18 silver badges47 bronze badges




4,6843 gold badges18 silver badges47 bronze badges










asked Aug 6 at 12:43









Lex ThoonenLex Thoonen

383 bronze badges




383 bronze badges










  • 2





    What is wrong ?

    – Soren A
    Aug 6 at 12:45











  • Thanks Soren, you've pointed something out I hadn't even noticed. So the 3TB disk(s) are there in lsblk but the total capacity I'm allowed to use like this is far less than 3TB.

    – Lex Thoonen
    Aug 6 at 13:16







  • 9





    One problem I see here. You did a RAID 1 (mirrored) on a 3TB drive and a 240GB drive. The problem is that the Mirrored RAID will only be at the size of the SMALLEST drive so you will only get 240GB out of 3TB. Destroy your RAID and do them as separate drives but you will lose data so backup first.

    – Terrance
    Aug 6 at 13:53












  • Also of note, the SWAP partition should only be on the SSD and not the adaptec, which will slow it to a fraction of its possible performance

    – Richie Frame
    Aug 7 at 4:15











  • Thanks people! I'll go for this.

    – Lex Thoonen
    Aug 7 at 9:09













  • 2





    What is wrong ?

    – Soren A
    Aug 6 at 12:45











  • Thanks Soren, you've pointed something out I hadn't even noticed. So the 3TB disk(s) are there in lsblk but the total capacity I'm allowed to use like this is far less than 3TB.

    – Lex Thoonen
    Aug 6 at 13:16







  • 9





    One problem I see here. You did a RAID 1 (mirrored) on a 3TB drive and a 240GB drive. The problem is that the Mirrored RAID will only be at the size of the SMALLEST drive so you will only get 240GB out of 3TB. Destroy your RAID and do them as separate drives but you will lose data so backup first.

    – Terrance
    Aug 6 at 13:53












  • Also of note, the SWAP partition should only be on the SSD and not the adaptec, which will slow it to a fraction of its possible performance

    – Richie Frame
    Aug 7 at 4:15











  • Thanks people! I'll go for this.

    – Lex Thoonen
    Aug 7 at 9:09








2




2





What is wrong ?

– Soren A
Aug 6 at 12:45





What is wrong ?

– Soren A
Aug 6 at 12:45













Thanks Soren, you've pointed something out I hadn't even noticed. So the 3TB disk(s) are there in lsblk but the total capacity I'm allowed to use like this is far less than 3TB.

– Lex Thoonen
Aug 6 at 13:16






Thanks Soren, you've pointed something out I hadn't even noticed. So the 3TB disk(s) are there in lsblk but the total capacity I'm allowed to use like this is far less than 3TB.

– Lex Thoonen
Aug 6 at 13:16





9




9





One problem I see here. You did a RAID 1 (mirrored) on a 3TB drive and a 240GB drive. The problem is that the Mirrored RAID will only be at the size of the SMALLEST drive so you will only get 240GB out of 3TB. Destroy your RAID and do them as separate drives but you will lose data so backup first.

– Terrance
Aug 6 at 13:53






One problem I see here. You did a RAID 1 (mirrored) on a 3TB drive and a 240GB drive. The problem is that the Mirrored RAID will only be at the size of the SMALLEST drive so you will only get 240GB out of 3TB. Destroy your RAID and do them as separate drives but you will lose data so backup first.

– Terrance
Aug 6 at 13:53














Also of note, the SWAP partition should only be on the SSD and not the adaptec, which will slow it to a fraction of its possible performance

– Richie Frame
Aug 7 at 4:15





Also of note, the SWAP partition should only be on the SSD and not the adaptec, which will slow it to a fraction of its possible performance

– Richie Frame
Aug 7 at 4:15













Thanks people! I'll go for this.

– Lex Thoonen
Aug 7 at 9:09






Thanks people! I'll go for this.

– Lex Thoonen
Aug 7 at 9:09











3 Answers
3






active

oldest

votes


















12














It looks like that you have made raid1 (mirror) between partitions on your SSD and HDD. This is not best practice, since it more or less restricts performance to that of the slowest disk.



You can see that /boot, / and [ SWAP ] is defined on partitions on both /dev/sda and /dev/sdb.



sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


I would recommend that you reinstall Ubuntu using only SSD for /boot, / and SWAP. If yopu really want a raid1/mirror setup, you should buy one more 240 GB SSD, so you mirror between similar type and size disks.



Anyway .. if you take a look at your disks with gparted (or fdisk -l) you should see a huge unallocated amount of data on /dev/sda.






share|improve this answer

























  • It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

    – Richie Frame
    Aug 7 at 4:14


















2














The reason why your "3,0 TB" drive (sda) shows up as 2.7T is most likely due to different units being used.



The size is probably about 2.7 Tebibyte, which is approximately the same as 3.0 TB.



You can read about it here: https://en.wikipedia.org/wiki/Tebibyte






share|improve this answer

























  • Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

    – Lex Thoonen
    Aug 6 at 13:23






  • 1





    @LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

    – Terrance
    Aug 6 at 13:44



















2














lsblk shows all disk partitions, while df -lh only shows your mounted partitions.






share|improve this answer






















  • 1





    Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

    – Soren A
    Aug 6 at 13:45











  • You are right. I removed the example.

    – user3140225
    Aug 6 at 13:47













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163809%2fubuntu-show-wrong-disk-sizes-how-to-solve-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









12














It looks like that you have made raid1 (mirror) between partitions on your SSD and HDD. This is not best practice, since it more or less restricts performance to that of the slowest disk.



You can see that /boot, / and [ SWAP ] is defined on partitions on both /dev/sda and /dev/sdb.



sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


I would recommend that you reinstall Ubuntu using only SSD for /boot, / and SWAP. If yopu really want a raid1/mirror setup, you should buy one more 240 GB SSD, so you mirror between similar type and size disks.



Anyway .. if you take a look at your disks with gparted (or fdisk -l) you should see a huge unallocated amount of data on /dev/sda.






share|improve this answer

























  • It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

    – Richie Frame
    Aug 7 at 4:14















12














It looks like that you have made raid1 (mirror) between partitions on your SSD and HDD. This is not best practice, since it more or less restricts performance to that of the slowest disk.



You can see that /boot, / and [ SWAP ] is defined on partitions on both /dev/sda and /dev/sdb.



sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


I would recommend that you reinstall Ubuntu using only SSD for /boot, / and SWAP. If yopu really want a raid1/mirror setup, you should buy one more 240 GB SSD, so you mirror between similar type and size disks.



Anyway .. if you take a look at your disks with gparted (or fdisk -l) you should see a huge unallocated amount of data on /dev/sda.






share|improve this answer

























  • It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

    – Richie Frame
    Aug 7 at 4:14













12












12








12







It looks like that you have made raid1 (mirror) between partitions on your SSD and HDD. This is not best practice, since it more or less restricts performance to that of the slowest disk.



You can see that /boot, / and [ SWAP ] is defined on partitions on both /dev/sda and /dev/sdb.



sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


I would recommend that you reinstall Ubuntu using only SSD for /boot, / and SWAP. If yopu really want a raid1/mirror setup, you should buy one more 240 GB SSD, so you mirror between similar type and size disks.



Anyway .. if you take a look at your disks with gparted (or fdisk -l) you should see a huge unallocated amount of data on /dev/sda.






share|improve this answer













It looks like that you have made raid1 (mirror) between partitions on your SSD and HDD. This is not best practice, since it more or less restricts performance to that of the slowest disk.



You can see that /boot, / and [ SWAP ] is defined on partitions on both /dev/sda and /dev/sdb.



sdb 8:16 1 238.4G 0 disk
├─sdb2 8:18 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sdb3 8:19 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sdb1 8:17 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]
sda 8:0 1 2.7T 0 disk
├─sda2 8:2 1 512M 0 part
│ └─md1 9:1 0 511.4M 0 raid1 /boot
├─sda3 8:3 1 229.9G 0 part
│ └─md2 9:2 0 229.8G 0 raid1 /
└─sda1 8:1 1 8G 0 part
└─md0 9:0 0 8G 0 raid1 [SWAP]


I would recommend that you reinstall Ubuntu using only SSD for /boot, / and SWAP. If yopu really want a raid1/mirror setup, you should buy one more 240 GB SSD, so you mirror between similar type and size disks.



Anyway .. if you take a look at your disks with gparted (or fdisk -l) you should see a huge unallocated amount of data on /dev/sda.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 6 at 13:55









Soren ASoren A

3,9241 gold badge11 silver badges27 bronze badges




3,9241 gold badge11 silver badges27 bronze badges















  • It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

    – Richie Frame
    Aug 7 at 4:14

















  • It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

    – Richie Frame
    Aug 7 at 4:14
















It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

– Richie Frame
Aug 7 at 4:14





It also looks like sda is a hardware raid mirror, in addition to THAT being a mirror of sdb.

– Richie Frame
Aug 7 at 4:14













2














The reason why your "3,0 TB" drive (sda) shows up as 2.7T is most likely due to different units being used.



The size is probably about 2.7 Tebibyte, which is approximately the same as 3.0 TB.



You can read about it here: https://en.wikipedia.org/wiki/Tebibyte






share|improve this answer

























  • Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

    – Lex Thoonen
    Aug 6 at 13:23






  • 1





    @LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

    – Terrance
    Aug 6 at 13:44
















2














The reason why your "3,0 TB" drive (sda) shows up as 2.7T is most likely due to different units being used.



The size is probably about 2.7 Tebibyte, which is approximately the same as 3.0 TB.



You can read about it here: https://en.wikipedia.org/wiki/Tebibyte






share|improve this answer

























  • Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

    – Lex Thoonen
    Aug 6 at 13:23






  • 1





    @LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

    – Terrance
    Aug 6 at 13:44














2












2








2







The reason why your "3,0 TB" drive (sda) shows up as 2.7T is most likely due to different units being used.



The size is probably about 2.7 Tebibyte, which is approximately the same as 3.0 TB.



You can read about it here: https://en.wikipedia.org/wiki/Tebibyte






share|improve this answer













The reason why your "3,0 TB" drive (sda) shows up as 2.7T is most likely due to different units being used.



The size is probably about 2.7 Tebibyte, which is approximately the same as 3.0 TB.



You can read about it here: https://en.wikipedia.org/wiki/Tebibyte







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 6 at 13:17









EliasElias

3891 silver badge13 bronze badges




3891 silver badge13 bronze badges















  • Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

    – Lex Thoonen
    Aug 6 at 13:23






  • 1





    @LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

    – Terrance
    Aug 6 at 13:44


















  • Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

    – Lex Thoonen
    Aug 6 at 13:23






  • 1





    @LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

    – Terrance
    Aug 6 at 13:44

















Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

– Lex Thoonen
Aug 6 at 13:23





Thank you, but still, it seems like this I only have access to 230 GB, it would be nice if I could use the 2.7 TB

– Lex Thoonen
Aug 6 at 13:23




1




1





@LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

– Terrance
Aug 6 at 13:44






@LexThoonen You do have access to 240GB. Run dmesg | grep blocks in a terminal and you will see something like [ 3.989812] sd 4:0:0:0: [sde] 468862128 512-byte logical blocks: (240 GB/224 GiB) which shows that you are seeing the GiB of the drive and not the GB. The 3TB drive shows up like [ 3.462108] sd 10:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)

– Terrance
Aug 6 at 13:44












2














lsblk shows all disk partitions, while df -lh only shows your mounted partitions.






share|improve this answer






















  • 1





    Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

    – Soren A
    Aug 6 at 13:45











  • You are right. I removed the example.

    – user3140225
    Aug 6 at 13:47















2














lsblk shows all disk partitions, while df -lh only shows your mounted partitions.






share|improve this answer






















  • 1





    Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

    – Soren A
    Aug 6 at 13:45











  • You are right. I removed the example.

    – user3140225
    Aug 6 at 13:47













2












2








2







lsblk shows all disk partitions, while df -lh only shows your mounted partitions.






share|improve this answer















lsblk shows all disk partitions, while df -lh only shows your mounted partitions.







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 6 at 13:47

























answered Aug 6 at 13:18









user3140225user3140225

8845 silver badges17 bronze badges




8845 silver badges17 bronze badges










  • 1





    Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

    – Soren A
    Aug 6 at 13:45











  • You are right. I removed the example.

    – user3140225
    Aug 6 at 13:47












  • 1





    Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

    – Soren A
    Aug 6 at 13:45











  • You are right. I removed the example.

    – user3140225
    Aug 6 at 13:47







1




1





Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

– Soren A
Aug 6 at 13:45





Don't do that .. sda2 seems to be a part of a raid1 (mirror) ...

– Soren A
Aug 6 at 13:45













You are right. I removed the example.

– user3140225
Aug 6 at 13:47





You are right. I removed the example.

– user3140225
Aug 6 at 13:47

















draft saved

draft discarded
















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163809%2fubuntu-show-wrong-disk-sizes-how-to-solve-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림