Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > Problem when moving New Fstab to the Old Fstab to fix Suse

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 03-07-2005   #1 (permalink)
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
cheetahman is offline  


Reply With Quote
Old 03-08-2005   #2 (permalink)
Content Team
 
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
sarumont is offline   Reply With Quote
Old 03-08-2005   #3 (permalink)
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)
cheetahman is offline   Reply With Quote
Old 03-14-2005   #4 (permalink)
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
cheetahman is offline   Reply With Quote
Old 03-18-2005   #5 (permalink)
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
cheetahman is offline   Reply With Quote
Old 03-21-2005   #6 (permalink)
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)
cheetahman is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:37 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2