mini-myth on usb : what am I doing wrong?

Help with booting MiniMyth

Moderator: Pablo

Post Reply
jape
Member
Posts: 13
Joined: Sat Oct 04, 2008 7:02 pm

mini-myth on usb : what am I doing wrong?

Post by jape » Fri Oct 17, 2008 8:42 pm

After booting I get "minimyth.conf" file not found error.

Here's how I'm creating the USB image:

root@vcr2:/usr/local/data/disk1/jape/download/minimyth59b5# sh mm_local_install /usr/local/data/disk1/jape/download/minimyth59b5 sdd file:/usr/local/data/disk1/jape/download/minimyth59b5
ln: creating symbolic link `mm_local_helper_old': File exists
info: mm_local_helper_old: fetching file 'file:/usr/local/data/disk1/jape/download/minimyth59b5/helper.tar.bz2'.

Making a bootable flash device based on the following information:
Flash device : /dev/sdd
Flash device vendor : Kingston
Flash device model : DataTraveler 2.0
MiniMyth configuration directory: /usr/local/data/disk1/jape/download/minimyth59b5/conf
MiniMyth distribution URL : file:/usr/local/data/disk1/jape/download/minimyth59b5
MiniMyth version : 0.21.0-59b5
Continue [y/N]? y


info: mm_local_helper_new: fetching file 'file:/usr/local/data/disk1/jape/download/minimyth59b5/ram-minimyth-0.21.0-59b5.tar.bz2.md5'.
info: mm_local_helper_new: fetching file 'file:/usr/local/data/disk1/jape/download/minimyth59b5/ram-minimyth-0.21.0-59b5.tar.bz2'.
umount: /dev/sdd: not mounted
mkfs.msdos 2.11 (12 Mar 2005)
MiniMyth install was successful.

root@vcr2:/usr/local/data/disk1/jape/download/minimyth59b5# ls
conf mm_local_helper_new mm_local_update tmp
helper.tar.bz2 mm_local_helper_old ram-minimyth-0.21.0-59b5.tar.bz2 version
mm_local_helper mm_local_install ram-minimyth-0.21.0-59b5.tar.bz2.md5
root@vcr2:/usr/local/data/disk1/jape/download/minimyth59b5#

root@vcr2:/usr/local/data/disk1/jape/download/minimyth59b5# ls -al conf
total 64
drwxr-xr-x 2 jape users 4096 2008-10-17 15:12 .
drwxr-xr-x 4 jape users 4096 2008-10-17 15:16 ..
-rw------- 1 jape users 32768 2008-10-17 15:12 .minimyth.conf.swp
-rw-r--r-- 1 jape users 11076 2008-10-17 15:12 minimyth.conf

jape
Member
Posts: 13
Joined: Sat Oct 04, 2008 7:02 pm

Post by jape » Fri Oct 17, 2008 8:45 pm

Here's the -x output. Didn't see anything obvious:


root@vcr2:/usr/local/data/disk1/jape/download/minimyth59b5# sh -x mm_local_install /usr/local/data/disk1/jape/download/minimyth59b5 sdd file:/usr/local/data/disk1/jape/download/minimyth59b5
+ URL_DEFAULT=http://minimyth.org/download/stable/latest/
+ BASE_DIR=/tmp/mm_local_install
+ BINARIES='md5sum mkfs.msdos mount su sync syslinux umount'
+ for BINARY in '${BINARIES}'
+ which md5sum
+ for BINARY in '${BINARIES}'
+ which mkfs.msdos
+ for BINARY in '${BINARIES}'
+ which mount
+ for BINARY in '${BINARIES}'
+ which su
+ for BINARY in '${BINARIES}'
+ which sync
+ for BINARY in '${BINARIES}'
+ which syslinux
+ for BINARY in '${BINARIES}'
+ which umount
+ CONF=/usr/local/data/disk1/jape/download/minimyth59b5
+ DEVICE=sdd
+ test -z sdd
+ URL=file:/usr/local/data/disk1/jape/download/minimyth59b5
+ test -z /usr/local/data/disk1/jape/download/minimyth59b5
+ test -z sdd
+ test -z file:/usr/local/data/disk1/jape/download/minimyth59b5
+ device_check sdd
+ local DEVICE=sdd
+ test -n sdd
+ test -e /dev/sdd
+ test -d /sys/block/sdd
+ test -f /sys/block/sdd/removable
++ cat /sys/block/sdd/removable
+ test 1 -eq 1
+ test -f /sys/block/sdd/size
++ cat /sys/block/sdd/size
+ test 7827456 -gt 0
+ test -f /sys/block/sdd/device/type
++ cat /sys/block/sdd/device/type
+ test 0 -eq 0
+ test -f /sys/block/sdd/device/vendor
+ test -f /sys/block/sdd/device/model
+ true
+ return
++ cat /sys/block/sdd/device/vendor
++ sed 's%^ *%%g'
+ VENDOR=Kingston
++ cat /sys/block/sdd/device/model
++ sed 's% *$%%g'
+ MODEL='DataTraveler 2.0'
+ rm -rf /tmp/mm_local_install
+ mkdir -p /tmp/mm_local_install
++ script_dir
++ local HELPER_DIR
+++ echo mm_local_install
+++ sed -e 's%/[^/]*$%%g'
++ HELPER_DIR=mm_local_install
++ test '!' mm_local_install = ''
++ test '!' mm_local_install = mm_local_install
+++ pwd
++ HELPER_DIR=/usr/local/data/disk1/jape/download/minimyth59b5
+++ cd /usr/local/data/disk1/jape/download/minimyth59b5
+++ pwd
++ HELPER_DIR=/usr/local/data/disk1/jape/download/minimyth59b5
++ echo /usr/local/data/disk1/jape/download/minimyth59b5
+ HELPER_DIR=/usr/local/data/disk1/jape/download/minimyth59b5
+ test '!' -e /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_old
+ ln -s mm_local_helper mm_local_helper_old
ln: creating symbolic link `mm_local_helper_old': File exists
+ HELPER_OLD=/usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_old
+ test -e /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_old
+ HELPER_OLD='sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_old'
+ sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_old fetch_helper file:/usr/local/data/disk1/jape/download/minimyth59b5 /tmp/mm_local_install/minimyth_stage /tmp/mm_local_install/minimyth_cache
info: mm_local_helper_old: fetching file 'file:/usr/local/data/disk1/jape/download/minimyth59b5/helper.tar.bz2'.
+ HELPER_NEW=/usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new
+ test -e /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new
+ HELPER_NEW='sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new'
++ sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new version_new file:/usr/local/data/disk1/jape/download/minimyth59b5 /tmp/mm_local_install/minimyth_stage /tmp/mm_local_install/minimyth_cache
+ VERSION=0.21.0-59b5
+ echo ''

+ echo 'Making a bootable flash device based on the following information:'
Making a bootable flash device based on the following information:
+ echo ' Flash device : /dev/sdd'
Flash device : /dev/sdd
+ echo ' Flash device vendor : Kingston'
Flash device vendor : Kingston
+ echo ' Flash device model : DataTraveler 2.0'
Flash device model : DataTraveler 2.0
+ echo ' MiniMyth configuration directory: /usr/local/data/disk1/jape/download/minimyth59b5/conf'
MiniMyth configuration directory: /usr/local/data/disk1/jape/download/minimyth59b5/conf
+ echo ' MiniMyth distribution URL : file:/usr/local/data/disk1/jape/download/minimyth59b5'
MiniMyth distribution URL : file:/usr/local/data/disk1/jape/download/minimyth59b5
+ echo ' MiniMyth version : 0.21.0-59b5'
MiniMyth version : 0.21.0-59b5
+ echo -n 'Continue [y/N]? '
Continue [y/N]? + read INSTALL
y
+ echo ''

+ test y = y
+ echo ''

+ sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new fetch file:/usr/local/data/disk1/jape/download/minimyth59b5 /tmp/mm_local_install/minimyth_stage /tmp/mm_local_install/minimyth_cache
info: mm_local_helper_new: fetching file 'file:/usr/local/data/disk1/jape/download/minimyth59b5/ram-minimyth-0.21.0-59b5.tar.bz2.md5'.
info: mm_local_helper_new: fetching file 'file:/usr/local/data/disk1/jape/download/minimyth59b5/ram-minimyth-0.21.0-59b5.tar.bz2'.
+ test 0 -ne 0
+ sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new install file:/usr/local/data/disk1/jape/download/minimyth59b5 /tmp/mm_local_install/minimyth_stage /tmp/mm_local_install/minimyth_cache
+ test 0 -ne 0
+ sh /usr/local/data/disk1/jape/download/minimyth59b5/mm_local_helper_new temp_delete file:/usr/local/data/disk1/jape/download/minimyth59b5 /tmp/mm_local_install/minimyth_stage /tmp/mm_local_install/minimyth_cache
+ mkdir -p /tmp/mm_local_install/minimyth_stage
+ echo 'DEFAULT minimyth'
+ echo ''
+ echo 'LABEL minimyth'
+ echo ' KERNEL kernel'
+ echo ' APPEND ro root=/dev/ram0 ramdisk_size=96000 initrd=rootfs'
+ '[' -e /usr/local/data/disk1/jape/download/minimyth59b5/conf ']'
+ cp -r /usr/local/data/disk1/jape/download/minimyth59b5/conf /tmp/mm_local_install/minimyth_stage/
+ mkdir -p /tmp/mm_local_install/minimyth
+ su -c ' umount /dev/sdd ; mkfs.msdos -I -F 32 -n minimyth /dev/sdd ; syslinux /dev/sdd ; mount /dev/sdd //tmp/mm_local_install/minimyth ; cp -r /tmp/mm_local_install/minimyth_stage/* /tmp/mm_local_install/minimyth/ ; sync ; umount //tmp/mm_local_install/minimyth ; '
umount: /dev/sdd: not mounted
mkfs.msdos 2.11 (12 Mar 2005)
+ rm -rf /tmp/mm_local_install
+ echo 'MiniMyth install was successful.'
MiniMyth install was successful.
+ exit 0
root@vcr2:/usr/local/data/disk1/jape/download/minimyth59b5#

jape
Member
Posts: 13
Joined: Sat Oct 04, 2008 7:02 pm

Post by jape » Fri Oct 17, 2008 8:57 pm

Even weirder, the /minimyth directory exists after booting and contains conf/minimyth.conf

jp

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Fri Oct 17, 2008 9:07 pm

jape wrote:Even weirder, the /minimyth directory exists after booting and contains conf/minimyth.conf

jp
MiniMyth configuration files are located in subdirectories of conf/. See http://minimyth.org/document-configure.html#location.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply