Strange difference of disk size2019 Community Moderator Electiondf says I have 20G more disk space used than du. Why?How to mount sdb directly or using LVM partitions on sda?Resize MDADM/Software RAID underlying partition and filesystemCentos missing ext3.koExpanding root partition CentOS 6 With using fdiskLost space in LVMAdd scound Linux OS dual with Centos 7Ubuntu Server 16.04 filesystem usagebash script which will highlight maximum disk usage line on outputCentos6 - wrong fs type, bad option, bad superblock on /dev/mapper
Can I run 125kHz RF circuit on a breadboard?
Proving an identity involving cross products and coplanar vectors
Identifying "long and narrow" polygons in with PostGIS
How do I fix the group tension caused by my character stealing and possibly killing without provocation?
Is there anyway, I can have two passwords for my wi-fi
Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?
Air travel with refrigerated insulin
Sigmoid with a slope but no asymptotes?
El Dorado Word Puzzle II: Videogame Edition
Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?
How do you justify more code being written by following clean code practices?
Would this string work as string?
Why didn’t Eve recognize the little cockroach as a living organism?
What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?
Why didn't Voldemort know what Grindelwald looked like?
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Review your own paper in Mathematics
Can you identify this lizard-like creature I observed in the UK?
Pre-Employment Background Check With Consent For Future Checks
How to preserve electronics (computers, iPads and phones) for hundreds of years
Why does a 97 / 92 key piano exist by Bösendorfer?
Do I have to take mana from my deck or hand when tapping a dual land?
How much do grades matter for a future academia position?
Unable to disable Microsoft Store in domain environment
Strange difference of disk size
2019 Community Moderator Electiondf says I have 20G more disk space used than du. Why?How to mount sdb directly or using LVM partitions on sda?Resize MDADM/Software RAID underlying partition and filesystemCentos missing ext3.koExpanding root partition CentOS 6 With using fdiskLost space in LVMAdd scound Linux OS dual with Centos 7Ubuntu Server 16.04 filesystem usagebash script which will highlight maximum disk usage line on outputCentos6 - wrong fs type, bad option, bad superblock on /dev/mapper
I have a Google Cloud Instance:
When i check the disk space with two different command it show:
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 11G 3.1G 7.5G 30% /
devtmpfs 300M 0 300M 0% /dev
tmpfs 308M 0 308M 0% /dev/shm
tmpfs 308M 34M 274M 12% /run
tmpfs 308M 0 308M 0% /sys/fs/cgroup
/dev/sda1 210M 12M 198M 6% /boot/efi
tmpfs 62M 0 62M 0% /run/user/1001
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 200M 0 part /boot/efi
└─sda2 8:2 0 29.8G 0 part /
Why i have these difference?
I want that my disk have all the 30G of space and not 11G.
centos disk-usage google-cloud lsblk
New contributor
|
show 3 more comments
I have a Google Cloud Instance:
When i check the disk space with two different command it show:
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 11G 3.1G 7.5G 30% /
devtmpfs 300M 0 300M 0% /dev
tmpfs 308M 0 308M 0% /dev/shm
tmpfs 308M 34M 274M 12% /run
tmpfs 308M 0 308M 0% /sys/fs/cgroup
/dev/sda1 210M 12M 198M 6% /boot/efi
tmpfs 62M 0 62M 0% /run/user/1001
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 200M 0 part /boot/efi
└─sda2 8:2 0 29.8G 0 part /
Why i have these difference?
I want that my disk have all the 30G of space and not 11G.
centos disk-usage google-cloud lsblk
New contributor
1
Maybe the file system is not filling the whole partition. How did you create/modify the partition and file system?
– sudodus
18 hours ago
Assuming this is an ext* partition you can resize the disk withresize2fs /dev/sda2
– Philip Couling
18 hours ago
Please, don't post images of text.
– Kusalananda
18 hours ago
When i doresize2fs /dev/sda2
i receive:resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda2 Couldn't find valid filesystem superblock.
– Ale_info
18 hours ago
Please don't do that online.
– 炸鱼薯条德里克
18 hours ago
|
show 3 more comments
I have a Google Cloud Instance:
When i check the disk space with two different command it show:
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 11G 3.1G 7.5G 30% /
devtmpfs 300M 0 300M 0% /dev
tmpfs 308M 0 308M 0% /dev/shm
tmpfs 308M 34M 274M 12% /run
tmpfs 308M 0 308M 0% /sys/fs/cgroup
/dev/sda1 210M 12M 198M 6% /boot/efi
tmpfs 62M 0 62M 0% /run/user/1001
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 200M 0 part /boot/efi
└─sda2 8:2 0 29.8G 0 part /
Why i have these difference?
I want that my disk have all the 30G of space and not 11G.
centos disk-usage google-cloud lsblk
New contributor
I have a Google Cloud Instance:
When i check the disk space with two different command it show:
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 11G 3.1G 7.5G 30% /
devtmpfs 300M 0 300M 0% /dev
tmpfs 308M 0 308M 0% /dev/shm
tmpfs 308M 34M 274M 12% /run
tmpfs 308M 0 308M 0% /sys/fs/cgroup
/dev/sda1 210M 12M 198M 6% /boot/efi
tmpfs 62M 0 62M 0% /run/user/1001
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 200M 0 part /boot/efi
└─sda2 8:2 0 29.8G 0 part /
Why i have these difference?
I want that my disk have all the 30G of space and not 11G.
centos disk-usage google-cloud lsblk
centos disk-usage google-cloud lsblk
New contributor
New contributor
edited 11 hours ago
Ale_info
New contributor
asked 19 hours ago
Ale_infoAle_info
113
113
New contributor
New contributor
1
Maybe the file system is not filling the whole partition. How did you create/modify the partition and file system?
– sudodus
18 hours ago
Assuming this is an ext* partition you can resize the disk withresize2fs /dev/sda2
– Philip Couling
18 hours ago
Please, don't post images of text.
– Kusalananda
18 hours ago
When i doresize2fs /dev/sda2
i receive:resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda2 Couldn't find valid filesystem superblock.
– Ale_info
18 hours ago
Please don't do that online.
– 炸鱼薯条德里克
18 hours ago
|
show 3 more comments
1
Maybe the file system is not filling the whole partition. How did you create/modify the partition and file system?
– sudodus
18 hours ago
Assuming this is an ext* partition you can resize the disk withresize2fs /dev/sda2
– Philip Couling
18 hours ago
Please, don't post images of text.
– Kusalananda
18 hours ago
When i doresize2fs /dev/sda2
i receive:resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda2 Couldn't find valid filesystem superblock.
– Ale_info
18 hours ago
Please don't do that online.
– 炸鱼薯条德里克
18 hours ago
1
1
Maybe the file system is not filling the whole partition. How did you create/modify the partition and file system?
– sudodus
18 hours ago
Maybe the file system is not filling the whole partition. How did you create/modify the partition and file system?
– sudodus
18 hours ago
Assuming this is an ext* partition you can resize the disk with
resize2fs /dev/sda2
– Philip Couling
18 hours ago
Assuming this is an ext* partition you can resize the disk with
resize2fs /dev/sda2
– Philip Couling
18 hours ago
Please, don't post images of text.
– Kusalananda
18 hours ago
Please, don't post images of text.
– Kusalananda
18 hours ago
When i do
resize2fs /dev/sda2
i receive: resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda2 Couldn't find valid filesystem superblock.
– Ale_info
18 hours ago
When i do
resize2fs /dev/sda2
i receive: resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda2 Couldn't find valid filesystem superblock.
– Ale_info
18 hours ago
Please don't do that online.
– 炸鱼薯条德里克
18 hours ago
Please don't do that online.
– 炸鱼薯条德里克
18 hours ago
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
Ale_info is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507363%2fstrange-difference-of-disk-size%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ale_info is a new contributor. Be nice, and check out our Code of Conduct.
Ale_info is a new contributor. Be nice, and check out our Code of Conduct.
Ale_info is a new contributor. Be nice, and check out our Code of Conduct.
Ale_info is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507363%2fstrange-difference-of-disk-size%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Maybe the file system is not filling the whole partition. How did you create/modify the partition and file system?
– sudodus
18 hours ago
Assuming this is an ext* partition you can resize the disk with
resize2fs /dev/sda2
– Philip Couling
18 hours ago
Please, don't post images of text.
– Kusalananda
18 hours ago
When i do
resize2fs /dev/sda2
i receive:resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda2 Couldn't find valid filesystem superblock.
– Ale_info
18 hours ago
Please don't do that online.
– 炸鱼薯条德里克
18 hours ago