LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-22-2005, 08:30 PM   #1
MrLizard
LQ Newbie
 
Registered: Mar 2005
Location: glasgow
Distribution: ubuntu hoary (5.04) on acer travelmate 8103 & Custom desktop
Posts: 23

Rep: Reputation: 15
Unable to access NTFS on linux box from windows...


My current setup consists of a laptop (acer travelmate) running winxp with wireless access and a desktop dual booting ubuntu linux and winxp with wired access.

I have managed to set up a basic samba network so that the laptop can see 1 of 2 shared disks on the desktop when the desktop is booted into linux. i can get as far as browsing the desktop's regular IDE disk over the network from my laptop. I can also see the 2nd disk on the desktop from my laptop. When I try to access this disk, however, I have a permission denied warning from windows.

I should mention that the first disk on the desktop has 2 shared partitions in NTFS and FAT32. The second disk is formatted entirely in NTFS and is SATA.

Am I missing something obvious here or do i have to mount the SATA disk in any special way to let samba use it?

To reiterate for clarity:

Setup: laptop running winxp wants to browse both disks on a desktop running ubuntu.
Problem: laptop can see *all* shared folders on desktop (including those on the SATA disk) but cannot access anything on the SATA disk. i.e., laptop can see that there is a folder shared but cannot go into it.

Also, i can't seem to see the laptop from the desktop at all. I was able to at one point, however, so i think this is probably some temporary issue that'll be resolved next time i restart one or the other.



EDIT: my mistake sorry, i was being stupid cos it's nearly 4 am. I can't actually see anything in ntfs in linux from my laptop. so question becomes: how do you set up samba so that a windows machine can access ntfs drives held on a linux box...?

Last edited by MrLizard; 07-22-2005 at 09:39 PM.
 
Old 07-23-2005, 07:27 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
I dont believe you can.

I always thought that before you can create a samba share, you need to be able to write to the disk area as root.

If you are using Windows XP Professional, you could try changing the permissions on the disk to allow everyone full control of the filesystems (however this makes NTFS pointless!)

Generally, samba is used to make Linux/UNIX filesystems available to Windows clients, and whilst you can make a local FAT32 partition available though Linux using samba, it's not designed to do that.

If this machine is purely a fileserver, and you need to make these filesystems available to your laptop.


....
I'm probably not going to make any friends saying this but
....

Use the file sharing features in Windows


The other alternative is to make these filesystems FAT32

To convert from FAT32 to NTFS you would use the following dos command:
convert /C: /FS:NTFS

However this is a one way trip!

There is no command for converting back to FAT32 (you would need to reformat, reinstall, and restore)
 
Old 07-23-2005, 08:00 AM   #3
MrLizard
LQ Newbie
 
Registered: Mar 2005
Location: glasgow
Distribution: ubuntu hoary (5.04) on acer travelmate 8103 & Custom desktop
Posts: 23

Original Poster
Rep: Reputation: 15
as i feared.

not a problem tbh, that NTFS drive has always given me hassle so i'm backing up and formatting anyway. i'll just set up several FAT32 partitions, don't think it was ever a good idea to have a single 160 gig NTFS partition....

it's also been a total hassle having to reboot to xp just to organise data on that drive.

thanks anyway
 
Old 09-11-2005, 03:56 AM   #4
SirAeryn
LQ Newbie
 
Registered: Sep 2005
Location: Port Hedland, Western Australia
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
It IS possible to use samba to browse your NTFS drives / partitions. At this stage NTFS is read only though (at least without a great deal of risk). If you can convince M$ to hand over the specs of their NTFS then it may become writeable too!

I've messed around with a lot of my settings trying to get samba to share my mounted NTFS drive.... so I'm not sure how important the earlier changes I made were.

The problem is not with samba for a start - if you can access other shares then obviously you're already in.

Initially I thought the mount permissions were the problem so tried the following:
mount -t ntfs /dev/hdb1 /media/WinXP -o ro,users,owner,umask=0222

I'm not sure if Ubuntu already has ntfs installed. My distro is Fedora Core 4, so I had to download the file system myself. The options above make the mount r-xr-xr-x.

To the crux of the matter: Does Ubuntu run SELinux?
If so, then it's probably blocking some aspect of smbd or nmbd for sharing the mount point. I set my SELinux to Permissive and it all worked!!

You'd still need to boot to WinXP to move / change files though.
 
  


Reply


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
Unable to ping my Linux box on windows network rajjay Linux - Networking 1 04-07-2009 11:16 AM
Unable to ping my linux host from windows box prabulinc Linux - Networking 2 08-27-2005 02:32 PM
Unable to see my windows box in linux lbabey Linux - Networking 5 11-15-2004 08:42 AM
Unable to ping Linux box from Windows westone Linux - Networking 5 07-14-2004 04:41 PM
Unable to ping my Linux box on windows network rajjay Linux - Networking 18 07-28-2003 05:14 AM


All times are GMT -5. The time now is 06:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration