LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2008, 10:36 PM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Rep: Reputation: 30
fsck fails while booting Ubuntu


Hello All,
I have 4 partitions, first two for XP and Vista. Next two for Fedora and Ubuntu with Ubuntu in logical partition. I boot the machine using NT loader.
I recently removed fedora (deleted the partition) and installed it again, at the same place. Fedora boots fine, but ever since, I get fsck failure (error 8 ) when booting Ubuntu. After I press ctrl+alt+del, Ubuntu boots just fine.

Here's the log from /var/log/fsck/checkfs
fsck 1.40.2 (12-Jul-2007)
fsck.ext3: Unable to resolve 'UUID=740b8a34-acca-43c0-a247-00c04ab15435'
fsck died with exit status 8

Here's Ubuntu's menu.lst (ubuntu section only)
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=1cb9ddf5-9b46-4226-9959-ab3081913c75 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

I suspect something has changed with respect to UUID of the partition after deleting and recreating fedora partition. I tried replacing UUID section with proper partition name (/dev/sda6), but to no avail.

Is there a way I can fix the problem?

Thank you all in advance.
 
Old 02-19-2008, 10:48 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look in /etc/fstab, since I'd assume fsck is using -A to pick up mount from fstab
 
Old 02-20-2008, 12:10 AM   #3
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Billy, Here's how it looks like

# /dev/sda6
UUID=1cb9ddf5-9b46-4226-9959-ab3081913c75 / ext3 defaults,errors=remount-ro 0 1

From what I gather, each partition seems to have a UUID. Is there a way to see what it is by using fdisk or some other utility?

And, how do I fix my problem?
 
Old 02-20-2008, 12:37 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try changing that entry to

/dev/sda6 / ext3 defaults,errors=remount-ro 0 1

But please take a copy of fstab before you touch it
 
Old 02-20-2008, 01:11 AM   #5
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Thanks Billy, Unfortunately, it didn't work. The boot process still dropped me at shell after failing fsck, at which point, I had to do a ctrl+alt+del to get it going.

If you see my first post, you'll notice that the two UUIDs are different, i.e, one that it is looking for, and the one that exists. I suspect that's what's causing the problem. Is there a way to find out what the UUID is for my partition, and adjust the boot process such that they match?
 
Old 02-20-2008, 01:40 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
dumpe2fs /dev/sd_whatever | grep UUID

Don't you have more partitions mounting in fstab than just that one? Are you sure UUID=740b8a34-acca-43c0-a247-00c04ab15435 isn't referenced?

Last edited by billymayday; 02-20-2008 at 01:43 AM.
 
Old 02-20-2008, 02:48 AM   #7
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Hi Billy,

Here's how my fstab looks like

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda6
UUID=1cb9ddf5-9b46-4226-9959-ab3081913c75 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
UUID=362C255F2C251B7F /media/sda1 ntfs defaults,umask=007,gid=46 0 1
# /dev/sda2
UUID=3A70FF5D70FF1DF7 /media/sda2 ntfs defaults,umask=007,gid=46 0 1
# /dev/sda3
UUID=740b8a34-acca-43c0-a247-00c04ab15435 /media/sda3 ext3 defaults 0 2
# /dev/sda5
UUID=DEB8AFB7B8AF8D19 /media/sda5 ntfs defaults,umask=007,gid=46 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0


It seems I have /dev/sda3 refer to that UUID (740b8a34-acca-43c0-a247-00c04ab15435) in fstab. I have FC8 on that partition.

Now, how the hell do I get rid of whoever that is referring to that UUID and replace it with Ubuntu? When Ubuntu boots, why is it referring to that UUID, in first place?

Last edited by concoran; 02-20-2008 at 02:51 AM.
 
Old 02-20-2008, 03:06 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Change

# /dev/sda3
UUID=740b8a34-acca-43c0-a247-00c04ab15435 /media/sda3 ext3 defaults 0 2

to

/dev/sda3 /media/sda3 ext3 defaults 0 2

or check the UUID as described above (dumpe2fs /dev/sda3 | grep UUID) and update in fstab if necessary.

It happens because the Ubuntu boot process is calling fdisk with the -A option, which walks through fstab to check all partitions that the system wants to mount. Makes sense when you think about it.
 
Old 02-20-2008, 02:17 PM   #9
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Hi Billy,
It seems the UUID of /dev/sda3 had changed after I removed the old partition and created a new one, at the same place. All I had to do was to update the UUID in /etc/fstab. Thanks you for dumpe2fs info. It helped.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck fails after keranl security update! nanjil SUSE / openSUSE 21 12-09-2005 05:20 AM
SuSE 9.2, fsck fails during startup imemyself SUSE / openSUSE 2 03-21-2005 11:00 PM
Dual-booting Ubuntu using Grub fails tsalem Linux - Newbie 10 01-25-2005 09:47 PM
fsck fails during boot masch Linux - General 3 09-25-2004 10:38 AM
fsck fails to mount filesystem GoatKing Linux - Software 6 01-26-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:49 AM.

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
Open Source Consulting | Domain Registration