• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

how to determine which disk partition a root directory belongs to on a linux OS?

I"m trying to determine which disk partition the /opt directory belongs to? The mount command does not display this information, which linux command can answer this question?
0
areyouready344
Asked:
areyouready344
  • 2
1 Solution
 
dolomitiCommented:
hi,
you can use
# df
or
# fdisk -l
(warning with fdisk, becouse it is a disk partitioner, however (see docs if you want), fdisk -l
is a passive command, and also active versions as fdisk /dev/sdb, require saving of modify).

df is a daily command, as ls, you can see %usage
fdisk is a service command, you use just when make partitions or general info that you can store in your doc.

bye
vic
0
 
Gerald ConnollyCommented:
What flavour of Linux and what storage?
0
 
areyouready344Author Commented:
dd command work out great
0
 
dolomitiCommented:
hi,
thank,
probably df not dd
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now