Choose style:

Author Topic: /etc/fstab won't open when using nano  (Read 673 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
/etc/fstab won't open when using nano
« on: October 01, 2016, 07:35:10 pm »
First things first, here's my system details:
Code: [Select]
andy@andy-Latitude-PM7 ~ $ inxi -Fz
System:    Host: andy-Latitude-PM7 Kernel: 4.4.0-38-generic x86_64 (64 bit)
           Desktop: N/A Distro: Peppermint Seven
Machine:   System: Dell (portable) product: Latitude E6410 v: 0001
           Mobo: Dell model: 0667CC v: A03 Bios: Dell v: A16 date: 12/05/2013
CPU:       Dual core Intel Core i5 M 560 (-HT-MCP-) cache: 3072 KB
           clock speeds: max: 2667 MHz 1: 1733 MHz 2: 1333 MHz 3: 1599 MHz 4: 2133 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1280x800@60.00hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile GLX Version: 2.1 Mesa 11.2.0
Audio:     Card Intel 5 Series/3400 Series High Definition Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-38-generic
Network:   Card-1: Intel 82577LM Gigabit Network Connection driver: e1000e
           IF: eno1 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6200 driver: iwlwifi
           IF: wlp2s0 state: up mac: <filter>
Drives:    HDD Total Size: 1120.2GB (27.6% used)
           ID-1: /dev/sda model: KINGSTON_SV300S3 size: 120.0GB
           ID-2: /dev/sdb model: WDC_WD10JPVX size: 1000.2GB
Partition: ID-1: / size: 20G used: 7.7G (42%) fs: ext4 dev: /dev/sda9
           ID-2: /home size: 16G used: 7.8G (53%) fs: ext4 dev: /dev/sda10
           ID-3: swap-1 size: 8.59GB used: 0.00GB (0%) fs: swap dev: /dev/sdb2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 61.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 232 Uptime: 17 min Memory: 1323.6/7909.4MB
           Client: Shell (bash) inxi: 2.2.35
andy@andy-Latitude-PM7 ~ $
Hi everyone, I've finally got around to asking this question.  I like to use the command line editor nano for doing quick text edit.  It's very convenient.  I can't get /etc/fstab to open when using nano.  I just get this:
Code: [Select]
File /etc/fstab is being edited (by root with nano 2.5.3, PID 10802); continue?         
 Y Yes
 N No           ^C Cancel
I know it's there because my system isn't going to boot up without it.  When I use a graphical text editor, it opens up without an issue:
Code: [Select]
sudo xed /etc/fstab
opens up the file
Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda9 during installation
UUID=7f32d8d3-afcf-4b8f-a11b-41444ee6d4bd /               ext4    noatime,errors=remount-ro 0       1
# /home was on /dev/sda10 during installation
UUID=63073424-260d-45b5-b2c6-a7e9a88ce396 /home           ext4    noatime,defaults        0       2
# swap was on /dev/sdb2 during installation
UUID=50dbb1b9-5dc0-4e1a-ba37-db6336f41130 none            swap    sw              0       0
# User created DATA partition, mounted at /mnt/DATA
UUID=8a9f41c5-fd91-4895-83df-67207ebe3970 /mnt/DATA ext4 discard 0 2
## Mount system cache in /tmp to RAM to preserve SSD.
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
It does exactly the same on my  Xubuntu 16.04 64-bit machine.  The Ubuntu forum reveal answers that are not helpful, "you should run it as: sudo nano /etc/fstab".  Talk about answering with the bleedin' obvious :)).  It's not a problem.  I only want to know why.  What am I missing  :-\?
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25997
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
/etc/fstab won't open when using nano
« Reply #1 on: October 01, 2016, 07:35:10 pm »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fz
then copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25997
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: /etc/fstab won't open when using nano
« Reply #2 on: October 01, 2016, 08:21:42 pm »
Well that's odd .. works perfectly for me :-\

The  error seems to think another root instance of nano is already open ..

if I open fstab (as root) in nano, then open another terminal and try to open it again, I get EXACTLY the same message (except obviously a different PID).

testing killing the process by PID still left me with the same message, as did "killall nano" .. I had to hit Y at the prompt, then if I closed nano with Ctrl+X and reopened it, it worked perfectly again.
« Last Edit: October 01, 2016, 08:23:24 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec