Changing Swap UUID

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_topic_old
Changing Swap UUID
Avatar
dandl
Lexa, AR
Moderator
Forum Posts: 676
Member Since:
April 28, 2013
sp_UserOfflineSmall Offline
1
October 10, 2019 - 12:54 pm
sp_Permalink sp_Print sp_EditHistory

Was playing with my Linux Mint OS and I somehow got the boot time all screwed up. Word of caution, never try a dual boot with a Ubuntu based distro with Arch, it will work, but not without consequences. Anyway, to fix the Mint boot time I had to run a few commands.
Open Terminal and run " lsblk -f "
NAME FSTYPE LABEL UUID MOUNTPOINT
sdc
├─sdc1 ext4 Home 7bfb59b4-d6d1-4d94-86de-09ef40b970f3 /home
├─sdc2 ext4 LMint c7629b72-3e1a-443f-b36a-6296bd9a08bf /
└─sdc3 swap f9d85fab-2b1e-4a4f-8e8d-064fcd1f60b7

This is the output for my linux drive

Now open a second terminal and keep both terminals open and run " sudo nano /etc/fstab "
UUID=c7629b72-3e1a-443f-b36a-6296bd9a08bf / ext4 errors=remount-ro 0 1
UUID=7bfb59b4-d6d1-4d94-86de-09ef40b970f3 /home ext4 defaults 0 2
UUID=f9d85fab-2b1e-4a4f-8e8d-064fcd1f60b7 swap sw 0 0

Compare the swap UUID's to make sure they are the same
Due to my ignorance, mine had gotten changed due to the dual boot with Arch
to this UUID=0d2ccae3-a730-4730-bd51-7452359c78e2

The sudo nano /etc/fsab will show the original swap UUID
If different, then change back to the original UUID
The lsblk -f will show what swap UUID is being used
Using nano I copied and pasted the fstab file
to the lsblk -f file and deleted the other UUID
Boot time is now restored to what it used to be.

Forum Timezone: America/Indiana/Indianapolis

Most Users Ever Online: 188

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 10

Members: 2075

Moderators: 6

Admins: 4

Forum Stats:

Groups: 8

Forums: 19

Topics: 1756

Posts: 12772

Administrators: Jim Hillier, Richard Pedersen, David Hartsock, Marc Thomas

Moderators: Judy Novotny, dandl, Jason Shuffield, Jim Canfield, Dick Evans, Sergey Grankin