difference between output of df and blkid
Clash Royale CLAN TAG#URR8PPP
When I run blkid
I get
/dev/vda1 ...etc
/dev/vda2 ...etc
However, when I run df -h
I do not see the second drive. I only see
/dev/vda1 ...etc
/devtmpfs ...etc
Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?
disk-usage
add a comment |
When I run blkid
I get
/dev/vda1 ...etc
/dev/vda2 ...etc
However, when I run df -h
I do not see the second drive. I only see
/dev/vda1 ...etc
/devtmpfs ...etc
Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?
disk-usage
forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?
– Oscalation
Feb 25 '16 at 20:34
what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?
– Oscalation
Feb 25 '16 at 20:51
is blkid or lsblk the best, or something like fdisk -l ?
– Oscalation
Feb 25 '16 at 20:52
1.df
shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will findlsblk
best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.
– sudodus
Feb 1 at 9:18
add a comment |
When I run blkid
I get
/dev/vda1 ...etc
/dev/vda2 ...etc
However, when I run df -h
I do not see the second drive. I only see
/dev/vda1 ...etc
/devtmpfs ...etc
Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?
disk-usage
When I run blkid
I get
/dev/vda1 ...etc
/dev/vda2 ...etc
However, when I run df -h
I do not see the second drive. I only see
/dev/vda1 ...etc
/devtmpfs ...etc
Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?
disk-usage
disk-usage
asked Feb 25 '16 at 20:07
OscalationOscalation
3192618
3192618
forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?
– Oscalation
Feb 25 '16 at 20:34
what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?
– Oscalation
Feb 25 '16 at 20:51
is blkid or lsblk the best, or something like fdisk -l ?
– Oscalation
Feb 25 '16 at 20:52
1.df
shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will findlsblk
best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.
– sudodus
Feb 1 at 9:18
add a comment |
forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?
– Oscalation
Feb 25 '16 at 20:34
what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?
– Oscalation
Feb 25 '16 at 20:51
is blkid or lsblk the best, or something like fdisk -l ?
– Oscalation
Feb 25 '16 at 20:52
1.df
shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will findlsblk
best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.
– sudodus
Feb 1 at 9:18
forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?
– Oscalation
Feb 25 '16 at 20:34
forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?
– Oscalation
Feb 25 '16 at 20:34
what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?
– Oscalation
Feb 25 '16 at 20:51
what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?
– Oscalation
Feb 25 '16 at 20:51
is blkid or lsblk the best, or something like fdisk -l ?
– Oscalation
Feb 25 '16 at 20:52
is blkid or lsblk the best, or something like fdisk -l ?
– Oscalation
Feb 25 '16 at 20:52
1.
df
shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk
best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.– sudodus
Feb 1 at 9:18
1.
df
shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk
best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.– sudodus
Feb 1 at 9:18
add a comment |
2 Answers
2
active
oldest
votes
From the relevant man pages:
"blkid - locate/print block device attributes"
"df - report file system disk space usage"
So df tells you about disk space usage of the filesystems on those block devices.
In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
add a comment |
In short
df
shows the mounted file systems and details about themblkid
shows the block devices (drives, partitions) that are found and details about themlsblk
can give you a good overview of bothsudo lsblk -fm # in a wide terminal window
or, if your terminal window is not wide enough, for example only 80 columns
sudo lsblk -f
sudo lsblk -m
or, if you want to skip some details,
sudo lsblk -o model,name,size,fstype,label,mountpoint
add a comment |
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
);
);
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%2f265836%2fdifference-between-output-of-df-and-blkid%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the relevant man pages:
"blkid - locate/print block device attributes"
"df - report file system disk space usage"
So df tells you about disk space usage of the filesystems on those block devices.
In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
add a comment |
From the relevant man pages:
"blkid - locate/print block device attributes"
"df - report file system disk space usage"
So df tells you about disk space usage of the filesystems on those block devices.
In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
add a comment |
From the relevant man pages:
"blkid - locate/print block device attributes"
"df - report file system disk space usage"
So df tells you about disk space usage of the filesystems on those block devices.
In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.
From the relevant man pages:
"blkid - locate/print block device attributes"
"df - report file system disk space usage"
So df tells you about disk space usage of the filesystems on those block devices.
In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.
answered Feb 1 at 8:18
F1LinuxF1Linux
316
316
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
add a comment |
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
@Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T
– F1Linux
Feb 7 at 13:54
add a comment |
In short
df
shows the mounted file systems and details about themblkid
shows the block devices (drives, partitions) that are found and details about themlsblk
can give you a good overview of bothsudo lsblk -fm # in a wide terminal window
or, if your terminal window is not wide enough, for example only 80 columns
sudo lsblk -f
sudo lsblk -m
or, if you want to skip some details,
sudo lsblk -o model,name,size,fstype,label,mountpoint
add a comment |
In short
df
shows the mounted file systems and details about themblkid
shows the block devices (drives, partitions) that are found and details about themlsblk
can give you a good overview of bothsudo lsblk -fm # in a wide terminal window
or, if your terminal window is not wide enough, for example only 80 columns
sudo lsblk -f
sudo lsblk -m
or, if you want to skip some details,
sudo lsblk -o model,name,size,fstype,label,mountpoint
add a comment |
In short
df
shows the mounted file systems and details about themblkid
shows the block devices (drives, partitions) that are found and details about themlsblk
can give you a good overview of bothsudo lsblk -fm # in a wide terminal window
or, if your terminal window is not wide enough, for example only 80 columns
sudo lsblk -f
sudo lsblk -m
or, if you want to skip some details,
sudo lsblk -o model,name,size,fstype,label,mountpoint
In short
df
shows the mounted file systems and details about themblkid
shows the block devices (drives, partitions) that are found and details about themlsblk
can give you a good overview of bothsudo lsblk -fm # in a wide terminal window
or, if your terminal window is not wide enough, for example only 80 columns
sudo lsblk -f
sudo lsblk -m
or, if you want to skip some details,
sudo lsblk -o model,name,size,fstype,label,mountpoint
answered Feb 1 at 9:02
sudodussudodus
1,54837
1,54837
add a comment |
add a comment |
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%2f265836%2fdifference-between-output-of-df-and-blkid%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
forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?
– Oscalation
Feb 25 '16 at 20:34
what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?
– Oscalation
Feb 25 '16 at 20:51
is blkid or lsblk the best, or something like fdisk -l ?
– Oscalation
Feb 25 '16 at 20:52
1.
df
shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will findlsblk
best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.– sudodus
Feb 1 at 9:18