LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2010, 04:13 PM   #1
mikebigado
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
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
 
Old 01-18-2010, 06:51 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 01-18-2010, 06:58 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,703

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
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
 
Old 01-19-2010, 01:34 AM   #4
mikebigado
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 01-19-2010, 07:02 AM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,703

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
Quote:
Originally Posted by mikebigado View Post
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
 
Old 01-19-2010, 07:57 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by mikebigado View Post
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
 
Old 01-19-2010, 07:59 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Another one:http://www.linuxquestions.org/questi...ubuntu-569507/
 
Old 01-20-2010, 10:34 AM   #8
mikebigado
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting problems activeq Linux - Networking 2 03-29-2007 07:39 AM
mounting problems Jakkyl Slackware 20 11-26-2005 04:58 PM
mounting problems ssabljic Slackware 3 11-25-2005 05:27 AM
new... problems mounting the_hommer Debian 5 12-26-2004 10:16 PM
Mounting problems NRHBasher Linux - Hardware 12 04-13-2004 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration