SlackwareThis Forum is for the discussion of Slackware 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You didn't mention what distro or version you were running ... or whether you've recently tried to add or reconfigure any drives ...
... but it sounds like your /etc/fstab might be seriously messed up.
SUGGESTION:
1. Boot into single-user mode
2. Check your fstab for consistency
3. Run "fsck" on everything in sight (still in single-user mode, dismounting any/all disks manually as needed)
well this is my brother's box.
he says he copied his etc dir from hda / over to a hdb2 and then added the mount point in fstab.
says he wanted it safe for next upgrade.
i'll do some fsckn on the disks
far as i can see, fstab looks fine.
if /dev/hdb is a new device I'd suggest to make sure that all partitions are really formatted. If a device shows up in fstab properly but isn't mounted at startup anyway this could be a hint that the device isn't formatted.
I just tested out a theory and this is how 'df' works.
'df' reads '/etc/mtab' and gives a reading for each and every line contained in that file if a partition is listed multiple times then you will see multiple entries for that partition as you are currently seeing.
'/etc/mtab' is a dynamically created file created by mount when partitions are mounted and unmounted
Slackware's rc.S should reinitialize the file on every boot however if the problem persists between boots then you have a more serious problem.
Having /etc in a separate fs is a really bad idea. You'll end up with all sorts of weird stuff going wrong. If you want to preserve it's contents then just back it up with a cp, tar, cpio or other utility of your choice.
It's also worth pointing out that many of the files in /etc will change between versions, so overwriting a new /etc with the contents of the last one will likely break stuff. By all means take a copy of some of your config files so that you can copy them back into place, but you can't do that for /etc as a whole.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.