Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: editing mtab, how to edit mtab< Next Oldest | Next Newest >
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 15 2004,13:38 QUOTE

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?


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
guest
Unregistered






Posted: Sep. 15 2004,13:49 QUOTE

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?
Back to top
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 15 2004,17:05 QUOTE

If you want to change mount options, try editing /etc/fstab instead

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 15 2004,17:48 QUOTE

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?


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 15 2004,18:15 QUOTE

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
Back to top
Profile PM WEB 
4 replies since Sep. 15 2004,13:38 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: editing mtab

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code