Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Oct 2014, 08:34
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to write in external ntfs hardrive from client [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Fri 19 Sep 2014, 13:03    Post_subject:  How to write in external ntfs hardrive from client [SOLVED]
Sub_title: #mount ntfs-3g /dev/... /mnt/...
 

Hi all,

Basically, i've transformed my computer into a server.
To that server, i've connected an external drive. I'd like to write into that external drive from an another computer.
But i can't, it's always replying this:

"mkdir: cannot create directory '/mnt/sda1/file2': Operation not permitted"

I'm connected as root (not spot) so normally it should work, right ?

Does anyone has a solution or suggestion ? i've been on this problem for a while now and i just can't find anything...Sad

I'm using puppy linux version 4.2 wary.

Thanks !

Edited_time_total
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11083
Location: Arizona USA

PostPosted: Fri 19 Sep 2014, 16:15    Post_subject:  

How did you make it into a server?
Back to top
View user's profile Send_private_message 
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Fri 19 Sep 2014, 18:20    Post_subject:  

I'm kind of new to all this stuff. I just want to be able to control a computer running 24/7 with my laptop from anywhere. "Server" is maybe not the right word to describe the machine.
Back to top
View user's profile Send_private_message 
Galbi


Joined: 21 Sep 2011
Posts: 439
Location: Bs.As. - Argentina.

PostPosted: Fri 19 Sep 2014, 18:53    Post_subject:  

Lets see, that external drive you mention, it usb connected? like a big pendrive?

When this drive its connected, then it must be 'mounted' to have access to it.

If you can see the icon in the desktop is because it's connected, but only when you click on it, the drive it's mounted.

Of course, this can be done by a command, and automatized.

Saludos.

_________________
Remember: "pecunia pecuniam parere non potest"
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11083
Location: Arizona USA

PostPosted: Fri 19 Sep 2014, 22:50    Post_subject:  

Gdan, would you mean some sort of remote desktop?
Back to top
View user's profile Send_private_message 
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Sat 20 Sep 2014, 04:57    Post_subject:  

Yes it is an usb external drive (a 250 Gb memory).

I'm trying to control the computer1 (server) with an another computer2 (client) with an ssh connection. There's an external drive connected to computer 1.

I'm able to mount the drive and to unmount it with computer 2, but i can't create files (directories) into the external drive. Of course, everything is done with the terminal, by command line.

It's a permission problem, i just don't know what has to be done to allow the operation.

Galbi: What do you mean by remote desktop ?

Thank you for the replys

Edited_time_total
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Sat 20 Sep 2014, 05:19    Post_subject:  

Please show the exact command that you are typing.
Back to top
View user's profile Send_private_message 
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Sat 20 Sep 2014, 06:54    Post_subject:  

remote connection: ssh -lroot 192.168.1.7

mount drive: mount /dev/sda1 /mnt/sda1

while trying to create file: mkdir /mnt/sda1/file2

"mkdir: cannot create directory '/mnt/sda1/file2': Operation not permitted"
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Sat 20 Sep 2014, 07:58    Post_subject:  

What are you trying to do? Create a new file or a new directory?

If you are trying to use an external drive, why are you mounting sda1?

When you run the ssh command on the client machine, do you get any warning messages?
Back to top
View user's profile Send_private_message 
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Sat 20 Sep 2014, 08:46    Post_subject:  

I'd like to create a file (be able to write in the hard drive) from the client machine.

I'm mounting sda1 because i've seen many examples on the internet using sda1 in the command (and it works).

gaetan@GG-tower 14:27:~$ ssh -lroot 192.168.1.6
root@192.168.1.6's password:
#

There is no warning messages.
A question: when i create a file, i create a directory in a way right ?
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Sat 20 Sep 2014, 09:00    Post_subject:  

I set up an ssh system and could not duplicate your problem.

Connect your remote machine to a keyboard and monitor. Find out what drive sda1 is. Repeat your commands.
Back to top
View user's profile Send_private_message 
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Sat 20 Sep 2014, 09:07    Post_subject:  

i've checked /mnt/sda1 and it is indeed the hard drive.
Back to top
View user's profile Send_private_message 
gdan

Joined: 10 Sep 2014
Posts: 21

PostPosted: Sun 21 Sep 2014, 06:25    Post_subject:  

I've resolved it.
I couldn't write into the device because the hard drive has a ntfs file system.
When i mount the drive, i have to put this command:

#mount ntfs-3g /dev/sda1 /mnt/sda1

where ntfs-3g package has to be installed if not already.

It worked for me.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0610s ][ Queries: 11 (0.0067s) ][ GZIP on ]