LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-06-2013, 02:04 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Rep: Reputation: Disabled
my fstab listed wrong filesystem for a partition


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?
 
Old 05-06-2013, 04:28 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 05-06-2013, 04:59 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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"?
 
Old 05-06-2013, 10:41 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
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 View Post
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:
Quote:
# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda6 / ext4 defaults,relatime 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sda4 swap swap sw,pri=1 0 0
/dev/sde2 swap swap sw,pri=1 0 0
# Dynamic entries below
/dev/sda1 /media/sda1 ext4 noauto,users,exec,relatime 0 0
/dev/sda2 /media/sda2 ext3 noauto,users,exec,relatime 0 0
/dev/sda5 /media/sda5 ext4 noauto,users,exec,relatime 0 0
/dev/sr0 /media/sr0 iso9660 noauto,users,exec,relatime 0 0
/dev/sdc1 /media/sdc1 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sde1 /media/sde1 ext4 noauto,users,exec,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

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.
 
Old 05-07-2013, 03:10 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by newbiesforever View Post
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.
 
Old 05-07-2013, 04:41 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'm with TobiSGD; I've never even heard of that before.
 
Old 05-07-2013, 09:37 AM   #7
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 05-07-2013, 03:03 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by newbiesforever View Post
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.
 
Old 05-07-2013, 05:24 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by TobiSGD View Post
I have never seen a dynamic behavior in fstab files, not on Ubuntu, not on Debian, not on Arch and not on Slackware.
Same. fstab is a static file, that "# Dynamic entries below" line is just a comment, nothing more.
 
Old 05-13-2013, 03:02 PM   #10
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Rep: Reputation: Disabled
Quote:
Originally Posted by newbiesforever View Post
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using noauto option for filesystem in fstab yet the filesystem mounts on boot Alpha90 Linux - Newbie 4 01-05-2013 10:58 AM
[SOLVED] mounting a partition in /home/user and changing /etc/fstab gone wrong JZL240I-U Linux - Software 11 06-06-2012 09:42 AM
does wrong type entry in fstab corrupts the partition ? ununun Linux - Hardware 10 06-16-2011 02:53 AM
Listed partition in cfdisk, but not listed in /dev? Erik_the_Red Linux - Newbie 7 08-05-2005 11:44 PM
Can't mount cdrom because it's not listed in fstab Stevetgn Linux - Newbie 2 03-02-2005 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration