LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2010, 12:26 PM   #1
whizzo944
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Reading Linux Partitions on non-primary HDD


Dear All,
I have a laptop with Ubuntu 9.10 installed. It will not boot to the login screen. If I remove this HDD and connect it as a secondary drive to another PC running Ubuntu, will I be able to access the files on this HDD? There is a lot of data which I haven't backed up which I need to retreive. I don't think the hard drive has failed.

Thanks in Advance,

Dave.
 
Old 04-28-2010, 12:28 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
yes you will. you will just have to mount it somewhere.
 
Old 04-28-2010, 03:00 PM   #3
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
unsupported or new filesystem ?

One problem might occur : The filesystems are all different like xfs, ufs, jfs, ext2, ext3, ext4, reiserfs etc etc.
A Linux OS on a PC that is installed on ext3 two years ago might not be able to mount a new ext4 partition. It also will have difficulty to read and write there. Als grub must have support for the filesystem to boot; e2-binaries are to be found at /boot for example.
A crunchbang 8 on ext3 or ext2 I tested was not able to look into a Puppy on ext4. And at grub boot-prompt >root (hd0,3) >find /boot/pressTAB just showed something like <_|_________________________________________________________________________________________________ ____________________________________________________________________________________________________ ____________________>
empty shadow/hidden/ like. I could move the cursor at this line but no character was visible.
 
Old 04-28-2010, 03:05 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could also use a recent live distro on the original computer without removing the drive. It should be able to handle any filesystem you have. You may also be able to repair your installation so that you can boot again.
 
Old 04-28-2010, 03:16 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Just drop a modern Linux Live CD, mount the partition, hook up an external disk and copy whatever you want to salvage.

Better still use the Live CD to repair the boot loader and make Ubuntu bootable again.
 
Old 04-28-2010, 03:26 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by saikee View Post
Just drop a modern Linux Live CD, mount the partition, hook up an external disk and copy whatever you want to salvage.

Better still use the Live CD to repair the boot loader and make Ubuntu bootable again.
Assuming something is wrong with the laptop and nothing (including contents) is wrong with the HDD, the OP's original question is on target. A liveCD also wouldn't boot.

If a liveCD would boot, using that as jschiwal and saikee suggest is probably easier and safer than taking the HDD out to plug into a different computer.

Once booted in a liveCD, copying files across the LAN to another computer might be the most robust way to get the data off.

But assuming the laptop is basically OK and the failure to boot the HDD is because some GRUB or Linux files are corrupted, fixing those files from the liveCD is the best solution.
 
Old 04-28-2010, 04:14 PM   #7
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
Quote:
It will not boot to the login screen.
If it is failsafe:
login:
passwd:
startx
twm
kdm
gdm
xwm
xorg
xorgsetup
xf86config
xfree86-cfg
apropos
cd / / / change directory
ls
could fix x-server problems like freezing. / mounted read-only might also lead to crash because some programs and servers want to write even temp o rary files on the HD.
The Ubuntu X-config binary I donot remember at the moment. I am testing absolute, slax, zenwalk at the moment.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change primary partitions to logical partitions AND migrate their data? chickenlinux Linux - Hardware 10 04-04-2010 04:31 PM
I see my HDD has 8 primary partitions... pofadda Linux - General 8 08-23-2007 07:38 AM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
2.6.x kernel reading HDD info incorrectly - missing partitions bulliver Linux - Hardware 1 09-01-2004 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 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