Top / Linux / Install


/opt configuration

create /opt partion during installation.

$ su
$ cd /usr/local
$ mv * /opt
$ cd /usr
$ rmdir /usr/local
$ ln -s /opt local

Basic idea is that we are fond of having non-mandriva applications installed in /opt directory. Those are Intel compiler, ncview, matlab, google-earth, and so on. /opt directory / partition should have > 8GB (preferably > 16 GB).


$ su
$ chown yusuke:yusuke -R /opt


$ su
cd /opt
$ rsync -av --progress * yusuke@snapper:/opt/

を実行し、ocean:/opt --> snapper:/optに同期させる。


$ su
$ cd /home/tatsuya
$ rsync -av --progress matlab yuki@snapper:~/


$ scp -pv yuki@snapper:/home/yuki/.cshrc .
$ cd ~
$ source .cshrc


$ ssh octopus
$ cd ~/ROMS/test1
$ rsync -av --progress code grid bry yuki@snapper:/home/yuki/ROMS/test1/

NVIDIATM video driver

Use mcc (Mandriva Control Center) to install linux kernel source, ld, binutils, make, gcc, gfortran, etc...

Leave x-window to get console mode

telinit 3



from the appropriate directory where the driver file is saved.

Basically, video drivers must be merged with Linux kernel. Nvidia drivers manage to re-compile the kernel from the kernel source file. (n.b., The student workstations are equipped with GeForce GT430. Use the appropriate driver.)

Failure in mounting a DVD drive during installation

For workstations with ASUS P8H67-V mother board, a DVD drive is missing immediately after the linux kernel in the installation DVD (Mandriva 2010.2 Free) takes over the BIOS-level DVD controller. This is true for the three BTO computers bought from Unitcom Inc. for the 2011 undergrads.

This is caused by incomplete packaging of the Mandriva 2010.2 distribution with the AHCI driver for SATA3 ports. The thing is that the DVD drive attached to a SATA3 port on M/B (the grayish connector) is inaccessible from the Linux kernel. Another possible solution is to (update flush BIOS and) disable AHCI mode to revert back to IDE mode --- it was unfortunately not working with our PCs.

A (crude) solution is to detach the DVD data cable from a SATA3 port and then to plug in to a SATA2 port (the blueish connectors) before the installation. This is totally OK because DVD drives do not require such a high speed accessibility. Rather, SATA3 ports are reserved for extra HDD for future usage.

Dropping NIC with a kernel message like "Disabling IRQ #xx"...

You should add "irqpoll" during booting your machine to prevent this issue. Make yourself root

vi /boot/grub/menu.lst
kernel /vmlinuz ............ vga=788 irqpoll

and reboot your machine.

Restart MATLAB license manually

As a user, go to /opt/MATLAB/R2011a/etc, then submit


This sequence should be done automatically upon booting.

Fixing hostname of the machine

Add your hostname in /etc/hosts

It reads:       sardine       localhost
   :                    :

Edit /etc/sysconfig/network


Restart network with

/etc/init.d/network restart

Configure RAID 5

Go with mcc and do the followings:

  • Local disks --> Manage disk partitions
  • sdb, sdc, sdd, sde --> Linux Raid
  • add all 4 disks to RAID --> RAID 5, md0
  • raid --> mount point (such as /snapper <-- you have to make it as root a priori)
  • execute "format" command.

to check raid signature, submit

mdadm --examine /dev/sdX1   (where X stands for b,c,d or e)

for all the disks to make sure if they have the same signature. It looks like

         Magic : a92b4aaa
       Version : 00.90.00
          UUID : 4b1175ca:a8baaaac:134a2d0d:3b22ab35
 Creation Time : Wed Feb 17 10:25:21 2010

UUID is the signature. Then copy & paste it to /etc/mdadm.conf

[root@ainu etc]# vi /etc/mdadm.conf
DEVICE /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1
ARRAY /dev/md0 UUID=ee47f80d:c8a96e63:d8dad40f:1b9552ad auto=no

Then check the status of creation of your RAID volume.

cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb1[0] sdc1[1] sdd1[2] sde1[4]
      5860532352 blocks super 1.2 level 5, 128k chunk, algorithm 2 [4/3] [UUU_]
      [==========>..........]  recovery = 50.9% (994464644/1953510784) finish=122.2min speed=130700K/sec

That's all for now. It may take up to several hours. Go get a coffee.