LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-31-2003, 04:06 PM   #1
saxblue
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
Have hard drive- help mount?


I'm using Red Hat 9.0 and I have a 120 GB firewire hard drive hooked up. In the hardware manager, it shows up as sda1. Is there any way to mount this drive in the graphical interface so I can access it (the file system is fat32 so I can share it with windows). If there is no graphical way to do it can someone tell me the command line way to mount it so it shows up on my desktop with the floppy drive and cd drive? Thanks!

saxblue
 
Old 07-31-2003, 04:10 PM   #2
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Rep: Reputation: 15
what WM are you using?? if its KDE, its really easy, just right click and go to new, and then there is a HD icon there....click on it, and it will open a window for you. type in the name of the drive that you want to appear under the icon, the click on the last tab, and it should ask you where you want to mount it, click on the little selctor thingy, and then select sda from the options (this is as long as the drive is in your /etc/fstab

then it will show up and you should be able to just click ont he drive to open it, and then you can unmount it with the right click on the icon and unmount, and then unplug it.....


i think thats the riht way, let me know if i am off drastically...
 
Old 07-31-2003, 04:19 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You can mount it at the command line.

First, create a new directory under /mnt
Then open a console window and type:
Code:
mount -t vfat /dev/sda1 /mnt/myDir
When you are done, don't forget to unmount it.
Code:
umount /dev/sda1
 
Old 07-31-2003, 04:39 PM   #4
saxblue
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I am using whatever the default in Red Hat 9.0 is. Is there a way to switch to KDE?

saxblue
 
Old 07-31-2003, 04:46 PM   #5
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Rep: Reputation: 15
yeah you can select the WM you want from the GDM or KDM graphical login's or you could run wmconfig i think, and then it should give you a list of the WM's, btu that second part is in slackware, i dont knwo if RH has that program......but you should be able to do it from the login in screen its the session button next to language in GDM


oh yeah and if my method doesnt work, then you nees to add
Mathieu's part to your /etc/fstab file that way you can have the icon on your desktop point to the correct drive...let me know how things go
 
Old 07-31-2003, 11:45 PM   #6
saxblue
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
O.K., I got to where I can use KDE, but the drive must not be in my /etc/fstab file. Could you explain how to add this? I am completely new to linux. Thanks.

saxblue
 
Old 07-31-2003, 11:48 PM   #7
saxblue
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Alrighty,

I am still having trouble understanding all of this. You all are being very helpful, but I have no idea what I am doing in linux. If you could please walk me through step by step what to do that would be great. Please do not take anything for granted- for instance mathieu said to create a new directory before mounting but I don't even know how to do this. So if someone could walk me through mounting this drive from the very beginning it would be extremely helpful. Thanks so much and I'm sorry I'm being such a pain.

saxblue
 
Old 08-01-2003, 10:33 AM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
In this example, I will call my directory fwhd1. You can change this to something else if needed.

In KDE, open a console window (Konsole).
If you did not login as root, type the following command and enter your root password.
Code:
su -
Now you are root, type the following:
Code:
cd /mnt
mkdir fwhd1
mount -t vfat /dev/sda1 /mnt/fwhd1
If you don't get any error messages, it work.

When you are done using the HDD (Hard Disk Drive), don't forget to un-mount it -- you will need to be root.
Code:
umount /dev/sda1
Now, you can add an entry to the /etc/fstab file.
You will need to login as root in order to append the following line to the file.
Code:
/dev/sda1               /mnt/fwhd1              auto    noauto,users,kudzu 0 0
 
Old 08-02-2003, 12:09 AM   #9
saxblue
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Success!!

Success!! Thank you so much to all who helped me with this issue, esp. Mathieu for his last detailed explanation. Now if I could only get my internet working.......but that's a question for the network section. Thanks again!

saxblue
 
Old 08-02-2003, 12:58 PM   #10
saxblue
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Well, maybe not

Well, I thought it was all working but it's not. When I shut down and restart the computer all the changes I made are gone. The etc/fstab file is back to the same way it was before even though I saved it and I have to go through the same process as before. The hard drive is no longer in the /mnt directory either. Any suggestions? Thanks.

saxblue
 
Old 08-02-2003, 07:46 PM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Simply use the mount and umount commands in order to mount your firewire HDD.
Do not include an entry in /etc/fstab

OR

If you want Linux to mount your firewire HDD automatically,
you will have to shutdown Kudzu.
Code:
chkconfig --level 35 kudzu off
Then follow the steps in my previous post, except when you get to the fstab,
replace noauto,users,kudzu with defaults,users,kudzu

Kudzu checks for new hardware including USB.
If you ever add new hardware and want it automatically detected,
you will have to re-activate kudzu.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you mount a hard drive? blackdragon Linux - Newbie 2 07-22-2005 10:28 AM
Mount a second Hard drive darazman Linux - Hardware 4 03-17-2004 06:50 AM
Where to mount second hard drive Harimwakairi Linux - Newbie 3 08-11-2003 04:29 PM
can't mount new hard drive yanban Linux - Hardware 5 07-19-2003 05:09 AM
How to mount a hard drive ed1023 Linux - General 1 08-31-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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