LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices



Reply
 
Search this Thread
Old 07-23-2008, 11:48 PM   #1
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 35

Rep: Reputation: 0
Smile 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.
 
Old 07-23-2008, 11:57 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
way to vauge; please be more specific so we can help.
 
Old 07-24-2008, 12:35 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.

Last edited by jschiwal; 07-24-2008 at 12:38 AM.
 
Old 07-24-2008, 12:59 AM   #4
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 173

Rep: Reputation: 38
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.
 
Old 07-24-2008, 11:50 AM   #5
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 35

Original Poster
Rep: Reputation: 0
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..

Last edited by dipanjan; 07-24-2008 at 11:53 AM.
 
Old 07-24-2008, 03:49 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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".

Last edited by jschiwal; 07-24-2008 at 03:51 PM.
 
Old 07-25-2008, 07:13 AM   #7
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 35

Original Poster
Rep: Reputation: 0
Than you for given me answar the question
 
Old 07-28-2008, 08:30 AM   #8
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 35

Original Poster
Rep: Reputation: 0
Dear All
pls tell me how I configure DHCP, in my server.


Thanks
Dipanjan Mukherjee
 
Old 07-28-2008, 09:13 AM   #9
KasMage
LQ Newbie
 
Registered: Jul 2008
Location: Indiana
Distribution: Mandriva 2008.1
Posts: 21

Rep: Reputation: 15
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.
 
Old 07-28-2008, 09:30 AM   #10
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 35

Original Poster
Rep: Reputation: 0
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
 
Old 07-28-2008, 09:53 AM   #11
KasMage
LQ Newbie
 
Registered: Jul 2008
Location: Indiana
Distribution: Mandriva 2008.1
Posts: 21

Rep: Reputation: 15
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".

Last edited by KasMage; 07-28-2008 at 09:55 AM. Reason: Added 'setup' information
 
Old 07-28-2008, 10:22 AM   #12
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by dipanjan View Post
Dear All
pls tell me how I configure DHCP, in my server.


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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making an entry in fstab for new xfs partition Cinematography Linux - Hardware 2 09-16-2007 10:39 PM
fstab entry for mounting cif drive johnav Linux - Networking 1 09-15-2007 06:19 AM
fstab entry for windows partition stratotak Debian 2 02-15-2007 07:09 AM
FSTAB entry for normal user to access windows partition rmanocha Linux - Software 4 01-29-2004 05:33 PM
Mounting USB-Stick - entry in fstab disappears at reboot??? rot Linux - General 5 08-07-2003 04:37 AM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration