LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   fstab problem (https://www.linuxquestions.org/questions/slackware-14/fstab-problem-390347/)

Mirari 12-07-2005 10:09 PM

fstab problem
 
First of all, I'm running Linux 2.6.11 on Slackware 10.1.
Alright, so my problem is fstab is gone, not there and it breaks all of my permissions.
So I edited my fstab. I guess I didn't look over it well enough. I saved and exited. Went to restart my computer and it was claiming i didn't have permission from a file 'urandom' I think. Well, I rebooted again, figured maybe my old kernel (2.4.6? the one that comes standard with 10.1) I get it booted, but it complains about LILO with the wrong permissions and stuff. I only get it in the recovery console. So I go to edit fstab to change what mistake I made. Only to find out it's not there. It says something like 'etc/ftsab: not readable. input-output error.' I reboot, and this time I enter some extra commands into LILO, I put in 'mount root=/dev/hda1 rw' So I get past the permission error, from the first time. I thought it was all fixed or something. Just a fluke. Well I start up X, and try to open a terminal. Nothing. I can't open anything in X. I ctrl+alt+backspace, get into CLI and check for my fstab, not there.
I don't know what to do right now? And ideas? I'd like to save all my data since I'm not backed up yet, but is there anything I can do to get fstab working again?
Thanks.

Poetics 12-07-2005 11:54 PM

You mean the file `/etc/fstab` is not present?

Mirari 12-08-2005 05:56 AM

Yes. if I do 'ls /etc/fstab' it returns 'input/output error'.

yoron 12-16-2005 07:39 AM

could it be the editor you used that didn't write back in the right format?

yoron 12-16-2005 08:03 AM

I think you should reinstall your liloconfig
Here is my etc/fstab:
Depending on what filesystems you use, maybe you can use/change it??

/dev/hda2 swap swap defaults 0 0
/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /Wxp vfat defaults 1 0


----------------------------------/example/----------------------------
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
-----------------------------------------------------------------------

/dev/cdrom
The first field, (fs_spec), describes the block special device or remote filesystem to be mounted.

/mnt/cdrom
The second field, (fs_file), describes the mount point for the filesystem

auto
The third field, (fs_vfstype), describes the type of the filesystem. Linux supportslots of filesystem types

noauto,owner,ro
The fourth field, (fs_mntops), describes the mount options associated with thefilesystem.

0

The fifth field, (fs_freq), is used for these filesystems by the dump(8) command todetermine which filesystems need to be dumped. If the fifth field is not present, a value of zero is returned and dump will assume that the filesystem does not need to be dumped.

0

The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time
If the sixth field is not present or zero, a value of zero is returned
and fsck will assume that the filesystem does not need to be checked.

----------------------------------/END/--------------------------------

/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

kalleanka 12-21-2005 03:11 PM

here is mine if it helps:


# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda1 / ext2 defaults 1 1
/dev/hda7 /home ext3 defaults 1 2
#/dev/hda6 /misc ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdb,fs=auto,--,umask=0,user,iocharset=iso8859-15,codepage=850,pamconsole,utf8,managed 0 0
#/dev/hdd1 /movies ext3 defaults 1 2
#/dev/hdc1 /music ext3 defaults 1 2
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

slackwarefan 12-21-2005 03:26 PM

If it's not there, you need to create it and make it look like some of those above, if it is there but it's still saying that, you might have it chmoded wrong, my permissions are set to
-rw-r--r--
if that helps.

Good luck


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