Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Have you ever seen an fstab file list the wrong filesystem for a partition?--I haven't. For some reason, I couldn't mount one of my Linux partitions (from within the other Linux partition), so I examined fstab on the partition I tried to mount from. The partition I wanted to mount was in the dynamic entries, listed as ext3. But that distro was antiX and formatted to ext4. So I changed the listing, and immediately became able to mount the partition.
Could this have happened because before I installed a copy of antiX on that partition (a few days ago), I had had another distro installed there and it used ext3? Perhaps the fstab on this partition didn't detect the change to ext4 and adjust? I supposed it would; isn't that what the dynamic entries are for?
depends, when you installed antiX, did you perform a full clean install with formats on all partitions including creating a new boot and root partition? if not, then yes it is very possible that there were some residual effects from the earlier instal.
depends, when you installed antiX, did you perform a full clean install with formats on all partitions including creating a new boot and root partition? if not, then yes it is very possible that there were some residual effects from the earlier instal.
No, I don't usually bother to format anything, for the simple reason that the antiX installer says it will format the partition itself, so formatting it seemed pointless. But...I realize I may have been making an obvious mistake. I usually don't want to erase the existing user account, so I usually tell the installer to preserve /home, which means it won't format the partition. Therefore, if it's possible for the old installation to survive, maybe it did. (I thought it never would, since I remember watching the installation messages and seeing "deleting old system." Could the deletion have simply failed? Again, I didn't think so.)
Quote:
Originally Posted by TobiSGD
fstab entries will not change if you change the filesystem on a partition, you have to do that manually. What do you mean with "dynamic entries"?
What, do Slackware fstab files not use dynamic entries? In all my distros since I learned what an fstab file was (which have almost all been Debian-based), fstab has a section labeled "dynamic entries" where the system generates its own information entries for any disk partitions that the user has not made a manual entry for above the "dynamic entries" line. Here is my current fstab:
Until now, I assumed the system reevaluated and changed the dynamic entries at boot depending on what disk partitions it found, but after this, I'm not sure.
Last edited by newbiesforever; 05-06-2013 at 11:01 PM.
What, do Slackware fstab files not use dynamic entries? In all my distros since I learned what an fstab file was (which have almost all been Debian-based), fstab has a section labeled "dynamic entries" where the system generates its own information entries for any disk partitions that the user has not made a manual entry for above the "dynamic entries" line.
I have never seen a dynamic behavior in fstab files, not on Ubuntu, not on Debian, not on Arch and not on Slackware. And I would immediately complain to the distro developers why they think they should mess with my fstab files (this is a rather important file and having errors in there caused by something automatic can seriously mess up your system). I rather think that these entries are generated at install time once.
I have never seen a dynamic behavior in fstab files, not on Ubuntu, not on Debian, not on Arch and not on Slackware. And I would immediately complain to the distro developers why they think they should mess with my fstab files (this is a rather important file and having errors in there caused by something automatic can seriously mess up your system). I rather think that these entries are generated at install time once.
That could be true, and I'm not sure anyone ever told me otherwise--I probably assumed the entries would change if my disk partitions changed. I'll unplug my USB sticks and see if anything happens.
That could be true, and I'm not sure anyone ever told me otherwise--I probably assumed the entries would change if my disk partitions changed. I'll unplug my USB sticks and see if anything happens.
no your fstab is a static file, it is built that way so things do not change on the fly. mount and df will show you what is mounted and how to your system. also fdisk -l (thats a lower case L btw) will show you all disks that are attached to the system mounted or not.
What, do Slackware fstab files not use dynamic entries? In all my distros since I learned what an fstab file was (which have almost all been Debian-based), fstab has a section labeled "dynamic entries" where the system generates its own information entries for any disk partitions that the user has not made a manual entry for above the "dynamic entries" line. Here is my current fstab:
Until now, I assumed the system reevaluated and changed the dynamic entries at boot depending on what disk partitions it found, but after this, I'm not sure.
What you are calling "dynamic entries" are simply fstab entries for removable media to allow user mounts
(hence the "noauto, users" in the 4th column). You should look at the man page for fstab (man 5 stab) and the
one for mount (man 8 mount) to understand the precise meaning of those user mounts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.