Can't mount a disk. Need some ideas.
I just upgraded to Fedora 7. I have two hard disks in my machine. Here's what I get from 'fdisk -l':
Disk /dev/sda: 27.3 GB, 27373731840 bytes 255 heads, 63 sectors/track, 3328 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 3328 26627737+ 8e Linux LVM Disk /dev/sdb: 74.3 GB, 74355769344 bytes 255 heads, 63 sectors/track, 9039 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 13 104391 83 Linux /dev/sdb2 14 9039 72501345 8e Linux LVM My previous OS is installed on the larger disk so when I went to upgrade, I just unplugged it and installed Fedora 7 on the smaller disk. After installation, I plugged the disk back in and rebooted but now when I try to mount the disk with 'mount /dev/sdb2 /mnt', I get a 'mount: /dev/sdb2 already mounted or /mnt busy' error. It's not mounted or busy as far as I can tell. I noticed others had problems with dm-mod/dm-mirror interferring so I tried uncommenting those lines from modules.dep but that didn't work. Also looked for locks in 'lsof' but nothing. Could use some ideas. Thanks, Eric. |
If you've got two Fedora systems installed, they probably have the same named VGs and LVs. Especially if the installer couldn't see the other disk - presumably would use the default names.
|
I think I have some idea of what happened at least. At some point, LVM2 could not see the larger disk so it just overwrote the previous logical volume. I get the following from 'lvscan':
WARNING: Duplicate VG name VolGroup00: Existing 8u2SkJ-28V0-iXPD-BSt3-o6KD-y6dx-rjLCVw (created here) takes precedence over 2NwURw-UN8n-bk21-sJqw-W8HZ-6w3A-HOXGFY |
Why would you unplug the disk? Your drive assignments for one of the disk will be wrong in menu.lst and /etc/fstab. You will need to correct your /boot/grub/menu.lst and fstab files correcting the drive assignments. You might as well combine the entries from the other installs menu.lst so that both are on the same menu. Just use grub one of the first disks so that you don't get into a dueling MBR situation. Only update grub for one distro.
If there is a conflict between what grub sees as (hd0,0) when booting and what it sees as (hd0,0) after Linux is running, then edit the /boot/grub/device.map file to fix it. Code:
(hd1) /dev/sda Another possibility is if there is drive information in an LVM or raid superblock and the kernel procedes to assemble the array. Then later, your /etc/fstab information is wrong and it tries to mount /dev/hdb2 instead of /dev/hda2. |
Quote:
Quote:
Code:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 Quote:
Code:
# grub.conf generated by anaconda Quote:
Code:
# ls -al /dev/VolGroup00 |
Personally I would leave them as separate systems, and change the boot disk via the BIOS. Then use a (new) shared partition to copy/move share data to. If you really need to get at the data, you'll probably have to rename LVs (at least) - maybe even the VGs as well.
Ugh. Then, of course, there'll be issues with the systems that owned that data originally. Double ugh. There's a lvm guide at tldp.org - start reading there. Caveat: I don't use LVM (this sort of thing is one of the reasons why), so this is just me theorizing. |
Quote:
Code:
# vgdisplay |
Is this menu.lst from the FC7 you installed on the second disk?
Code:
# grub.conf generated by anaconda |
Quote:
|
All times are GMT -5. The time now is 07:41 PM. |