Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Editing /etc/fstab during startup


    I use gentoo linux and I added a line in /etc/fstab for my usb flash drive but forgot to put a newline at the end of the file.

    Now during startup while the system is mounting proc, i get a message saying [mtent] warning: no final newline at the end of /etc/fstab. Then it asks me to log in as root. After I edit /etc/fstab using GNU nano, I reaslise that i cannot save it since for some reason it is a read-only filesystem. I also try to press Cntl-D but realise it just reboots my laptop and the same message appears.

    Can somebody please tell me what to do?

  2. #2
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    North East England
    do you have a bootable CD that you can get some sort of Linux up with, then mount the hard disk, then edit the (unused) /etc/fstab ?


    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

  3. #3
    you could try to mount / as RW.

    Good luck

  4. $spacer_open
  5. #4
    Linux Engineer
    Join Date
    Jul 2003
    Stockholm, Sweden
    Yes if you read the error message I beleive it tells you howto remount the root filesystem rw

    I beleive the commands:

    umount -a

    and then mount -w -a

    will remount the fs rw and you can edit the fstab and put that trailing line in:)

  6. #5
    Thanx guys. I got it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts