LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-23-2003, 05:52 AM   #1
Manarius
LQ Newbie
 
Registered: Jul 2003
Location: Grantham, PA, US
Distribution: Ubuntu 8.1 w/ KDE4
Posts: 20

Rep: Reputation: 0
Harddrive mounting


I just installed Red Hat 9. However, it doesn't recognize any of my other harddrives. Is Red Hat even able to read Fat 32?

1 other question: How do I switch from Gnome to KDE?
 
Old 07-23-2003, 06:40 AM   #2
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 18
You should be more specific:

- are you those drives ATA (IDE) or SCSI ?
- are they listed in /etc/fstab
- if in /etc/fstab, are they mounted automatically, or do you have to do it manually

Ty the following for extra help (on command line)

man mount
man fstab
 
Old 07-23-2003, 06:58 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Manarius

Yes Red Hat can read FAT32

Red Hat can also read NTFS if you get the RPM

Red Hat can't write to NTFS thougn.

Susbstitute your partition and mount point in here in place of /dev/hda1 and /mnt/windows - this will temporarily mount a FAT32 partition


mount /dev/hda1 /mnt/windows -t vfat -r


To create a permenant mount on boot up do


/dev/hda1 /mnt/windows vfat rw

Last edited by Skyline; 07-23-2003 at 06:59 AM.
 
Old 07-23-2003, 03:36 PM   #4
Manarius
LQ Newbie
 
Registered: Jul 2003
Location: Grantham, PA, US
Distribution: Ubuntu 8.1 w/ KDE4
Posts: 20

Original Poster
Rep: Reputation: 0
Okay...I got them mounted...they are ATA. I had to do the mounting manually. But now...(I got the swtich to KDE ok) it won't read my MP3 files or my CD's. I think that my kernel doesn't have support for my sound card. But I pdated to the latest one...and I hope it auto configs ok. In the old kernel, it finds that card, but when I play the sound, it doesn't play.
 
Old 07-25-2003, 04:07 AM   #5
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 18
Harddrives do not read CD's. Trying to replace the disk inside will also invalidate your warrenty .

To read files from a data-CD (as opposed to an audio CD), mount it manually using the mount command. The entry in /etc/fstab should specify the filesystem as isso9660. Do NOT mount the CD automatically, thats not appropriate for removable media.

To support ATAPI CD players (those with a IDE/ATA connector), the kernel needs the following modules:

ide-cd
isofs

They can be built in to the kernel, or compiled as a sperate module. In the latter case, you can have these modules on autoloading or not. This determines wheter you have to run insmod/modprobe by hand.

I never play audio CD's directly. I just rip them using CDparanoia and turn them into mp3's or oggs. Alternatively, use workman or something like that.
 
Old 07-29-2003, 03:22 PM   #6
the_anti_pat
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 8.0 (Debian soon)
Posts: 21

Rep: Reputation: 15
Hi...I had a hardware conflict (graphics card and memory i think) and windows went self destruct and linux survived fine! I'm not too bothered about losing windows but I'd like to get some of the files that were in my shared files for kazaa. So I've been trying to mount my NTFS partition (I wasn't a linux user when I chose ntfs) without luck, I used a more detailed tutorial than this to try to mount and eventually it worked up until the point of adapting my fstab so that I could get easy access...I'm not sure about my hdd configuration but I'm pretty sure hda1 is my main windows partition and hda2 a 40GB file dump which is very important to me! anyway with the multiple methods i've tried I haven't been able to mount the partition. The one time I did as forementioned I didn't have "kernel-ntfs-2.4.18-3.athlon.rpm" but I installed it after reading the above post which still gave me the same old error!
"[root@localhost alistair]# mount /dev/hda2 /mnt/windows -t vfat -r
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)"
PS - I'm aware that mounting the drive will not solve my problems but it could help! I've heard of people running an NTFS drive through wine though and esentially emulating the whole system!
 
Old 07-29-2003, 04:20 PM   #7
the_anti_pat
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 8.0 (Debian soon)
Posts: 21

Rep: Reputation: 15
I figured it all out....i needed "kernel-ntfs-2.4.18-14.i686.rpm" just gotta figure out how to access it as a normal user! But there's another thread for that.
 
Old 08-01-2003, 05:23 AM   #8
violaten
LQ Newbie
 
Registered: Aug 2003
Location: Tennessee
Distribution: Red Hat 9
Posts: 18

Rep: Reputation: 0
Quote:
Originally posted by DIYLinux

The entry in /etc/fstab should specify the filesystem as isso9660.
*Correction* The entry in /etc/fstab should be iso9660
 
Old 09-14-2003, 04:27 AM   #9
kuyalfinator
Member
 
Registered: Jul 2003
Location: Los Angeles
Distribution: RedHat8 2.4.18-14 RedHat9 2.4.20-8 FreeBSD 5.2.1 Ubuntu 10_4 Mandrake 2.4.21-0.13mdk
Posts: 118

Rep: Reputation: 16
Quote:
Originally posted by Skyline
Hi Manarius

Yes Red Hat can read FAT32

Red Hat can also read NTFS if you get the RPM

Red Hat can't write to NTFS thougn.

Susbstitute your partition and mount point in here in place of /dev/hda1 and /mnt/windows - this will temporarily mount a FAT32 partition


mount /dev/hda1 /mnt/windows -t vfat -r


To create a permenant mount on boot up do


/dev/hda1 /mnt/windows vfat rw
I tried to following this example. How do I make it permanent? The fstab and mtab need to be modified to make it permanent? Currently, in order for my Linux OS to access the other file systems, I need to log in as root in one of the terminals.

This is how the .bash_profile looks like:
Code:
...
# Creating connections for folders from other drives using 'bind' command
#cd /home/at3
cd /mnt/
mount /dev/hdc1 /mnt/Crash-n-Burn
mount /dev/hde1 /mnt/Win98_40gig
...
Here are the fstab and mtab
Code:
$ more fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/usr/local        /usr/local              ext3    defaults        1 2
/dev/hdc6               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0
0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

$ more mtab.bak
/dev/hdc7 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hdc2 /boot ext3 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hdc5 /home ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/hdc3 /usr/local ext3 rw 0 0
/dev/hde1 /mnt/Win98_40gig vfat rw 0 0
/dev/hdc1 /mnt/Crash-n-Burn vfat rw 0 0
So, I would need to comment out the mount declarations in the .bash_profile and use the mtab.bak file [notice the last to lines]. It worked before and I can access the other files systems without logging in as root.
 
Old 09-16-2003, 08:22 PM   #10
kuyalfinator
Member
 
Registered: Jul 2003
Location: Los Angeles
Distribution: RedHat8 2.4.18-14 RedHat9 2.4.20-8 FreeBSD 5.2.1 Ubuntu 10_4 Mandrake 2.4.21-0.13mdk
Posts: 118

Rep: Reputation: 16
I figure out a way for other users besides root to mount other files systems in Redhat 8.0. I have also Mandrake 9.1 which automatically mounts the other file systems (FAT32 and NTFS) without logging in as root. Redhat 8.0, root can only mount other file systems.

First, research about 'sudo' and 'sudoers' using the man command. Once you know how 'sudo / sudoers' work, look for the file sudoers in the 'etc' directory.

/etc/sudoers

only root can modify this file. You can log in as root or use the 'su' command to modify it. Look for the following line:

# User privilege specification
root ALL=(ALL) ALL
testUser ALL=ALL

Add another user, similair to root. Save and exit.

Next, we need to modify the .bash_profile or .cshrc file in the home directory to include the following lines. Include these lines in the files mentioned above:

sudo mount /dev/hd??? /mnt/???

The ??? are where you put the device name and the mount name. This will prompt you for a password. The password should be the same login password as the user logging in.
 
  


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
mounting another harddrive: Filesystem not supported Arild2 Linux - Hardware 3 10-30-2004 08:23 AM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
need help editing fstab and mounting 2nd harddrive Apostasy Linux - Newbie 18 06-25-2004 08:47 AM
Help mounting harddrive after booting from cd pclark54 Linux - Newbie 4 01-19-2004 12:17 PM
Mounting harddrive psyx Linux - Newbie 2 06-01-2001 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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