HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   File Recovery w Knoppix Partitions not Seen (http://www.howtoforge.com/forums/showthread.php?t=45035)

JVal 16th April 2010 20:35

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

falko 17th April 2010 18:38

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?

JVal 18th April 2010 09:52

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$

falko 19th April 2010 10:52

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
?

JVal 19th April 2010 23:27

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#


All times are GMT +2. The time now is 23:45.

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