LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-02-2004, 09:25 PM   #1
tvn
Member
 
Registered: Mar 2004
Posts: 96

Rep: Reputation: 15
Root mount in unknown filetype


I run the command mount and it reports back my /root is mounted in an unknown file type ... what does it mean ? can you explain it ? Thanks

$ mount
/dev/hdc6 on / type unknown (rw)
proc on /proc type proc (rw)
/dev/hdc7 on /home type reiserfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
 
Old 07-02-2004, 09:53 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
just saw a quite similar at
http://www.linuxquestions.org/questi...59#post1024659

i suggest doing a filesystem check - but it may also be a mismatch in some of your libs. did you do an update lately?

sl mritch.
 
Old 07-03-2004, 06:08 AM   #3
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
hmm, don't know why it is like that, but my root filesystem is also marked as an unknow filesystem. But when I open cfdisk, it says it is a ext3 filesystem (what is should be). I've never had any trouble with it, or noticed it.

I'm not an expert on this, but I know something about it and did some research: in /etc/fstab is the list of devices that must be mounted at boottime. For my system it says

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda7 / ext3 defaults,errors=remount-ro 0 1
/dev/hda9 /home ext3 defaults 0 2
/dev/hda8 /var ext3 defaults 0 2
/dev/hda10 none swap sw 0 0
/dev/fd0 /floppy auto rw,user,noauto 0 0
/dev/hdc /cdrom auto ro,user,noauto 0 0

proc /proc proc defaults 0 0
none /sys sysfs defaults 0 0

/dev/hda5 /data ext3 defaults 0 2
/dev/hda6 /usr/java ext3 defaults 0 2

the file /etc/mtab contains a list of currently mounted filesystems. For me it says:

/dev/hda7 / unknown rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda9 /home ext3 rw 0 0
/dev/hda8 /var ext3 rw 0 0
/dev/hda5 /data ext3 rw 0 0
/dev/hda6 /usr/java ext3 rw 0 0


The command mount gets it's information from /etc/mtab when listing mounted filesystems. There is also a file in the proc filesystem (/proc/mounts) which contains similar information:

rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda9 /home ext3 rw 0 0
/dev/hda8 /var ext3 rw 0 0
/dev/hda5 /data ext3 rw 0 0
/dev/hda6 /usr/java ext3 rw 0 0

As you can see there is something special with the root filesystem. It has probably something to do with it, but I don't know what . It would be usefull if some other people can check their /etc/mtab too, to see if it's normal. I'm curious...

Greetings,

Sterrenkijker
 
Old 07-03-2004, 08:39 AM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
hmm, .. since rootfs is mounted first .. there maybe is no infomation 'bout mounting written to a certain file (in some cases). anyway, afaik i have never have seen an unknown known partition on my sys.

sl mritch.
 
Old 07-03-2004, 10:39 PM   #5
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
I have the exact same problem. What's bugging me, though, is that it used to say ext3... Then sometime, out of nowhere, it just decided to go unknown.
 
Old 07-04-2004, 01:35 AM   #6
tvn
Member
 
Registered: Mar 2004
Posts: 96

Original Poster
Rep: Reputation: 15
Just some additional information: I am using Sarge w/ kernel 2.4.26 - the fs is reiser . I have 2 linux partitions, 1 for / and the other for /home.

touch forcefsck doesn't cause a fschk on boot. Problem still unsolved
 
Old 07-04-2004, 02:00 AM   #7
tvn
Member
 
Registered: Mar 2004
Posts: 96

Original Poster
Rep: Reputation: 15
I rm -rf /etc/mtab , ln -s /proc/mounts /etc/mtab ... that seems to fix the problem , however I cannot guarantee this will cause any problem to you. I haven't faced any problem so far .. yet. Now when typing the $mount, it reads from /proc/mounts as follow:

$mount
rootfs on / type rootfs (rw)
/dev/root on / type reiserfs (rw)
proc on /proc type proc (rw)
/dev/hdc7 on /home type reiserfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
 
Old 07-04-2004, 11:43 AM   #8
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
Thanks, that worked... I think. At least somehow.
Code:
[16:43 root@rakka etc]# df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
rootfs      rootfs    2,9G   65M  2,7G   3% /
/dev/root     ext3    2,9G   65M  2,7G   3% /
tmpfs        tmpfs    507M     0  507M   0% /dev/shm
/dev/hda1     ext2     61M  3,2M   55M   6% /boot
/dev/hda5     ext3    2,9G  1,4G  1,4G  50% /usr
/dev/hda6     ext3    1,9G  106M  1,7G   6% /var
/dev/hda7     ext3    1,9G   33M  1,8G   2% /opt
/dev/hda8     ext3    9,4G  3,9G  5,1G  44% /home
/dev/hda9     ext3    9,4G  467M  8,5G   6% /www
/dev/hda10    ext3    1,9G   33M  1,8G   2% /tmp
/dev/hda11     xfs    4,8G  1,2G  3,7G  25% /downloads
/dev/hdc1      xfs    233G  208G   25G  90% /ichi
/dev/hdb1      xfs    111G   35G   77G  32% /rei
I now have two entries for /...
 
Old 07-10-2004, 10:49 PM   #9
tvn
Member
 
Registered: Mar 2004
Posts: 96

Original Poster
Rep: Reputation: 15
Here's the update to the problem, it's only Debian specific. There's nothing wrong (physically) with the filesystem. Just that the initscript in Sarge has problem. Here's what I did to have it work back normally

in the file /etc/init.d/checkroot.sh , look for the section similar to below and add the 2 new lines and comment out 1 line like what I did :


if [ "$init_mtab" = yes ]
then
# [ "$roottype" != none ] && mount -f -o $rootopts $fstabroot / #comment this out
[ "$roottype" != none ] && mount -f -o $rootopts \ #add this in
-t $roottype $fstabroot / #add this in
[ -n "$devfs" ] && mount -f $devfs
. /etc/init.d/mountvirtfs
fi

$ mount
/dev/hdc6 on / type reiserfs (rw)
^^^ sweet :P
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to mount root fs on unknown-block pumaapple Linux - Newbie 1 09-17-2005 11:11 PM
Kernel Panic: VFS: Unable to mount root fs on unknown-block Igor007 Programming 3 08-14-2005 07:54 PM
Kernel Panic: VFS: Unable to mount root fs on unknown-block(3,65) kpaske Linux - Newbie 1 08-07-2004 12:03 AM
unable to mount root fs on unknown-block(0,0) rickenbacherus Debian 1 02-26-2004 05:12 PM
VFS: unable to mount root fs on unknown-block(3,3) urzumph Linux - Software 2 01-25-2004 06:51 PM

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

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