what I type for given entry in /etc/fstab for mounting a partition
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You might want to read the man pages for "mount" and "fstab". Also look through the /etc/fstab you have. This is all the help I can give given the lack of information. Also put your distro in your user profile. Some distro's default to using LVM for example. So knowing if you are running SuSE, Ubuntu, Fedora Core, etc. can give us a clue what to expect.
Another thing that you might try is looking at an fstab file to see its structure. It's pretty easy to tell what the individual entries do from that. Always remember to make a new line at the end of the file, too.
First you need to know the filesystem used for /dev/hda7.
sudo file -s /dev/hda7
Next you need to know where you are going to mount it. If this is a new partition, you need to create a directory to mount it on. You might want to name it appropriately for what you are using it for.
sudo mkdir /podcasts
Next create an entry appropriate for the filesystem:
/dev/sda7 /podcasts ext3 acl,user_xattr 1 2
This example is for the ext3 filesystem which is the native Linux filesystem. The third field contains the filesystem. The fourth contains the mount options. Many distro's will not have /dev/hd* devices but use /dev/sd* devices instead. It depends on which kernel you use.
Now this partition will be mounted when you boot.
Please scan through the mount man page.
You might be interested in the "System Administrator's Guide" (SAG) on the www.tldp.org (the Linux Documentary Project) web site. It will contain answers to this and other things you might do administering your linux machine. There is also an O'Reilly book "Running Linux".
Err... It really depends on what exactly you want DHCP to do. First, make sure you have a DHCP server. dhcpd will usually get the job done. If you need help installing it, you'll have to tell us what distribution of Linux you're using. Then once it's installed, configure '/etc/dhcpd.conf'. I'm not 100% sure if the file will already exist or not. If it does, it will likely have comments explaining its usage. If not, you'll need to find an example one and use it as an outline to configure the server to do what you want it to do. There's a good example file here:
There will be some obvious changes you need to make to that. For example, you may or may not be using wlan0 as your network interface. If you're using eth0 or something else, make sure you change this line:
Just remember that you can't just flat-out copy the file. There will be a lot of changes to that example.
I have a server (hcl probl 1400 bt),also my linux distribution is red hat linux enterprise edition ver3.I want to install and configure dhcp in my server.
My starting ip range is 192.168.20.1 and end ip range is 192.168.20.200
also I need never unchange the ip 192.168.20.1 and from 192.168.20.20 - 192.168.20.30.
^ This guide is for RH9, but dhcpd hasn't had any drastic changes over the years. Use that to craft your /etc/dhcpd.conf file. If you have any questions about anything in the guide, just ask.
Once you have the file created and ready, run 'setup' on the command line and go to Services. You can enable dhcpd there to have it automatically run at boot-time. To start it manually, just do "/etc/init.d/dhcpd start".
Last edited by KasMage; 07-28-2008 at 09:55 AM.
Reason: Added 'setup' information