nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux Automatically mount NFS and ISO Images on Boot

This is a discussion on Linux Automatically mount NFS and ISO Images on Boot within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; write me a shell script that should start when fedora starts and do the following tasks. ntfsmount /dev/sda2 /mnt/winxp ntfsmount ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-12-2008, 12:35 AM
san san is offline
Junior Member
User
 
Join Date: Dec 2008
OS: Fedora
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
san is on a distinguished road
Question Linux Automatically mount NFS and ISO Images on Boot

write me a shell script that should start when fedora starts and do the following tasks.

ntfsmount /dev/sda2 /mnt/winxp
ntfsmount /dev/sda7 /mnt/NTFS2
ntfsmount /dev/sda8 /mnt/NTFS3

mount -o loop disk1.iso /mnt/disk1
mount -o loop disk2.iso /mnt/disk2

mounts the nrg image using AcetoneISO as i dont know its command through terminal to mount nrg though through Acetone ISO i can mount every time i logon, but i want this to ebdone automaticlaly for me
__________________
*NIX based OS is only for programmers, and are not fully evolved to the level where MS windows XP has evolved, SO use it at your own risk..
Reply With Quote
  #2 (permalink)  
Old 28-12-2008, 08:01 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Add above commands to /etc/rc.local and you are done. Another option is mount all nfs via /etc/fstab file. See examples at http://www.cyberciti.biz/faq/configu...with-etcfstab/
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
/etc/fstab , iso images , linux , mount , shell script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to start Apache2 automatically at boot satimis Web servers 2 03-02-2008 06:03 PM
Verify Fedora 7 ISO images to get rid of burn error problem deonitin Getting started tutorials 2 26-07-2007 04:41 PM
mount one partition of one linux server on other linux serve Jaggu Linux software 1 07-08-2006 10:47 PM
Linux Mount a USB flash or pen drive as a normal user charvi Getting started tutorials 1 26-06-2006 07:21 PM
How can I add custom watermarks to images from shell prompt? ac1 Linux software 2 20-12-2005 10:53 PM


All times are GMT +5.5. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38