LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-25-2004, 09:42 AM   #1
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Rep: Reputation: 0
2.6.6 kernel compile problem


Hello,
I have some problem with compiling kernel 2.6.6 from Suse 9.1 . After reboot I cannot start some services and X window ( something like: blah blah ... read only file system ), then at log in I have this error:
Code:
FATAL: Cannot change permissions of TTY: Read only file system"
Maybe I have mounted hard drive read-only ? Anyone has idea about this ??

Thanks in advance.
 
Old 05-25-2004, 09:57 AM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Boot into single mode.

Check the permissions of /
 
Old 05-25-2004, 12:24 PM   #3
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Original Poster
Rep: Reputation: 0
just found this in boot.log

Code:
<5>RAMDISK: Compressed image found at block 0
<4>VFS: Mounted root (ext2 filesystem).
<5>ReiserFS: hda7: found reiserfs format "3.6" with standard journal
<5>ReiserFS: hda7: using ordered data mode
<5>ReiserFS: hda7: journal params: device hda7, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
<5>ReiserFS: hda7: checking transaction log (hda7)
<5>ReiserFS: hda7: Using r5 hash to sort names
<4>VFS: Mounted root (reiserfs filesystem) readonly.
<5>Trying to move old root to /initrd ... failed
<5>Unmounting old root
then i ran fsck.reiserfs /dev/hda7 and the result is:

Code:
File system seems to be mounted read only
what should i do to make file system become read-write ??? I cannot chmod nor write anything .
 
Old 05-25-2004, 01:57 PM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
unmount it and mount it read-write

umount -a -t reiserfs
mount -t reiserfs /dev/hda7 /where/you/mount/it/ussually

This should give you read write access. If not, you should do the same, just add some more parameters.
 
Old 05-25-2004, 03:02 PM   #5
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Original Poster
Rep: Reputation: 0
it doesn't work when I un-mount and re-mount it always says hda7 already mounted.

/etc/mtab:
Code:
/dev/hda7 / reiserfs rw,alc,user_xattr 0 0
I think it's already read-write ?
 
Old 05-25-2004, 03:03 PM   #6
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Try to make it into
/dev/hda7 / /reiserfs default 0 0
 
Old 05-25-2004, 03:24 PM   #7
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Original Poster
Rep: Reputation: 0
the problem is: i cannot write any file ! (
 
Old 05-25-2004, 03:40 PM   #8
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
even in single mode? Booting into single mode in Red hat is simple. It is probably simple in suse too. Once in single mode, you should have all the privileges, and rw permissions.
 
Old 05-25-2004, 05:39 PM   #9
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Original Poster
Rep: Reputation: 0
Yep, even in single mode

I've realized that when i tried to
Code:
umount -a -l -t reiserfs
2 times then
Code:
/ not mounted
ok then I re-mount :
Code:
mount -t reiserfs /dev/hd7 /
it says again that /dev/hda7 was already mounted !
 
Old 05-25-2004, 05:41 PM   #10
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Did you try to change the fstab file? rw,.... to defualt?

Try this.
 
Old 05-26-2004, 05:01 PM   #11
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Original Poster
Rep: Reputation: 0
It's said to be a fault of SuSE 9.1, some people have the same problem as mine. So i decided to reinstall, everything seem ok until i realized that every applications lag, its not like before. Did some test and here is the result of cpuinfo:
Code:
d047:/home/lam # cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 7
model name      : AMD Duron(tm) Processor
stepping        : 1
cpu MHz         : 497.866
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips        : 985.19
The problem is: my CPU clock is 950 MHz, not 500MHz !! I dont know why, since i found this in boot.msg:

Code:
<4>Detected 945.946 MHz processor.
..........
<4>Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
<4>Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
<6>checking if image is initramfs...it isn't (no cpio magic); looks like an ini$
<6>Looking for DSDT in initrd ...No customized DSDT found in initrd!
<6>Freeing initrd memory: 1102k freed
<7>CPU:     After generic identify, caps: 0383f9ff c1cbf9ff 00000000 00000000
<7>CPU:     After vendor identify, caps: 0383f9ff c1cbf9ff 00000000 00000000
<6>CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
<6>CPU: L2 Cache: 64K (64 bytes/line)
<7>CPU:     After all inits, caps: 0383f9ff c1cbf9ff 00000000 00000020
<6>Intel machine check architecture supported.
<6>Intel machine check reporting enabled on CPU#0.
<4>CPU: AMD Duron(tm) Processor stepping 01
<6>Enabling fast FPU save and restore... done.
<6>Enabling unmasked SIMD FPU exception support... done.
 
Old 05-26-2004, 08:09 PM   #12
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
You have to remount it read-write. Try 'mount -o remount,rw /dev/hda7'. Then you can edit your fstab.
 
Old 05-27-2004, 05:01 AM   #13
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jspenguin
You have to remount it read-write. Try 'mount -o remount,rw /dev/hda7'. Then you can edit your fstab.
err, thanks but i have re-installed suse. The problem is now SuSE stole 400 MHz of my cpu.
 
Old 06-03-2004, 03:13 AM   #14
DiWi
Member
 
Registered: Jun 2004
Location: Frankfurt/M Germany
Distribution: SuSE 9.3/10.2/10.3
Posts: 64

Rep: Reputation: 16
After I went though the same nightmare, here's a short howto guide, how it works:

First before you compile and install the new kernel make a rescue entry:
change to /boot/grub and edit the menu.lst file. Copy the section title Linux kernel... and initrd

Change the new menu entry to point to the original vmlinuz and initrd (should be vmlinuz-2.6.4-54.5-default and initrd-2.4.6-54.5-default)
Save the file and reboot. Try to boot with the newly created entry. If this works fine, you have a rescue point.

Now change the /etc/fsstab file as mentioned before. Reboot to get a new etc/mtab file. Check if the drive is mounted correctly.

Last but not least, compile & install the kernel and modules
make install
make modules_install

Change to the /boot directory again and check with ls -l the vmlinuz and initrd links. They should be set to the newly created kernel and modules (initrd)

Do a reboot and try if it's working. Otherwise, you can boot with the rescue entry

Dirk
 
Old 06-07-2004, 01:13 PM   #15
ajfabbri
LQ Newbie
 
Registered: Jun 2004
Distribution: SuSE
Posts: 1

Rep: Reputation: 0
correction on fstab fix

Quote:
Originally posted by marghorp
Try to make it into
/dev/hda7 / /reiserfs default 0 0
Actually it is "defaults". If you use "default", you'll see the same problem.

I also deleted my /etc/mtab before rebooting and it worked. Yay.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem to compile the kernel os2 SUSE / openSUSE 1 09-03-2005 07:19 AM
Problem after new Kernel Compile Spectre630 Slackware 10 08-24-2005 07:15 AM
kernel (2.6.10) compile problem Rarrum Linux - Software 2 01-20-2005 04:31 PM
Compile Kernel Problem duddy11 Linux - Newbie 1 07-31-2003 11:03 AM
kernel compile problem Syncrm Linux - Software 3 01-23-2002 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:48 PM.

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