ハックキットの一本化のためのインストーラのデバッグ(3)LS-HGL

Debian LS-HGL

一本化したハックキットのインストーラを順にデバッグをしていく。

次に LS-HGL

ハックキットインストーラの実行

root@LS-HGL487:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root.old 15351 14671 680 96% /initrd
/dev/sda2 4994004 244012 4749992 5% /
/dev/ram1 15360 104 15256 1% /mnt/ram
/dev/sda1 988212 24464 963748 2% /boot
/dev/sda6 237067816 9270996 227796820 4% /mnt/disk1
/dev/usbdisk1_1 194443 11638 172766 6% /mnt/usbdisk1
root@LS-HGL487:~# umount /mnt/usbdisk1/
/sbin/hotplug [block]
root@LS-HGL487:~# fdisk -l /dev/sdb
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 Device Boot Start End Blocks Id System
/dev/sdb1 1 25 200781 83 Linux
/dev/sdb2 26 275 2008125 83 Linux
/dev/sdb3 276 307 257040 82 Linux swap
/dev/sdb4 308 30401 241730055 83 Linux
root@LS-HGL487:~# cd /mnt/disk1/share/hackkit/
root@LS-HGL487:/mnt/disk1/share/hackkit# ls
hackkit_013.sh hackkit_081122.tar.gz mkimage
root@LS-HGL487:/mnt/disk1/share/hackkit# sh hackkit_013.sh
PRODUCTID = 0x0000000E
formating hard drive ...
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
50200 inodes, 200781 blocks
10039 blocks (5.00%) reserved for the super user
First data block=1
25 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
 8193, 24577, 40961, 57345, 73729
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
meta-data=/dev/sdb2 isize=256 agcount=8, agsize=62754 blks
 = sectsz=512
data = bsize=4096 blocks=502031, imaxpct=25
 = sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=2560, version=1
 = sectsz=512 sunit=0 blks
realtime =none extsz=65536 blocks=0, rtextents=0
Setting up swapspace version 1, size = 263204864 bytes
meta-data=/dev/sdb4 isize=256 agcount=58, agsize=1048576 blks
 = sectsz=512
data = bsize=4096 blocks=60432513, imaxpct=25
 = sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=29508, version=1
 = sectsz=512 sunit=0 blks
realtime =none extsz=65536 blocks=0, rtextents=0
mounting root file system ...
XFS mounting filesystem sdb2
/sbin/hotplug [block]
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
	:
	:
./initrd/
creating miconapl ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
	:
	:
lib/modules/2.6.16.16-arm1/modules.symbols
creating usb ...
/sbin/hotplug [block]
checking /dev/sdb1
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 11/50200 files (0.0% non-contiguous), 10465/200781 blocks
mounting /boot ...
/sbin/hotplug [block]
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
93296+1 records in
93296+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
/sbin/hotplug [block]
/sbin/hotplug [block]
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name: initrd
Created: Sat Dec 6 14:11:49 2008
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5953678 Bytes = 5814.14 kB = 5.68 MB
Load Address: 0x00000000
Entry Point: 0x00000000
unmount /boot ...
umount: /mnt/debinst/boot: device is busy
umount: /mnt/debinst/boot: device is busy
root@LS-HGL487:/mnt/disk1/share/hackkit#
相変わらず /boot のアンマウントはできない。。。
それ以外は特に問題なさそう。

再起動

USB で接続していた実験用 HDD を SATA で接続し、再起動。
	:
	:
---- in hackkit linuxrc ---
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 108K
INIT: version 2.86 booting
Setting the system clock.
Activating swap...Adding 257032k swap on /dev/sda3. Priority:-1 extents:1 across:257032k
done.
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
fsck: cannot check /dev/sda4: fsck.xfs not found
/dev/sda1: recovering journal
/dev/sda1: Clearing orphaned inode 6025 (uid=0, gid=0, mode=0100644, size=16777216)
/dev/sda1: Superblock last mount time is in the future. FIXED.
/dev/sda1: Backing up journal inode block information.
/dev/sda1 has filesystem last checked time in the future, check forced.
/dev/sda1: 13/50200 files (15.4% non-contiguous), 17988/200781 blocks
fsck died with exit status 1
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda4
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...eth0: link down
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.3
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
Starting internet superserver: inetd.
Starting periodic command scheduler: crond.
Debian GNU/Linux lenny/sid hackkit ttyS0
hackkit login:
fsck: cannot check /dev/sda4: fsck.xfs not found
は、さておき、特に問題なさそう。

あとは、LS-GL と HS-DHGL か。。。





衝撃に備えよ
ハックの記録
LinkStation/玄箱 をハックしよう
ハックキットの一本化のためのインストーラのデバッグ(4)LS-GL

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市

AltStyle によって変換されたページ (->オリジナル) /