LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-26-2005, 03:03 PM   #1
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Rep: Reputation: 32
Post which config files are responsible for mounting and detecting filesystems..


Very Happy Hello to All,
Will someone help me which configuration files are responsible for mounting/detecting correct partitions with Linux..afaik they are /etc/fstab and /etc/mtab..any other files...please help...

I have a problem with my debian sarge 3.1 with 2.6.14-1-686-smp kernel from unstable repo.
everything worked well until i reinstalled XP and sarge kernel panicked... due to rearranged/renamed partition table.
i will expalin briefly,earlier my root partn is at /dev/sda7 is now at /dev/sda8 and my swap partiton earlier at /dev/sda6 changed to /dev/sda7...so i edited mounted sarge partition /etc/fstab and /etc/matb to correct partition names..rescued grub,but sarge kernel panicked
again saying it cannot find ext3fs on /dev/sda7...while sda8 is the correct partiton to look for..Thanks please give a hint what should be wrong......
 
Old 11-26-2005, 03:05 PM   #2
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
etc/fstab
 
Old 11-26-2005, 03:49 PM   #3
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Quote:
Originally posted by H2O-linux
etc/fstab
Read his post, fool! He already edited his fstab.

I would check to see if your edits took effect. Make sure you actually check that partition table with fdisk.

You shouldn't have to edit mtab, as that only takes effect once the fs is actually mounted. so don't mess with it, anything you change will just get overwritten once the partitions are properly mounted.

Last edited by purelithium; 11-26-2005 at 03:50 PM.
 
Old 11-26-2005, 04:23 PM   #4
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Post

Thanks purelithium,i checked my debian partition with fdisk
Code:
fsck.ext3 /dev/sda8 -f
e2fsck 1.38 (30-Jun-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda8: 140584/1343488 files (1.6% non-contiguous), 828552/2684855 blocks
how do i check superblocks ...i know that fsck.ext3 -b xxxx will do.but me silly,i don know about this superblocks,how to list or find them.....please help....
 
Old 11-26-2005, 04:23 PM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
I'd say the kernel panic comes from wrong root= in menu.lst. Perhaps double check that also.
 
Old 11-26-2005, 04:25 PM   #6
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
@makuyl
i rechecked menu.lst for root value it is correct.
 
Old 11-26-2005, 04:31 PM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Hmm, you might as well post the menu.lst
 
Old 11-26-2005, 04:42 PM   #8
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Post

heres my menu.lst fyi i checked for superlocks error and fixed some
errors...but gain kernel panic
Code:
root@ubuntu:~# vim /mnt/debian/boot/grub/menu.lst
Code:
title           Debian GNU/Linux, kernel 2.6.14-1-686-smp (splashy)
root            (hd0,7)
kernel          /boot/vmlinuz-2.6.14-1-686-smp root=/dev/sda8 ro
#vga=786 quiet
initrd          /boot/initrd.img-2.6.14-1-686-smp
savedefault
boot
 
Old 11-26-2005, 04:52 PM   #9
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
You're right, looks ok. Perhaps reinstall grub then. Can't hurt anyway. Strange problem while afaict you've done everything correctly.
 
Old 11-26-2005, 04:55 PM   #10
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Thanks anyway..seems like i endup in a reinstall eh?..
 
Old 11-26-2005, 05:09 PM   #11
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Well, reinstallation is rarely needed but if you backup /etc and some such it won't take long to get everything back. I'd still try running grub-install and do "grep root menu.lst" just to see you don't have a default root or groot (hdx,y) that might be messing things up.
 
Old 11-26-2005, 05:49 PM   #12
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Smile

Thanks...i will try that....waiting for 4 days to fix the problem.....
 
Old 11-27-2005, 09:53 AM   #13
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
I didn't mean checking your partitions with fdisk, I meant checking your partition table and making sure that the partition table listed by fdisk was the same as was listed in your fstab.
 
Old 12-03-2005, 03:25 PM   #14
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Yes.fstab is the same as fdisk -l lists.any one to help..me
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting NTFS filesystems rw atom Linux - Newbie 5 01-25-2005 09:29 AM
filesystems admin and keyboard config Tonatiuh Linux - Newbie 0 10-15-2004 09:13 PM
What package is responsible for auto-mounting cdrom and opening Burn window for CDR? Arodef Fedora 4 08-22-2004 01:14 PM
::mounting filesystems and autostarting programs!!:: XxAndyxX Linux - Software 3 05-14-2003 06:00 PM
Mounting filesystems jimmmac Linux - Newbie 4 01-05-2003 06:41 AM


All times are GMT -5. The time now is 11:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration