Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS doesnt work, neither does scp so how do i transfer files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jeedo
Apprentice
Apprentice


Joined: 02 May 2003
Posts: 202
Location: Akureyri, Iceland

PostPosted: Thu Sep 18, 2003 4:12 pm    Post subject: NFS doesnt work, neither does scp so how do i transfer files Reply with quote

This coult both be a ppc problem and a network problem but since it has more to do with networking im posting it here,


I am installing gentoo on a imac 233MHz, this would be no problem for me exept that i have to make a backup of some files on the hard disk.

My first thought was to use NFS,

Code:

LiveCD root # /etc/init.d/nfs start                                 
 * Starting NFS statd...                                                             [ ok ]
 * Exporting NFS directories...                                                      [ ok ]
 * Starting NFS rquotad...                                                           [ ok ]
 * Starting NFS daemon...                                                            [ ok ]
 * Starting NFS mountd...                                                            [ ok ]
LiveCD root # cat /etc/exports | grep -v "^#"
/mnt/mac 192.168.1.69(ro,sync)


then on the machine i intend to backup to:

Code:

root@goongsang /home/jeedo # mount -t nfs 192.168.1.30:/mnt/mac /mnt/imac/


The volume mounts fine, but when i try to list the directory i get this:

Code:

root@goongsang /mnt/imac # ls
ls: Move&Rename: Permission denied
ls: Apple Extras: Permission denied
ls: AppleShare PDS: Permission denied
ls: AppleWorks 6: Permission denied
ls: Applications: Permission denied
ls: Assistants: Permission denied
ls: bbb: Permission denied

there are a lot more folders there, all have : Permission denied after them

Code:

root@goongsang /mnt/imac # cd Myndir
bash: cd: Myndir: Permission denied


however ls works on the imac:

Code:

LiveCD mac # ls
???Move&Rename
Apple Extras
AppleShare PDS
AppleWorks 6
Applications
Assistants
Cleanup At Startup


My first thought after this was that something was wrong with the way is was mounted, that none-root couldnt read from that volume or something, so i did all that but instead of the "mount /dev/hda6 /mnt/mac" i had done before i did: "mount -r -t hfsplus -O unmask=750 /dev/hda6 /mnt/mac/" but no luck


At this point i thought, to hell with it, i'll just use shfs or scp, those mount okey and though they transfer at a very slow rate it just seemed to work.

Code:

root@goongsang /mnt/backup/imac # scp -rvp 192.168.1.30:/mnt/mac/Myndir .http://www.hot.ee/jarumaa/glass.jpg


That seems to work okey, but eventually i get an error:

Code:

Sending file modes: C0744 217718 AUT_4511.JPG
AUT_4511.JPG                                                                                               100%  213KB  30.2KB/s   00:07   
Sending file modes: C0744 229884 AUT_4513.JPG
AUT_4513.JPG                                                                                               100%  224KB  29.0KB/s   00:06   
Sending file modes: C0744 189228 AUT_4515.JPG
AUT_4515.JPG                                                                                                69%  128KB  31.9KB/s   00:01 ETAD
isconnecting: Corrupted MAC on input.
debug1: Calling cleanup 0x805d6b0(0x0)
debug1: channel 0: free: client-session, nchannels 1
debug1: Calling cleanup 0x8065b50(0x0)
lost connection
root@goongsang /mnt/backup/imac #


so my question is, how do i transfer files from this old computer to a backup location on gentoo?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Thu Sep 18, 2003 5:07 pm    Post subject: Reply with quote

You forgot the no_root_squash option in your /etc/exports, without that root has no rights on the exported files (see man exports).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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