Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th April 2010, 20:35
JVal JVal is offline
Junior Member
 
Join Date: Apr 2010
Location: Vernonia, Oregun
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question File Recovery w Knoppix Partitions not Seen

I am trying to recover some files off a failed Fedora 12 install. When I run Knoppix 6.2 the only partition I see is /boot. I have 2 40Gb IDE drives:

+++++++++++
root@Microknoppix:/home/knoppix# fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000f053e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 4865 38877300 8e Linux LVM

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x73b073b0

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4865 39078081 8e Linux LVM

Disk /dev/sdc: 2004 MB, 2004877312 bytes
16 heads, 32 sectors/track, 7648 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x2d95de6b

Device Boot Start End Blocks Id System
/dev/sdc1 16 7648 1953856 e W95 FAT16 (LBA)
root@Microknoppix:/home/knoppix#
++++++++++++

I have tried using the commands found in Hack #75 Knoppix Hacks and got the following error.

+++++++++++++
root@Microknoppix:/home/knoppix# sudo mdadm --assemble --auto=yes /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sda1
mdadm: cannot open device /dev/sdb1: Device or resource busy
mdadm: /dev/sdb1 has no superblock - assembly aborted
root@Microknoppix:/home/knoppix# sudo mdadm --assemble --auto=yes /dev/md0 /dev/sdb1 /dev/sdc1
mdadm: cannot open device /dev/sdb1: Device or resource busy
mdadm: /dev/sdb1 has no superblock - assembly aborted

+++++++++++++

Any help would be greatly appreciated.

Regards,
Val

j.valeck [at] gmail com
Reply With Quote
Sponsored Links
  #2  
Old 17th April 2010, 18:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you try this in Knoppix?
Code:
modprobe md
modprobe linear
modprobe multipath
modprobe raid0
modprobe raid1
modprobe raid5
modprobe raid6
modprobe raid10
cp /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf_orig
mdadm --examine --scan >> /etc/mdadm/mdadm.conf

mdadm -A --scan
What's in /etc/mdadm/mdadm.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th April 2010, 09:52
JVal JVal is offline
Junior Member
 
Join Date: Apr 2010
Location: Vernonia, Oregun
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default ndadm.conf details

root@Microknoppix:/home/knoppix# modprobe md
root@Microknoppix:/home/knoppix# modprobe linear
root@Microknoppix:/home/knoppix# modprobe multipath
root@Microknoppix:/home/knoppix# modprobe raid0
root@Microknoppix:/home/knoppix# modprobe raid1
root@Microknoppix:/home/knoppix# modprobe raid5
root@Microknoppix:/home/knoppix# modprobe raid10
root@Microknoppix:/home/knoppix# cp /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf_orig
root@Microknoppix:/home/knoppix# mdadm --examine --scan >> /etc/mdadm/mdadm.conf
root@Microknoppix:/home/knoppix# mdadm -A --scan
mdadm: No arrays found in config file or automatically

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# This file was auto-generated on Mon, 26 Jan 2009 17:24:50 +0000
# by mkconf $Id$
Reply With Quote
  #4  
Old 19th April 2010, 10:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Ok, there are no RAID arrays on your system.
Can you run
Code:
/etc/init.d/lvm start
in Knoppix and then post the output of
Code:
lvdisplay
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 19th April 2010, 23:27
JVal JVal is offline
Junior Member
 
Join Date: Apr 2010
Location: Vernonia, Oregun
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Problem Solved

Hi Falko,

Thanks so much for your help. Not certain why I got it in my mind that I had a Raid 0 setup. I am now able to get the files I wanted to save before I did a full install of Fedora 12.

Below are the results of the commands you asked me to run.

Thanks Again,
Val

root@Microknoppix:/home/knoppix# /etc/init.d/lvm start
bash: /etc/init.d/lvm: No such file or directory
root@Microknoppix:/home/knoppix# /etc/init.d/lvm2 start
Setting up LVM Volume Groups Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
.
root@Microknoppix:/home/knoppix#
root@Microknoppix:/home/knoppix# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID Vt5f0u-qhn4-Rret-3ibF-Fe41-USdy-KfL5Qz
LV Write Access read/write
LV Status available
# open 0
LV Size 70.34 GiB
Current LE 2251
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID lkW61V-mIq2-Zx2b-95zy-OW2m-CMZC-wc0c02
LV Write Access read/write
LV Status available
# open 0
LV Size 3.91 GiB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

root@Microknoppix:/home/knoppix#
Reply With Quote
Reply

Bookmarks

Thread Tools
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
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 03:15
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 12:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.