LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2010, 05:58 PM   #1
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
Cannot copy data from a second disk


Hi,
I have a PC with OpenSuse 11.1. Beside root there are two other users on the system.

Now I have installed a new PC with OpenSuse 11.2. Only one user is set up until now. I installed the hard disk from OpenSuse 11.1 into the new PC on IDE Primary Slave, because I wanted to copy some files from the old system. OpenSuse 11.2 has mounted the old disk automatically in /media/disk and /media/disk-1.
The problem is that I can’t find any files or directories from the users. I could find only one file from root in /media/disk-1/root/Desktop.
Why can’t I see the files? Does it have anything to do with UID or SUID?
 
Old 01-25-2010, 08:40 PM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
I think there may be access permission issues with them. You can access them using root.
 
Old 01-25-2010, 11:36 PM   #3
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Well, I worked as root on the OpenSuse 11.2 system to copy the files, but I can’t find them. I installed the disk with OpenSuse 11.1 back to the other system and checked the permissions and they are all set to –rw-r—r--.
Any other suggestions?
 
Old 01-26-2010, 01:23 AM   #4
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
have you checked the exact location ? please mention the location so that we can understand why their permissions are set to 644.
 
Old 01-26-2010, 01:49 AM   #5
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I am gonna make a simple suggestion in hopes to keep anyone from over thinking the problem here.

why not bring up both systems and just copy the files via scp?

scp requires that openssh is installed and running on the source PC. in this case the Suse 11.1 PC would be the source pc.

As long as that is running you can run the following command.

Code:
scp root@<source PC IP address>:<file to be downloaded> <location to save the file>
so say I want to download file1 from 10.1.1.2 and save it to /home/user/downloads/. I could run this command

Code:
scp root@10.1.1.2:file1 /home/user/downloads/
 
Old 01-26-2010, 03:07 PM   #6
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Before I had the idea to connect the old hard disk to the new PC, I tried to transfer the files via the network. I tried samba, NFS, FTP and now scp, but nothing worked. I can ping each PC, but I don’t know how to set up the other services. Maybe I must configure the firewall?
 
Old 01-26-2010, 03:19 PM   #7
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
hardware firewalls usually do not apply to internal traffic. Only external traffic. However if the PC's themselves have a firewall like iptables installed then that could be a problem. on the old PC install openssh by running this command as root.

Code:
yum install openssh-server
Once you have openssh installed scp should work just fine. The first time you run scp you should get a message about accepting the RSA certificate and you must type yes or no to continue. then it should prompt for a password. Once you enter the password it will transfer the file. Here is an example of what I am talking about.

Code:
TESTLAB:~# scp root@10.1.1.20:/home/jared/Downloads/README /root/
The authenticity of host '10.1.1.20 (10.1.1.20)' can't be established.
RSA key fingerprint is e1:63:44:61:a5:3b:8e:bb:90:e3:bf:df:dd:2f:a3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.1.1.20' (RSA) to the list of known hosts.
root@10.1.1.20's password:
README                                        100% 3654     3.6KB/s   00:00
TESTLAB~:# ls /root
README
TESTLAB:~#
That was the first time that machine has ever done an scp connection to 10.1.1.20 and it asked about the RSA key. From now on if I do an scp connection to 10.1.1.20 it will just prompt for the password.

Last edited by worm5252; 01-26-2010 at 03:20 PM. Reason: typo correction
 
Old 01-26-2010, 03:34 PM   #8
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I just tried:
Code:
yum install openssh-server
bash: yum: command not found
What's next?
 
Old 01-26-2010, 03:38 PM   #9
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
yum is a package manager therefore you must be root or have root privileges to use it.

try changing to root first by typing su
 
Old 01-26-2010, 03:50 PM   #10
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I am logged in as root on OpenSuse 11.1.
 
Old 01-26-2010, 04:33 PM   #11
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Oh the problem is my fault, I haven't used Suse since version 10. Looks like they changed the package manager to zypper. Try this command instead

Code:
zypper install openssh-server
 
Old 01-26-2010, 04:56 PM   #12
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
openssh-server is not found on my system. I have a standard installation of OpenSuse 11.1. What can I do?
 
Old 01-26-2010, 05:11 PM   #13
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
probably a different package name in the Suse repositories.

Try these and see if one of them works

Code:
zypper install openssh
or

Code:
zypper install ssh
Sorry for the confusion. Like I said, I haven't used Suse since version 10. I mainly use Debian so it is a different package manager and different repositories all together.
 
Old 01-27-2010, 12:24 AM   #14
Papa Echo
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
@worm5252: Thank you for your support.

I have tried: 'zypper install openssh' and the answer was: 'openssh' is already installed.

But I couldn’t copy anything from OpenSuse 11.1. This was the message:
ssh: connect to host 192.168.5.1 port 22: Connection timed out

Now I opened port 22 in the firewall on tcp and udp manually. Then it worked.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 12:41 AM
Copy data from one hard disk to another hard disk vino87 Linux - Desktop 4 08-06-2009 11:37 PM
System collapse without kernel panic when copy file to a sata-disk or usb-disk JammyWei Linux - Embedded & Single-board computer 0 12-25-2008 08:21 PM
floppy only reads first disk, if new disk is inserted data from first disk is shown. lakosked Debian 3 02-18-2006 08:44 PM
Cannot Copy files from DVD data disk bear2x Linux - Hardware 4 06-23-2005 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 AM.

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