LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-20-2012, 03:11 PM   #1
jcllings
Member
 
Registered: Jun 2004
Location: Tacoma, WA
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 15
Safe to access NTFS home dir from Linux?


I remember much of the history of Linux NTFS related woes but I am not up on the current state of affairs. What I want to do is take the Documents and Pictures sub-directories off of my Linux home dir and use symbolic links to link em to those same directories on my Windows partition.

Exactly how safe is this sort of thing these days?

Note that I have the following in my .bash_profile

# Mount Windows
/usr/bin/udisks --mount /dev/sda2 &> /dev/null
mount | grep indows
if [[ $? == 1 ]] ; then
echo ¨Error. mounting Windows partition failed.¨ >&2
exit 1
fi


Thanks, guys.


Jim C.
 
Old 02-20-2012, 03:18 PM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
I don't know how save this is, as I'm windows free zone.

But you should not check for a return value of 1
as mount can return other error codes ( 1,2 4, 8, 16, 32, 64 ) and some more.

It is better to check for a return code > 0
see "man mount"
 
Old 02-20-2012, 04:38 PM   #3
jcllings
Member
 
Registered: Jun 2004
Location: Tacoma, WA
Distribution: Ubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uhelp View Post
I don't know how save this is, as I'm windows free zone.

But you should not check for a return value of 1
as mount can return other error codes ( 1,2 4, 8, 16, 32, 64 ) and some more.

It is better to check for a return code > 0
see "man mount"
Mount isnt the last command executed. Grep is.
Sneaky, huh? ;-)


Jim C.
 
Old 02-20-2012, 07:51 PM   #4
romagnolo
Member
 
Registered: Jul 2009
Location: Montaletto
Distribution: Debian GNU/Linux
Posts: 107

Rep: Reputation: 5
So basically you want to swap documents and pictures from the ext filesystem to the ntfs, leaving back their sym links into linux, right?
If so, you are perfectly safe to proceed, but your kernel must have the ntfs and the language (UTF-8 ?) modules, which probably already has if you are running a recent ubuntu.

A couple of years ago I knew that some once "older" kernel were only able to read the ntfs and eventually to write, but only overwriting files perfectly fitting its borders. But already at that time, newer kernels were able to seamless use ntfs.
 
Old 02-20-2012, 11:30 PM   #5
jcllings
Member
 
Registered: Jun 2004
Location: Tacoma, WA
Distribution: Ubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by romagnolo View Post
So basically you want to swap documents and pictures from the ext filesystem to the ntfs, leaving back their sym links into linux, right?
If so, you are perfectly safe to proceed, but your kernel must have the ntfs and the language (UTF-8 ?) modules, which probably already has if you are running a recent ubuntu.

A couple of years ago I knew that some once "older" kernel were only able to read the ntfs and eventually to write, but only overwriting files perfectly fitting its borders. But already at that time, newer kernels were able to seamless use ntfs.
Righteous. Thanks man. :-)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Share access to single folder in user home dir? duffme Linux - Security 1 11-13-2011 11:29 PM
Removing a Specific Dir From All /home Dir carlosinfl Linux - General 4 06-09-2008 01:08 PM
Setting up sftp access to a part of my home dir, don't have root permissions frankie_DJ Linux - Networking 3 02-06-2007 09:17 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM
can't access Mandrake9.1 home dir while from Mandrake 10.0 Lakota Mandriva 3 05-11-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:18 PM.

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