LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-30-2007, 08:04 AM   #1
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18

Rep: Reputation: 0
Question RHEL_4 Help - mount ing hard drive


Just installed RHEL 4 for the first time.

Followed all the prompts & defaults from the installation disks, ending up with 2 partitions (hda1 & hda2) taking up the whole 20G hard drive.

I want to use a separate IDE hard drive to store my personal files, so that they can be saved if I have to re-install the OS.

How do I permanently mount this drive?
Where is the best place to mount it?

clue_less
 
Old 04-30-2007, 08:16 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
first, do "fdisk -l" (as root) to be sure how the drive is seen by the system. (probably hdb_)

The normal place to mount internal drives is /mnt, but you can put it whereever you want. You may find that RHEL has already made an entry in /mnt (and also possibly mounted the drive)

If you do have to mount it yourself, first create a "mount point" (a directory)--eg "mkdir /mnt/mydata", then add an entry to /etc/fstab which looks soemthing like:
/dev/hdbX /mnt/mydata xxxx defaults 0 0
(replace X with the correct partition #, and xxxx with the filesystem type (eg ext3)) See man fstab for more info on the format of the entries.

You can now mount the drive using "mount /mnt/mydata" As written, it will also automatically mount on the next bootup.
 
Old 04-30-2007, 09:06 AM   #3
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18

Original Poster
Rep: Reputation: 0
RHEL_4 help - mounting hard drive

Thanks for your quick respond.

The disk I wanted to use is "hdd".
Should I continue with the rest of the commends?

Output from "fdisk":

[root@localhost ~]# fdisk -l

Disk /dev/hda: 20.4 GB, 20485785600 bytes
255 heads, 63 sectors/track, 2490 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2490 19896502+ 8e Linux LVM

Disk /dev/hdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 6502 52227283+ 7 HPFS/NTFS
/dev/hdc2 6503 9052 20482875 7 HPFS/NTFS

Disk /dev/hdd: 4310 MB, 4310433792 bytes
255 heads, 63 sectors/track, 524 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 523 4200966 7 HPFS/NTFS
[root@localhost ~]#
 
Old 04-30-2007, 04:50 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by clue_less
Thanks for your quick respond.

The disk I wanted to use is "hdd".
Should I continue with the rest of the commends?

Output from "fdisk":

......SNIP.....


Disk /dev/hdd: 4310 MB, 4310433792 bytes
255 heads, 63 sectors/track, 524 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 523 4200966 7 HPFS/NTFS
[root@localhost ~]#
Of course. You will be mounting /dev/hdd1 with filetype NTFS.
 
  


Reply

Tags
hd, mounting, rhel4



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
Unable to install RHEL_4 64 bit on AMD64 with 7200 RPM HITACHI SATA II hard drive chandan_smvdu Linux - Enterprise 1 01-31-2007 05:57 PM
hard drive mount pocat Linux - Hardware 9 09-12-2006 01:56 AM
Help writing script file to mount / mount hard drive Rustylinux Linux - General 6 06-27-2006 09:34 AM
Have hard drive- help mount? saxblue Linux - General 10 08-02-2003 07:46 PM
How to mount a hard drive ed1023 Linux - General 1 08-31-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:02 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
Open Source Consulting | Domain Registration