Sponsored Content
Operating Systems Linux Question Regarding mounting a drive and running a software Post 302895779 by Corona688 on Wednesday 2nd of April 2014 11:21:22 AM
Old 04-02-2014
Disk mounting is given priority unless a partition in /etc/fstab is specifically marked as something to not mount, via the 'noauto' option. If a partition can't mount, that's considered a sufficient reason to stop the boot process.

It is, however, perfectly fine -- even reccomended -- to check that key files are in the correct places inside an init script. It doesn't need to be elaborate.
Code:
if [ ! -f /path/to/configfile ]
then
        echo "configfile missing" >&2
        exit 1
fi

 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mounting a drive

Trying to mount a drive which has been dropped after corruption. What is the quickets and esiest command to run and which switches? cheers olly (1 Reply)
Discussion started by: ollyparkhouse
1 Replies

2. UNIX for Dummies Questions & Answers

Drive mounting

Hello, people. I am pretty new to linux, but I heard it was supposed to be good. So I installed it on an ancient 33mhz 486 with 27mbs of RAM. Ran into problems, patched them, and am here now. I am trying to figure out how to use my floppy and CD-ROM drives. I click their respective icons on the... (2 Replies)
Discussion started by: Furtoes00
2 Replies

3. Filesystems, Disks and Memory

Mounting AFS drive

I have an old amiga IDE drive that I wish to read. Its formated in FFS and I understand I can mount this under linux as an AFS filesystem. The drive is already installed in the PC. Can anyone explain in newbie terms the steps t mounting and reading this drive? Thanks (1 Reply)
Discussion started by: SocketSlave
1 Replies

4. Solaris

Mounting XP Drive in Solaris 10

Hi All, I'm a relative rookie when it comes to the world of Unix and Windows networking, and hoping you can help me out! My predicament: I have a Windows machine running VMWare with an instance of Solaris 10. I have a Windows XP Pro "server" with a large hard drive that I need Solaris to... (7 Replies)
Discussion started by: spiffy05
7 Replies

5. SCO

mounting USB floppy drive /Flash drive in OSR 6.0

Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies

6. Linux

CD drive Mounting

Can any one suggest me how to mount the cd drive from unix? I have installed Ubuntu8.0 on my laptop. Your response is appreciated. (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

7. Solaris

mounting usb drive

hi, first of all, i would really like to know how to find out where my usb is in the system. if i "cd to /dev/usb i have a hub0 to hub4 and hid0 -- hid5 .. how do i know where my usb is? and i guess once i find out which one my usb is at, i can do something like "mount /dev/usb/xxx /tmp" ... (5 Replies)
Discussion started by: k2k
5 Replies

8. Solaris

mounting 2nd hard drive

Sun 280R, Solaris 5.8.... I have inserted a 2nd hard drive on my system. 'format' recognized the disk, but I cannot figure out how to access the disk. Any help is appreciated! (3 Replies)
Discussion started by: jalburger
3 Replies

9. SCO

Mounting Tape Drive

Sorry I posted it in wrong forum first. OK, I'm new to Unix (but an IT since DOS 6.2 era) Long story short I'm trying to help a friend who has failing Unix system which is perhaps 16 years old with SCO Openserver 3.4v4.2 with DDS90 Tape where they backup their data. I've setup a Dell Precision... (9 Replies)
Discussion started by: shunail
9 Replies
vfstab(4)                                                          File Formats                                                          vfstab(4)

NAME
vfstab - table of file system defaults DESCRIPTION
The file /etc/vfstab describes defaults for each file system. The information is stored in a table with the following column headings: device device mount FS fsck mount mount to mount to fsck point type pass at boot options The fields in the table are space-separated and show the resource name (device to mount), the raw device to fsck (device to fsck), the default mount directory (mount point), the name of the file system type (FS type), the number used by fsck to decide whether to check the file system automatically (fsck pass), whether the file system should be mounted automatically by mountall (mount at boot), and the file system mount options (mount options). (See respective mount file system man page below in SEE ALSO for mount options.) A '-' is used to indicate no entry in a field. This may be used when a field does not apply to the resource being mounted. The getvfsent(3C) family of routines is used to read and write to /etc/vfstab. /etc/vfstab can be used to specify swap areas. An entry so specified, (which can be a file or a device), will automatically be added as a swap area by the /sbin/swapadd script when the system boots. To specify a swap area, the device-to-mount field contains the name of the swap file or device, the FS-type is "swap", mount-at-boot is "no" and all other fields have no entry. EXAMPLES
The following are vfstab entries for various file system types supported in the Solaris operating environment. Example 1: NFS and UFS Mounts The following entry invokes NFS to automatically mount the directory /usr/local of the server example1 on the client's /usr/local directory with read-only permission: example1:/usr/local - /usr/local nfs - yes ro The following example assumes a small departmental mail setup, in which clients mount /var/mail from a server mailsvr. The following entry would be listed in each client's vfstab: mailsvr:/var/mail - /var/mail nfs - yes intr,bg The following is an example for a UFS file system in which logging is enabled: /dev/dsk/c2t10d0s0 /dev/rdsk/c2t10d0s0 /export/local ufs 3 yes logging See mount_nfs(1M) for a description of NFS mount options and mount_ufs(1M) for a description of UFS options. Example 2: pcfs Mounts The following example mounts a pcfs file system on a fixed hard disk on an x86 machine: /dev/dsk/c1t2d0p0:c - /win98 pcfs - yes - The example below mounts a Jaz drive on a SPARC machine. Normally, the volume management daemon (see vold(1M)) handles mounting of remov- able media, obviating a vfstab entry. If you choose to specify a device that supports removable media in vfstab, be sure to set the mount- at-boot field to no, as below. Such an entry presumes you are not running vold. /dev/dsk/c1t2d0s2:c - /jaz pcfs - no - For removable media on a SPARC machine, the convention for the slice portion of the disk identifier is to specify s2, which stands for the entire medium. For pcfs file systems on x86 machines, note that the disk identifier uses a p (p0) and a logical drive (c, in the /win98 example above) for a pcfs logical drive. See mount_pcfs(1M) for syntax for pcfs logical drives and for pcfs-specific mount options. Example 3: CacheFS Mount Below is an example for a CacheFS file system. Because of the length of this entry and the fact that vfstab entries cannot be continued to a second line, the vfstab fields are presented here in a vertical format. In re-creating such an entry in your own vfstab, you would enter values as you would for any vfstab entry, on a single line. device to mount: svr1:/export/abc device to fsck: /usr/abc mount point: /opt/cache FS type: cachefs fsck pass: 7 mount at boot: yes mount options: local-access,bg,nosuid,demandconst,backfstype=nfs,cachedir=/opt/cache See mount_cachefs(1M) for CacheFS-specific mount options. Example 4: Loopback File System Mount The following is an example of mounting a loopback (lofs) file system: /export/test - /opt/test lofs - yes - See lofs(7FS) for an overview of the loopback file system. SEE ALSO
fsck(1M), mount(1M), mount_cachefs(1M), mount_hsfs(1M), mount_nfs(1M), mount_tmpfs(1M), mount_ufs(1M), swap(1M), getvfsent(3C) System Administration Guide: Basic Administration SunOS 5.10 21 Jun 2001 vfstab(4)
All times are GMT -4. The time now is 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy