Solved

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

Posted on 2009-04-09
4
356 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 500 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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…

749 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