URN Logo
UNIX Resources » Linux » Linux Forum » Linux Data Storage Support » Page.15 » Is /etc/mtab /etc/fstab Always Available?
The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
Is /etc/mtab /etc/fstab Always Available?
Subject: Is /etc/mtab /etc/fstab Always Available?
Author: apiotrow    Posted: 2004-10-05 15:11:40    Length: 204 byte(s)
[Original] [Print] [Top]
My module needs to be able to get a list of mounted partitions. Is it a good idea to count on /etc/mtab always being available and being correct?
Or should I get a list of partitions somewhere else.
[Original] [Print] [Top]
Subject: Is /etc/mtab /etc/fstab Always Available?
Author: Counterspy    Posted: 2004-10-06 12:25:15    Length: 108 byte(s)
[Original] [Print] [Top]
Personally I would use /etc/fstab but there is nthing I can see wrong with /etc/mtab.

Current Distributions: Debian Sarge, Debian-Knoppix (3.7), Fedora Core 3, Mandrake 10.1 OE, PCLinuxOS, Suse 9.1 Pro, Whitebox Enterprise Linux, W$ XP, 98SE
[Original] [Print] [Top]
Subject: Is /etc/mtab /etc/fstab Always Available?
Author: Ygrex    Posted: 2004-12-16 04:32:44    Length: 481 byte(s)
[Original] [Print] [Top]
Why do U wanna to use the old data from /etc/mtab?  
U can use /proc/mounts instead, but only if your kernel was configured properly.  
[Original] [Print] [Top]
« Previous thread
Leveraging Two Disks
Linux Data Storage Support
Page. 15
Next thread »
Linear Raid

Copyright © 2018 UNIX Resources Network, All Rights Reserved.    About URN | Privacy & Legal | Help | Contact us