LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what I type for given entry in /etc/fstab for mounting a partition (https://www.linuxquestions.org/questions/linux-general-1/what-i-type-for-given-entry-in-etc-fstab-for-mounting-a-partition-657836/)

dipanjan 07-23-2008 10:48 PM

what I type for given entry in /etc/fstab for mounting a partition
 
what I type for given entry in /etc/fstab for mounting a partition.

johnson_steve 07-23-2008 10:57 PM

way to vauge; please be more specific so we can help.

jschiwal 07-23-2008 11:35 PM

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.

Hendronicus 07-23-2008 11:59 PM

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.

dipanjan 07-24-2008 10:50 AM

how I mount logical partition like /dev/hda7.And also I need to mount it in /etc/fstab for boot time mount,everytime I start the machine.
Pls help.

Dipanjan..

jschiwal 07-24-2008 02:49 PM

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.
example:
sudo mkdir /podcasts

Next create an entry appropriate for the filesystem:
Code:

/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".

dipanjan 07-25-2008 06:13 AM

Than you for given me answar the question

dipanjan 07-28-2008 07:30 AM

Dear All
pls tell me how I configure DHCP, in my server.


Thanks
Dipanjan Mukherjee

KasMage 07-28-2008 08:13 AM

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:

http://oob.freeshell.org/nzwireless/dhcpd.html

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:

DHCPDARGS=wlan0;

Just remember that you can't just flat-out copy the file. There will be a lot of changes to that example.

dipanjan 07-28-2008 08:30 AM

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.

pls suggest me how to I configure step by step.

Thanks

Dipanjan

KasMage 07-28-2008 08:53 AM

Okay then. I believe that dhcpd will already be installed then. If not, hunt the RPM down off the installation discs. Then, create the configuration file (/etc/dhcpd.conf).

http://www.redhat.com/docs/manuals/l...ng-server.html

^ 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".

ErV 07-28-2008 09:22 AM

Quote:

Originally Posted by dipanjan (Post 3228619)
Dear All
pls tell me how I configure DHCP, in my server.


Thanks
Dipanjan Mukherjee

This isn't related to "mount" and /etc/fstab.


All times are GMT -5. The time now is 01:00 AM.