Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th April 2011, 07:01 AM
moshekim79 Offline
Registered User
 
Join Date: Jun 2008
Posts: 10
windows_7firefox
rescue data from unbootable Fedora

Adding several 2TB HDDs somehow crashed SATA controller on motherboard.
Fedora will no longer boot.

I connected HDD (with Fedora OS) to another computer.
Fedora gets past GRUB, but hangs before loading the splash screen.
Is something wrong with GRUB settings?
Previously, I had dual boot at GRUB (Fedora and WindowsXP).

What is the easiest way to get Fedora to boot properly on another system?
I need access to those files.

Any help is appreciated.
Reply With Quote
  #2  
Old 4th April 2011, 03:20 PM
lightman47 Offline
Registered User
 
Join Date: Apr 2009
Posts: 266
linuxchrome
Re: rescue data from unbootable Fedora

I'm fairly new at all this, but it sounds like it doesn't like the video card. To verify, you might try booting into runlevel 3 and see if you get to login. In grub.conf, append a blank and a"3" (no quotes) to the end of the 'kernel' line. If you're unable to get that far, start pressing the down-arrow after the P.O.S.T. and before GRUB - you can then "e"dit the above onto the line from there, then "b"oot. If you get to login, is likely a video issue.
Reply With Quote
  #3  
Old 4th April 2011, 03:30 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: rescue data from unbootable Fedora

Hello,

I think you are going to have troubles changing hardware

But your boot problem maybe by moving the harddrive you have change the boot info.
you can try
From rescue mode
type grub
From GRUB prompt ran
find /grub/stage1 or find /boot/grub/stage1
grub root (hd0,0)
grub setup (hd0)
exit grub prompt
reboot
Reply With Quote
  #4  
Old 4th April 2011, 07:53 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: rescue data from unbootable Fedora

something to try is when it's booting push F2 I think this removes splash screen,
then you maybe able to see where it is hanging
Reply With Quote
  #5  
Old 4th April 2011, 08:28 PM
moshekim79 Offline
Registered User
 
Join Date: Jun 2008
Posts: 10
windows_xp_2003firefox
Re: rescue data from unbootable Fedora

'root device not found, sleeping forever'

i have another laptop running fedora.
is there anyway to transfer data from hdd (non-bootable fedora) to my laptop?
i'll figure the boot thing later, i just need to get my data out.

thanks in advance.
Reply With Quote
  #6  
Old 4th April 2011, 08:52 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: rescue data from unbootable Fedora

Sleep forever is a grub problem.
Was this drive part of a raid or LVM.

There is a USB device you could use to connect the drive to the laptop.

Looks like grub recreated the stage1, I would try to run the grub commands again.

something else you could try is adding SATA controller card to the OLD system and connect to that. still going to need to update GRUB.
Reply With Quote
  #7  
Old 4th April 2011, 10:08 PM
moshekim79 Offline
Registered User
 
Join Date: Jun 2008
Posts: 10
windows_xp_2003firefox
Re: rescue data from unbootable Fedora

hdd was part of LVM.
darnit, i'll go get an extra SATA controller card this weekend, and retry grub commands.

in the meantime, i'll put it into a USB device, and see if it will automatically mount.

---------- Post added at 05:08 PM ---------- Previous post was at 05:08 PM ----------

hdd was part of LVM.
darnit, i'll go get an extra SATA controller card this weekend, and retry grub commands.

in the meantime, i'll put it into a USB device, and see if it will automatically mount.
Reply With Quote
  #8  
Old 4th April 2011, 10:30 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: rescue data from unbootable Fedora

Repairing the system is a bit different from recovering data, so this might not be germane.

boot knoppix or other live CD
vgscan
vgchange -ay <vg>
mount <lv> <dir>

With the above, you can copy files to other media or another system, but you're still faced with rebuilding or reinstalling the system.
Reply With Quote
  #9  
Old 5th April 2011, 12:17 PM
moshekim79 Offline
Registered User
 
Join Date: Jun 2008
Posts: 10
macossafari
Re: rescue data from unbootable Fedora

Quote:
Originally Posted by hefeweizen View Post
Repairing the system is a bit different from recovering data, so this might not be germane.

boot knoppix or other live CD
vgscan
vgchange -ay <vg>
mount <lv> <dir>

With the above, you can copy files to other media or another system, but you're still faced with rebuilding or reinstalling the system.

Inserted USB hard drive (to recover data files)
Booted knoppix liveCD
in terminal, here is output for 'vgscan'

Code:
root@Microknoppix:/home/knoppix# vgscan
  Reading all physical volumes.  This may take a while...
  No volume groups found
In the 'File Manager' GUI, only the boot partition (sdb1) is showing. how can I access and transfer the data partition? is it irrecoverable?

Last edited by moshekim79; 5th April 2011 at 06:09 PM.
Reply With Quote
  #10  
Old 5th April 2011, 07:19 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: rescue data from unbootable Fedora

lvm is configurable for what drives to scan. I would expect /dev/sd* to be included and you indicate that the USB drive is coming in as /dev/sdb. Please post "fdisk -l /dev/sdb"; I would expect a /dev/sdb2 and for that to be the lvm volume.
Reply With Quote
  #11  
Old 5th April 2011, 08:26 PM
moshekim79 Offline
Registered User
 
Join Date: Jun 2008
Posts: 10
linuxiceweasel
Re: rescue data from unbootable Fedora

Quote:
Originally Posted by hefeweizen View Post
lvm is configurable for what drives to scan. I would expect /dev/sd* to be included and you indicate that the USB drive is coming in as /dev/sdb. Please post "fdisk -l /dev/sdb"; I would expect a /dev/sdb2 and for that to be the lvm volume.
yes you are right! here's the output:

Code:
root@Microknoppix:/home/knoppix# fdisk -l /dev/sdb

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ab3f2

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2              26      121601   976555201   8e  Linux LVM
attempting to mount, but there are problems...

Code:
root@Microknoppix:/mnt/sdb2# mount /dev/sdb2 /mnt/sdb2      
mount: you must specify the filesystem type
root@Microknoppix:/mnt/sdb2# mount -t ext4 /dev/sdb2 /mnt/sdb2
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
root@Microknoppix:/mnt/sdb2# dmesg | tail
[  207.809683] tg3 0000:08:00.0: eth0: Flow control is on for TX and on for RX
[  207.809847] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  218.456679] eth0: no IPv6 routers present
[  267.116531] EXT3-fs: barriers not enabled
[  267.587816] kjournald starting.  Commit interval 5 seconds
[  267.588271] EXT3-fs (sdb1): using internal journal
[  267.588280] EXT3-fs (sdb1): mounted filesystem with writeback data mode
[ 1478.299078] EXT4-fs (sdb2): VFS: Can't find ext4 filesystem
[ 1544.803554] CE: hpet increased min_delta_ns to 20113 nsec
[ 1558.876956] CE: hpet increased min_delta_ns to 30169 nsec


---------- Post added at 03:24 PM ---------- Previous post was at 02:35 PM ----------

checking filesystem (ext4) in sdb2

Code:
root@Microknoppix:~# fsck.ext4 -n /dev/sdb2
e2fsck 1.41.12 (17-May-2010)
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/sdb2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
not sure if it's okay to try their recommendation. (ie: e2fsck -b 1893 /dev/sdb2)
any ideas?

---------- Post added at 03:26 PM ---------- Previous post was at 03:24 PM ----------

Code:
root@Microknoppix:~# e2fsck -b 8193 /dev/sdb2
e2fsck 1.41.12 (17-May-2010)
e2fsck: Bad magic number in super-block while trying to open /dev/sdb2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

Last edited by moshekim79; 5th April 2011 at 08:12 PM.
Reply With Quote
  #12  
Old 5th April 2011, 08:30 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: rescue data from unbootable Fedora

I do not think you can just mount a LVM
give this site a try
http://www.brandonhutchinson.com/Mou...VM_volume.html
Reply With Quote
  #13  
Old 5th April 2011, 08:55 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: rescue data from unbootable Fedora

sdb2 is not an en ext4 filesystem. vgscan should be picking up the name of the VG which /dev/sdb2 belongs to. post the results of vgscan -v and pvscan -v.
Reply With Quote
  #14  
Old 7th April 2011, 04:01 AM
moshekim79 Offline
Registered User
 
Join Date: Jun 2008
Posts: 10
linuxiceweasel
Re: rescue data from unbootable Fedora

Code:
root@Microknoppix:/home/knoppix# vgscan -v
    Wiping cache of LVM-capable devices
    Wiping internal VG cache
  Reading all physical volumes.  This may take a while...
    Finding all volume groups
  No volume groups found
root@Microknoppix:/home/knoppix# pvscan -v
    Wiping cache of LVM-capable devices
    Wiping internal VG cache
    Walking through all physical volumes
  No matching physical volumes found
is this a problem?
Reply With Quote
  #15  
Old 7th April 2011, 04:20 AM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
windows_7chrome
Re: rescue data from unbootable Fedora

After the fdisk results for /dev/sdb2 I would expect the vgscan or pvscan to discover it. However, this isn't happening. There's a slight chance that lvm.conf is not scanning it, but let me also ask if /dev/sdb2 is the sole volume in the volume group?

In trying to recover your data, I believe you've reconfigured some hardware; could you describe those changes?
Reply With Quote
Reply

Tags
data, fedora, rescue, unbootable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Broken Fedora: Data Rescue? Riff Gaffer Using Fedora 8 3rd January 2011 01:33 AM
LVM Problem / Data Rescue dutchcowboy Using Fedora 2 8th February 2010 07:08 PM
how to recover data from unbootable FC5 installation? bazzoon EOL (End Of Life) Versions 7 1st September 2006 10:34 PM
data rescue, please lariamat Using Fedora 12 5th July 2006 03:13 PM
System crashed - data rescue, need help! gregplus Using Fedora 1 3rd September 2005 01:36 AM


Current GMT-time: 08:46 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat