SUSE / openSUSE This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-19-2005, 07:54 PM
|
#1
|
Member
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208
Rep:
|
Read-only mount error at boot
Can't save the edits to my fstab so i can log back into Suse
|
|
|
03-19-2005, 09:33 PM
|
#2
|
Member
Registered: Feb 2005
Location: The Woodlands, TX
Distribution: Ubuntu
Posts: 44
Rep:
|
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?
|
|
|
03-20-2005, 02:09 PM
|
#3
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
03-20-2005, 07:31 PM
|
#4
|
Member
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208
Original Poster
Rep:
|
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)
|
|
|
03-20-2005, 07:47 PM
|
#5
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"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
|
|
|
03-20-2005, 08:01 PM
|
#6
|
Member
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208
Original Poster
Rep:
|
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
Last edited by cheetahman; 03-21-2005 at 01:19 PM.
|
|
|
03-21-2005, 05:30 PM
|
#7
|
Member
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208
Original Poster
Rep:
|
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 05:31 PM.
|
|
|
03-21-2005, 06:16 PM
|
#8
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
|
|
|
All times are GMT -5. The time now is 05:38 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.
|
Latest Threads
LQ News
|
|