Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster <nowayin@xxxxxxxx>
- Date: Wed, 4 Oct 2006 03:59:05 +0000 (UTC)
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.
.
- Follow-Ups:
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- References:
- Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: noi
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: J.O. Aho
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: J.O. Aho
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: Bit Twister
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: noi
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: J.O. Aho
- Re: Cannot mount old drive with LVM partition - help!
- From: noi
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: noi
- Re: Cannot mount old drive with LVM partition - help!
- From: Ohmster
- Re: Cannot mount old drive with LVM partition - help!
- From: Bit Twister
- Cannot mount old drive with LVM partition - help!
- Prev by Date: Re: what's the best distro for a begginer ??
- Next by Date: Re: Cannot mount old drive with LVM partition - help!
- Previous by thread: Re: Cannot mount old drive with LVM partition - help!
- Next by thread: Re: Cannot mount old drive with LVM partition - help!
- Index(es):
Relevant Pages
|