LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-06-2007, 09:48 PM   #1
kyleabaker
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Trouble mounting Sata drive


Hello all,

I'm fairly new to linux and I'm currently trying to mount my hard drives, which are NTFS format (i installed the patch to do this with redhat at linux-ntfs.org), and I get my main drive to mount, but not my sata drive.

Here is my setup..
40gb drive that is partitioned:
-10gb for RedHat Enterprise Linux AS 4
-30gb for Windows XP Pro
*The 30gb partition of this drive is mounting perfectly fine.

Then I also have a 300gb Sata Seagate drive with a single partition. This is the drive that will not mount.

I have made a folder at "/mnt/300gb" to mount the drive to and I use the following line to mount it (which is identical to the commands I use to mount the other and it worked then):
mount /dev/sda1 /mnt/300gb -t ntfs -r -o umask=0222

The error message I'm getting from that is..
mount: /dev/sda1 already mounted or /mnt/300gb busy

I have already tried umount'ing all that are mounted and then try mounting the 300gb again, but still same response. I've also searched the net for a while now trying to find a fix and I've come across some that I think will be the fix I'm looking for...they all say something like this:
Quote:
Device mapper was causing the issue so I disabled dm-mod/dm-mirror and it mounted upon reboot!
 
Old 02-06-2007, 09:49 PM   #2
kyleabaker
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Here are some of the similar ones i've found:
http://www.centos.org/modules/newbb/...?topic_id=5759
http://www.linuxquestions.org/questi...d.php?t=390200
http://www.linuxquestions.org/questi...d.php?t=494987
http://www.centos.org/modules/newbb/...=6181&forum=29
I just wanted to start this new thread (instead of posting on one of those) in order to bring the fix to everyone else who has trouble with this..as it is not documented or explained on the other threads very well.

I just can't find a single thing via google about how to disable dm-mod/dm-mirror so I can see if this fixes my problem. Can someone please explain how I go about this? As I said earlier..I'm fairly new to linux and I'm running Red Hat Enterprise Linux AS 4.
 
Old 02-08-2007, 08:17 PM   #3
kyleabaker
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Is anyone here to help!? lol. So I ditched RedHat E.L.4...now I'm in Fedora Core 6, and I'm still having problems with this sata harddrive. I will post a screen shot of exactly what is happening..

http://img479.imageshack.us/img479/7...c32352rcg8.png

...as you can see, I went with the ntfs-3g extras way of mounting. It worked for a ntfs partition that is on the same harddrive (ata), but the sda1 partition I'm trying to mount is on a different harddrive (sata) and shows up but will not mount.

Any help?
 
Old 02-09-2007, 01:42 AM   #4
kyleabaker
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I Solved It..

I'm really not sure why no one here is helping me at all..it's a bit sad to see such a nice forum and get no help from it at all. But to those of you who find your way here, having the same trouble i did, try doing the following to cure it..

In the terminal, type the following..
Code:
]# lspci
...and then...
Code:
]# dmraid -ay
..this will print out information similar to this..
Code:
[root@wvc32352rh ~]# lspci
00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3)
00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3)
00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
00:05.0 Multimedia audio controller: nVidia Corporation nForce Audio Processing Unit (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
00:0d.0 FireWire (IEEE 1394): nVidia Corporation nForce2 FireWire (IEEE 1394) Controller (rev a3)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
01:06.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
01:07.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
01:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
01:0b.0 RAID bus controller: Promise Technology, Inc. PDC20376 (FastTrak 376) (rev 02)
03:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
03:00.1 Display controller: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary)
[root@wvc32352rh ~]# dmraid -ay
RAID set "pdc_ecjdaedd" already active
RAID set "pdc_ecjdaedd1" already active
If you were like me, then you were running a quick 'fdisk -l' check in the terminal and finding the name of your sata/raid drive to be something like '/dev/sda1' (or similar) and you were attempting to mount with that name. However, as you've obviously found out by now..this is incorrect. If you look at the printout that I posted above from my results, you'll see at the bottom..
Code:
RAID set "pdc_ecjdaedd1" already active
..you want to replace '/dev/sda1' (or your similar partition name) with the part that (in my case says) 'pdc_ecjdaedd1'

--Mount drive from terminal using "ntfs-3g"
*First off, if you don't have Fedora, then I'm not sure what add-on you will need to mount ntfs drives with. You can look at the ntfs-3g site and see if your distribution of linux os supported by them (http://www.ntfs-3g.org/), or look to linux-ntfs.org for other add-ons that will allow your linux system to mount ntfs formatted drives. With any of these add-ons, you will still need to use the raid name that I discribe how to use, instead of the name of the drive that 'fdisk -l' tells you.
Now,
To mount this drive, instead of using the '/dev/sda1' name that you've probably been finding, you want to use the name that you found for your sata/raid device. You should type something like this (replacing the 'pdc_ecjdaedd1' part with the name of your own device)..
Code:
ntfs-3g /dev/mapper/pdc_ecjdaedd1 /mnt/archive
..I used the folder '/mnt/archive' to hold/mount my drive to, but you can create a folder of any name there. Just remember to create it first.

--Automatically mount drive on boot
If you want to have this drive mount automatically when you boot, you need to (first be logged in as root, then) find the file called 'fstab' in the folder '/etc'.

When you find this file, open it with a text editor, and at the end, you need to enter the following line (modifying it of course to match the drive name that you found, and not mine, which is probably not correct for you)..
Code:
/dev/mapper/pdc_ecjdaedd1               /mnt/archive             ntfs-3g dmask=022,fmask=133,noauto,locale=hu_HU.UTF-8,user 0 0
--Troubleshooting
*First of all, please don't look to me to help you solve your problems beyond this. I know, I know, sounds a little harsh. But, as I've recieved no help from anyone here, I don't really intend to stick around. This is all the help I can/want give. It should be enough to get you rolling smoothly again..that is, if you are having the same problems I was having. If your problems are not the same, then this help may/may-not work, just read and interpret.

-Now, if you are getting a message that says anything like:
Code:
Bootsector checksum failed.
Failed to startup volume: Invalid argument
Failed to mount '/dev/sda': Invalid argument
The device '/dev/sda' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
..then you probably forgot to add the number to the end of the name. Example, my raid drive was named 'pdc_ecjdaedd', but the partition that it needed was 'pdc_ecjdaedd1'.

-Next, if you are getting a message saying the drive cannot be found or does not exist, then you are using the wrong name/location for the drive. Re-read what I typed above, but this time, read carefully. :P If it is a sata/raid drive, then you can find the possible names by typing 'dmraid -ay' into the terminal window, then just pick the one you need.

-Also, if it says that the drive is already mounted or busy, (you are probably using RedHat Enterprise Linux 4, as I was at first. now I'm using Fedora 6) you need to try the advice given in the step directly above this one.

-Any other problems should probably be dealt with by browsing.. http://www.linux-ntfs.org/ ..all I can tell you is READ. You can try posting questions here at this forum, but I didn't get any help. Maybe you'll get more than me.

Anywho, best of luck figuring this out. It took me long enough to, haha. I really hope this is useful to atleast someone, lol. Cheers, and good luck.
 
Old 04-27-2007, 09:56 PM   #5
jstauf86
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Thumbs up

Thanks kyleabaker for helping a Newbie with this How To,

You made mounting SATA drives look easy!!!

jstauf86
 
  


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
FC5 not mounting sata drive jtmillard Fedora 9 03-23-2006 05:46 PM
Mounting an SATA Novell Drive in Linux Cutty201 Linux - Hardware 1 03-20-2006 12:47 AM
mounting 2nd (sata) hard drive on 10.1 rob0t Slackware 6 08-15-2005 04:05 PM
Mounting a SATA hard drive ozymandias Linux - Newbie 3 08-14-2005 02:35 PM
vFat partition trouble on SATA drive WarmFlatSprite Linux - Hardware 4 09-28-2004 08:35 PM

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

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