LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2004, 06:15 PM   #1
kristjan
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Misspelling in fstab, can't write to file system


Hi there.

I'm having a bit of a trouble installing gentoo on my pc. I managed to put a rather lame misspell in my fstab....

/dev/hda1 /boot noauto,noatime 1 2
/dev/hda2 none sw 0 0
/dec/hda3 / noauto 0 1

...as you can see I've put dec insted of dev on hda3 and now when I boot up i get the message

"The superblok could not be read or does not describe...."

It enables me to log in as root (or as a regular user pressing Ctrl+D), upon doing that and editing the fstab I get the error

"Could not open file for writing, read only file system"

from nano when I try saving (note, I'm loged on as root). I suppose there is a fairly simple way around this... or maybe not??


Thanks in advance!
 
Old 01-08-2004, 06:28 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Try using a bootdisk to get into linux. Then mount /dev/hda3. Once it's mounted you should be able to modify files.
 
Old 01-08-2004, 06:35 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
as root, unmount the file system (if possible) and then remount it with read-write privileges

if it is not possible to do that, use something like knoppix, or the distro's recovery cd to edit the file

if you have windows lying around, you could even use explore2fs to get into the partition and edit the fstab file that way

*actually, you can pass the correct device for your / (root) partition on the kernel boot line for either lilo or grub
 
Old 01-08-2004, 06:41 PM   #4
mansonmuni
Newbie
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 16

Rep: Reputation: 0
What filesystem is /etc on? You could conceivably be at a command prompt on another filesystem besides /etc and

umount /dev/partition_with_etc
mount -t ext2 /dev/partition_with_etc /etc

This should give you write access to the drive that has fstab. I don't really understand your second line in fstab, though. What is hda2, why "none" and why the 's'?
 
Old 01-08-2004, 07:40 PM   #5
kristjan
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks guys, after struggling with various mount/umount parameters/situations and at a last try be for format & reinstall, it fell trough.
I booted up on the Gentoo LiveCD, mounted /dev/hda3 to /mnt/gentoo and was from there (/mnt/gentoo/etc) able to edit/correct fstab and save and everything boot's up beautifully now

This is my second ever Linux install, done one RH9, so there is a lot of "man howdoesthisf*****gcommandwork" going on so sorry for my novice newbie post.
Now i just have to build some KDE on top of this (btw, is it possible to change where emerge downloads it's packages from, some settings file or something)


PS
That second line should have been
/dev/hda2 none swap sw 0 0
And honestly, i don’t know what the 's' is for, I'm just following the manual
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Write for NTFS file system geeedeee Linux - Laptop and Netbook 8 06-05-2006 08:41 PM
disable write in file system jobless_joe Linux - Newbie 4 01-13-2005 08:23 AM
fstab can't find a file system fdisk can rharvey@cox Linux - Hardware 1 06-02-2004 09:36 PM
how to write (implement) file system for linux amitchakote Linux - Software 2 03-16-2004 01:39 PM
how to write a fat16 file system!? Linos Linux - Software 4 09-09-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration