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

Notices


Reply
  Search this Thread
Old 07-16-2007, 03:47 AM   #1
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
System confusion in /etc/mtab


My mainboard is an Asus P5LD2, with two ata-controllers. The first ata-controller is single-channel for two drives, and on this controller is sda.
The second ata-controller is dual-channel with sdb on it.

I am running Kubuntu 7.04 (FF) with the Kde desktop environment.

Several times now I have had a problem with /etc/mtab.
I have two harddisks, sda and sdb. In the normal setting /etc/mtab looks like this:

/dev/sda1 / ext3 rw,errors=remount-ro 0 0
/dev/sdb1 /music reiserfs rw,noexec,nosuid,nodev 0 0

In the faulty situation sda and sdb are swapped, sda becomes sdb and reverse, in /etc/mtab:

/dev/sdb1 / ext3 rw,errors=remount-ro 0 0
/dev/sda1 /music reiserfs rw,noexec,nosuid,nodev 0 0

The result is that the root directory / becomes a subdirectory from /music, and if I try to boot this system things go wrong.
When this occurred for the first time I didn't know why my system didn't boot properly.
So I started with the install-cdrom and selected the repair option.
Fortunately I was able to edit mtab and after that my system booted properly.

Both harddisks are set as primary disk, but that should not confuse the system.
This is puzzling me, and I'd like to get hints that can answer the question why this happens.
 
Old 07-16-2007, 06:12 AM   #2
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
That's very strange, usually you shouldn't even edit mtab. I suggest you check /etc/fstab for screwed up entries. fstab tells the system which partition should be mounted under which directory at boot up time. mtab basically says which partition is currently mounted under which directory, and therefore shouldn't really be edited.

-A
 
Old 07-16-2007, 08:37 PM   #3
Lsatenstein
Member
 
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora 31and Tumbleweed) Gnome versions
Posts: 311
Blog Entries: 1

Rep: Reputation: 59
I believe it is a kernel problem. I have a similar problem with Fedora.

Even though each disk is not in the other's fstab entry, the kernel updates go to the wrong /boot
 
Old 07-16-2007, 11:46 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I infer that you are using the ide/pata and not the SATA. You say one drive on the single-channel, and one on the 2-channel---those are both pata.

If this is true, then why not put them both on one controller? (Either one, since 1 pata channel will handle two drives)
Be sure to set the jumpers so one is primary and one is slave.

Even with them on separate controllers, having both jumpered as primary does not sound like a good plan.

From the spec for the board:
Code:
Intel ICH7R Southbridge:
- 1 x UltraDMA 100/66/33
- 4 x Serial ATA (3Gb/s)
- RAID 0, RAID 1, RAID 5, RAID 10 and Intel Matrix Storage technology.
ITE 8211F controller:
- 2 x UltraDMA 133 support four hard drives
 
Old 07-17-2007, 12:25 PM   #5
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Original Poster
Rep: Reputation: 43
I do not want the / partition in a raid.
I use the single-channel controller for my system disk and the dvd-rw.
In the near future the sata controller as well as the dual pata controller will be used for raid.
Until then I'll configure the sdb disk as a slave!
 
  


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
fstab, mtab and KDiskFree confusion charmanr SUSE / openSUSE 2 11-07-2006 09:38 AM
Kernel confusion on SMP system--get rid of excess RPMs? JMCraig Linux - Newbie 5 02-25-2006 09:44 AM
/etc/fstab or /etc/mtab praveenv Linux - Newbie 1 08-17-2004 04:03 AM
Changed fstab/mtab - system won't boot... biased99 Red Hat 5 04-26-2004 05:40 PM
File System confusion hotrodowner Linux - Software 1 07-04-2002 08:23 PM

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

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