LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Need to rewrite fstab to remove /dev/dm_1 (https://www.linuxquestions.org/questions/fedora-35/need-to-rewrite-fstab-to-remove-dev-dm_1-a-731189/)

rundarm 06-06-2009 08:18 PM

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

GlennsPref 06-06-2009 08:57 PM

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

syg00 06-06-2009 09:38 PM

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.

rundarm 06-10-2009 02:09 PM

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.

GlennsPref 06-10-2009 06:20 PM

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.

syg00 06-10-2009 07:44 PM

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.

rundarm 06-30-2009 05:24 PM

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


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