LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2002, 02:52 PM   #1
Deepu Sudhakar
LQ Newbie
 
Registered: Oct 2002
Posts: 25

Rep: Reputation: 15
recompiling redhat 8 kernel


im trying to recompile the 2.4.19 kernel for redhat 8 so that i can get ntfs support. when i ran the commands 'make bzImage' and 'make modules', i noticed that there a lot of 'cocation...string literal is deprecated' or something like that. is that an error? i dont think im doing this recompile correctly at all, so can someone provide with steps to get ntfs support in redhat 8?
 
Old 10-05-2002, 04:37 PM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
Those warnings are normal... it doesn't mean that anything is wrong.
 
Old 10-05-2002, 04:52 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well what I recommend when configuring a new kernel for a system is prior to that task that you make a list of hardware in that computer ... so that you know if you need specific modules like for SCSI support or specific network device drivers, etc. It's usually easier if you know what's inside the comp

After that browse through the menus that have been created using "make menuconfig". In your case check the File Systems! But it's generally a good idea to take a look around - at least out of curiousity
 
Old 10-06-2002, 05:21 AM   #4
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
You don't need a 2.4.19 kernel for ntfs support, infact you don't even need to recompile the distro kernel for it, you can make the module seprately, have a look at this guide:

http://www.getlinuxonline.com/omp/di...t/ompntfs2.txt

That's what I've done anyway. I put 2.4.19 on my old Red Hat 7.3 install (because I needed it to recognise my SouthBridge for DMA support or something) and it worked well. I'm not really liking RH8 as much, seems a bit... dunno...

If you want to recompile the kernel, have a look at the kernel HOWTO (just the first few pages are sufficient):

http://www.tldp.org/HOWTO/Kernel-HOWTO.html

These two guides have served me very well.
 
Old 10-06-2002, 09:56 AM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
That's true if you've activated loadable module support!
 
Old 10-06-2002, 02:03 PM   #6
Deepu Sudhakar
LQ Newbie
 
Registered: Oct 2002
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by miknight
You don't need a 2.4.19 kernel for ntfs support, infact you don't even need to recompile the distro kernel for it, you can make the module seprately, have a look at this guide:

http://www.getlinuxonline.com/omp/di...t/ompntfs2.txt

That's what I've done anyway. I put 2.4.19 on my old Red Hat 7.3 install (because I needed it to recognise my SouthBridge for DMA support or something) and it worked well. I'm not really liking RH8 as much, seems a bit... dunno...

If you want to recompile the kernel, have a look at the kernel HOWTO (just the first few pages are sufficient):

http://www.tldp.org/HOWTO/Kernel-HOWTO.html

These two guides have served me very well.
ok...everything has worked so far...im just confused about this part:

You will have to create a mount point and add an entry to /etc/fstab for the
NTFS partitions you want to access.

There are many different options you can use to mount the partition
depending upon your needs.

If you have a single user system or don't need to give others access to
the partition, you can use this.
Replace "xxx" on uid and gid with your userid and group id.

/dev/hdc2 /mnt/windows ntfs noauto,user,uid=xxx,gid=xxx,umask=007 0,0

i have added a line to the fstab file but its a guess. i put:
/dev/hda1 /mnt/windows ntfs auto,owner,kudzu,0 0

what should this line be? also, what do i from here? do i need to reboot?
 
Old 10-06-2002, 03:20 PM   #7
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
well, the mount point means just making the directory, in your case this would be "mkdir /mnt/windows" . fstab will mount that on startup, but you can also mount by hand with "mount -t ntfs /dev/hda1 /mnt/windows"

Last edited by adam_boz; 10-06-2002 at 03:27 PM.
 
Old 10-06-2002, 03:25 PM   #8
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I'm not sure, because i've never mounted ntfs, but i think you can dump auto,owner,kudzu and just put "defaults" the "0 0"'s mean that (first zero) not to check the filesystem (0 means don't and 1 means do) and (second zero) if you do check, what order should it be in (2,3,4,5.... this should not be the same number as other ones in that file)
 
Old 10-07-2002, 12:26 AM   #9
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
Yeah I'm currently working on the best fstab entry myself... and I suppose you do need to reboot to make it work, but ou can just use that manual mount command described by adam_boz.

Assuming only you need to access it, you could try:

/dev/hda1 /mnt/windows ntfs ro,users,uid=500,gid=500 0 0

But I dunno, I'm learning too
 
Old 10-07-2002, 12:37 PM   #10
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
I just googled for you:

http://www.mandrakeuser.org/docs/admin/amount2.html


The appropoach chosen there should be kinda generic working I suppose!
 
Old 10-07-2002, 06:13 PM   #11
necromanx13x
LQ Newbie
 
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
when i go to get into [root@localhost linux-2.4.18-14]# /usr/src/linux-2.4.18-14/configs/kernel-2.4.18-athlon.config
it says
bash: /usr/src/linux-2.4.18-14/configs/kernel-2.4.18-athlon.config: Permission denied

how do i gain access to this?

Last edited by necromanx13x; 10-07-2002 at 06:25 PM.
 
Old 10-11-2002, 10:56 AM   #12
manojrkrish
LQ Newbie
 
Registered: Jun 2002
Location: UK
Distribution: Mepis3.3, Slackware
Posts: 15

Rep: Reputation: 0
I'm having trouble recompiling too

Hello folks,

I'm trying to recompile the kernel version1.2.4-18 myself and got so far as make dep. When I tried make bzImage it gives a whole load of warnings with depreciated string literals and such and soon after gives up with errors. Here are the last few lines from the output.

drm_vm.h:145: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from tdfx_drv.c:110:
drm_vm.h: In function `tdfx_vm_shm_close':
drm_vm.h:164: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from tdfx_drv.c:110:
drm_vm.h: In function `tdfx_vm_dma_nopage':
drm_vm.h:248: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from tdfx_drv.c:110:
drm_vm.h: In function `tdfx_vm_open':
drm_vm.h:286: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from tdfx_drv.c:110:
drm_vm.h: In function `tdfx_vm_close':
drm_vm.h:307: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from tdfx_drv.c:110:
drm_vm.h: In function `tdfx_mmap_dma':
drm_vm.h:336: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from tdfx_drv.c:110:
drm_vm.h:347:24: operator '<=' has no left operand
In file included from tdfx_drv.c:110:
drm_vm.h: In function `tdfx_mmap':
drm_vm.h:381: warning: concatenation of string literals with __FUNCTION__ is deprecated
drm_vm.h:462: warning: concatenation of string literals with __FUNCTION__ is deprecated
drm_vm.h:470:24: operator '<=' has no left operand
drm_vm.h:479:24: operator '<=' has no left operand
drm_vm.h:488:24: operator '<=' has no left operand
In file included from tdfx_drv.c:111:
drm_stub.h: In function `tdfx_stub_register':
drm_stub.h:125: warning: concatenation of string literals with __FUNCTION__ is deprecated
drm_stub.h:133: warning: concatenation of string literals with __FUNCTION__ is deprecated
drm_stub.h:137: warning: concatenation of string literals with __FUNCTION__ is deprecated
drm_stub.h: In function `tdfx_stub_unregister':
drm_stub.h:147: warning: concatenation of string literals with __FUNCTION__ is deprecated
make[4]: *** [tdfx_drv.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/char/drm'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/char/drm'
make[2]: *** [_subdir_drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-14/drivers'
make: *** [_dir_drivers] Error 2


Could someone please help me understand what the problem is. Unfortunately on my vaio laptop I can't use any usb devices unless I recompile my kernel with a patch. Thanks in adv.

Manoj
 
  


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
error recompiling redhat linux 9 kernel 2.4.20-31.9 using original .config whipermr5 Linux - Software 7 12-22-2004 01:04 AM
recompiling 2.4.18-14 in redhat 8.0 saajii Red Hat 2 08-12-2004 01:34 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 04:05 PM
Recompiling RedHat 8.0 Kernel Touchstone Linux - General 14 08-09-2003 01:01 PM
Recompiling the kernel AMDPwred Linux - Software 3 06-21-2003 07:08 PM


All times are GMT -5. The time now is 08:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration