Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What exactely gets mounted on boot ?

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
On boot I get :
"mounting local filesystems [failed]"
how coms ? is it the fstab that he looks in?
everything works fine for the rest. Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
The filesystems in fstab that has a auto (or defaults in it) are mounted by mount -a (e.g. on boot). If it has noauto it's not mounted.

What does your fstab look like?? And the mount commend shows what??

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
Usually boot will look in fstab (or perhaps vfstab) for information to tell it which filesystems to mount, which mountpoints and whether or not to mout at boot (amongst other things). You seem to indicate that your system is fine after the boot? Do you have to manually mount the relevant filesystems or are they mounted despite the message. Cheers.
 
I have been playing with it I admit so there might
be some garbage in it. Feel free to tell!

fstab:

/dev/hda2 / ext3 noauto,defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...
 
Which flavour *nix are we talking here? This looks a little strange but I can't think why. Can you post any info. from the man page for fstab please.

BTW, another little tip, as well as 'Don't eat the yellow snow' try 'Don't mess with your fstab'! Cheers. ;-)
 
Red Hat 7.2
Perhaps the problem could be that hda2 and /dev/cdrom are the same ? but then again, the hda2 and the cdrom are both noauto so that should not be the problem...

man fstab:

DESCRIPTION
The file fstab contains descriptive information about the various file
systems. fstab is only read by programs, and not written; it is the duty
of the system administrator to properly create and maintain this file.
Each filesystem is described on a separate line; fields on each line are
separated by tabs or spaces. The order of records in fstab is important
because autodiskmount(8), fsck(8), mount(8), and umount(8) sequentially
iterate through fstab doing their thing.

The first field, (fs_spec), describes the block special device, the local
filesystem, or the remote filesystem to be mounted. The autodiskmount(8)
program supports the identification of a local filesystem uniquely by its
UUID or by its volume name, irrespective of hardware configuration and of
hardware parallelism, using the constructs ``UUID'' and ``LABEL''.

The second field, (fs_file), describes the mount point for the filesys-
tem. For swap partitions, this field should be specified as ``none''.

The third field, (fs_vfstype), describes the type of the filesystem. The
system currently supports these types of filesystems:

ufs a local UNIX filesystem

mfs a local memory-based UNIX filesystem

nfs a Sun Microsystems compatible ``Network File System''

swap a disk partition to be used for swapping

msdos a DOS compatible filesystem

cd9660 a CD-ROM filesystem (as per ISO 9660)

procfs a file system for accessing process data

kernfs a file system for accessing kernel parameters

fdesc an implementation of /dev/fd

union a translucent filesystem

The fourth field, (fs_mntops), describes the mount options associated
with the filesystem. It is formatted as a comma separated list of
options. It contains at least the type of mount (see fs_type below) plus
any additional options appropriate to the filesystem type.

The option ``auto'' can be used in the ``noauto'' form to cause a file
system not to be mounted automatically (with ``mount -a'', or system boot
time).

The type of the mount is extracted from the fs_mntops field and stored
separately in the fs_type field (it is not deleted from the fs_mntops
field). If fs_type is ``rw'' or ``ro'' then the filesystem whose name is
given in the fs_file field is normally mounted read-write or read-only on
the specified special file. If fs_type is ``sw'' then the special file
is made available as a piece of swap space by the swapon(8) command at
the end of the system reboot procedure. The fields other than fs_spec
and fs_type are unused. If fs_type is specified as ``xx'' the entry is
ignored. This is useful to show disk partitions which are currently
unused.

The fifth field, (fs_freq), is used for these filesystems by the dump(8)
command to determine which filesystems need to be dumped. If the fifth
field is not present, a value of zero is returned and dump will assume
that the filesystem does not need to be dumped.

The sixth field, (fs_passno), is used by the fsck(8) program to determine
the order in which filesystem checks are done at reboot time. The root
filesystem should be specified with a fs_passno of 1, and other filesys-
tems should have a fs_passno of 2. Filesystems within a drive will be
checked sequentially, but filesystems on different drives will be checked
at the same time to utilize parallelism available in the hardware. If
the sixth field is not present or zero, a value of zero is returned and
fsck will assume that the filesystem does not need to be checked.

#define FSTAB_RW "rw" /* read-write device */
#define FSTAB_RO "ro" /* read-only device */
#define FSTAB_SW "sw" /* swap device */
#define FSTAB_XX "xx" /* ignore totally */
struct fstab {
char *fs_spec; /* block special device name */
char *fs_file; /* filesystem path prefix */
char *fs_vfstype; /* type of filesystem */
char *fs_mntops; /* comma separated mount options */
char *fs_type; /* rw, ro, sw, or xx */
int fs_freq; /* dump frequency, in days */
int fs_passno; /* pass number on parallel fsck */
};

The proper way to read records from fstab is to use the routines
getfsent(3), getfsspec(3), getfstype(3), and getfsfile(3).



FILES
/etc/fstab The file fstab resides in /etc.

Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...
 

What do you mean by "the same"?? One thing you need to do is remove the noauto from /

You didn't print the output of 'mount' after startup. It should be

/
/boot/
/dev/pts
/proc

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
? I don't get anything. just:
mounting local filesystems [FAILED]
and then it continues.

sorry, I thought /dev/hda2 was cdrom but I was confused, its a partition of course,not a device.

The noauto I put there today,after your first reply. But I have already removed it now.
Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...and don't mess with your fstab!
 
Since you said in your other posting that you have no swap defined, I would hazard a guess that it's probably attempting to mount your swap devices, finding none, and displaying that message? Annihilannic.
 
well, no. I have no swap defined, so why would it even attemp to mount it ? Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...and don't mess with your fstab!
 

You don't need need a swap device and swap deviced don't get mounted anyway, so that's no it.

You aren't really answering my question: When you log in and issue 'mount' what do you get???

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
ah sorry, I hadn't understand your question.

mount:

/dev/root on / type ext2 (rw)
/proc on /proc type proc (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rm)

...hey! why is my /dev/root ext2? I mount it as ext3 in fstab!

Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...and don't mess with your fstab!
 

That's your problem right there!!! Change it to ext2 in fstab and it'll work.

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
Well, immediately after I posted, I changed it to ext2 in the fstab and rebooted,still I get that message.
mounting local filesystems [FAILED] Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...and don't mess with your fstab!
 
You still haven't said what exact OS or distribution you're using?

Looking at a Red Hat 7.2 box, the "Mounting local filesystems" action in /etc/rc.d/rc.sysinit is:

[tt]mount -a -t nonfs,smbfs,ncpfs -O no_netdev[/tt]

Is that the same as yours? If so, does executing that command as root also give you an error? Annihilannic.
 
its Red Hat 7.2 and the line is the same,if I enter it command line, I don't get any error messages, but echo $? does give 32. Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...and don't mess with your fstab!
 
Hmm... 32 is broken pipe... does adding a -v option give you any more information?

Then perhaps try mounting each individual filesystem in /etc/fstab with the same options (except -a of course) and see which one is giving you trouble. Annihilannic.
 
hmm if I try to mount the first one in fstab, I get the message

mount:fs type nonfs,smbfs,ncpfs not supported by kernel

the command I used was:

mount /dev/hda2 -t nonfs,smbfs,ncpfs -O no_netdev /mnt/tmp Greetz,
muppeteer.gif

NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

Don't eat yellow snow...and don't mess with your fstab!
 
Just use mount /dir and let it use the options it finds in your /etc/vfstab. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top