LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-08-2004, 07:34 AM   #1
Fairlie
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
One of my local file systems /dev/sda9 is not mounting


Hi,

One of my local file systems /dev/sda9 is not mounting
If I boot in emergency mode I am unable to modify
/etc/fstab and comment this file system.
If I boot in single user mode it tries to mount
the local file system and keeps spinning.
How do I get around this problem?

Thnx
Fairlie
 
Old 05-08-2004, 08:25 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Have you succeed in mounting it by hand? If you can mount it manually, it's probably something wrong in /etc/fstab... We need to know more to help you to solve this.

Oliv'
 
Old 05-09-2004, 05:44 AM   #3
Fairlie
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,

I am not sure what you mean by mount by hand.
After booting in emergency mode
if I do the following
mount /oracle
I get the following message
EXT2-FS warning : mounting unchecked fs :running e2fsck is recommended
 
Old 05-09-2004, 09:17 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Yes, I meant that: when you type yourself the mount with its options. So it seems that your filesystem is not clean, so before mounting it you need to run e2fsck. Well as root, type the following:
e2fsck -a /dev/sda9
then retry to mount it (by hand)... to see if your filesystem is mounted, check /etc/mtab file, or type df...
Hope this help you

Oliv'
 
Old 05-09-2004, 10:22 AM   #5
Fairlie
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Oliv,

On doing that it goes into a loop with all these weird
messages being displayed.

This is exactly what happens when it does a reboot
It goes into a loop while running a check on /dev/sda9.

So how do I reboot my machine without trying to
mount /dev/sda9 (i.e get to a point where I can edit
/etc/fstab)

Thanks so far
Fairlie
 
Old 05-09-2004, 10:49 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

So if I've understood correctly your problem:
-when you boot, Linux checks /dev/sda9 for errors and never end...
-if you boot in emergency mode, only root partition is mounted, so it's fine but the problem is that you can't edit /etc/fstab
Well the solution is quite simple, run the e2fsck without -a option:
e2fsck /dev/sda9
It should prompt you about wrong inodes... and if you want to fix/clear this. Answer yes... then reboot and pray

Oliv'
 
Old 05-09-2004, 11:07 PM   #7
Fairlie
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Olive,

But that doesn't help either.

When I run e2fsck /dev/sda9
it does

Pass1: Checking inodes...
Foud duplicate blocks
Pass2: Rescan for duplicate/bad blocks
and then it goes into a loop

Any other suggestions are welcome

Fairlie
 
Old 05-10-2004, 07:47 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Well a solution for the moment which won't solve your partition problem, is to run a linux floppy distro. From here, you can mount the disk partition which contains /etc/fstab and edit /etc/fstab in order not to mount /dev/sda9 anymore...
But if e2fsck does not work at all on your partition, I think that you have a serious problem with this part of your disk...

Oliv'
 
Old 05-10-2004, 11:27 PM   #9
Fairlie
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks
I guess so.. I did the following
mount -u rw,unmount /
and managed to edit the /etc/fstab and startup
the machine but still not sure on what to do
with that partition

Thanks Fairlie
 
  


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
kernel 2.6.10 - error mounting local file systems sirrus_linux Linux - Software 6 02-12-2005 01:07 PM
Mounting to file systems n e r d Linux - Hardware 3 07-22-2004 07:53 AM
Mounting NTFS File Systems quorn Linux - General 7 10-09-2003 02:56 PM
mounting two file systems to one point sophie Linux - Hardware 4 07-01-2003 12:47 PM
mounting file systems philfighter Linux - General 5 08-20-2001 08:20 PM

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

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