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 Sat 20 Dec 2014, 03:39
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 [13 Posts]  
Author Message
gdan

Joined: 10 Sep 2014
Posts: 23

PostPosted: Fri 19 Sep 2014, 13:03    Post subject:  How to write in external ntfs hardrive from client [SOLVED]
Subject description: #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 !

Last edited by gdan on Sun 21 Sep 2014, 06:27; edited 1 time in total
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11180
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: 23

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: 516
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: 11180
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: 23

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

Last edited by gdan on Sat 20 Sep 2014, 07:13; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9366
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: 23

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: 9366
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: 23

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: 9366
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: 23

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: 23

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 from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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