Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-24-2004, 05:40 AM   #1
LQ Newbie
Registered: May 2004
Posts: 6

Rep: Reputation: 0

My pc has 2 hard drives one with win2000 and one with RH9. I'm trying to find a way to be able to view my windows folders from Linux! As far as I have seen samba is for networks how do I make it work on my pc? Please Help!!!!!!!!!!!!!!!!!!!
Old 05-24-2004, 05:52 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Samba is for networks. To view a filesystem in Windows from Linux requires you to mount the drive.

This is covered regularly on LQ - I'd do a search for mounting NTS or mounting FAT32 drives.

And please do not mark your question as urgent - what is urgent to you is less so to the rest of us. Often threads marked urgent are ignored.

But, Welcome to LQ anyway.
Old 05-24-2004, 05:53 AM   #3
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
You need to mount that hard drive just like you do a cdrom or floppy.

How is the hard drive connected to your comptuer? On what cable and how? Master, slave, etc. Is it fat or ntfs? These are a few things you need to know but the basic info follows.

Make an empty directory to mount the drive to.

Then mount the drive with a command similar to this one:
(This is where that info is needed for this to be correct, you will need to change the info to suit your needs.)

mount -t ntfs /dev/hdb /mnt/windows

Some syntax info:
mount = mount is the command

-t = the switch specifying a type of drive

ntfs = is the type

/dev/hdb = is the device file in linux where the hard drive is connected

/mnt/windows = the empty directory the dirve is being mounted to
Old 05-24-2004, 07:21 AM   #4
LQ Newbie
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
i must be doing something wrong!

I ctreated the folder win2000 under /mnt and in the fstab i wrote /dev/hda1 /mnt/d ntfs defaults 0 0
the disk is master and runs ntfs. there are 2 partitions (C and D ) and need access to D. Any ideas on what i'm doing wrong?
Old 05-24-2004, 09:15 AM   #5
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33

is your D partition on a primary or on a logical partition ?

hda1 is *very likely* your C partition.

hda2 can be your D partition if it's a *primary* partition.

However, If your D drive is a logical drive on a *extended* partition then it's
very likely hda5

You may check this by invoking fdisk /dev/hda
On the fdisk command prompt enter p and press the enter key.
This will print all partitions on your hda disk.

Then leave fdisk by entering q.

Now create a Folder called winD under mnt.

md /mnt/winD

If your D partition is a primary partition and is located on hda2 and it is a ntfs partition
then you need to add following line to your /etc/fstab

/dev/hda2 /mnt/winD ntfs ro,user,exec,umask=0222 0 0

If it's a FAT partition then replace ntfs with vfat in the line above.
Save your /etc/fstab.

Mount the partition by entering

mount /mnt/winD

Last edited by Vlad-A; 05-24-2004 at 09:17 AM.
Old 05-25-2004, 03:43 AM   #6
LQ Newbie
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
It all worked fine!!!!!!!!!
I was worried for a while!


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 11:21 AM
URGENT: need simple smb live distro Fraudulent Linux - Enterprise 1 04-13-2005 08:09 AM
SMB: More then one Windows user/ smb account? 1veedo Linux - Networking 2 03-15-2005 05:16 PM
Creating a SSL connection from smb clients to a smb server scottpioso General 0 11-17-2003 03:33 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 05:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration