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 |
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.
|
|
06-17-2006, 05:57 PM
|
#1
|
LQ Newbie
Registered: Jun 2006
Posts: 5
Rep:
|
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
|
|
|
06-17-2006, 07:44 PM
|
#2
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
|
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.
|
|
|
06-19-2006, 05:57 PM
|
#3
|
LQ Newbie
Registered: Jun 2006
Posts: 5
Original Poster
Rep:
|
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
|
|
|
06-19-2006, 06:38 PM
|
#4
|
LQ Newbie
Registered: Jun 2006
Posts: 5
Original Poster
Rep:
|
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: hda MA, hdb MA
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc MA, hdd MA
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
|
|
|
06-20-2006, 03:41 PM
|
#5
|
LQ Newbie
Registered: Jun 2006
Posts: 5
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:29 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
|
|