LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
URGENT for SMB


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, 04:52 AM   #2
XavierP
Moderator
 
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, 04:53 AM   #3
muxman
Member
 
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, 06:21 AM   #4
trinity79
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, 08:15 AM   #5
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Hi,

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.

So:
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 08:17 AM.
 
Old 05-25-2004, 02:43 AM   #6
trinity79
LQ Newbie
 
Registered: May 2004
Posts: 6

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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