Solved

Seeing contents of linux drive in another PC?

Posted on 2006-11-06
4
268 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
[X]
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
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

691 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