Finding UUID to automount my external HDD

iamlegion

New Member
Joined
Jul 21, 2021
Messages
9
Reaction score
1
Credits
65
it says i only have a PTUUID when i do blkid. I dont see any UUID for my harddrive. ive attached screenshots of my terminal. Im currently on Ubuntu 20.04. any help would be appreciated. Im very new to linux so thanks
 

Attachments

  • Screenshot from 2021-07-20 20-05-02.png
    Screenshot from 2021-07-20 20-05-02.png
    101.7 KB · Views: 223
  • Screenshot from 2021-07-20 20-05-22.png
    Screenshot from 2021-07-20 20-05-22.png
    108.4 KB · Views: 233
  • Screenshot from 2021-07-20 20-05-46.png
    Screenshot from 2021-07-20 20-05-46.png
    81.6 KB · Views: 216


Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
4,790
Reaction score
4,106
Credits
27,548
G'day iamlegion, Welcome to Linux.org

Is the uuid you are after....for an External hard drive ?

oops...sorry...it is in your title !

In ubuntu here will be a software centre or software manager...a repository of apps included on the pc

Type, GParted in and it will pop up if it is installed....you will need to provide your password...

Allow gparted to auto scan your set up

in the top right hand corner of gparted there will be a drop down list with your hard drives, usb sticks external hard drives listed.

Click on the external hard drive....and then double click on it in the main window.
or you can right click on it in the main window and choose information.

you will see the uuid there.

BE CAREFUL...SELECTING THE WRONG DRIVE CAN RESULT IN MAJOR DATA LOSS...

Be Very Careful
 
Last edited:

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,326
Reaction score
1,127
Credits
12,123
You can also find the uuid's in the rootfs.

Go to /dev/disk/by-uuid

Here's other cmd's that you can use too:


 
OP
I

iamlegion

New Member
Joined
Jul 21, 2021
Messages
9
Reaction score
1
Credits
65
G'day iamlegion, Welcome to Linux.org

Is the uuid you are after....for an External hard drive ?

oops...sorry...it is in your title !

In ubuntu here will be a software centre or software manager...a repository of apps included on the pc

Type, GParted in and it will pop up if it is installed....you will need to provide your password...

Allow gparted to auto scan your set up

in the top right hand corner of gparted there will be a drop down list with your hard drives, usb sticks external hard drives listed.

Click on the external hard drive....and then double click on it in the main window.
or you can right click on it in the main window and choose information.

you will see the uuid there.

BE CAREFUL...SELECTING THE WRONG DRIVE CAN RESULT IN MAJOR DATA LOSS...

Be Very Careful





Im still not seeing any UUID. i all i get is this(see attached file)
 

Attachments

  • Screenshot from 2021-07-20 23-16-221.png
    Screenshot from 2021-07-20 23-16-221.png
    154.2 KB · Views: 211
OP
I

iamlegion

New Member
Joined
Jul 21, 2021
Messages
9
Reaction score
1
Credits
65
You can also find the uuid's in the rootfs.

Go to /dev/disk/by-uuid

Here's other cmd's that you can use too:




all i get is this: (see attached file) Im trying to get the UUID for /dev/sdb
 

Attachments

  • Screenshot from 2021-07-20 23-24-23.png
    Screenshot from 2021-07-20 23-24-23.png
    242.4 KB · Views: 215

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
4,790
Reaction score
4,106
Credits
27,548
That may be because the hdd has not been formatted
 

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,326
Reaction score
1,127
Credits
12,123
Im still not seeing any UUID. i all i get is this(see attached file)
In your screenshot that's for /dev/sdb.
How about for /dev/sda/?

Did you try looking in the root file system /dev/disk/by-uuid?
 
OP
I

iamlegion

New Member
Joined
Jul 21, 2021
Messages
9
Reaction score
1
Credits
65
In your screenshot that's for /dev/sdb.
How about for /dev/sda/?

Did you try looking in the root file system /dev/disk/by-uuid?


/dev/sda is my internal hard drive and i need the UUID for my external hdd /dev/sdb
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top