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

Notices


Reply
  Search this Thread
Old 06-06-2009, 08:18 PM   #1
rundarm
LQ Newbie
 
Registered: Jun 2004
Location: La Crosse, WI
Distribution: Red Hat Fedora Core 5 & 6
Posts: 22

Rep: Reputation: 15
Question Need to rewrite fstab to remove /dev/dm_1


Hello
After I upgraded to kernel 2.6.27.24-170.2.68.fc10.i686, my machine would not boot. It would give me the message "unable to access resume device (/dev/dm_1)
mount: could not find filesystem /dev/root

I read that I need to remove the /dev/dm identifiers from /etc/fstab.
My /etc/fstab follows. Could someone please help me rewrite it?
Thanks In Advance
Greg Manhart

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/dm-0 / ext3 defaults 1 1
#Entry for /dev/sda1 :
UUID=e3b9f1a3-cfc4-4518-8a21-c0f238502da0 /boot ext3 defaults 1 2
#Entry for /dev/sdb1 :
UUID=26880C2D880BF9D7 /media/Boot ntfs-fuse defaults,umask=0,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb2 :
UUID=96343A153439F937 /media/Scratch ntfs-fuse defaults,umask=0,locale=en_US.UTF-8 0 0
/dev/dm-1 swap swap defaults 0 0
 
Old 06-06-2009, 08:57 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I think your problem is related to grub config, not fstab, but...

sudo vi /etc/fstab

press i to insert(edit)

use arrow keys to move the cursor to the line you want to edit.

and simply # hash-comment-out the offending line.

press escape(Esc) to exit insert (edit mode)

press :wq and enter to write and quit vi.

reboot.

I would be checking the grub config though, search LQ for a tute on configuring grub.

Regards Glenn

Last edited by GlennsPref; 06-06-2009 at 09:07 PM.
 
Old 06-06-2009, 09:38 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
You can add noresume to the boot parms - should get rid of the first message.
Personally I don't think I'd want to remove the entry for the root from fstab. If dm is indeed the problem, edit the line to have the real device address (say /dev/sda2). Likewise for swap would be better than commenting it out altogether.
 
Old 06-10-2009, 02:09 PM   #4
rundarm
LQ Newbie
 
Registered: Jun 2004
Location: La Crosse, WI
Distribution: Red Hat Fedora Core 5 & 6
Posts: 22

Original Poster
Rep: Reputation: 15
Ok the noresume did take care of one error.
but the machine will still not boot with the latest kernel
I think I am having this bug
https://bugzilla.redhat.com/show_bug.cgi?id=475773

Here is my original grub.conf without any changes except to display the splash image. I could put the noresume in this one but just wanted to leave it as untouched as possible.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.24-170.2.68.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.24-170.2.68.fc10.i686 ro root=/dev/dm-0 rhgb quiet vga=795
initrd /initrd-2.6.27.24-170.2.68.fc10.i686.img
title Fedora (2.6.27.21-170.2.56.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.21-170.2.56.fc10.i686 ro root=/dev/VolGroup00/LogVol00 rhgb quiet vga=795
initrd /initrd-2.6.27.21-170.2.56.fc10.i686.img
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=2e6051cf-a887-4814-9a20-8a67b851425d rhgb quiet vga=795
initrd /initrd-2.6.27.5-117.fc10.i686.img
title Other
rootnoverify (hd1,0)
chainloader +1


Here is etc/fstab again
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/dm-0 / ext3 defaults 1 1
#Entry for /dev/sda1 :
UUID=e3b9f1a3-cfc4-4518-8a21-c0f238502da0 /boot ext3 defaults 1 2
#Entry for /dev/sdb1 :
UUID=26880C2D880BF9D7 /media/Boot ntfs-fuse defaults,umask=0,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb2 :
UUID=96343A153439F937 /media/Scratch ntfs-fuse defaults,umask=0,locale=en_US.UTF-8 0 0
/dev/dm-1 swap swap defaults 0 0

This machine is a Dell Optiplex GX270.
Currently the only fedora that works correctly is the Fedora (2.6.27.21-170.2.56.fc10.i686)
The oldest kernel boots but when the display manager tries to run it just displays a white screen in Gnome.
I switched to a text console with control alt f-key and shut it down.
There are only two hard drives in the machine. One is an ide 120 gb. The other is a SATA 250gb.
when I did a fdisk of /dev/sda1 it would not list a partition map.
Thanks, I really don't know what I need to change. I dont understand the device map logger of Fedora.
 
Old 06-10-2009, 06:20 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, with your install cd, is the an option to rescue the system in the boot menu?

If so, like Mandriva, you could reload grub from there.

It will ask some simple questions, which It guesses anyway, and are mostly correct.

Follow it through, it should find your systems and reconfigure grub for you.

I have found that fstab rarely needs to be edited, unless you are adding or removing harddrives and partitions, just because of a kernel upgrade, it reads the fstab but rarely makes changes to it. Maybe it is that bug you mention, I'm not familiar with it (different system to me).

Hope this helps, Glenn.
 
Old 06-10-2009, 07:44 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Thumbs down

I think if you change
Code:
root=/dev/dm-0
to ...
root=/dev/VolGroup00/LogVol00
on the kernel entry in menu.lst, and
Code:
dev/dm-0	/	ext3	defaults	1	1
to ...
/dev/VolGroup00/LogVol00	/	ext3	defaults	1	1
in the fstab and regen the initrd as the bug suggests, you might be o.k.
The swap entry in fstab needs to fixed as well - if you don't know which LV it is, you can comment it out for a while, then update similarly to the root entry.
 
Old 06-30-2009, 05:24 PM   #7
rundarm
LQ Newbie
 
Registered: Jun 2004
Location: La Crosse, WI
Distribution: Red Hat Fedora Core 5 & 6
Posts: 22

Original Poster
Rep: Reputation: 15
Took easy way out

Hello
I decided to take the easy way out and upgrade to Fedora 11.
Thanks for the responses.
Greg Manhart
 
  


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
how to remove disk space in /dev/sda8 to increase the /dev/sda7 centguy Linux - Software 16 11-27-2008 06:05 PM
/etc/fstab to mount /dev/hdc1 to FTP GregSims Linux - Newbie 5 08-05-2005 10:09 PM
/dev/hd* created after fstab is run? eurleif Debian 3 07-18-2005 10:10 AM
/dev/dvd in /etc/fstab jayhel Slackware 1 12-28-2004 10:23 AM
fstab, /dev, dvd, writer Vincentius Linux - Newbie 2 03-25-2003 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:33 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