?
Solved

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

Posted on 2009-04-09
4
Medium Priority
?
359 Views
Last Modified: 2013-11-14
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
Comment
Question by:areyouready344
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
dolomiti earned 2000 total points
ID: 24113969
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
 
LVL 17

Expert Comment

by:Gerald Connolly
ID: 24126548
What flavour of Linux and what storage?
0
 

Author Closing Comment

by:areyouready344
ID: 31568663
dd command work out great
0
 
LVL 7

Expert Comment

by:dolomiti
ID: 24277861
hi,
thank,
probably df not dd
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question