戻る

前へ

試行錯誤 その5

さて .config を 入手 します 勿論 /dev/sda7 で 作成した .config なのですが  いかんせんこれは /dev/sdf7 に あるという事なのです。

root@p71sda9:~# cd /usr/src/linux-3.15.10/
root@p71sda9:/usr/src/linux-3.15.10# ls -al | grep config
-rw-r--r--   1 root root   125546 Dec 15 17:56 .config
-rw-r--r--   1 root root   125546 Nov 26 17:50 .config.old
-rw-r--r--   1 root root      252 Oct  9 09:00 Kconfig
root@p71sda9:/usr/src/linux-3.15.10# mv .config 20141209.config
root@p71sda9:/usr/src/linux-3.15.10# mount /dev/sdf7 /mnt/
# diff -s /mnt/usr/src/linux-3.15.10/.config /mnt/boot/config-3.15.10-nusda901 
Files /mnt/usr/src/linux-3.15.10/.config and /mnt/boot/config-3.15.10-nusda901 are identical
root@p71sda9:/usr/src/linux-3.15.10# cp /mnt/boot/config-3.15.10-nusda901 .
root@p71sda9:/usr/src/linux-3.15.10# cp config-3.15.10-nusda901 .config

では これを使って カーネルの 再構築を してみる

これは 何回か 試行した つもり でしたが ( 駄目だった 筈です) しかし確認の為 再度 ここから 始めよう

root@p71sda9:/usr/src/linux-3.15.10# make menuconfig 
 .config - Linux/x86 3.15.10 Kernel Configuration
/*    ここからは 一部の 抜粋    */
 > General setup
General setup    /* 内容的には 同一  nusda901 から nusda902 区別の為に     */
(-nusda902) Local version - append to kernel release 
.config - Linux/x86 3.15.10 Kernel Configuration
> Processor type and features
Processor family
(X) Core 2/newer Xeon 
.config - Linux/x86 3.15.10 Kernel Configuration 
 > Device Drivers > Graphics support > Direct Rendering Manager
Direct Rendering Manager
 Nouveau (nVidia) cards 
(5)   Maximum debug level
(3)   Default debug level 
[*]   Support for backlight control
 Yes

基本的に   -nusda902 に 変えただけで 他は 同じ 筈。

root@p71sda9:/usr/src/linux-3.15.10\
# time make -j4 V=1 2>&1 | tee log-make-nusda902-20141221

real    3m8.202s
user    6m15.030s
sys     1m5.590s
# make modules_install 2>&1 | tee log-m-nodules-nusda902-20141221
root@p71sda9:/usr/src/linux-3.15.10# ls /lib/modules/
3.15.10-cb5xn-01/  3.15.10-nusda902/
root@p71sda9:/usr/src/linux-3.15.10# cd /boot/
root@p71sda9:/boot\
# ls -l /usr/src/linux-3.15.10/arch/x86/boot/bzImage 
-rw-r--r-- 1 root root 3340640 Dec 21 13:48 /usr/src/linux-3.15.10/arch/x86/boot/bzImage

root@p71sda9:/boot\
# cp /usr/src/linux-3.15.10/arch/x86/boot/bzImage vmlinuz-3.15.10-nusda902
root@p71sda9:/boot\
# cp /usr/src/linux-3.15.10/System.map System.map-3.15.10-nusda902
root@p71sda9:/boot\
# cp /usr/src/linux-3.15.10/.config config-3.15.10-nusda902
root@p71sda9:/boot\
# mv vmlinuz vmlinuz-3.15.10-cb5xn-01 zantei-stop/
root@p71sda9:/boot\
# mv System.map System.map-3.15.10-cb5xn-01 zantei-stop/
root@p71sda9:/boot\
# mv config config-3.15.10-cb5xn-01 zantei-stop/
root@p71sda9:/boot\
# ln -s vmlinuz-3.15.10-nusda902  vmlinuz                  
root@p71sda9:/boot\
# ln -s System.map-3.15.10-nusda902 System.map        
root@p71sda9:/boot\
# ln -s config-3.15.10-nusda902 config                  
root@p71sda9:/boot\
# ls -l
total 5492736
lrwxrwxrwx 1 root root      27 Dec 21 14:00 System.map -> System.map-3.15.10-nusda902
-rw-r--r-- 1 root root 1897275 Dec 21 13:57 System.map-3.15.10-nusda902
lrwxrwxrwx 1 root root      23 Dec 21 14:00 config -> config-3.15.10-nusda902
-rw-r--r-- 1 root root  125504 Dec 21 13:58 config-3.15.10-nusda902
-rw-r--r-- 1 root root    5040 Nov  6  2012 diag1.img
-rw-r--r-- 1 root root   17932 Nov  6  2012 diag2.img
drwxr-xr-x 4 root root    4096 Nov 13 11:25 grub/
-rw-r--r-- 1 root root   22578 Nov  6  2012 inside.bmp
-rw-r--r-- 1 root root    6878 Nov  6  2012 onlyblue.bmp
-rw-r--r-- 1 root root   33192 Nov  6  2012 tuxlogo.bmp
lrwxrwxrwx 1 root root      24 Dec 21 14:00 vmlinuz -> vmlinuz-3.15.10-nusda902
-rw-r--r-- 1 root root 3340640 Dec 21 13:56 vmlinuz-3.15.10-nusda902
drwxr-xr-x 3 root root    4096 Dec 21 13:23 w_sda9_OK/
drwxr-xr-x 2 root root    4096 Dec 21 13:59 zantei-stop/
root@p71sda9:/boot\
# df | sed 3,5d
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda9      131956756 12758264 112488808  11% /
/dev/sdf7      184849444 27350644 148102320  16% /mnt
root@p71sda9:/boot\
# umount /mnt/
root@p71sda9:/boot\
# cat /etc/fstab 
/dev/sda6       swap        swap        defaults   0   0
/dev/sda9       /        ext3        defaults   1   1
/dev/sr0       /cdrom   iso9660   user,ro,noauto,exec,iocharset=euc-jp 0   0
none             /proc    proc        defaults   0   0
none             /sys     sysfs       defaults   0   0
none             /dev     tmpfs       defaults   0   0
none                /tmp     tmpfs       defaults   0   0
none            /dev/pts        devpts  gid=5,mode=620    0 0
none            /proc/bus/usb             usbfs        noauto   0   0

これで 立ち上がれば 問題無いのですが 無理 という事で  困っているのです。

再起動のち

$ ssh -l aruser 192.168.0.71
Password: 
aruser@p71sda9:~$ su -
パスワード:
root@p71sda9:~\
# df | head -2
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda9      131956756 12758400 112488672  11% /
root@p71sda9:~\
# fdisk -l

Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x2bd2c32a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63    97819784    48909861    7  HPFS/NTFS/exFAT
/dev/sdb2        97819785   109097414     5638815   82  Linux swap / Solaris
/dev/sdb3       109097415   206933264    48917925   83  Linux
/dev/sdb4       206933265   488392064   140729400    5  Extended
/dev/sdb5       206933328   295146179    44106426   83  Linux
/dev/sdb6       295146243   404564894    54709326   83  Linux
/dev/sdb7       404564958   488392064    41913553+  83  Linux

Disk /dev/sda: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xdba28bf3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   159289343    79644640+   7  HPFS/NTFS/exFAT
/dev/sda2      1235334240  1250258624     7462192+   7  HPFS/NTFS/exFAT
/dev/sda3       159289344   236658687    38684672    c  W95 FAT32 (LBA)
/dev/sda4       236658688  1235334239   499337776    5  Extended
/dev/sda5       236660736   268118015    15728640    b  W95 FAT32
/dev/sda6       268120064   276508671     4194304   82  Linux swap / Solaris
/dev/sda7       276510720   652369919   187929600   83  Linux
/dev/sda8       652371968   966944767   157286400   83  Linux
/dev/sda9       966946816  1235334239   134193712   83  Linux

Partition table entries are not in disk order

Disk /dev/sdc: 3997 MB, 3997171712 bytes, 7806976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x6f20736b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          62      200703      100321   83  Linux
/dev/sdc2          200704     7806975     3803136   83  Linux

理由 不明 立ち上がった
???
いままで 何を していたのでしょう???

root@p71sda9:~# shutdown -r now
$ ssh -l aruser 192.168.0.71
Password: 
aruser@p71sda9:~$ su -
パスワード:
root@p71sda9:~# mount /dev/sdc1 /mnt/
root@p71sda9:~# cd /mnt/boot/grub/
root@p71sda9:~# cd /mnt/boot/grub/
root@p71sda9:/mnt/boot/grub# cp -a grub.conf 20141218_try-grub.conf 

root@p71sda9:/mnt/boot/grub# vi grub.conf 
root@p71sda9:/mnt/boot/grub# cd
root@p71sda9:~# umount /mnt/
root@p71sda9:~# shutdown -r now

Broadcast message from root@p71sda9 (pts/0) (Sun Dec 21 14:22:17 2014):

The system is going down for reboot NOW!
root@p71sda9:~# Connection to 192.168.0.71 closed by remote host.
Connection to 192.168.0.71 closed.

再度 検証の必要あり ですが まあこれまでとします。

にゃんたろう 拝!

2014年 12月 22日 月曜日 21:06:51 JST 作成


前へ

戻る

Copyright © 2006.-2014.-- nyantarou All Rights Reserved.