LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-20-2003, 06:58 AM   #1
B.A. Babrukis
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
I need help with mounting and viewing hd


I have Red Hat Linux 9.0 on a 13 gig hd and I am trying to mount a forty gig hd but I am having no luck. I tried to edit fstab with emacs but I dont think I did it right. Furthermore if I try to open up an hd file in /dev a message box pops up and tells me that Nautilus has no viewer capable of viewing the contents of this file. Any help or suggestions are appreciated.
 
Old 10-20-2003, 07:34 AM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hello.

First thing you need to do is find out what your 40GB hard drive is set up to be. For example Primary Master or Slave etc.... once you find out what it is follow these steps.

1. Login as root.
2. Make a directory to mount the 40GB hdd to (mkdir /mnt/hdd)
3. Mount you hard drive (mount /dev/hdxx /mnt/hdd) (Here you change the 'hdxx' to your hard drive setup. For example if it was a Secondary Master 'hdc1').

You should now be able to view the info on the hdd by 'cd /mnt/hdd' or by using the gui to do it.

Just for your reference...

Primary Master = hda
Primary Slave = hdb
Secondary Master = hdc
Secondary Slave = hdd
and so on....

The numbers after the 'hda, hdb' etc, are the partition number. If you only have one big partition, just hda1 or hdd1 etc will do.

Good luck.
Craig
 
Old 10-20-2003, 08:24 AM   #3
barrys
Member
 
Registered: Sep 2003
Location: London
Distribution: Susi 9.1, Man10 amd64, Man10.1
Posts: 243

Rep: Reputation: 30
Right click on your mouse - create - harddisk-
in general right "I call this hard drive hda1"
tab to device
you should see in the listing the drives the hard disk /hda1
select this
click OK

Now you should have a I call this hard drive hda1 ikon
 
Old 10-20-2003, 04:44 PM   #4
B.A. Babrukis
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Ok here's the deal

My 13 gig is the the master as it has the Linux partition on it and Linux is what I am using. Its the primary master and the 40 gig is the primary slave. Just so you know the drives are displayed in the Hardware Browser. So at least the OS recognizes that the drive is there. I don't understand why I can't veiw files in dev though.

Anyway, let me tell you what I have done so far. I edited fstab in Emacs as such.

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda9 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hdb1

HDB1 is the only line I have added. Outside of that I really don't know how to add these lines into emacs to make it mount the second hard drive. Anyway that's my sitcheeation in a SHELL ya nuts.

Last edited by B.A. Babrukis; 10-20-2003 at 05:25 PM.
 
Old 10-21-2003, 03:06 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Have you created a mount point yet? - you'd typically access the contents of your drive via the mount point - so create that first - if you are putting a line in /etc/fstab, youll need to know the filesystem type of the partition your trying to mount - is it a Windows filesystem you want to mount?
 
Old 10-21-2003, 06:19 AM   #6
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
If the second hd is a slave on the primary ide channel try
fdisk /dev/hdb
and then list the partitions. If not partitioned yet then you can do it from here.
Next make a file system on the hd. I use
mkreiserfs /dev/hdb1
But of course you can use any fs you like ext2,ext3 etc.
then you should be able to mount it. On my setup
mount -t reiserfs /dev/hdb1 /disk2

I have just added a 40G mxstor hd to my box as above had no problems

You may have done all this in which case all I can do is to wish you good luck!

Last edited by Lazarus; 10-21-2003 at 06:21 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 08:34 AM
viewing ur ip thriller Linux - Networking 2 07-04-2004 08:14 PM
mounting and viewing network shares GraemeK Linux - Networking 4 01-27-2004 04:23 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 04:13 PM
TV Viewing Stephanie Linux - General 1 10-09-2001 02:09 AM

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

All times are GMT -5. The time now is 08:57 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