Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
This line will mount the cdrom at boot if there is a CD in it. The gid=100 means that every file on the CD will belong to the group id 100. Files are still owned by root, but every user i add to group 100 will be in the same group as the mounted files. The mount manpage is good to read, but if you dont want to, there are example setups on the web if you google for it.
If you dont have a CD in the drive during boot, it will not get mounted. My suggestion is to install the sudo package. Then you will be able to type 'sudo mount /dev/cdrom /media/cdrom' and the mount command will be run as root. You can specify what commands you want to be able to run by changing the config file with the visudo command. Its all in the documentation for sudo. =)
There is also programs to auto-mount the cdrom when you need it, but i havent had the need to install them yet. I dont mount different cdrom's alot myself.
What are the difference between them and your suggestion?
On FC3 /etc/fstab
Code:
/dev/hdd /media/cdrom1 auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
/dev/hdc /media/cdrecorder1 auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
they were default on installing FC3. I tried to change /media/cdrom1 as /mnt/cdrom and /media/cdrecorder1 as /mnt/cdwriter.
$ ls /mnt/
Code:
cdrom cdwriter lfs livecd
After reboot it recreated another 2 lines as before
On User screen there are 4 CD icons;
CD Recorder1 (default)
CD-ROM Device (created by me)
CD-ROM (hdd) (default)
CDWRITER Device (created by me)
The default icons after removed will come back again on reboot.
Quote:
The gid=100 means that every file on the CD will belong to the group id 100. Files are still owned by root, but every user i add to group 100 will be in the same group as the mounted files.
Whether you meant adding 'user_1, 'user_2', etc. to /etc/group as
It doesn't matter if you leave the entries in fstab or not. I find it works regarded of whats in fstab.
Note: When using autofs (automount) for it to mount you have to try to access it first.
(in other words, the directories won't appear until you use a commad access them)
Example:
Code:
ls /media/cd
or
Code:
cd /media/cd
The directory will be different depending on how you set autofs up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.