PDA

View Full Version : Problem when moving New Fstab to the Old Fstab to fix Suse



cheetahman
03-08-2005, 02:33 AM
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

eon
03-08-2005, 03:32 PM
Is the filesystem you're trying to edit mounted?

You may need to mount it, and then try your editing.

cheetahman
03-08-2005, 06:51 PM
Is the filesystem you're trying to edit mounted?

You may need to mount it, and then try your editing.

Yes its mounted

Markus
03-08-2005, 08:14 PM
Post the output of mount
Also you have one e too many in: Access denined to /mnt/hda7/eetc/fstab
OTOH since denined is also misspelled it's a typo instead of copy paste?

cheetahman
03-08-2005, 08:18 PM
how do you do mount

Markus
03-08-2005, 08:35 PM
Open a console, type mount and post the line for hda7
man mount gives you the manual for mount, quit by pressing q

cheetahman
03-08-2005, 08:58 PM
Open a console, type mount and post the line for hda7
man mount gives you the manual for mount, quit by pressing q

In Knoppix or Suse?

Markus
03-08-2005, 09:33 PM
In knoppix. That's after all what you're mounting if you boot knoppix. You can post the line from suse as well, just say which is which.

Markus
03-08-2005, 09:49 PM
Well, it's night in Finland and I need some sleep.
When you type sudo mount -a all partitions should be mounted writable.
Check with mount and you should see a line like this: /dev/hda6 on /mnt/hda6 type ext3 (rw,nosuid,nodev,grpid)
Yours will probably be different, IIRC suse uses reiserfs so you can also mount with:
sudo mount /dev/hda7 /mnt/hda7 -t reiserfs -o remount,rw (if it's not already mounted you can skip the remount part)

cheetahman
03-12-2005, 10:36 PM
Also here is my fstab

/dev/hda7 / reiserfs rw,acl,user_xattr 1 1
/dev/hda2 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda6 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=ut f8 0 0

/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/hda5 /mount/dev/hda5/mnt/1GB_native reiserfs auto,acl,user_xattr 1 2
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=ut f8 0 0
/dev/sda1 /media/usb-storage-Y3KQ3YTE:0:0:0p1 ext3 acl,user_xattr 1 2

Markus
03-12-2005, 11:51 PM
The fstab you posted looks like it's from suse. Anyway, you should be able to mount in knoppix with:
sudo mount /dev/hda7 /mnt/hda7 -t reiserfs

cheetahman
03-13-2005, 12:16 AM
The fstab you posted looks like it's from suse. Anyway, you should be able to mount in knoppix with:
sudo mount /dev/hda7 /mnt/hda7 -t reiserfs

it is from suse and do you do that in shell

Markus
03-13-2005, 03:27 PM
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
03-13-2005, 10:37 PM
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.

I'll try it and post the results

cheetahman
03-18-2005, 05:22 PM
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

Markus
03-19-2005, 05:44 PM
Please post the output of mount when trying to write from knoppix like you just did.

cheetahman
03-19-2005, 06:32 PM
Please post the output of mount when trying to write from knoppix like you just did.

What do you mean?

Markus
03-19-2005, 09:11 PM
What I mean is the output of the command "mount". When you try to save a file on a hard disk while running the LiveCD the hd needs to be mounted read-write. What I need to see is if the partition hda7 is indeed mounted writable, hence the question about mount's output.

Boot knoppix, open a console, type: sudo mount /mnt/hda7 -t reiserfs
Then type mount and post the output.

cheetahman
03-21-2005, 02:27 AM
/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)

Markus
03-21-2005, 11:58 AM
/dev/hda7 on /mnt/hda7 type reiserfs (rw,nosuid,nodev) well, this line says it's mounted rw (writable) so I really don't know why you can't save any file on it. Just to test it try making a file with touch some_filename and see if it works. Make sure you edit the fstab on hda7 as root, as you now have only permission to write as root.