Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-26-2010, 03:18 PM   #1
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
command to display the device-fs-uuid-mount point

Hi, I need a command to display the next info from my hdd:

device name - filesystem - uuid - mount point

I found blkid but the mount point is not displayed, I've already look in man but there is no parameter for that, my question is: is there another that can help me?

Old 10-26-2010, 03:37 PM   #2
LQ Newbie
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
cd /dev/disk
ls -l *

and you can also find some info with 'mount' and no other options.

Depending on your distro you may need to do it as root or sudo
0 members found this post helpful.
Old 10-26-2010, 03:44 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,525
Blog Entries: 15

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
/dev/dsk won't give you all block devices - just the full disk devices. (For example it wouldn't show /dev/mapper LVM devices or /dev/md software RAID devices.)

The filesystem mountpoint is not part of the device. That is to say you can mount a filesystem on any mountpoint you want.

If you run "blkid" with no flags it should show you all block devices with details including LABEL (if any), type and uuid. You can then grep for the device name and LABEL (if any) in /etc/fstab to determine normal mountpoint and run df -h to determine current mount point. Essentially you'd have to to write a script to relate all this info together the way you want it. Note that some devices (e.g. swap) will show up in blkid but do not have mount points but rather special purposes for them. The normal swap devices can be seen in /etc/fstab.

Last edited by MensaWater; 10-26-2010 at 03:51 PM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change UUID - Edit UUID using the dd command GMHilltop Linux - Newbie 10 10-28-2010 08:39 PM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 06:02 PM
device mount point/driver access richmgb Linux - Embedded & Single-board computer 2 04-18-2009 04:13 AM
find mount point given device kornelix Programming 2 04-13-2007 10:01 AM
would it make sense to have 2 mount point for 1 device? sirpelidor Linux - Hardware 3 12-27-2003 01:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration