| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-28-2004, 02:24 AM
|
#1
|
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Rep:
|
use mtab as fstab?hi
hi,
as root, i accidentally overwrote fstab, so i just copied mtab to fstab, restarted, and the system seems to be running fine. any comments on using mtab as fstab?
also, i expected root to have noglobber set. now that i find out it isn't set, how can i make it that root always has noglobber?
thanks.
|
|
|
|
05-28-2004, 09:07 AM
|
#2
|
|
Member
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394
Rep:
|
1. mtab contains the mounted fs, so any fs that wasn't mounted (e.g. /mnt/cdrom) may have lost it's configuration. Also if you use automount, it will write in mtab too, so you'll have some lines in fstab that shouldn't be there.
2. not sure what noglob is, but I suggest to put a 'alias cp="cp -i"' and 'alias mv="mv -i"' in /root/.bashrc
You can place there any command to be exec when opening a terminal
|
|
|
|
05-28-2004, 12:29 PM
|
#3
|
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Original Poster
Rep:
|
hi,
i have those aliases. noglobber prevents redirecting to an existing file. for example, this was how i screwed up fstab: cat > /etc/fstab. i meant to do cat >> /etc/fstab. with noglobber, the command would've failed. to force it, must do >!. i guess i'll just try 'set noglobber' and see what happens.
thanks.
|
|
|
|
05-28-2004, 12:33 PM
|
#4
|
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Original Poster
Rep:
|
hmm,
i think it is noclobber.
anyway.
|
|
|
|
05-29-2004, 05:07 AM
|
#5
|
|
Member
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394
Rep:
|
Thank you for making me discover this useful option.
I googled for it and foud this: http://www.jsanten.demon.nl/linux/sh...ng/index1.html
"To activate noclobber you use set -C"
|
|
|
|
06-08-2004, 12:47 PM
|
#6
|
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Original Poster
Rep:
|
welcome,
but also thanks for finding the information. i forgot about it all together.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|