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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-18-2010, 04:13 PM
|
#1
|
LQ Newbie
Registered: Aug 2009
Posts: 5
Rep:
|
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
|
|
|
01-18-2010, 06:51 PM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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.
|
|
|
01-18-2010, 06:58 PM
|
#3
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
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
|
|
|
01-19-2010, 01:34 AM
|
#4
|
LQ Newbie
Registered: Aug 2009
Posts: 5
Original Poster
Rep:
|
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
|
|
|
01-19-2010, 07:02 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
Quote:
Originally Posted by mikebigado
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
|
|
|
01-19-2010, 07:57 AM
|
#6
|
Senior Member
Registered: Sep 2007
Posts: 1,047
Rep:
|
Quote:
Originally Posted by mikebigado
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
|
|
|
01-19-2010, 07:59 AM
|
#7
|
Senior Member
Registered: Sep 2007
Posts: 1,047
Rep:
|
|
|
|
01-20-2010, 10:34 AM
|
#8
|
LQ Newbie
Registered: Aug 2009
Posts: 5
Original Poster
Rep:
|
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 10:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|