Re: Cannot mount old drive with LVM partition - help!



Bit Twister <BitTwister@xxxxxxxxxxxxxxxx> wrote in
news:slrnei63f6.o2c.BitTwister@xxxxxxxxxxxxxxx:

Last chance attempt I would try
mount -t auto /dev/hdb2 /mnt/old_sys

[root@ohmster mnt]# mount -t auto /dev/hdb2 /mnt/old_sys
mount: you must specify the filesystem type
[root@ohmster mnt]#

Bit, I think that the FAT or whatever LVM uses to keep track of the files
got wiped when I messed around with webmin. I did boot the box with
knoppix and knoppix does try to mount all of your drives at read only.
When I got to hdb1, it mounted fine and you could see all the boot files.
When it got to hdb2, same crap, need to specify the file system type as
knoppix could not figure it out.

This is a real problem, I need to come up with some kind of linux disk
recovery tools to try and get that second partition restored. I did try
testdisk...

http://www.cgsecurity.org/wiki/TestDisk

And ran it on the hard drive. It finds both drives. I then choose hdb,
then specify the partition type, Intel. I get to choose to Analyze,
Advanced, Geometry, Options, MBR Code, Delete, Quit. I choose analyze and
then get to see the partitions.
---------------------------------------------------------------------
Disk /dev/hdb - 203 GB / 189 GiB - CHS 24792 255 63
Current partition structure:
Partition Start End Size in sectors
1 * Linux 0 1 1 12 254 63 208782 [/boot]
2 P Linux LVM 13 0 1 24791 254 63 398074635
---------------------------------------------------------------------
I pick partition 2. P meand Primary and can then proceed or save. I
proceed.
---------------------------------------------------------------------
TestDisk 6.4, Data Recovery Utility, June 2006
Christophe GRENIER <grenier@xxxxxxxxxxxxxx>
http://www.cgsecurity.org

Disk /dev/hdb - 203 GB / 189 GiB - CHS 24792 255 63
Partition Start End Size in sectors
* Linux 0 1 1 12 254 63 208782 [/boot]
P Linux LVM 13 0 1 24791 254 63 398074635

Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type,
Enter: to continue
LVM2, 203 GB / 189 GiB
---------------------------------------------------------------------
I enter and get to Quit, Search, or Write.
---------------------------------------------------------------------
Disk /dev/hdb - 203 GB / 189 GiB - CHS 24792 255 63

Partition Start End Size in sectors
1 * Linux 0 1 1 12 254 63 208782 [/boot]
2 P Linux LVM 13 0 1 24791 254 63 398074635

[ Quit ] [Search! ] [ Write ]
Search deeper, try to find more partitions
---------------------------------------------------------------------
There are no more partitions, so I would write to the disk and make it
so.
---------------------------------------------------------------------
Write partition table, confirm ? (Y/N)


You will have to reboot for the change to take effect.
---------------------------------------------------------------------
I say okay, write, and find that I have to reboot for change to take
effect. I do, but nothing has changed, the disk seems to be just as it
was. No change that I can see has happened. I go back to webmin to look
at the logical drives, I see that group 00 is my FC5 disk and it contains
a physical volume, hda2, and two logical volumes, vol 00 and 01. 00 being
the boot partition and 01 being the rest of the drive.

I then look at group 01 (This used to also be named 00 but I was able to
change this with webmin to 01), it has a physical volume of hdb2. I see
that it has no logical volumes in it and if I want to, I can create a new
logical volume if I want. That is where my FC3 logical volumes used to
be. How can I get them back, all of my FC3 stuff is there!

That testdisk does not seem to do crap, or maybe it did, I need to see
the logical volumes that used to be written there. What kind of utility
can restore accidentally deleted linux logical volumes? This is like the
old DOS days when you lose your FAT, the files are still there but with
both copies of the file allocation table gone, it would appear to the
system that the entire drive is free and empty, even though it contains
files. This appears to be a similar situation. :(

Dammit, I should have not messed with it in webmin and then used knoppix
or some other utility to read the disk and copy it to some usable medium
instead of this Goddammed stupid LVM disk. :(

--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.



Relevant Pages

  • Re: Dual Boot Instructions
    ... the PHYSICAL DISK number, ... Partition and Boot Volume as well as other things. ... You should, at any one time, see ONE System Partition and ONE Boot Volume - ... for the typical two floppy drives and assigning Drive C: ...
    (microsoft.public.windows.vista.hardware_devices)
  • Re: Boot Problem
    ... Right mouse click the dest disk> Advanced> Edit ... but it should eventually boot to Windows. ... I see a lot of posts in here about the ability of Acronis to clone drives. ... I have managed to successfully copy by DELETING partition, ...
    (microsoft.public.windowsxp.hardware)
  • Re: Dual Boot Instructions
    ... OS on a separate partition. ... the PHYSICAL DISK number, ... You should, at any one time, see ONE System Partition and ONE Boot ... The name stuck when we added hard disk drives, ...
    (microsoft.public.windows.vista.hardware_devices)
  • Re: A Dual-boot question; I thought C was always the partition with the running OS
    ... The Server 2003 will then call its partion "C:" Local Disk. ... When Server 2003 starts up, it will call itself "C:" and it will call the WinXP partition "E:", but again, who cares? ... The OS then assigns drive letters to the first primary partition recognized on each successive hard disk. ... Because they're on separate hard drives, ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Dual Boot Instructions
    ... If "drive" means a single partition or logical drive, then the negatives you've heard are very true. ... But if "drive" means a physical hard disk drive, then I'm in big trouble because I have SIX versions of Windows installed on my 1 TB Disk 1, my second HDD! ... The name stuck when we added hard disk drives, ...
    (microsoft.public.windows.vista.hardware_devices)