Jason T. Slack-Moehrle
2013-Apr-11 23:36 UTC
[CentOS] How to change 'fstab' when you cannot boot the machine?
Hello All, So My Drobo finished formatting and I added an entry to fstab for it and now I cannot boot the machine. I get an error about fsck.ext3: is a directory while trying to open /drobo and then a mention of a valid super block I had mounted the Drobo as /drobo and in 'fstab' I copied the line for '/' changing to ext3 where it was ext4. I have made a mistake I cannot fix it because trying to edit fstab results in a "read only file system message" Can anyone help me learn how to recover? Jason
Frank Cox
2013-Apr-11 23:44 UTC
[CentOS] How to change 'fstab' when you cannot boot the machine?
On Thu, 11 Apr 2013 16:36:44 -0700 Jason T. Slack-Moehrle wrote:> I have made a mistake > > I cannot fix it because trying to edit fstab results in a "read only file > system message" > > Can anyone help me learn how to recover?Boot from a recovery disk (live CD, whatever) and fix the problem. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
Jason T. Slack-Moehrle
2013-Apr-11 23:53 UTC
[CentOS] How to change 'fstab' when you cannot boot the machine?
> why not try it out? > > as said: > ANY linux with a terminal is enough to mount the rootfs > and edit /ect/fstab with vi or whatever > > P.S: use the mailing-list instead off-list replies > > Am 12.04.2013 01:42, schrieb Jason T. Slack-Moehrle: > > If I have a CentOS 6.4 DVD is that the 'Rescue installed system' menu > option? >Sorry for the personal reply. An oversight. My hesitation with the 'Rescue installed system' sort of reminds me of Windows where this option will go and blindly copy new versions of files to a system to get it to boot. I wasn't sure what would happen if I selected this option from the DVD. I will try it now.
zGreenfelder
2013-Apr-12 00:22 UTC
[CentOS] How to change 'fstab' when you cannot boot the machine?
or while it's in single user mode with the read only /; do a mount -o remount / to get the filesystem into read write, edit your fstab file and reboot. On Thu, Apr 11, 2013 at 7:36 PM, Jason T. Slack-Moehrle <slackmoehrle at gmail.com> wrote:> Hello All, > > So My Drobo finished formatting and I added an entry to fstab for it and > now I cannot boot the machine. I get an error about > > fsck.ext3: is a directory while trying to open /drobo > and then a mention of a valid super block > > I had mounted the Drobo as /drobo and in 'fstab' I copied the line for '/' > changing to ext3 where it was ext4. > > I have made a mistake > > I cannot fix it because trying to edit fstab results in a "read only file > system message" > > Can anyone help me learn how to recover? > > Jason > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- Even the Magic 8 ball has an opinion on email clients: Outlook not so good.