Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-07-2006, 03:17 PM   #1
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
2nd drive install in Mandriva

I recently replaced Windows Server 2003 on my server with Mandriva Linux for testing purposes. In the server I had 2 hard drives, one had the OS in it and the other was just for storage. Is it possible to take that storage hard drive and mount it with everything in tact in Linux? The last thing I want to do is delete everything on it. By the way, I'm also nearly completely new to Linux. Does anyone know the answer?
__________________
"Advancement is answering the questions, discovery is questioning the answers."
dataDude is offline   Reply With Quote
Old 02-07-2006, 03:27 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Yes, this possible, depending on the file system of that drive. If it is NTFS, you will only get read access to the contents.
doctorgonzo is offline   Reply With Quote
Old 02-07-2006, 06:20 PM   #3
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
Yes, the other drive is formatted with NTFS. I don't really care if I can only use it in read-only, at least I'd be able to retrieve stuff from it. Do you know how to do this or know of a good resource that can help?
dataDude is offline   Reply With Quote
Old 02-07-2006, 10:43 PM   #4
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Add this line to your /etc/fstab file
Code:
/dev/hda1 /media/windows ntfs ro,nls=utf8,umask=0222 0 0
Assuming Windows 2003 is on IDE master, first partition.
faulkner132 is offline   Reply With Quote
Old 02-07-2006, 11:26 PM   #5
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
Windows 2003 was the IDE primary master with the storage being the primary slave drive. I'm not trying to dual boot or anything and I don't want to move any of the files to the Linux partition for storage. Won't "/dev/hda1" try to mount the drive on the Linux drive? I'm confused now.
dataDude is offline   Reply With Quote
Old 02-08-2006, 06:06 AM   #6
Member (9 bit)
 
Join Date: Mar 2005
Location: Milton Keynes, Buckinghamshire
Posts: 273
Send a message via ICQ to Ind-PC_student Send a message via MSN to Ind-PC_student Send a message via Yahoo to Ind-PC_student
Lightbulb

Like faulkner132 said but change the partition name to /dev/hdb1

"quote"
/dev/hdb1 /media/windows ntfs ro,nls=utf8,umask=0222 0 0 [example]

For your reference linux drive naming

ATA/EIDE
Disk only
Primary Master = /dev/hda
Primary Slave = /dev/hdb
Secondary Master = /dev/hdc
Secondary Slave = /dev/hdd

SATA/SCSI/Flash Media/Usb drives
Disk only
Disk 1 = /dev/sda
Disk 2 = /dev/sdb
Disk 3 = /dev/sdc
Disk 4 = /dev/sdd

Just remember that partitions will give the drives numbers
example: /dev/hda1 = drive + partition 1
__________________
Linux Counter | Linux User #289274 | Linux Machine #289274 | All Welcome!!!|

NoteBook Toshiba Satellite L300D-243 | AMD Athlon™ X2 Dual-Core QL-64: 2.1 GHz | RAM 3,072 (2,048 + 1,024) | 250 GB HDD | DVD Super Multi drive DL | Display 15.4” Toshiba TruBrite® WXGA TFT @ 1,280 x 800 | ATI Radeon™ 3100 Graphics | Internal HD 720p | HD Audio | Multimedia Bar with 6 touch Easy Keys | integrated VGA Web Camera | integrated microphone |

Peripherals Luminox Digital 5.0MP Pocket Camcorder| HP Deskjet 3050 all-in-one | Hwawei e173 3G Dongle | Hitachi 320GB USB HDD

Last edited by Ind-PC_student; 02-08-2006 at 06:28 AM. Reason: Forgot editing style of Buletin boards
Ind-PC_student is offline   Reply With Quote
Old 02-08-2006, 04:34 PM   #7
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
Do I have to include anything in the mtab file?
dataDude is offline   Reply With Quote
Old 02-08-2006, 04:50 PM   #8
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
Never mind. With your guys' help and another tutorial I found, I was able to do it. Excellent! Thanks all.
dataDude is offline   Reply With Quote
Old 02-10-2006, 02:13 PM   #9
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
Due to a partition issue I had with that primary master drive, I had to repartition/reformat the pm. I didn't touch the secondary, but for some reason when I try to mount the drive that was just discussed Linux will tell me that the drive is already mounted or is busy/consuming resources (even on bootup reading through fstab), but it will not allow me to see what's on the drive. Funny thing is that apparently it will allow me to save stuff to the "mounted" drive. At first when I saw that it scared me because I thought that meant I had deleted the partition or screwed something else up with the drive itself. Then I tried it on a Windows machine and everything worked perfectly there. I tried everything you guys told me to do and the stuff I found on that other tutorial, but I keep getting errors. Have you guys ever dealt with that kind of thing?
dataDude is offline   Reply With Quote
Old 02-10-2006, 03:13 PM   #10
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Try deleting the mount point referred to in your fstab file, create a new mount point, then point your fstab to that. The mount point in my post above was /media/windows.
faulkner132 is offline   Reply With Quote
Old 02-11-2006, 01:51 AM   #11
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
I've been trying everything I can think of, still not working. I keep getting that message "mounting partition /dev/hdb1 in directory /media/windows failed (Device or resource busy)." I tried doing everything you said and keep getting the same thing. What the heck is going on here?
dataDude is offline   Reply With Quote
Old 02-11-2006, 01:49 PM   #12
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Open your /etc/fstab file, change /media/windows to /media/new_mount

Now try this at the command prompt:
Code:
umount /media/windows
mkdir /media/new_mount
mount -a
faulkner132 is offline   Reply With Quote
Old 02-12-2006, 12:07 AM   #13
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
What would be the difference between using "windows" and "new_mount"? Seems to me I'd still get the same error message, but what do I know right. The only real difference I see between last time when the mount worked and this time when it didn't was that last time that drive wasn't mounted in the first place; it was a later addition. This last time I had the drive connected and it may have screwed something up. That or possibly the fact that I hadn't installed it this last time on cold boot (that's been some known causes for some past Windows issues for me). I'm going to reinstall it this time like I did it the first time and see what happens. If it doesn't work out this time then I'll be back. Thanks for the tips thus far, guys, 'preciate it.
dataDude is offline   Reply With Quote
Old 02-12-2006, 02:40 AM   #14
Member (8 bit)
 
Join Date: Apr 2004
Location: Phoenix
Posts: 223
K, well, I disconnected the 2nd drive from the computer and reinstalled Mandriva. Then I went in to mount the drive again and this time I wasn't denied the action of mounting. However, it still wouldn't show the contents of the drive. So I messed with the mount command a little and harddrake. This time I got no error messages of any kind anywhere. I put the mount code into fstab and rebooted and then finally I was able to see the contents of the drive. Sweet! So now I know how to avoid this crap next time. Again, thanks for your help. Without your tips, kiss my luck goodbye .
dataDude is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:27 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0