LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-26-2010, 02:18 PM   #1
htamayo
Member
 
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?

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

Rep: Reputation: 0
Try:
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, 02:44 PM   #3
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
/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 02:51 PM.
 
1 members found this post helpful.
  


Reply


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 07:39 PM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
device mount point/driver access richmgb Linux - Embedded & Single-board computer 2 04-18-2009 03:13 AM
find mount point given device kornelix Programming 2 04-13-2007 09:01 AM
would it make sense to have 2 mount point for 1 device? sirpelidor Linux - Hardware 3 12-27-2003 12:10 PM


All times are GMT -5. The time now is 10:02 AM.

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