Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Seeing contents of linux drive in another PC?

Posted on 2006-11-06
4
266 Views
Last Modified: 2010-04-20
Hi all,

We have a client who had someone setup a Linux file server for them (which they were conecting too via Windows XP). The server has died. Unfortunately, the motherboard cpu etc is so old i cant "replace" it. So we need to rebuild server for them. Hard Drive works fine, however, I cannot login as "root" as they have not got the password and the original persin cant remember it.

Not sure what my choices are here, but i need to get the data off the drive. Thought i could install say Ubuntu on another PC and place the "servers" drive in as a slave into the new Ubuntu PC. Would i be able to see the data on it? Or can anyone suggest a better way of appoaching this?

PS. I'm windows user (blush)....so not to technical on the Linux please....

Thanks
Sean

0
Comment
Question by:SeanNij
  • 2
4 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 17886859
Hi SeanNij,

> Thought i could install say Ubuntu on another PC and place the "servers" drive in
> as a slave into the new Ubuntu PC. Would i be able to see the data on it?
Yes ... you can mount the filesystem on the slave using mount command and browse the information

>Or can
> anyone suggest a better way of appoaching this?
If you can boot off this disk, you can try logging in single user mode, something like
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-rescuemode-booting-single.html

Exact details will vary somewhat depending on your bootloader, but in essence, it can be done.

Cheers!
sunnycoder
0
 
LVL 1

Author Comment

by:SeanNij
ID: 17886885
Mount command. mount //help get me going?

Does Ubuntu have a "windows user friendly version"......
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 17886899
Hi Sean,

"man mount" will help you get going .. Online version here
http://www.die.net/doc/linux/man/man8/mount.8.html

It takes a while to get used to Linux. There was something called Lindows that was friendly for a windows user but I am not aware if that distro still exists.

Cheers!
sunnycoder
0
 
LVL 14

Expert Comment

by:ppfoong
ID: 17886913

Normally, boot from the Linux Installation CD and you will have an option to enter "rescue mode" or "recovery mode", which will mount all the partitions of the harddisk, and put you in a command shell.

From the command shell, you can enter /etc directory of the target harddisk, normally mounted as "/mnt/etc" and find the file named as shadow.

Find the root entry in th shadow file, and you will see something like this:

root:$1$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/:13081:0:99999:7:::

Use VI or other available editor, zero out the second field (anything between the first and second semicolon), so that it become:

root::13081:0:99999:7:::

and save the file.

The action above has removed the root password, and you can login root without any password now.

Alternatively, if you have the password field of any other user which you know the password, you may copy over the user's encrypted password to the root's encrypted password field as above, and login with that password.

Good luck.



0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question