uuid problem
Hi all
How can I check the UUID of the disk partition in which I am currently working. regards _Linux_Learner |
Are you using multiple partitions? if not "cat /dev/disk/by-uuid" will show you.
|
reply
Yes I am using multiple partitions. So I have more than more than uuids.
So now what to do. regards _Linux_Learner |
Try this:
Quote:
|
Use the command "blkid" as any user.
|
More descripion
Let me be more descriptive. Suppose I am working in Desktop directory. Now I want to now that what is the uuid of the partition on which this Desktop directory is present.
blkid will print all the uuids which will force me to select the correct one that I need. regards _Linux_Learner |
Quote:
Is it that you don't know how you hard drive is partitioned? If this is the case you can use the "df" command, normally used to determine disk usage, to print a list of your partitions, and what parent directories are mounted on them. The only thing that this command won't print is swap partitions, but you can determine this by process of elimination. |
^
Or run mount without arguments. |
Quote:
|
Here are some steps to do what you want from the command line; they could be implemented in a script
Code:
c@CW8:~$ df ~/Desktop |
Hi Catkin
This worked the way I expected. Thanks for your help. Thanks to others also. regards _Linux_Learner |
All times are GMT -5. The time now is 09:48 AM. |