i had to edit .ashrc because
(1)'error , check network , mirror or writable extension directory'occur when /tmp/tce/optional directory absent
(2)/etc/sysconfig/tcedir points to /mnt/sda1/tce by default if sda1 has tce folder
(3)to set-all-volume-control to max
(4)mounting ntfs3g partition on startup
Taking cue from your replies I did
/opt/bootsync.sh
#!/bin/sh
# put other system startup commands here, the boot process will wait until they complete.
# Use bootlocal.sh for system startup commands that can run in the background
# and therefore not slow down the boot process.
/usr/bin/sethostname box
/opt/bootlocal.sh &
rm /etc/sysconfig/tcedir/
ln -s /tmp/tce /etc/sysconfig/tcedir
sudo ntfs-3g -o 'noexec,rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096' /dev/sda3 /mnt/sda3
/home/tc/.xsession
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ -x ./.mouse_config ] && ./.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d ".X.d" ] && find ".X.d" -type f -print | while read F; do . "$F"; done
xset s 0 &
mkdir -p /tmp/tce/optional
ossmix | grep -i 'leftvol' | grep -v 'known' | grep -v 'selected'| sed -n 's/ .*//p' | xargs -n 1 /home/tc/set-all-volume-control-full.txt
touch /home/tc/already-run.txt
Now my /home/tc/.ashrc is
#!/usr/local/bin/bash
# ~/.ashrc: Executed by SHells.
#
. /etc/init.d/tc-functions
# Alias definitions.
#
alias df='df -h'
alias du='du -h'
alias ls='ls -p'
alias ll='ls -l'
alias la='ls -la'
# Avoid errors... use -f to skip confirmation.
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
root=$( blkid | grep -i sd | grep -i 8557 | sed 's/\([/a-z0-9]*\).*/\1/' | sed ' s/dev/mnt/')
#8557 is part of uuid of partition which has kundli,oxford extensions
if [ -f /home/tc/already-run.txt ] ;
then
if [ -f "$root/tc/kundli.sh" ];
then
alias kundli="$root/tc/new-kundli.sh"
echo try kundli
fi
if [ -f "$root/tc/oxford.sh" ];
then
alias oxford="$root/tc/new-oxford.sh"
echo try oxford
fi
fi
Things are fine again !
Thanks for your patience