Find the answer to your Linux question:
Results 1 to 6 of 6
Hello I have problems moving my edited fstab to overwrite the original fstab and i get the error bash:/dev/null:Permission denied knoppix:/# while running the command su chroot /mnt/hda7/ I have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer cheetahman's Avatar
    Join Date
    Dec 2004
    Location
    New York
    Posts
    1,130

    Problem when moving New Fstab to the Old Fstab to fix Suse


    Hello I have problems moving my edited fstab to overwrite the original fstab and i get the error

    bash:/dev/null:Permission denied
    knoppix:/#

    while running the command
    su
    chroot /mnt/hda7/

    I have also made my partition write but I get the errors

    Access denied couldn't write to /mnt/hda7/eetc/fstab

    Access denined to /mnt/hda7/eetc/fstab

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Can you clarify what you're trying to do? Can you also post some more context of the commands that you're executing and their respective outputs? Thanks.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Linux Engineer cheetahman's Avatar
    Join Date
    Dec 2004
    Location
    New York
    Posts
    1,130
    Quote Originally Posted by sarumont
    Can you clarify what you're trying to do? Can you also post some more context of the commands that you're executing and their respective outputs? Thanks.
    I am trying to edit the fstab with either Knoppix or Suse in maintence mode by overwriting the new fstab with the old one.

    Yes i got 2 errors and tried to run Reiserfsck --fix-fixable

    su
    chroot /mnt/hda7/

    he error I get is
    bash:/dev/null:Permission denied
    knoppix:/#

    vi /etc/fstab

    press i and edit, then press Esc, and then type :w so save and :q to exit, then restart the comp with Ctrl+D.

    Got this error

    --Insert-W10:Warning:Changing a reaonly file
    E325:Attention

    (1) Another person may be editing the file

    (2)Edit session for this file crashes
    In this case use :recovwer or vim -r /etc/fstab
    to recover the changes if did this already delte swap file ?etc/.fstab.swp to avoid this message

    E303 Unable to open swap file for "/etc/fstab",recovery impossible

    E505:"/etc/fstab" is read-only (add ! to override)

  4. #4
    Linux Engineer cheetahman's Avatar
    Join Date
    Dec 2004
    Location
    New York
    Posts
    1,130
    I got this from posting on the Knoppix forum

    Yes, just open a konsole in kde, paste it in and hit enter. Then when you type mount it should be listed as mounted. You might as well do sudo su in the konsole to become root so you can edit the file with mcedit /mnt/hda7/path/to/filename . Ctrl-d gets you out of su

  5. #5
    Linux Engineer cheetahman's Avatar
    Join Date
    Dec 2004
    Location
    New York
    Posts
    1,130
    I tried

    sudo su
    then cd etc/fstab
    then mcedit fstab
    and I could edit it but couldn't save it and get the error

    Save As
    Cannot save file

  6. #6
    Linux Engineer cheetahman's Avatar
    Join Date
    Dec 2004
    Location
    New York
    Posts
    1,130
    Here is the output of mount

    /dev/root on / type ext2 (rw)
    /dev/scd0 on /cdrom type iso9660 (ro)
    /dev/cloop on /KNOPPIX type iso9660 (ro)
    /ramdisk on /ramdisk type tmpfs (rw,size=406488k)
    /proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
    automount(pid705) on /mnt/auto type autofs (rw,fd=4,pgrp=705,minproto=2,maxproto=4)
    /dev/sda1 on /mnt/sda1 type vfat (rw,nosuid,nodev,umask=000,uid=1000,gid=1000)
    /dev/hda5 on /mnt/hda5 type reiserfs (rw,nosuid,nodev)
    /dev/hda7 on /mnt/hda7 type reiserfs (rw,nosuid,nodev)
    /dev/hda2 on /mnt/hda2 type ntfs (ro,nosuid,nodev,umask=000,uid=1000,gid=1000)
    /dev/hda1 on /mnt/hda1 type vfat (ro,nosuid,nodev,umask=000,uid=1000,gid=1000)

Posting Permissions

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