Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
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 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…

734 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