LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-21-2004, 03:07 AM   #1
movintocali
LQ Newbie
 
Registered: Oct 2004
Location: California
Distribution: FC2
Posts: 3

Rep: Reputation: 0
fstab problems with second ext3 HDD


I added a 2nd HDD to my FC2 box. Created four partitions on new drive using
Code:
fdisk /dev/hdb
and
Code:
mke2fs -cv /dev/hdb3
for each. Here is my setup:
Code:
[root@athenasrv /]# fdisk -l  /dev/hdb
Disk /dev/hdb: 30.0 GB, 30003240960 bytes
255 heads, 63 sectors/track, 3647 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1         123      987966   83  Linux
/dev/hdb2             124         367     1959930   83  Linux
/dev/hdb3             368        1097     5863725   83  Linux
/dev/hdb4            1098        3647    20482875   83  Linux
So I can mount them with commands like
Code:
mount /dev/hdb3 /SCR
and everything fine:
Code:
[root@athenasrv /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             7.3G  3.7G  3.3G  54% /
/dev/hda1              97M  7.6M   85M   9% /boot
none                  110M     0  110M   0% /dev/shm
/dev/hdb4              20G  4.0K   19G   1% /MZK
/dev/hdb3             5.6G   69M  5.2G   2% /SCR
However, I tried adding the four partitions to /etc/fstab and I get errors on reboot... fsck complains that these are not ext2 filesystems...
Code:
[root@athenasrv /]# 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                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/tmp                    /dev/hdb1               ext3    defaults        1 3
/home                   /dev/hdb2               ext3    defaults        1 4
/SCR                    /dev/hdb3               ext3    defaults        1 5
/MZK                    /dev/hdb4               ext3    defaults        1 6
I usually have to go into maintenance mode, comment out all /dev/hdb* entries and reboot. Then everything ok. Also for /dev/hdb1 and /dev/hdb2 I wanted them to replace the current /tmp and /home according to instructions from item #1 in this link
www dot linux-mag dot com /cgi-bin/printer.pl?issue=2000-03&article=tech_support
but it didn't work out... Any ideas?
 
Old 10-21-2004, 03:41 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
With your mke2fs command above, you created ext2 filesystems. Then in your fstab you put them as ext3. Try putting them in as ext2 in fstab.
 
Old 10-22-2004, 03:13 AM   #3
movintocali
LQ Newbie
 
Registered: Oct 2004
Location: California
Distribution: FC2
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Darthtux. You made me read the mke2fs manpage. So I tried re-entering the partitions to /etc/fstab as ext2... no luck. Then I tried to make them ext3 with
Code:
mke2fs -j /dev/hdb3
and then editing /etc/fstab to show ext3 for /dev/hdb3 etc...
That did not work either.

Here is the error message I keep getting on reboot:

Code:
fsck.ext2/MZK
The superblock could not be read or does not describe a correct ext2 filesystem.  If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else) then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193  <: Is a directory while trying to open /MZK device>
Interestingly enough, after booting with all /dev/hdb* commented out in fstab I can
Code:
mount -t ext2 /dev/hdb3 /MZK
or
Code:
mount -t ext3 /dev/hdb3 /MZK
with no problem. In fact I can read/write to /MZK after that without complaints from linux...
 
Old 10-22-2004, 03:37 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
In the line in /etc/fstab make the numbers at the end of the line 0 0
That way they won't be checked at boot. Not a solution as to why but it should stop the error message.
 
  


Reply



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 2nd ext3 HDD redmoon Linux - Newbie 8 07-22-2005 12:28 AM
Mounting an ext3 HDD (?) AndrewZorn Linux - General 11 04-12-2005 12:04 PM
Mounting an ext3 partition in fstab. RoaCh Of DisCor Linux - Software 6 07-18-2004 10:50 AM
Unable to edit fstab... problems with ext. usb hdd removal gardyloo Linux - Newbie 1 12-27-2003 06:35 PM
fstab nightmare: how to give users access to ext3 partition? ianunderwood Linux - General 5 11-21-2003 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:10 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