LinuxQuestions.org
Register a domain and help support LQ
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 02-20-2008, 10:35 PM   #1
X-POSE
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Edit kernel to support UFS read/write


Hey Guys,

I would like to enable read/write support for the UFS file system.

Basically, I need to be able to edit files on a Solaris HD in Kubuntu.

I have 1 HD with Kubunu installed on it, and the other is a Solaris HD. (which needs to be mounted as read/write).


This is what I have done:

Installed Kubuntu 7.04.

/usr/src/linux_dir/

attempted a "make allyesconfig" , and then "make bzImage" <- this step fails.


This is what I need help with:

1: after installation of kubuntu, what steps need to be done in order for me to mount the Solaris HD as read/write?

Can anyone help me with a step by step guide to this? This would be appreciated.
 
Old 02-20-2008, 10:55 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
You probably already have the UFS module in the default kernel (it's been in the kernel since version 2.0). To verify, in a terminal, run 'modinfo ufs'. If you have it, modinfo will tell you so.

Beyond that, try 'menuconfig' or 'make menuconfig' to start the kernel configuration. Make bzImage will be near the last step in the configuration process.

I can only find references to read-only support for UFS. There may be third-party patches to give write support, buy I wouldn't bet on it.

Last edited by bigrigdriver; 02-20-2008 at 11:04 PM.
 
Old 02-20-2008, 10:57 PM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Solus
Posts: 2,254

Rep: Reputation: 47
Assuming you actually need to compile a new kernel:

make menuconfig

make

make modules

make modules_install

make install
 
Old 02-20-2008, 11:02 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
If you never compiled a kernel or ever configured one well do it on a system with more than one kernel and kernel tree ok if I screw up one kernel I have three to fall back on to run the system. this is not for newbies cd /usr/src/uname-r kernel type make xconfig then load your old config file then scrole to the section you need check yes. then you will need to build the modules make install then a make modules_install.good luck
 
Old 02-20-2008, 11:15 PM   #5
X-POSE
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Original Poster
Rep: Reputation: 0
When running make menuconfig, i get this:

/usr/src/linux-headers-2.6.20-15-generic# make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or direct
ory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list b
efore ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:193: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:195: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:200: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/checklist.c:116: error: ‘WINDOW’ undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: (Each undeclared identifier is
reported only once
scripts/kconfig/lxdialog/checklist.c:116: error: for each function it appears in
.)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘dialog’ undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘list’ undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma ex
pression has no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of funct
ion ‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: error: ‘stdscr’ undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:130: error: ‘KEY_MAX’ undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of funct
ion ‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: error: ‘COLS’ undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:138: error: ‘LINES’ undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of funct
ion ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of funct
ion ‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of funct
ion ‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘TRUE’ undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of funct
ion ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of funct
ion ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of funct
ion ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of funct
ion ‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of funct
ion ‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of funct
ion ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of funct
ion ‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no me
mber named ‘atr’
scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of funct
ion ‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of funct
ion ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of funct
ion ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of funct
ion ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of funct
ion ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of funct
ion ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_UP’ undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_DOWN’ undeclared (first us e in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use i n this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of funct ion ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of funct ion ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of funct ion ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of funct ion ‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first us e in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first u se in this function)
scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of funct ion ‘on_key_esc’
scripts/kconfig/lxdialog/checklist.c:312: error: ‘KEY_RESIZE’ undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2

Last edited by X-POSE; 02-20-2008 at 11:18 PM.
 
Old 02-20-2008, 11:57 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
You need the ncurses header files installed.
 
Old 02-21-2008, 12:05 AM   #7
X-POSE
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Original Poster
Rep: Reputation: 0
err how do i do that?
 
Old 02-21-2008, 12:23 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
Originally Posted by masonm View Post
Assuming you actually need to compile a new kernel:

make menuconfig

make

make modules

make modules_install

make install
You skipped the first step: "make oldconfig".
 
Old 02-21-2008, 10:50 AM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Quote:
Originally Posted by jschiwal View Post
You skipped the first step: "make oldconfig".
if you make oldconfig then you have the same old settings. but after playing with make xconfig I see it loads defaults. so I said in make xconfig load your .config file then scroll to the place and mark yes . to make oldconfig would not help him because the same old setting.


cd linux
make mrproper

make config
1 make
2 make install
3 make modules_install

so when I use the xconfig i have the option to load a old config
then edit then save.
then do steps 1,2,3,
 
Old 02-21-2008, 06:48 PM   #10
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by X-POSE View Post
err how do i do that?
If you want to run make menuconfig you will need the ncurses headers (similarly, for make xconfig and make gconfig you will need the Qt and GTK headers respectively). Since you are running Kubuntu, these packages should be available in Synaptic (e.g., libncurses5-dev or similar).

If you prefer not to install any system headers, you can instead use make config which is a simple, line-by-line dialog.
 
  


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
How to get NTFS read write support? arindom Linux - Newbie 32 02-17-2007 10:47 AM
Linux UFS write support ?? fatpat94 Linux - General 0 05-20-2006 08:46 AM
Read/write to UFS partition digitalhead Linux - General 3 01-24-2006 07:07 AM
Does Linux support Read-Write in NTFS? hackerarchangel Linux - Newbie 3 09-25-2005 03:31 AM
How to enable read-write support on NTFS? theMonkeY Linux - Software 4 06-26-2004 01:23 PM


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