editing mtab


Forum: Other Help Topics
Topic: editing mtab
started by: Patrick

Posted by Patrick on Sep. 15 2004,13:38
Hello Y'all,
My mtab looks like this:

/dev/root / ext2 rw 0 0
/dev/sda1 /cdrom vfat ro 0 0
/dev/cloop /KNOPPIX iso9660 ro 0 0
/ramdisk /ramdisk tmpfs rw,size=499832k 0 0
/proc/bus/usb /proc/bus/usb usbdevfs rw,devmode=0666 0 0

line 2 is wrong! sda1 (my usb stick) shouldn't mount in /cdrom and should really have rw-rights!

I can't get the file corrected (with Scite), i have no rights to change it (save). What should i do?

Posted by guest on Sep. 15 2004,13:49
DO NOT edit mtab.
mtab is updated by each mount and umount command.

line 2 is CORRECT.
this means that you have a frugal install

why do you think line 2 is a problem?

Posted by mikshaw on Sep. 15 2004,17:05
If you want to change mount options, try editing /etc/fstab instead
Posted by Patrick on Sep. 15 2004,17:48
Hello yall,

this is my fstab:

/proc      /proc       proc   defaults            0 0
/sys       /sys        sysfs  noauto              0 0
/dev/pts   /dev/pts    devpts mode=0622           0 0
/dev/fd0   /mnt/auto/floppy auto   user,noauto,exec,umask=000    0 0
/dev/cdrom /mnt/auto/cdrom  auto   user,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/sda1 /mnt/sda1 vfat noauto,users,exec,umask=000,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hdb5 /mnt/hdb5 ntfs noauto,users,exec,ro,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hdb6 /mnt/hdb6 ntfs noauto,users,exec,ro,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hdb7 /mnt/hdb7 vfat noauto,users,exec,umask=000,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hdb8 /mnt/hdb8 vfat noauto,users,exec,umask=000,uid=1001,gid=500 0 0
ge
I wanted to edit my mstab/fstab but found i couldn't (errror from Scite: could not save file /etc/fstab. I wanted to change fstab/mstab because:

If i want to backup my configuration i get this error message:
mount: /dev/sda1 already mounted or /mnt/sda1 busy
mount: according to mtab, /dev/sda1 is mounted on /cdrom
opt/ppp/
tar (child): /cdrom/backup.tar.gz: Cannot open: Read-only file system
tar (child): Error is not recoverable: exiting now
opt/ppp/resolv/
opt/ppp/ppp_on_boot.dsl
opt/ppp/peers/
opt/ppp/peers/wvdial-pipe
opt/ppp/peers/wvdial
opt/ppp/peers/provider
opt/ppp/peers/dsl-provider
opt/ppp/pap-secrets

Anyone any ideas?

Posted by roberts on Sep. 15 2004,18:15
If you run the latest version of DSL 0.8.1.1 and do the frugal_usb install you will have the pen drive mounted rw and will be able to backup to the pen drive single partition.

With prior versions you can remount like this
# mount /cdrom -o remount,rw

Then manually do your backup like this
tar -C / -T filetool.lst -czvf /cdrom/backup.tar.gz

and restore like this
tar -C / -zxvf /cdrom/backup.tar.gz

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.