Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am somewhat of a newbie just introfucing Linux to colleagues. I am having a problem where Fedora core 4 was installed and running fine for some time; recently, some minor modifications were made to /etc/fstab, to automatically mount windows partition at boot time. A copy of /etc/fstab was also placed on /root/Desktop for practice (if you will?) and when the user could not mount a flash disk, the system was restarted.
At which time, /etc/fstab could not be found; X server would not start but was able to log in through CLI. The file in /etc has been renamed as fstab~ for some reason, which would explain why the system cannot find it. I tried to replace it with the copy which was placed on /root/Desktop but /etc is 'Read-only file system.' Have tried chmod to change permissions but it doesn't allow it; it seems the whole / partition was mounted as a Read-only file system, probably cuz /etc/fstab was not found. I also tried Linux rescue but it doesn't even find Linux partitions to mount to /mnt/sysimage. I mounted the partition with the / directory manually but all I can find inside is 'rhinstall-stage2.img'. Can anyone help???
Try using a live cd such as Mepis. You should be able to mount the drive that has /etc and make the changes you need. It seems like someone may have used mv instead of cp when they put the fstab in /root/Desktop. /etc/fstab~ is actually a backup of your original fstab before your made your last changes to it.
Last edited by reddazz; 10-06-2006 at 09:46 AM.
Reason: typos
Tilde after a file name usually indicates that the file is being edited, and the filename~ is there as long as the file is not closed (saved/quitted) properly, and sometimes even after that. Though the original file should be there too..
If no fstab is found, then no partitions can usually be mounted (since that's what fstab is all about), and thus you don't have a working system. Root partition is mounted read-only if you boot into a "safe mode", and you would need to remount it read-write to get access to the files. If you have a copy of /etc/fstab, you should be able to use a live-cd to copy that in place of the original file /etc/fstab.
I really wonder what partition you mounted if all it includes is rhinstall-stage2.img. I can't say much about this..but if you have a copy of fstab file, use a live-cd or single-user mode to copy it where it should be, and reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.