Skip to contentSkip to conversation

Mount system call hangs up the system

DISCUSSION [email protected] 3 participants 3 messages Dec 21, 2000

lore
Share & tools
lore
#0 lore raw

Hello Everybody

I am trying to mount a filesystem on Linux 2.4.0-test10 kernel using the mount() function.
When I call this function the system just hangs up. I have to restart linux by switching off and on.
Can somebody tell me why mount call just hangs? Is there anyway to take a dump when
the call is being executed.

I tried looking for description about mount but couldnt find anything helpful. I will really appreciate
if someone can share his/her experience regarding the same.

Thanks and Regards
Swapneel

P.S Please include my email id in the Cc list as I have not subscribed to this list.

Swapneel D. Shah
IBM Global Services India Ltd,
email:[email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 2 lines · On Thu, 21 Dec 2000 [email protected] wrote:

Can somebody tell me why mount call just hangs? Is there anyway to take a dump when the call is being executed.

You don't need a dump. Just go to the source and start inserting printk() statements all over the sys_mount/do_mount etc. and sooner or later the reason for hang will become obvious. Either it is a bug in your program or in the kernel (or both). In any case it can be fixed.

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to [email protected]
Quoted 9 lines · On Thu, Dec 21, 2000 at 05:47:10PM +0530, [email protected] wrote:

Hello Everybody

I am trying to mount a filesystem on Linux 2.4.0-test10 kernel using the mount() function.
When I call this function the system just hangs up. I have to restart linux by switching off and on.
Can somebody tell me why mount call just hangs? Is there anyway to take a dump when
the call is being executed.

If you have a second computer available, I highly recommend using kgdbstub which can be found on sourceforge. This gives you source level debugging in the kernel. Just put a breakpoint in sys_mount(), or whatever it is called and see what happens.

Linus is dead set against using a debugger in daily development but it is a very valuable tool for quickly gaining insight.

Regards,

bert hubert

Signature · 7 lines
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/