LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-21-2007, 06:10 AM   #1
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Rep: Reputation: 0
Hard Drive problems


Hi all,

I am very new to using Linux and have recently installed Fedora 6 on my pc I have done a dual boot with windows XP all is working fine except for one small problem...

... I have a second hard disk in my pc which has all my movies, pictures and music stored on it, but for some reason Linux isn't recognising that thereis a second hard disk there, any ideas why or how to solve it??

thanks in advance.

Bullit
 
Old 03-21-2007, 06:47 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Sounds like the second hard drive is formatted as NTFS, if this is true then use ntfs-3g to gain access.

su -c 'yum install ntfs-3g'
(provide root's password when prompted)

Check/show the output from the typed command; /sbin/fdisk -l
(that is the lower case letter 'L' in the command)

Plenty of examples on how to edit the /etc/fstab file and using the mount command for accessing the NTFS partition(s) in this forum, look for them or use google.
 
Old 03-22-2007, 11:08 AM   #3
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
thanks forthe prompt reply, IU jsut have a quick question, I noticed you mentioned fdisk, will this method you explained erase the hard drive im trying ot gain access to?? because I dont wnat to do that as it hass all my improtant stuff that i want to keep but still want access to on it.

thanks.

Bullit
 
Old 03-22-2007, 12:03 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
No, the fdisk command lists all the hard drives partitions nothing more. This information is useful when creating or adding mountpoint entries in the /etc/fstab file. Please see the manpage for the details; man fdisk

Example:
Code:
$ fdisk -l

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       12030    96526552+  83  Linux
/dev/sda3           12031       12161     1052257+  82  Linux swap / Solaris
 
Old 03-23-2007, 06:46 AM   #5
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, I checked everything last night and bothdrives are formatted to fat 32,but for some reason if still isnt showing hte drive as useable, also for some reason Fedora has recognised my sound card but when i try testing it i hear nothing, I ahve checked all the connections but still nothing any suggestions please?
 
Old 03-23-2007, 06:52 AM   #6
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Check if both the drives are recognised properly in the bios.
The jumper setting could be wrong.

As for the sound try

alsamixer

Increase the sound and try to test the sound again.
 
Old 03-23-2007, 07:19 AM   #7
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
thanks I'll give that a try tonight.
 
Old 03-23-2007, 07:42 AM   #8
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 bullit.mosh
thanks forthe prompt reply, IU jsut have a quick question, I noticed you mentioned fdisk, will this method you explained erase the hard drive im trying ot gain access to?? because I dont wnat to do that as it hass all my improtant stuff that i want to keep but still want access to on it.

thanks.

Bullit
That important stuff is all backed up---right??
 
Old 03-23-2007, 07:45 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Did you run fdisk -l?
Have you tried mounting the drive (partition)?

If a partition is not listed in /etc/fstab, it will not automatically get mounted when you start the system.
 
Old 03-23-2007, 08:04 AM   #10
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany
Did you run fdisk -l?
Have you tried mounting the drive (partition)?

If a partition is not listed in /etc/fstab, it will not automatically get mounted when you start the system.
how do you mount a partition in /etc/fstab (is this the process that ws explained to me at the start??), as I say I am still a newbie to linux to so any help in getting me going is always grateful

thanks,

Bullit

Last edited by bullit.mosh; 03-23-2007 at 08:11 AM.
 
Old 03-23-2007, 10:00 AM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You get the partitions list, the fdisk-l command. Then using this knowledge create an entry or entries in the /etc/fstab file as root. For example lets say your first hard drive (hda) has one primary partition (hda1) for Windows and is formatted as a FAT32 filesystem. To add this hard drive/partition entry as root one would (using your choice of text editor) add something like;

Code:
/dev/hda1		/media/Windows		vfat	auto,users,uid=0,gid=500,umask=000,rw	0 0
The mountpoint (where the Windows partition gets mounted to) is /media/Windows in the example above. This mountpoint needs exist (created and available) before attempting to mount the partition, again as root from the console or xterm session type something like;

mkdir /media/Windows

If the filesystem on the partition is NTFS and you have the ntfs-3g package installed the /etc/fstab entry would look pretty much the same with one small change;

Code:
/dev/hda1		/media/Windows		ntfs-3g auto,users,uid=0,gid=500,umask=000,rw	0 0
Feel free to make changes (add more Windows partitions for example) to this that suit you and your needs.


.

Last edited by Lenard; 03-23-2007 at 10:02 AM.
 
Old 03-25-2007, 05:58 AM   #12
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for your reply lenard, much appreciated, however whenever i try to create a new entry in the fstab file i keep getting an access denied erro.. is there any way to stop this?
 
Old 03-25-2007, 06:50 AM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
whenever i try to create a new entry in the fstab file i keep getting an access denied error
You need to be root to write to that file, and do the following things
So become root (not sure how Fedora does this either su - or sudo -i )

Edit the file as Lenard said. Save the file.

Make sure you have created the "mountpoint" as Lenard said.

Now mount your windows disk with the command mount /dev/hda1 This assumes your windows disk is /dev/hdb1

Now stop being root, before you have a nasty accident!:
exit

Now you should be able to read your windows files, and because of the entry you have put in /etc/fstab, your windows disk partition will be mounted every time you boot.
 
Old 04-06-2007, 02:23 PM   #14
bullit.mosh
LQ Newbie
 
Registered: Mar 2007
Location: Leeds, United Kingdom
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
sorry for the dealy in posting again, but i'd just like to say thanks very much for being patient with me and helping me this far I can now acess the drive as needed so thank you very much

however one thing im a bit unsure about is installing things (i.e. Alsamixer) in FC6 is there any chance someone could give me a run down on how to do this??

thanks

Bullit.Mosh
 
Old 04-06-2007, 06:05 PM   #15
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
The alsa rpm packages are more then likely installed, a quick check; rpm -qa 'alsa*'

If not then as root type: yum install alsa-lib alsa-utils
 
  


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
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Hard Drive problems theeil Linux - Newbie 1 02-15-2005 08:42 AM
Hard drive problems sybaritefury Linux - Hardware 1 01-18-2005 12:36 PM
hard drive problems nuka_t General 1 10-26-2004 08:50 PM
Hard drive problems tommytomato Linux - General 1 05-31-2004 07:53 AM

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

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