LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-17-2006, 05:57 PM   #1
bobgregorich
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Rep: Reputation: 0
Red Hat Version 9 unable to mount filesystem after OS reload


Hi,
I have 2 40GB internal ATA drives on my Linux RedHat 9 pc.

disk 1 has /, /boot, /dev/shm
disk 2 had /backups
.
.

I would use find to copy files from disk1 to disk2. You know make backups in case of a disk crash or need to reload the OS!

It figures - due to a major problem I had to format disk 1 and reload RedHat 9 from the source RPMs. I made sure I disconnected the power and ribbon cable from disk2!

After the OS reload I completed the following

plugged the power and ribbon cable back into disk 2. The command dmesg
indicates it acknowleges both disks hda and hdb.

created the mount point

mkdir /backups

Added the following to /etc/fstab

/dev/hdb1 /backups ext3 defaults 1 1

tried to mount up the device

mount /backups

mount replies

mount: wrong fs type, bad option, bad superblock on /dev/hdb1, or too many mounted file systems


As a test I swapped out disk 2 with another spare, ran a mkfs and it mounted fine as /backups. My gut tells me this version of Linux can't access a filesystem without 1st running a mkfs to the device. I pray this is not the case because I have a load of data on this disk like my bookmarks, email ....

Thank you for your help.

Bob Gregorich
bobgregorich@sbcglobal.net
 
Old 06-17-2006, 07:44 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
Blog Entries: 7

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Quote:
Originally Posted by bobgregorich
Added the following to /etc/fstab

/dev/hdb1 /backups ext3 defaults 1 1
By doing this, you're telling the system to mount that partition upon boot.
Quote:
Originally Posted by bobgregorich
tried to mount up the device

mount /backups

mount replies

mount: wrong fs type, bad option, bad superblock on /dev/hdb1, or too many mounted file systems
Possibly because it was already mounted.
Quote:
Originally Posted by bobgregorich
My gut tells me this version of Linux can't access a filesystem without 1st running a mkfs to the device.
No, that doesn't sound right. An ext3 filesystem is an ext3 filesystem. It doesn't matter who created it, you should be able to access it on anything.

One thing: You might want to try upgrading to a newer version, because RH9 is so old that it is no longer supported. After RH9, they renamed the consumer version "Fedora" which has just recently hit version 5. Try it, I'm sure you'll like it.

Last edited by rkelsen; 06-17-2006 at 07:45 PM.
 
Old 06-19-2006, 05:57 PM   #3
bobgregorich
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,
Thx for your help.

Some additional info.

The command dmesg(8) lists two hard drives HDA and HDB

The hardware browser lists two hard drives

Drive /dev/hda (Geom: 4865/255/63) Model: ST340014A)
Drive /dev/hdb (Geom: 4865/255/63) Model: ST340014A)

Device Start End Size(MB) Type
/dev/hda
hda1 1 13 102 ext3
hda2 14 4768 27299 ext3
hda3 4769 4865 761 linux-swap

/dev/hdb
hdb1 1 4866 38167 ext3

cat /proc/partitions lists 2 hard drives

major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

3 0 39082680 hda 18984 22906 333062 378990 46556 38809 685886 7838690 -13 13291730 7319901
3 1 104391 hda1 30 80 220 210 12 7 38 750 0 950 960
3 2 38194537 hda2 18737 22607 330770 377490 20524 31553 416896 1083550
0 226160 1461690
3 3 779152 hda3 203 41 1688 1130 26020 7249 268952 6754390 0 437970 6767700
3 64 39082680 hdb 7 45 104 110 0 0 0 0 -13 13293620 42042274


$cat /etc/mtab
/dev/hda2 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda1 /boot ext3 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
$
$


$mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)

$cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom2 /mnt/cdrom2 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
 
Old 06-19-2006, 06:38 PM   #4
bobgregorich
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

The OS appears to acknowledge both hard drives hda and hdb.
hdb is my /backups filesystem that was working fine before I had to format the entire hda disk and reload Linx.


Some further information from dmesg.


ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdcMA, hddMA
hda: ST340014A, ATA DISK drive
hdb: ST340014A, ATA DISK drive
.
.

hdc: CDD4851 CD-R/RW, ATAPI CD/DVD-ROM drive
hdd: OEM CD-ROM F522B, ATAPI CD/DVD-ROM drive
.
.

hda: host protected area => 1
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(33)
hdb: host protected area => 1
hdb: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(33)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 hda3
hdb: unknown partition table
 
Old 06-20-2006, 03:41 PM   #5
bobgregorich
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,
I dowloaded slax-server-5.1.6.150 burned the iso image to a CD-R using GnomeToaster then booted the CD.
slax automatically mounted up both disks hda and hdb (my backup drive that I could not mount after I had to reload Red Hat 9). cpio'ed the data from the backup drive to hda then rebooted Red Hat 9.
A fdisk /dev/hdb, mkfs -t extt3 /dev/hdb , and update to /etc/fstab
/dev/hdb /backups ext3 defaults 0 0
am back in business with all my goodies
Now to download the latest version of Fedora ... bye bye Red Hat 9.
Once again, thx for the tip on slax. Good Stuff!

Best Wishes
Bob
 
  


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
Kernel Panic unable to mount root filesystem mrinal mishra Linux - Kernel 4 05-03-2006 08:47 AM
Which Red hat version best for using GSX / Best Red Hat distro? Rustylinux Linux - Software 2 03-27-2006 12:27 PM
Unable to mount FAT Filesystem Sader Linux - General 2 03-01-2006 08:46 AM
Unable to mount my root filesystem !!! Manhatten101 Linux - Enterprise 2 09-06-2005 03:12 PM
How to reload the grub in Red Hat 9.0 vvsd_prasad Linux - Software 0 07-01-2004 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:29 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
Open Source Consulting | Domain Registration