USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

UUID: How to search for?

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security
View previous topic :: View next topic  
Author Message
julian516
Jr. Member


Joined: 16 Jul 2024
Posts: 90
Location: Columbia, KY

PostPosted: Mon Nov 16, 2024 12:03 am    Post subject: UUID: How to search for? Reply with quote

I have a problem with a new Ubuntu 9.10 installation. When my system boots it tells me it is waiting on a UUID and the message seems to indicate the swap file. This goes by too quickly for me to capture the message or the complete UUID. But I have a fragment, which is "6e4e13b5"

Now I do not have a UUID with that sequence according to bilkd. It is not in fstab. Similarly Gparted does not show it if I use "information" to look at the UUIDs for each partition on the system.

But something someplace holds a UUID value that starts with "6e4e13b5" And it seems to think it is needed as Ubuntu 9.10 boots, apparently in order to mount the swap file.

Brute force it may be, but can someone show me how to set up a search of my entire directory structure such that I will find the string "6e4e13b5" if it is there? Note this is part of a longer UUID string. I would like to know where this particular UUID resides.

I have been trying to understand man pages for grep, fgrep, etc and I'm afraid I don't get it. If you can help I would appreciate it.

And if you can point me to a book or article that explains how to do searches of this sort, thank you!



_________________
Ubuntu 9.10
Mandriva 2024 KDE
siduxKDE/antiX
Back to top
View user's profile Send private message
Germ
Keeper of the BIG STICK


Joined: 30 Apr 2024
Posts: 12452
Location: Planet Earth

PostPosted: Mon Nov 16, 2024 12:48 am    Post subject: Reply with quote

If I were you I would edit fstab and put the actual dev name in there instead of UUID. That's the first thing I do on a new install.

see what this gives you:
Code:
ls -l /dev/disk/by-uuid


This will tell you what's in fstab:
Code:
cat /etc/fstab


Try this if you know the partition device:
Code:
vol_id -u /dev/sda1

change sda1 to the partition you are looking for.

I assume you mean blkid instead of bilkd?



_________________
Laptop: Mandriva 2024 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2024 Free - kernel 2.6.33.2-1mib
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
julian516
Jr. Member


Joined: 16 Jul 2024
Posts: 90
Location: Columbia, KY

PostPosted: Mon Nov 16, 2024 3:50 am    Post subject: Reply with quote

OK Germ, we have it! I did cat /etc/fstab earlier and somehow missed the fact that the same swapfile was listed twice with two different UUIDs. Absolutely no idea how that happened excepting that I had unusual difficulty with the Ubuntu 9.10 installer this time around.

And I guess I have a vision problem? Smile

Thank you so much for your suggestions. I just restarted and for the first time with 9.10 I did not get a fleeting message that the system was waiting on UUID 6e4e13b5 .... swap ..., which makes perfect sense given the two UUIDs for the same partition.

This is my first tangle with UUIDs. You might have the right idea, I must say.



_________________
Ubuntu 9.10
Mandriva 2024 KDE
siduxKDE/antiX
Back to top
View user's profile Send private message
Germ
Keeper of the BIG STICK


Joined: 30 Apr 2024
Posts: 12452
Location: Planet Earth

PostPosted: Mon Nov 16, 2024 1:04 pm    Post subject: Reply with quote

Glad you got it sorted. Smile



_________________
Laptop: Mandriva 2024 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2024 Free - kernel 2.6.33.2-1mib
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2433
Location: MD, USA

PostPosted: Mon Nov 16, 2024 3:41 pm    Post subject: Reply with quote

I HATE distros using UUID for swap. For all other partitions, I don't mind, but it irritates me to no end with swap. Most distros don't give you an option to NOT reformat your swap partition when installing, so if I install 3 distros to test onto a pc, then after installing the 3rd, I have to go back and fix OS 1 & 2's fstab because they've got swap all outta whack. I actually did that this weekend, buntu was giving me errors because of swap having the wronig UUID.



_________________
Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Mon Nov 16, 2024 5:31 pm    Post subject: Reply with quote

unless timing is an ussue i tend to use the label feature.

that way i can move partitions, reformat, etc and as long as i keep the file system labels correct everything keeps working.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
julian516
Jr. Member


Joined: 16 Jul 2024
Posts: 90
Location: Columbia, KY

PostPosted: Mon Nov 16, 2024 10:38 pm    Post subject: Reply with quote

I have run into timiller's problem in the past and it drove me nuts because I did not understand what was happening at all. So if I understand correctly would using labels rather than UUIDs make this easier?



_________________
Ubuntu 9.10
Mandriva 2024 KDE
siduxKDE/antiX
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Nov 17, 2024 12:08 am    Post subject: Reply with quote

in certain circumstances, yes

mostly /dev/sdxy is even easier.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
anticapitalista
Member


Joined: 13 Jan 2024
Posts: 185
Location: Greece

PostPosted: Tue Nov 17, 2024 12:33 am    Post subject: Reply with quote

I think labels are the way to go especially if you have sata and pata drives (to avoid dev/sdxy or /dev/hdxy problems)



_________________
antiX
sidux
Back to top
View user's profile Send private message
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2433
Location: MD, USA

PostPosted: Tue Nov 17, 2024 12:43 am    Post subject: Reply with quote

I like using /dev/sdxy for swap, and I do use uuid= for all other drives.



_________________
Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Nov 17, 2024 1:11 am    Post subject: Reply with quote

anticapitalista wrote:
I think labels are the way to go especially if you have sata and pata drives (to avoid dev/sdxy or /dev/hdxy problems)


hmm you have a point there.

for comparison this is my /etc/fstab (comments added by me):

Code:
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

# This is currently /dev/sda2
LABEL=Haruhi.Boot /boot ext2 defaults 0 1

# This is currently /dev/sda3
LABEL=Haruhi.Swap swap swap defaults 0 0

# This is currently /dev/sda5
LABEL=Haruhi.Arch / ext4 defaults 0 1

# This is currently /dev/sda6
LABEL=Haruhi.Funtoo /funtoo reiserfs defaults 0 1

# This is currently /dev/sda7
LABEL=Haruhi.Homes /home ext4 defaults 0 1

# This is currently /dev/sdb1
LABEL=Haruhi.Store /home/store ext4 defaults 0 1

# This is currently /dev/sdc1
LABEL=Haruhi.VMachines /home/VirtualMachines ext4 defaults 0 1



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse