Looks to me that /etc/mtab contains the most complete information.
The only thing it doesn't show is swap and the values of fs_freq and
fs_passno (those last two numbers in the fstab) and that can be figured out
by rule vs actual. root getting 1 1 the rest getting 1 2 and the thigns
like sysfs and proc by rule are 0 0.
Are there things like compound variables in the bash shell? Kinda like stem
variables in rexx ? Something that can be declared and indexed through so
that var.1 = /dev/dasda var.2 = {mountpoint} var.3 = fs type and so on?
If that's possible in the bash shell then the administrivia of creating the
script is pretty simple. I just have never seen compound variables in a
bash shell script, so I'm not sure and someone walked off with my book.
-J
Rick Troth
<[EMAIL PROTECTED]>
Sent by: Linux on To
390 Port [email protected]
<[EMAIL PROTECTED] cc
IST.EDU>
Subject
Re: Generating and fstab from list
10/21/2005 11:55 of mounted file systems
AM
Please respond to
Linux on 390 Port
<[EMAIL PROTECTED]
IST.EDU>
There are two files which may be of help, and have similar syntax
to /etc/fstab. The two files are /etc/mtab (maintained by the
'mount' command program) and /proc/mounts (kernel space).
Look at them, then decide if you want to do it manually once
or automate for repeat performance.
-- R;
On Fri, 21 Oct 2005, James Melin wrote:
> Is thre a utility that can examine file systems that are mounted and
> generate a new fstab?
>
> Obviously after I do that single disk copy to the multiple HFS struture I
> need to create a new fstab
>
-------- snip ------------ for brevity
>
> Specifically I'm interested in figuring out how to examine a file system,
> determine if it's ext3, ext2, reiser, etc,and what the attributes should
be
> (like acl,usr_xattr and the 1 1 or 1 2 stuff) The fstab example was
> generated by a manual install of the sles 9 system I am now trying to
> re-create via the single disk clone and copy to final destination method.
>
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390