Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to write a startup script because I have made a copy of my linux distro on my hard drive and I would like it to be mounted automatically when my PC starts up.
Where should I put this script?
I have seen many pages mentioning that startup scripts should be in /etc/init.d/rc<X>.d/, where <X> can be a number between 0 and 6, or S. In which on these directories should I put my script?
My script would be only two lines:
#!/bin/bash
mount -o loop -t iso9660 /data/SuSELinuxPro9.3 /suse
Is it sufficient if I:
- login as root (su)
- copy this script in the correct directory (say, /etc/init.d/rc0.d/, for example)
- make it executable (chmod 744 myscript.sh)
??
A bit easier to use /etc/fstab for automounting. Have a look at the lines you already have there and add auto to the options for the partition to have it automounted.
Distribution: Mandrake 10.0 & Window XP professional
Posts: 32
Rep:
soory if i sound dumb
hi,
i am just a linux newbie and was going through this post and a couple of questions popped up. hopefully u would be able to help
a ) why are u mounting the iso image in the first place, i mean like can you use the os on it after mounting or what ???
b ) if i mount an iso image this way, can i get the system to boot from like, if i dont have a bootable cd , but i do have boot images and dont want to boot from a floppy for some reasons.
i would really appreatiate if u could help me out on this...
The reason why I wanted to do this is that I regularly use YaST to install new packages. And I don't want to be obliged to insert SuSE's DVD each time I want to install a new package. So I followed the instructions on this page: http://www.novell.com/coolsolutions/feature/8973.html
But I wanted to have the images mounted automatically, so that I don't have to log as root and do it "by hand" each time I use YaST.
Note: YaST is a tool on SuSE. If you use another distribution, there might be other reasons to be willing to mount an iso image.
I don't know anything about trying to boot from such an image. Sorry about that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.