df shows wrong diskspace raspberry pi
I used to have a Raspberry Pi Model B+ with an 8GB card and NOOBS, now I upgraded to a card with 32GB, but my df -h command outputs this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 5.7G 5.0G 358M 94% /
devtmpfs 481M 0 481M 0% /dev
tmpfs 486M 0 486M 0% /dev/shm
tmpfs 486M 13M 473M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 486M 0 486M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 21M 48M 31% /boot
tmpfs 98M 0 98M 0% /run/user/1000
/dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS
It says the /dev/root fylesystem is 5.7GB, but shoudn't it be bigger?
I've tried sudo raspi-config
filesystem expand but it says it already is expandes. Am I just understanding something wrong or is this a bug?
linux partitioning filesystems raspberry-pi
add a comment |
I used to have a Raspberry Pi Model B+ with an 8GB card and NOOBS, now I upgraded to a card with 32GB, but my df -h command outputs this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 5.7G 5.0G 358M 94% /
devtmpfs 481M 0 481M 0% /dev
tmpfs 486M 0 486M 0% /dev/shm
tmpfs 486M 13M 473M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 486M 0 486M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 21M 48M 31% /boot
tmpfs 98M 0 98M 0% /run/user/1000
/dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS
It says the /dev/root fylesystem is 5.7GB, but shoudn't it be bigger?
I've tried sudo raspi-config
filesystem expand but it says it already is expandes. Am I just understanding something wrong or is this a bug?
linux partitioning filesystems raspberry-pi
Your card is probably/dev/mmcblk0
and/dev/root
is just a symlink to/dev/mmcblk0p1
or so. Since there is/dev/mmcblk0p5
, I expect many partitions to exist and take space from the 8 GB pool. What is the output ofls -l /dev/root
?gdisk -l /dev/mmcblk0
?swapon
? (withsudo
if needed). Please respond by editing the question.
– Kamil Maciorowski
Feb 12 at 6:49
Did you just copy the old card to the new one usingdd
or similar? If so you need to resize the partitions.
– Seth
Feb 12 at 9:57
add a comment |
I used to have a Raspberry Pi Model B+ with an 8GB card and NOOBS, now I upgraded to a card with 32GB, but my df -h command outputs this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 5.7G 5.0G 358M 94% /
devtmpfs 481M 0 481M 0% /dev
tmpfs 486M 0 486M 0% /dev/shm
tmpfs 486M 13M 473M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 486M 0 486M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 21M 48M 31% /boot
tmpfs 98M 0 98M 0% /run/user/1000
/dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS
It says the /dev/root fylesystem is 5.7GB, but shoudn't it be bigger?
I've tried sudo raspi-config
filesystem expand but it says it already is expandes. Am I just understanding something wrong or is this a bug?
linux partitioning filesystems raspberry-pi
I used to have a Raspberry Pi Model B+ with an 8GB card and NOOBS, now I upgraded to a card with 32GB, but my df -h command outputs this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 5.7G 5.0G 358M 94% /
devtmpfs 481M 0 481M 0% /dev
tmpfs 486M 0 486M 0% /dev/shm
tmpfs 486M 13M 473M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 486M 0 486M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 21M 48M 31% /boot
tmpfs 98M 0 98M 0% /run/user/1000
/dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS
It says the /dev/root fylesystem is 5.7GB, but shoudn't it be bigger?
I've tried sudo raspi-config
filesystem expand but it says it already is expandes. Am I just understanding something wrong or is this a bug?
linux partitioning filesystems raspberry-pi
linux partitioning filesystems raspberry-pi
asked Feb 10 at 18:14
JojoJojo
1
1
Your card is probably/dev/mmcblk0
and/dev/root
is just a symlink to/dev/mmcblk0p1
or so. Since there is/dev/mmcblk0p5
, I expect many partitions to exist and take space from the 8 GB pool. What is the output ofls -l /dev/root
?gdisk -l /dev/mmcblk0
?swapon
? (withsudo
if needed). Please respond by editing the question.
– Kamil Maciorowski
Feb 12 at 6:49
Did you just copy the old card to the new one usingdd
or similar? If so you need to resize the partitions.
– Seth
Feb 12 at 9:57
add a comment |
Your card is probably/dev/mmcblk0
and/dev/root
is just a symlink to/dev/mmcblk0p1
or so. Since there is/dev/mmcblk0p5
, I expect many partitions to exist and take space from the 8 GB pool. What is the output ofls -l /dev/root
?gdisk -l /dev/mmcblk0
?swapon
? (withsudo
if needed). Please respond by editing the question.
– Kamil Maciorowski
Feb 12 at 6:49
Did you just copy the old card to the new one usingdd
or similar? If so you need to resize the partitions.
– Seth
Feb 12 at 9:57
Your card is probably
/dev/mmcblk0
and /dev/root
is just a symlink to /dev/mmcblk0p1
or so. Since there is /dev/mmcblk0p5
, I expect many partitions to exist and take space from the 8 GB pool. What is the output of ls -l /dev/root
? gdisk -l /dev/mmcblk0
? swapon
? (with sudo
if needed). Please respond by editing the question.– Kamil Maciorowski
Feb 12 at 6:49
Your card is probably
/dev/mmcblk0
and /dev/root
is just a symlink to /dev/mmcblk0p1
or so. Since there is /dev/mmcblk0p5
, I expect many partitions to exist and take space from the 8 GB pool. What is the output of ls -l /dev/root
? gdisk -l /dev/mmcblk0
? swapon
? (with sudo
if needed). Please respond by editing the question.– Kamil Maciorowski
Feb 12 at 6:49
Did you just copy the old card to the new one using
dd
or similar? If so you need to resize the partitions.– Seth
Feb 12 at 9:57
Did you just copy the old card to the new one using
dd
or similar? If so you need to resize the partitions.– Seth
Feb 12 at 9:57
add a comment |
1 Answer
1
active
oldest
votes
Kindly check if this command present in your OS or not resize2fs
If present, use below command to refresh value
resize2fs /dev/root
If you are using different OS, Please find alternative command of resize2fs
which will help you to refresh values.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
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%2fsuperuser.com%2fquestions%2f1404202%2fdf-shows-wrong-diskspace-raspberry-pi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Kindly check if this command present in your OS or not resize2fs
If present, use below command to refresh value
resize2fs /dev/root
If you are using different OS, Please find alternative command of resize2fs
which will help you to refresh values.
add a comment |
Kindly check if this command present in your OS or not resize2fs
If present, use below command to refresh value
resize2fs /dev/root
If you are using different OS, Please find alternative command of resize2fs
which will help you to refresh values.
add a comment |
Kindly check if this command present in your OS or not resize2fs
If present, use below command to refresh value
resize2fs /dev/root
If you are using different OS, Please find alternative command of resize2fs
which will help you to refresh values.
Kindly check if this command present in your OS or not resize2fs
If present, use below command to refresh value
resize2fs /dev/root
If you are using different OS, Please find alternative command of resize2fs
which will help you to refresh values.
answered Feb 12 at 6:14
bhupender singhbhupender singh
242
242
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1404202%2fdf-shows-wrong-diskspace-raspberry-pi%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
Your card is probably
/dev/mmcblk0
and/dev/root
is just a symlink to/dev/mmcblk0p1
or so. Since there is/dev/mmcblk0p5
, I expect many partitions to exist and take space from the 8 GB pool. What is the output ofls -l /dev/root
?gdisk -l /dev/mmcblk0
?swapon
? (withsudo
if needed). Please respond by editing the question.– Kamil Maciorowski
Feb 12 at 6:49
Did you just copy the old card to the new one using
dd
or similar? If so you need to resize the partitions.– Seth
Feb 12 at 9:57