Read-only mount error at boot
Can't save the edits to my fstab so i can log back into Suse
|
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. |
the mount output 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) |
"the mount output in knoppix"
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 -------------------------- Steve Stites |
more information
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) Updated Fstab /dev/hda7 / reiserfs rw,acl,user_xattr 1 1 /dev/hda2 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0 /dev/hda6 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0 /dev/hda5 /mount/dev/hda5/mnt/1GB_native reiserfs auto,acl,user_xattr 1 2 /dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/sda1 /media/usb-storage-Y3KQ3YTE:0:0:0p1 ext3 acl,user_xattr 1 2 |
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 |
|
All times are GMT -5. The time now is 11:02 PM. |