LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 05-06-2008, 04:47 PM   #1
verndog
Member
 
Registered: Oct 2007
Posts: 107

Rep: Reputation: 18
[SOLVED] "fsck.ext3: Unable to resolve 'UUID="


The output of 'fsck' and accompany outputs follow. The system boots okay, but I would like to resolve the UUID error. Anyone run across this before? Thanks.

================FSCK==================
fsck 1.40.8 (13-Mar-2008)
fsck.ext3: Unable to resolve 'UUID=d8533154-cef1-4cce-a823-9f3f74aab65b'
================FSTAB=================
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=d8533154-cef1-4cce-a823-9f3f74aab65b / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=0703bda2-3d0b-42e5-9d49-5c2634a4bd53 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
================FDISK=================
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3200 25703968+ 83 Linux
/dev/sda2 3201 3576 3020220 5 Extended
/dev/sda5 3201 3576 3020188+ 82 Linux swap / Solaris
=================vol_id /dev/sda1=====
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=d8533154-cef1-4cce-a823-9f3f74aab65b
ID_FS_UUID_ENC=d8533154-cef1-4cce-a823-9f3f74aab65b
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=
======================================

Last edited by verndog; 05-10-2008 at 02:52 AM. Reason: SOLVED
 
Old 05-07-2008, 10:35 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,703
Blog Entries: 54

Rep: Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964
Does substituting /dev/devicenames for UUIDs work?
 
Old 05-07-2008, 09:36 PM   #3
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Perhaps the volume ID has changed. Is this a partition that you reformatted? You can use the vol_id command to find out what the UUID is at the moment for that partition. I posted on my blog about that a while ago. HERE's a link to it. If its changed, just replace the UUID in your /etc/fstab file with this new one. Probably, it would be a good idea to rewrite the line and comment out the original, to be on the safe side.
 
Old 05-08-2008, 02:08 AM   #4
verndog
Member
 
Registered: Oct 2007
Posts: 107

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by unSpawn View Post
Does substituting /dev/devicenames for UUIDs work?
Yes it did, thanks?
 
Old 05-08-2008, 02:12 AM   #5
verndog
Member
 
Registered: Oct 2007
Posts: 107

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by vectordrake View Post
Perhaps the volume ID has changed. Is this a partition that you reformatted? You can use the vol_id command to find out what the UUID is at the moment for that partition. I posted on my blog about that a while ago. HERE's a link to it. If its changed, just replace the UUID in your /etc/fstab file with this new one. Probably, it would be a good idea to rewrite the line and comment out the original, to be on the safe side.
I didn't reformat the drive, I resized it. Well, actually I'm not sure what happened. I didn't even know swap was turned off until I read someone else's swapon swapoff trouble. Then I started investigating my own, only to discover that I too had no swap. Or I had a swap partition, but was not turned on.

Edit: It appears that swap doesn't have a UUID. Shouldn't all partitions have one?
See below:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3200 25703968+ 83 Linux
/dev/sda2 3201 3576 3020220 5 Extended
/dev/sda5 3201 3576 3020188+ 82 Linux swap / Solaris
vmc@vmc-desktop:~$ sudo vol_id /dev/sda1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=d8533154-cef1-4cce-a823-9f3f74aab65b
ID_FS_UUID_ENC=d8533154-cef1-4cce-a823-9f3f74aab65b
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=
vmc@vmc-desktop:~$ sudo vol_id /dev/sda5
ID_FS_USAGE=other
ID_FS_TYPE=swap
ID_FS_VERSION=2
ID_FS_UUID=
ID_FS_UUID_ENC=
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=


I'm going to check out your blog, but in the mean time I want to open another topic regarding swap. thanks for your reply.

Last edited by verndog; 05-08-2008 at 02:21 AM. Reason: more info
 
Old 05-08-2008, 05:39 AM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
If you resized it, that would change the UUID, then. That must have blasted your swap. Have you tried to make the swap again?

mkswap /dev/sda5
swapon /dev/sda5

Check with the top or free command and see if its recognized. if so, do the vol_id command on the partition and get the UUID and plug that into your /etc/fstab file.

Good luck.
 
Old 05-08-2008, 06:44 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,703
Blog Entries: 54

Rep: Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964
Quote:
Originally Posted by verndog View Post
Edit: It appears that swap doesn't have a UUID. Shouldn't all partitions have one?
No. The UUID is found in the ext{2,3} partitions superblock and swap isn't ext{2,3}.

Just being curious, is there any compelling reason why you use UUIDs? While there probably are legitimate situations where one would want to, I still find using /dev/devicenames more dependable, stable compared to using labels or UUIDs.
 
Old 05-08-2008, 06:55 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Distros that use UUID (probably) use a patched mkswap - I haven't bothered checking as, like unSpawn, I dislike both UUID and LABEL. There is even a patch in circulation to enable the user to specify the UUID to save it being overwritten all the time.
 
Old 05-08-2008, 02:43 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
A reasonably good answer can be found HERE on the Ubuntu forums, answering just that question.

It needs a small expansion, though. With UUID, you can ensure that if you add and remove drives, as in a rack system, or with a portable drive (especially when you can get a TB external for a bit over $100 in some places), its "location" in the /dev may change, but the drive is the same. So, its still possible to mount it, whether its /dev/hda1 or /dev/sdd7. The UUID stays the same for the filesystem, unless you change the physical qualities of the filesystem, like resizing or reformatting.
 
Old 05-08-2008, 08:23 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,703
Blog Entries: 54

Rep: Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964Reputation: 2964
Thanks for the explanatory follow-up.
 
Old 05-09-2008, 01:51 AM   #11
verndog
Member
 
Registered: Oct 2007
Posts: 107

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by vectordrake View Post
If you resized it, that would change the UUID, then. That must have blasted your swap. Have you tried to make the swap again?

mkswap /dev/sda5
swapon /dev/sda5

Check with the top or free command and see if its recognized. if so, do the vol_id command on the partition and get the UUID and plug that into your /etc/fstab file.

Good luck.
Well that would explain it. The question though is that the 'blkid' ouput is the same UUID that my UUID in fstab is. Also same as my ext3 '/root' partition. So how did resize change anything, if all UUID's are the same? Shouldn't resize have made the output different somehow.

By the way, it works now because I 'hard coded' it using /dev/sdax.
Edit:Another thing I don't understand is why the system booted okay, even though I resized the partition but only effected the swap? This whole shebang came about because I wanted to image my system using Acronis and not knowing much about UUID's I resized my partitions. Now I see that I can just image the main ext3 partition and rebuild swap using what you suggested :mkswap /dev/sda5,swapon /dev/sda5 after I'm done.

Last edited by verndog; 05-09-2008 at 02:01 AM. Reason: final thought
 
Old 05-09-2008, 02:06 AM   #12
verndog
Member
 
Registered: Oct 2007
Posts: 107

Original Poster
Rep: Reputation: 18
Sorry for double post but I just remembered that the 'fsck' I did was on a live system! Yea, I know now, and when I rebooted and used Puppy livecd to run command 'fsck' it came back with no errors. If I did that in the first place I wouldn't have realized that my swap wasn't working. So further investigation revealed my swap error.
 
Old 05-09-2008, 09:57 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
You can't resize swap - well, you can, but it won't do what you want. Every time you run mkswap, the UUID gets regenerated. Just do a swapon.
 
Old 05-10-2008, 02:51 AM   #14
verndog
Member
 
Registered: Oct 2007
Posts: 107

Original Poster
Rep: Reputation: 18
Talking

Success! After reading some of vectordrake's comments, I went ahead and deleted both the extended and swap partition using gparted. I then added again extended and swap partition.
Clicked swapon. Exited gparted. and volia! sudo blkid revealed a UUID for swap once again.

I edit fstab to now include UUID for all my drives. blkid revealed UUID and free revealed that swap was indeed working correctly again. I could have used the command level mkswap and swapon as vectordrake suggested, but I wanted to see if gparted was up to the task, as I read somewhere else it would work.

So now I know I can just image my one partition using Acronis or partimage and rebuild swap easly using either method. Thanks for all the help and points of interest!
========
$ sudo blkid
/dev/sda1: UUID="d8533154-cef1-4cce-a823-9f3f74aab65b" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="ea4ab429-32b2-4152-bf2e-d537f49d7da3"
========
$ free
total used free shared buffers cached
Mem: 1033816 412012 621804 0 10524 207892
-/+ buffers/cache: 193596 840220
Swap: 3020180 0 3020180
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck.ext3: Unable to resolve 'LABEL= pm02368 Linux - Newbie 4 09-12-2006 08:15 PM
Getting Error "fsck.ext3 Unable to resolve 'LABEL=boot'" during Booting... salil.mehta Fedora 3 08-21-2006 09:39 AM
FSCK.EXT3 "error allocating inode bitmap" arfon Linux - Software 6 05-15-2006 11:48 AM
fsck.ext3: Unable to resolve 'LABEL=/home' Azzath Linux - General 14 04-03-2005 05:45 AM
fsck.ext3 unable to resolve 'LABEL=/home yeehi Linux - General 2 10-20-2004 09:15 AM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration