LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with mounting hd (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-mounting-hd-783072/)

mikebigado 01-18-2010 03:13 PM

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

pixellany 01-18-2010 05:51 PM

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.

jlinkels 01-18-2010 05:58 PM

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

mikebigado 01-19-2010 12:34 AM

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

jlinkels 01-19-2010 06:02 AM

Quote:

Originally Posted by mikebigado (Post 3831743)
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 4865 38973690 8e Linux LVM

This says that /dev/hda2 is a LVM. If this is true, there is no chance that you can mount it as ext3. Unfortunately I have no experience with LVM, can't help you any further here.

jlinkels

cola 01-19-2010 06:57 AM

Quote:

Originally Posted by mikebigado (Post 3831743)
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

Does this help?http://www.brandonhutchinson.com/Mou...VM_volume.html

cola 01-19-2010 06:59 AM

Another one:http://www.linuxquestions.org/questi...ubuntu-569507/

mikebigado 01-20-2010 09:34 AM

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 01:57 AM.