How can I know disk usage with unmounted disk? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
As far as I know, du or df can be used in MOUNTED partition only. I don't want to mount them, but I wanna know their usage, What command I can peek that info?

you can try
tune2fs -l /dev/sdx (your unmounted parition)
or
parted /dev/sdx print al

Untested but GNU df supports --direct. I don't have access to any linux at the moment. But give it a try.
df --direct /dev/sda2

Related

Hardlinks in linux command line input [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Hard links cannot span physical devices. Exactly this statement I read while understanding the concept of hard link in Linux. Can anyone help me to understand this ?
A filename, is a pointer to an inode.
So if you're not on the same drive, it's impossible to link a file, because the inodes belongs to a specific disk

How to automatically allocate the rest of free space to partition? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have a question related to the configuration of a partition-table in "Foreman". As you can see in the screenshot below, I allocate 200 GB of free space to the /-Directory.
The problem: how can I allocate the rest of free space to this partition? Your answer would really help me out... I'm looking forward!
Thanks and best regards,
You can use a combination of --grow and --maxsize
logvol / --size=1 --grow --name=lv_root --vgname=vg00
or --percent
logvol / --percent=100 --name=lv_root --vgname=vg00
Option --percent can not be used together with the --size and --grow options.

/tmp usage in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How I can find out how much /tmp space is required by an application. Generally sometime I see /tmp is full and get error saying not able to write to /tmp. So is there any way to find out how much /tmp space is required by an application ?
There is no way. Programs use /tmp on an ad-hoc basis.

How to check which user is positioned in a directory on linux terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
yesterday i was shown that i can't unmount a mounted partition (like /media/test or /mnt/test) if someone is using the terminal in that directory (maybe in ssh connection).
he used a command that listed the user on that directory with pid of process in order to kill the pid and unmount the partitions.
I don't remember the command, could you help me?
ty
This one works nice:
lsof | grep '^bash.*cwd'

How to shrink an ext4 partition without formatting it? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Recently i installed Ubuntu 13.04 and allocated 20 GB for it. The system got installed space less than 10 GB. Now, can i shrink it to 10 GB without formatting it?
Thats to say, i don't want to have large empty space in the partition.
You could use the resize2fs command.
However, I would suggest to backup the most important files (on e.g. an USB key) before doing that (e.g. /etc/ and some of /home/ )
See also this question...
BTW, 20GB for the system partition is not that much.....

Resources