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. |
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. |
Assuming you actually need to compile a new kernel:
make menuconfig make make modules make modules_install make install |
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
|
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 |
You need the ncurses header files installed.
|
err how do i do that?
|
Quote:
|
Quote:
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, |
Quote:
If you prefer not to install any system headers, you can instead use make config which is a simple, line-by-line dialog. |
All times are GMT -5. The time now is 10:07 AM. |