LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-01-2007, 10:42 PM   #1
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Rep: Reputation: 15
Problem with mounting hard drive


Hi all,

I am using Red Hat 2.4.21-4.EL machine since 2 years without any problems.

But suddenly some thing went wrong and now :

1) I am unable to browse (ethernet card is not detecting)

2) Unable mount any hardwares (USB stick, CD, Hard disk partitions)
when ever i try to mount it is saying :

mount: fs type vfat not supported by the kernel.

I am unable to figure out what went wrong ...
Please help me solving this issue ...

Regards,
Naveen.
 
Old 08-01-2007, 10:50 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Debian
Posts: 218

Rep: Reputation: 35
Some suggestions...

Run the command
dmesg

and post any funny stuff you see there.

Does the problem persist across a reboot?

Any funny stuff in the /var/log/messages boot log or syslog?
 
Old 08-01-2007, 11:41 PM   #3
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
Thank you for the reply ...

The problem persist after reboot also.

The dmesg :

--------------------------------------------------------------------
Linux version 2.4.21-4.EL (bhcompile@daffy.perf.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 Fri Oct 3 18:13:58 EDT 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000f6e0000 (usable)
BIOS-e820: 000000000f6e0000 - 000000000f6e3000 (ACPI NVS)
BIOS-e820: 000000000f6e3000 - 000000000f6f0000 (ACPI data)
BIOS-e820: 000000000f6f0000 - 000000000f700000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
246MB LOWMEM available.
On node 0 totalpages: 63200
zone(0): 4096 pages.
zone(1): 59104 pages.
zone(2): 0 pages.
Kernel command line: ro root=LABEL=/
Initializing CPU#0
Detected 2666.869 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 5321.52 BogoMIPS
Memory: 243480k/252800k available (1524k kernel code, 6960k reserved, 1086k data, 164k init, 0k highmem)
zapping low mappings.
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Trace cache: 12K uops<6>CPU: L2 cache: 1024K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 20100000 00000000 00000000
CPU: Common caps: bfebfbff 20100000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
Process timing init...done.
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 3.00 entry at 0xfba10, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Ignoring BAR0-3 of IDE controller 00:1f.2
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Discovered primary peer bus ff [IRQ]
PCI: Using IRQ router default [8086/2640] at 00:1f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
Total HugeTLB memory allocated, 0
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
aio_setup: num_physpages = 15800
aio_setup: sizeof(struct page) = 56
Hugetlbfs mounted.
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
--------------------------------------------------------------------

In boot file i found :
------------------------------------------------------------------
May 11 10:35:44 localhost network: Shutting down interface eth0: failed
May 11 10:35:45 localhost ifdown: Users cannot control this device.
May 11 10:35:45 localhost network: Shutting down loopback interface: failed
May 11 10:35:45 localhost sysctl: error: permission denied on key 'net.ipv4.ip_forward'
May 11 10:35:45 localhost sysctl: error: permission denied on key 'net.ipv4.conf.default.rp_filter'
May 11 10:35:45 localhost sysctl: error: permission denied on key 'kernel.sysrq'
May 11 10:35:45 localhost sysctl: error: permission denied on key 'kernel.core_uses_pid'
May 11 10:35:45 localhost network: Setting network parameters: succeeded
May 11 10:35:45 localhost ifup: Users cannot control this device.
May 11 10:35:45 localhost network: Bringing up loopback interface: failed
---------------------------------------------------------------

All the reaming files are very big...


Regards,
Naveen.
 
Old 08-02-2007, 12:16 AM   #4
tmoble
LQ Newbie
 
Registered: Nov 2005
Location: Phx, Az
Distribution: fc4
Posts: 12

Rep: Reputation: 0
"localhost ifdown: Users cannot control this device." apparently it thinks you don't have any rights.

sounds like some kind of permissions issue. logon as root or su - root after user logon, see if any of it works as root.
 
Old 08-02-2007, 12:39 AM   #5
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
No it is not working even if i login as root ...
 
Old 08-02-2007, 12:53 AM   #6
tmoble
LQ Newbie
 
Registered: Nov 2005
Location: Phx, Az
Distribution: fc4
Posts: 12

Rep: Reputation: 0
do you have SELinux turned on? if so, can you disable it?
 
Old 08-02-2007, 01:25 AM   #7
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
>do you have SELinux turned on? if so, can you disable it?

I dont know what is SELinux and how to turn it ON or OFF ...

please tell me how i have to do that

Regards,
Naveen.
 
Old 08-02-2007, 01:38 AM   #8
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Debian
Posts: 218

Rep: Reputation: 35
Quote:
Originally Posted by navin_karnam
T
In boot file i found :
------------------------------------------------------------------
May 11 10:35:44 localhost network: Shutting down interface eth0: failed
May 11 10:35:45 localhost ifdown: Users cannot control this device.
May 11 10:35:45 localhost network: Shutting down loopback interface: failed
May 11 10:35:45 localhost sysctl: error: permission denied on key 'net.ipv4.ip_forward'
May 11 10:35:45 localhost sysctl: error: permission denied on key 'net.ipv4.conf.default.rp_filter'
May 11 10:35:45 localhost sysctl: error: permission denied on key 'kernel.sysrq'
May 11 10:35:45 localhost sysctl: error: permission denied on key 'kernel.core_uses_pid'
May 11 10:35:45 localhost network: Setting network parameters: succeeded
May 11 10:35:45 localhost ifup: Users cannot control this device.
May 11 10:35:45 localhost network: Bringing up loopback interface: failed
---------------------------------------------------------------
[/COLOR]
Ok that's definitely screwy.... the question is how did it get like that.....

Seems like either the boot process is suddently deciding not to operate as root (unlikely) or somebody / something has changed the permissions so root cannot perform that operation.

Let's explore that one...

See if ...
ls -l `locate ifup`
shows any non-root read/writable files.
 
Old 08-02-2007, 02:26 AM   #9
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
The result of ls -l `locate ifup` :

------------------------------------------------------------------------------------------

lrwxr-xr-x 1 root root 18 Oct 13 2006 /etc/sysconfig/network-scripts/ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 13156 Sep 4 2003 /etc/sysconfig/network-scripts/ifup-aliases
-rwxr-xr-x 1 root root 2350 Feb 25 2003 /etc/sysconfig/network-scripts/ifup-cipcb
-rwxr-xr-x 1 root root 11156 Jul 26 2002 /etc/sysconfig/network-scripts/ifup-ippp
-rwxr-xr-x 1 root root 7597 Sep 13 2003 /etc/sysconfig/network-scripts/ifup-ipsec
-rwxr-xr-x 1 root root 10143 Aug 16 2003 /etc/sysconfig/network-scripts/ifup-ipv6
-rwxr-xr-x 1 root root 821 Jun 26 2002 /etc/sysconfig/network-scripts/ifup-ipx
lrwxr-xr-x 1 root root 9 Oct 13 2006 /etc/sysconfig/network-scripts/ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root 689 Jun 26 2002 /etc/sysconfig/network-scripts/ifup-plip
-rwxr-xr-x 1 root root 926 Jun 26 2002 /etc/sysconfig/network-scripts/ifup-plusb
-rwxr-xr-x 1 root root 2932 Jun 24 2003 /etc/sysconfig/network-scripts/ifup-post
-rwxr-xr-x 1 root root 3926 Sep 15 2003 /etc/sysconfig/network-scripts/ifup-ppp
-rwxr-xr-x 1 root root 1197 Aug 22 2003 /etc/sysconfig/network-scripts/ifup-routes
-rwxr-xr-x 1 root root 3534 Jan 8 2003 /etc/sysconfig/network-scripts/ifup-sit
-rwxr-xr-x 1 root root 1646 Jun 26 2002 /etc/sysconfig/network-scripts/ifup-sl
-rwxr-xr-x 1 root root 2821 Jun 27 2002 /etc/sysconfig/network-scripts/ifup-wireless
-rwxr-xr-x 1 root root 20596 Apr 2 2001 /home/naveen/.gnome-desktop/board/Filesystem/root_XSBASE/sbin/ifup
-rw-r--r-- 1 naveen naveen 58571 Jan 6 15:13 /opt/montavista/pro/devkit/arm/xscale_le/packages/pro/ifupdown-0.6.4-3.0.0.0300532.arm_xscale_le.mvl
-rwxr-xr-x 1 naveen naveen 242 Dec 24 2003 /opt/montavista/pro/devkit/arm/xscale_le/target/etc/init.d/ifupdown
lrwxrwxrwx 1 root root 18 Jan 3 2007 /opt/montavista/pro/devkit/arm/xscale_le/target/etc/rc.d/rcS.d/S39ifupdown -> ../init.d/ifupdown
-rwxr-xr-x 2 naveen naveen 97273 Dec 24 2003 /opt/montavista/pro/devkit/arm/xscale_le/target/sbin/ifup
-rw-r--r-- 1 naveen naveen 2787 Dec 24 2003 /opt/montavista/pro/devkit/arm/xscale_le/target/usr/lib/pml/packages/ifupdown
-rw-r--r-- 1 naveen naveen 17992 Dec 24 2003 /opt/montavista/pro/devkit/arm/xscale_le/target/usr/share/doc/ifupdown-0.6.4/LICENSE
-rw-r--r-- 1 naveen naveen 981 Dec 24 2003 /opt/montavista/pro/devkit/arm/xscale_le/target/usr/share/man/man8/ifup.8.gz
-rwxr-xr-x 1 root root 11775 Sep 11 2003 /sbin/ifup

/opt/montavista/pro/devkit/arm/xscale_le/target/usr/share/doc/ifupdown-0.6.4:
total 20
-rw-r--r-- 1 naveen naveen 17992 Dec 24 2003 LICENSE
---------------------------------------------------------------------------------------------------------------------

 
Old 08-02-2007, 02:30 AM   #10
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
The files which it is showing user specific (naveen) are
belongs to the toolchain which i installed for cross compilation .
 
Old 08-02-2007, 05:43 PM   #11
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Debian
Posts: 218

Rep: Reputation: 35
Quote:
Originally Posted by navin_karnam
The result of ls -l `locate ifup` :

------------------------------------------------------------------------------------------

lrwxr-xr-x 1 root root 18 Oct 13 2006 /etc/sysconfig/network-scripts/ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 13156 Sep 4 2003 /etc/sysconfig/network-scripts/ifup-aliases
-------------------------------------------------------------------------------------------

Ok. that looks all good. Hmm.

Try this (I'm on Ubuntu at the moment so you may have translate this into the corresponding redhat name...)

su
sh -x /etc/init.d/networking restart

hopefully you can see exactly where the wheels fall off.
 
Old 08-02-2007, 11:13 PM   #12
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
I executed the command as root

sh -x /etc/init.d/network restart

The result :

--------------------------------------------------------------
+ . /etc/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/sysconfig/i18n
+++ LANG=en_US.UTF-8
+++ SUPPORTED=en_US.UTF-8:en_US:en
+++ SYSFONT=latarcyrheb-sun16
++ '[' pty '!=' pty ']'
++ export LANG
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ GRAPHICAL=yes
+++ RES_COL=60
+++ MOVE_TO_COL=echo -en \033[60G
+++ SETCOLOR_SUCCESS=echo -en \033[0;32m
+++ SETCOLOR_FAILURE=echo -en \033[0;31m
+++ SETCOLOR_WARNING=echo -en \033[0;33m
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
+++ LOGLEVEL=3
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
+ '[' '!' -f /etc/sysconfig/network ']'
+ . /etc/sysconfig/network
++ NETWORKING=yes
++ HOSTNAME=localhost.localdomain
+ '[' -f /etc/sysconfig/pcmcia ']'
+ . /etc/sysconfig/pcmcia
++ PCMCIA=no
++ PCIC=
++ PCIC_OPTS=
++ CORE_OPTS=
+ '[' yes = no ']'
+ '[' -x /sbin/ip ']'
+ '[' '!' -x /sbin/ipx_internal_net -o '!' -x /sbin/ipx_configure ']'
+ IPX=
+ '[' '!' -x /sbin/vconfig ']'
+ '[' '' = yes ']'
++ pwd
+ CWD=/home/naveen
+ cd /etc/sysconfig/network-scripts
+ . network-functions
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ ls ifcfg-eth0 ifcfg-lo
++ LANG=C
++ egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)'
++ LANG=C
++ egrep -v '(~|\.bak)$'
++ LANG=C
++ egrep 'ifcfg-[A-Za-z0-9\._-]+$'
++ sed 's/^ifcfg-//g'
++ sed 's/[0-9]/ &/'
++ LANG=C
++ sort -k 1,1 -k 2n
++ sed 's/ //'
+ interfaces=eth0
+ cd /home/naveen
+ /etc/init.d/network stop
Shutting down loopback interface: [ OK ]
+ /etc/init.d/network start
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
+ exit 0

-------------------------------------------------------------------
 
Old 08-03-2007, 12:28 AM   #13
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Debian
Posts: 218

Rep: Reputation: 35
Quote:
Originally Posted by navin_karnam
I executed the command as root

sh -x /etc/init.d/network restart

The result :

--------------------------------------------------------------

+ /etc/init.d/network stop
Shutting down loopback interface: [ OK ]
+ /etc/init.d/network start
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
+ exit 0

-------------------------------------------------------------------
fascinating.

that worked OK.

Therefore somehow your boot process would seem to have su'd to some other userid by the time it starts up the network.

Weird.

There is probably some other messages of interest then in the boot log
 
Old 08-03-2007, 10:31 PM   #14
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
I found one more thing today :

I tried analyze what went wrong using live CD. What i observed is
In my linux partition i dont have permissions for "naveen" account.

But i have permissions for all other users including "root".
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
External USB Hard Drive Mounting Problem with SuSe Linux 9.0 des_a Linux - Distributions 6 03-22-2007 10:08 PM
Hard Drive Mounting Problem kvnband Linux - Hardware 2 12-27-2005 03:02 PM
problem mounting second hard drive irvken Fedora 8 06-09-2005 10:42 PM
Problem mounting USB hard drive kernelbuster Linux - Enterprise 0 02-14-2005 04:36 PM
Mounting hard drive Runt888 Linux - Newbie 1 08-29-2001 02:02 AM


All times are GMT -5. The time now is 06:54 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
Open Source Consulting | Domain Registration