Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-29-2012, 09:05 AM   #1
Senior Member
Registered: Dec 2008
Posts: 1,044

Rep: Reputation: 150Reputation: 150
[Bug] New "mount" does not recognize loop mounts

When called with "-a" the new mount command always mounts the loop mounts in /etc/fstab and does not check if they are already mounted. Because "mount -a" was called twice during init, any loop mounts in /etc/fstab are then mounted twice on startup.

This problem will be solved in the future because it is on util-linux'es todo list (see function mnt_table_is_fs_mounted in "util-linux/libmount/src/tab.c"). But the deprecated mount command already has this check and I was using this feature for years.

So shall we temporarily switch back to the deprecated mount command, or just write workarounds in the init scripts?
Old 11-29-2012, 01:19 PM   #2
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 866

Rep: Reputation: 264Reputation: 264Reputation: 264
I don't see the problem, you did read mount.c didn't you?
Old 11-29-2012, 03:23 PM   #3
Senior Member
Registered: Dec 2008
Posts: 1,044

Original Poster
Rep: Reputation: 150Reputation: 150
Yes and now I find that this bug is filesystem specific. Will dig further tomorrow.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "data=writeback" in fstab mounts root partition as "read-only" holister Linux - General 7 11-28-2011 09:47 PM
User NFS mounts - "mount: only root can do that" arashi256 Linux - Networking 2 06-25-2010 01:07 PM
busybox mount iso: "mount could not find a spare loop device" error frenchn00b Linux - General 0 01-08-2010 02:37 AM
"fc5" mount does not recognize "smbfs" file system? bdplays Linux - Networking 6 06-28-2006 11:21 AM
What does "loop-mount the disk image" mean ? karans Linux - Distributions 1 10-29-2003 08:21 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:56 PM.

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