LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2005, 09:07 PM   #1
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Rep: Reputation: 15
loading /dev/hdb automatically


I have 2 ide hard drives (Master + Slave). How can I load up /dev/hdb automatically at start up.


2nd question - Redhat installs a directory called /opt. How do I get more information about it.
such as:
- Which /dev/hd? it's on
- What it's capacity is
- and so on...
 
Old 06-12-2005, 09:24 PM   #2
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
I can answer only the first part of the question.

You have to modify your /etc/fstab (under root priveliges) and append the partition names and device
names and their file systems.
e.g. /dev/hdb1 /mnt/<2nd harddisk first partition> vfat

(replace the names appropriately) and only with these three entries. There are other options but I
think you need not specify anything there.
 
Old 06-12-2005, 09:28 PM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
How can I load up /dev/hdb automatically at start up.
Add a line in your /etc/fstab to have it mount at a specific mount point.


2nd question - Redhat installs a directory called /opt. How do I get more information about it.
such as:
- Which /dev/hd? it's on
- What it's capacity is
- and so on...


The command mount will tell you what directories are mounted on which devices. df -hT will tell you the device, total disc space, free space, filesystem, and mount point. Odds are that /opt is not specifically mounted on its own partition, it is probably on the same partition as /

If you want to know how much space opt is taking up, you could type du --max-depth=1 / that will tell you how much space each directory under / take up.

Last edited by musicman_ace; 06-12-2005 at 09:32 PM.
 
Old 06-12-2005, 09:53 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
/opt is for installing additional software packages after the installation. In most cases it will be empty. /opt is not typically on its own partition so therefore it will be part of your / (root partition).

The default Redhat installation creates 3 partitions and I will assume the entire OS installation is on one drive. / (root partition), /boot and swap partitions. /boot contains the kernel and other files required to boot the system. The size is typically 50-100 mb. The swap partition is like windows virtual memory and it is typically 2x RAM size. The rest of the drive will be your / partition and all directories except /boot will be included.

The output of the following command will show the size of all mounted filesystems.
df -h

To see how the drive is partitioned use the following command (requires root login):
fdisk -l

Here is a good basic tutorial.
http://www.icon.co.za/~psheer/book/index.html.gz
 
Old 06-12-2005, 10:00 PM   #5
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
Thank you all for the replies. Great info.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 06:00 PM
dd if=/dev/hda of=dev/hdb taking forever to complete fechin Linux - Hardware 7 06-19-2005 12:04 AM
Clone with dd if=/dev/hda of=/dev/hdb question wrc1944 Linux - Hardware 2 11-28-2004 09:10 AM
can't boot anymore /dev/hdb -> /dev/hde broxtor Linux - Hardware 4 11-13-2004 10:55 AM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration