SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
As you might envision, your description of the problem is lacking in a few critical details, such as:
1) who are you logged in as?
2) if you are getting this 'read-only mount error' at boot, how is it that you are logging in?
3) when and where is the 'read-only mount error' appearing?
4) what, exactly, does the error say?
5) how are you trying to edit fstab? directly or via the config utilities?
Can you give us a couple of those answers, please?
Additionally, you need to be running with root privs in order to edit fstab. If you've been attempting to edit it as a regular user, you won't be able to save changes.
In any case though, please provide more details, as already suggested -- J.W.
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=406488k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid705) on /mnt/auto type autofs (rw,fd=4,pgrp=705,minproto=2,maxproto=4)
/dev/sda1 on /mnt/sda1 type vfat (rw,nosuid,nodev,umask=000,uid=1000,gid=1000)
/dev/hda5 on /mnt/hda5 type reiserfs (rw,nosuid,nodev)
/dev/hda7 on /mnt/hda7 type reiserfs (rw,nosuid,nodev)
/dev/hda2 on /mnt/hda2 type ntfs (ro,nosuid,nodev,umask=000,uid=1000,gid=1000)
/dev/hda1 on /mnt/hda1 type vfat (ro,nosuid,nodev,umask=000,uid=1000,gid=1000)
If you have booted a Knoppix CD in order to edit /etc/fstab on SuSE then your problem is that Knoppix mounts all hard drive partitions as read only. Assuming that /dev/hda5 is your SuSE / partition then you need to:
umount /dev/hda5
mount -t reiserfs /dev/hda5
and then edit /dev/hda5/etc/fstab
I am trying to edit the fstab with either Knoppix or Suse in maintence mode by overwriting the new fstab with the old one.
Yes i got 2 errors and tried to run Reiserfsck --fix-fixable
su
chroot /mnt/hda7/
he error I get is
bash:/dev/null:Permission denied
knoppix:/#
vi /etc/fstab
press i and edit, then press Esc, and then type :w so save and :q to exit, then restart the comp with Ctrl+D.
Got this error
--Insert-W10:Warning:Changing a reaonly file
E325:Attention
(1) Another person may be editing the file
(2)Edit session for this file crashes
In this case use :recovwer or vim -r /etc/fstab
to recover the changes if did this already delte swap file ?etc/.fstab.swp to avoid this message
E303 Unable to open swap file for "/etc/fstab",recovery impossible
E505:"/etc/fstab" is read-only (add ! to override)
Here is the output of mount in knoppix
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=406488k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid705) on /mnt/auto type autofs (rw,fd=4,pgrp=705,minproto=2,maxproto=4)
/dev/sda1 on /mnt/sda1 type vfat (rw,nosuid,nodev,umask=000,uid=1000,gid=1000)
/dev/hda5 on /mnt/hda5 type reiserfs (rw,nosuid,nodev)
/dev/hda7 on /mnt/hda7 type reiserfs (rw,nosuid,nodev)
/dev/hda2 on /mnt/hda2 type ntfs (ro,nosuid,nodev,umask=000,uid=1000,gid=1000)
/dev/hda1 on /mnt/hda1 type vfat (ro,nosuid,nodev,umask=000,uid=1000,gid=1000)
Yeah, an fstab config problem...lovely, huh? Honestly, the best way to fix this is to load the SUSE CD and select Installation from the menu options. Let it boot the kernel and proceed along until it finishes the system analysis section. At this point, YaST will attempt to detect existing Linux installations and when it notices that you have SUSE installed it should give you the option to perform a repair session. From here, you can select some manual repair parameters or just have YaST do an auto-repair. I would just go with the latter, but if you desire to get straight on with a file check that should work as well.
YaST should then verify your fstab file and present you with errors that it finds.
Make the needed changes at this point.
On your next boot you should be fine.
I need Help on doing this
Last edited by cheetahman; 03-21-2005 at 06:31 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.