Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th October 2011, 05:32 PM
belcenter Offline
Registered User
 
Join Date: Oct 2011
Posts: 2
windows_xp_2003ie
FC15 - Rescue Mtab

Hello

When you installed a fresh 15. After that you run the FC15 Rescue Disc
and reboot to the FC15, the Mtab file has been corrupted with old value
of mounted partitions from Rescue Disc.

How can we repair that ?
Reinstall is not an option.

Issue of that my root partition is mounted twice +
Error on the startup

My Fstab is OK

/dev/sda1 / ext4 defaults 1 1
/dev/sda3 /home ext4 defaults 1 2
/dev/sda2 /var ext4 defaults 1 2
UUID=33a08ed1-4240-4de4-b50c-b242169d48c7 swap swap defaults 0 0
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



My mtab


rootfs / rootfs rw 0 0
/proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
/sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=1968012k,nr_inodes=492003, mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode= 000 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0

>> Beginning is from Rescue Disc.


Next is related to FSTAB.

/dev/sda1 / ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda3 /home ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda2 /var ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0


It's the second time it happens. For the first server, i reinstalled on scratch.

Running a FC16 beta Rescue crashed
Reply With Quote
  #2  
Old 19th October 2011, 06:04 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: FC15 - Rescue Mtab

/etc/mtab on F15 is a symbolic link to /proc/mounts

It cannot be a file corruption issue. Now if you tried deleting the /etc/mtab file, then you broke the link and will have to put it back.

Having multiple mounts show up is normal - this indicates that you have "bind" mounts (read manpage on mount).

Frequently this is due to sandboxing being enabled - that uses bind mounts to eliminate the need to make duplicate files of various things, which makes system updates more difficult.

There is no need to reinstall.

Last edited by jpollard; 19th October 2011 at 06:06 PM.
Reply With Quote
  #3  
Old 19th October 2011, 06:50 PM
belcenter Offline
Registered User
 
Join Date: Oct 2011
Posts: 2
windows_7ie
Re: FC15 - Rescue Mtab

Hello

The file is correctly linked to /proc/mounts but it's that file who is not created
when the server boots.

Seems that it's not a file creation but an append to the file. > We see the previous mounts
of the rescue CD.

---------- Post added at 05:35 PM ---------- Previous post was at 05:34 PM ----------

[root@ns2 ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
/sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=1968012k,nr_inodes=492003, mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode= 000 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
/dev/sda1 / ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda3 /home ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda2 /var ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0

---------- Post added at 05:39 PM ---------- Previous post was at 05:35 PM ----------

Quote:
Originally Posted by jpollard View Post
/etc/mtab on F15 is a symbolic link to /proc/mounts

It cannot be a file corruption issue. Now if you tried deleting the /etc/mtab file, then you broke the link and will have to put it back.

Having multiple mounts show up is normal - this indicates that you have "bind" mounts (read manpage on mount).

Frequently this is due to sandboxing being enabled - that uses bind mounts to eliminate the need to make duplicate files of various things, which makes system updates more difficult.

There is no need to reinstall.

I checked on an other server and it seems i have delinked.
the mtab to /proc/mounts
[root@ns1 ~]# ls -lh /etc/mtab
-rw-r--r-- 1 root root 199 Oct 19 00:21 /etc/mtab

---------- Post added at 05:43 PM ---------- Previous post was at 05:39 PM ----------

Hum OK
Seems the solution is to delink the mtab , next boot mtab was recreated with correct values

[root@ns2 ~]# cat /etc/mtab
/dev/sda1 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda3 /home ext4 rw 0 0
/dev/sda2 /var ext4 rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

But i'm pretty sure that a fresh install didn't create partition mounted twice
+ lot of errors on the boot ! (Partition /sys already mounted, etc)

---------- Post added at 05:50 PM ---------- Previous post was at 05:43 PM ----------

Thanks For your Help
Reply With Quote
  #4  
Old 19th October 2011, 07:17 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707
linuxfirefox
Re: FC15 - Rescue Mtab

/etc/mtab is supposed to be a symlink to /proc/mounts, and the mtab you originally posted is normal (if a little minimal even). See http://forums.fedoraforum.org/showthread.php?t=271089 and http://forums.fedoraforum.org/showthread.php?t=269319 for example. I don't know if using a "real" /etc/mtab will work properly any more.

Gareth
Reply With Quote
Reply

Tags
fc15, mtab, rescue

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] FC15 preupgrade failue on java-1.5.0-gcj-javadoc-1.5.0.0-35.fc15.i686 gkasica Installation and Live Media 1 29th May 2011 12:18 PM
etc/mtab ? Dead1nside Using Fedora 19 24th September 2006 08:58 PM
Can not write into mtab Beginner Using Fedora 8 17th December 2005 08:08 AM
rescue a broken LVM with a FC rescue disk morci Using Fedora 5 26th July 2005 12:05 AM


Current GMT-time: 09:49 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat