View previous topic :: View next topic |
Author |
Message |
julian516 Jr. Member
Joined: 16 Jul 2025 Posts: 90 Location: Columbia, KY
|
Posted: Mon Nov 16, 2025 12:03 am Post subject: UUID: How to search for? |
|
|
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 2025 KDE
siduxKDE/antiX
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 12452 Location: Planet Earth
|
Posted: Mon Nov 16, 2025 12:48 am Post subject: |
|
|
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:
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 2025 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2025 Free - kernel 2.6.33.2-1mib
|
|
Back to top |
|
julian516 Jr. Member
Joined: 16 Jul 2025 Posts: 90 Location: Columbia, KY
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 12452 Location: Planet Earth
|
|
Back to top |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2433 Location: MD, USA
|
Posted: Mon Nov 16, 2025 3:41 pm Post subject: |
|
|
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 |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Mon Nov 16, 2025 5:31 pm Post subject: |
|
|
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 |
|
julian516 Jr. Member
Joined: 16 Jul 2025 Posts: 90 Location: Columbia, KY
|
Posted: Mon Nov 16, 2025 10:38 pm Post subject: |
|
|
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 2025 KDE
siduxKDE/antiX
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Nov 17, 2025 12:08 am Post subject: |
|
|
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 |
|
anticapitalista Member

Joined: 13 Jan 2025 Posts: 185 Location: Greece
|
Posted: Tue Nov 17, 2025 12:33 am Post subject: |
|
|
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 |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2433 Location: MD, USA
|
Posted: Tue Nov 17, 2025 12:43 am Post subject: |
|
|
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 |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Nov 17, 2025 1:11 am Post subject: |
|
|
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 |
|
|