Problems with mounting hd
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 4865 38973690 8e Linux LVM When tried # mount -t ext3 /dev/hda2 /mnt/hda2 mount: mount point /mnt/hda2 does not exist This for a redhat install on one hdd and a new install of centos that boots up on /dev/mapper/VolGroup00-LogVol00 901G 34G 820G 4% / /dev/sda1 99M 15M 80M 16% /boot tmpfs 1.3G 0 1.3G 0% /dev/shm Trying to access the data from hda2 |
What is producing these results? eg, the first one looks like the output of fdisk. What produces the second one (with sda instead of hda)
It looks like maybe sda1 is part of the LVM on hda2---regardless, if hda2 is not formatted with a file system, then you cannot mount it. If you just look at the error message, it says you need to create the mountpoint. |
as root run:
mkdir /mnt/hda2 and retry the mount. If you get an error complaining that the superblock is invalid, make sure the disk is formatted ext3. You can also try to mount without the -t ext3 and let mount discover the file system. If you are sure there is no file system and you have no data on the partition you could create ext3: WARNING THIS DESTROYS YOUR DATA mkfs -t ext3 /dev/hda2 jlinkels |
This was created when my system failed due to bad battery in my UPS and power failure. I SCP data from old drive to new drive in rescue mode but my new OS was RedHat and only had a 40 GB hda drive. Since then I have installed a new 1 TB sda with CentOS. I would like to access the hda2 which has the data on ext3 file system but when try to mount I get the error.
mount -t ext3 /dev/hda2 /mnt/old mount: wrong fs type, bad option, bad superblock on /dev/hda2, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so ------------- fdisk -l Disk /dev/hda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 4865 38973690 8e Linux LVM Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 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 121601 976655610 8e Linux LVM |
Quote:
jlinkels |
Quote:
|
|
I tried to mount the LVM but only succeeded in mounting the current OS in another folder created:
mount -a /dev/VolGroup00/LogVol00 /mnt/old the sda2 is a RedHat ES install that has data I need. I am currently using the other OS - CentOS and that is what mounts in /mnt/old |
All times are GMT -5. The time now is 02:55 PM. |