Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2004
    Posts
    20

    Editing /etc/fstab during startup


    Hi,

    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
    Location
    North East England
    Posts
    1,190
    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 ?

    Nerderello

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

  3. #3
    Linux Engineer kriss's Avatar
    Join Date
    Jun 2003
    Posts
    1,113
    you could try to mount / as RW.

    Good luck

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    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
    Just Joined!
    Join Date
    Apr 2004
    Posts
    20
    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
  •