WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: new install 4.7.6 stops at text screen when booting  (Read 18067 times)

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #30 on: May 08, 2013, 02:39:46 PM »
gerald_clark,

tce=sda2 home=sda2 opt=sda2
this is what my kernel line will look like in menu.lst
kernel  /boot/vmlinuz quiet tce=sda2 home=sda2 opt=sda2
thanks.


aus9,

if you don't get graphics up, that is called console and means the same as terminal but you can't run any mouse controlled stuff.
then that is the screen I describe in reply #1 with the penguin and ABSOLUTELY NO WARRANTY, then a terminal prompt.  so that's the console.  can that be invoked by ctrl + alt + f1 ?


before I get started (right away) with a new install, I need to mention that I will be skipping this command:
touch /mnt/sda2/tce/mydata.tgz
unless a reputable member recommends different.  the idea here is, we don't want that file, do we?

your "or this" option will give you persistence for home and opt. Please read the wiki and forums on that as I am have to get back to work.
for apps to survive a reboot, it will be this:
kernel  /boot/vmlinuz quiet tce=sda2 home=sda2 opt=sda2

In case you thought I was ignoring you, it was not clear to me, you had succeeded in getting a graphical display up either with this build of TC or the coreplus way.
it was after I ran this command, reply #9
cp -a /mnt/sr0/cde/* /mnt/sda2/tce
this command got me to the desktop (I was no longer stuck at the console), but I was no longer able to use appbrowser after that.  I got an error 'tce directory is not writable', and I was unable to do anything except run the terminal and send replies to you with another computer.  I didn't even have leafpad, so I couldn't transfer text from computer to computer with a flash drive.  there probably is a way to send text files to the flash drive with the terminal, but I am not that good.


some nice person has a wiki entry on alsa so you may elect to read that.
I'll bet that's you.  :)  I think I remember studying that.
that reminds me.  every time I restarted tinycore I had to turn alsamixer all the way up.  there is a lock icon but it doesn't keep the volume all the way up the way I like it.  is there a way to force alsamixer to stay on full volume?  maybe even a command to put in bootlocal.

ie  what you put into your onboot.lst determines what is REBOOTED if downloaded into tce/optional
--files you changed, means you put that in your .filetool.lst------but drop the leading /

I will have to get in there and have a look.

eg if you change /etc/scooby you add etc/scooby to your filetool.lst
------ alsa also needs a daemon so that goes to a boot up script called bootlocal.sh

right.  commands go in bootlocal.

Please take your time with the wiki and other forum posts.....you will be rewarded, with good looks, karma and skills, once you understand it.
understanding it is the hard part. 

now on to the install.  thanks aus9.
backup...backup...backup

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #31 on: May 08, 2013, 05:12:11 PM »
aus9,


there has definitely been a change.  whether it is for the better is yet to be determined.
the immediate problem was an error I received when clicking on appbrowser 'tce directory is not writable'.  I was able to get appbrowser to work with this command (below):

root@box:/mnt/sda2/tce# ls -la
total 28
drwxrwxrwx    4 tc       staff         4096 May  8 15:48 .
drwxr-xr-x    5 root     root          4096 May  8 15:16 ..
-r--r--r--    1 tc       staff           73 Apr  2 03:36 copy2fs.lst
-rw-rw----    1 tc       staff            0 May  8 15:26 firstrun
-r--r--r--    1 tc       staff           73 Apr  2 03:36 onboot.lst
drwxrwxr-x    2 tc       staff         4096 May  8 15:25 ondemand
dr-xr-xr-x    2 tc       staff         4096 Apr  2 03:36 optional
-r-xr-xr-x    1 tc       staff           57 Apr  2 03:36 xbase.lst
-rw-rw-r--    1 tc       staff            0 May  8 15:25 xwbar.lst
root@box:/mnt/sda2/tce# chmod 777 optional/
root@box:/mnt/sda2/tce# ls -la
total 28
drwxrwxrwx    4 tc       staff         4096 May  8 15:48 .
drwxr-xr-x    5 root     root          4096 May  8 15:16 ..
-r--r--r--    1 tc       staff           73 Apr  2 03:36 copy2fs.lst
-rw-rw----    1 tc       staff            0 May  8 15:26 firstrun
-r--r--r--    1 tc       staff           73 Apr  2 03:36 onboot.lst
drwxrwxr-x    2 tc       staff         4096 May  8 15:25 ondemand
drwxrwxrwx    2 tc       staff         4096 Apr  2 03:36 optional
-r-xr-xr-x    1 tc       staff           57 Apr  2 03:36 xbase.lst
-rw-rw-r--    1 tc       staff            0 May  8 15:25 xwbar.lst
root@box:/mnt/sda2/tce#

I used the 777 variation just to ensure that there was no permission problem.

you suggested to me this command:
chmod -R 775 /mnt/sda2/tce
I don't see why this would not have worked.  what does the -R do?  honestly, I don't remember trying it, so I will assume that I didn't (hitting myself in the head with a hammer).  I am going to reinstall and now I know exactly where I have to look to investigate the reason for the problem and what exactly would have worked and why.  I have to know what permissions the tce/optional had before and after running this command:
cp -a /mnt/sr0/cde/* /mnt/sda2/tce
then see what change to the permissions this command has:
chmod -R 775 /mnt/sda2/tce

I am going to use the OS for a few minutes (I want to make sure everything works) then I will reinstall.
backup...backup...backup

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11742
Re: new install 4.7.6 stops at text screen when booting
« Reply #32 on: May 08, 2013, 05:24:24 PM »
Hi ejames82
Entering:
Code: [Select]
chmod --helpwill tell you that -R means to recurse which means do it to all files and subdirectories in optional.

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #33 on: May 08, 2013, 07:27:00 PM »
thank you Rich.  that reply will help me with my investigation and my next post.
backup...backup...backup

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #34 on: May 08, 2013, 07:59:02 PM »
here is everything I did for the fresh install, plus my investigation as to the problems getting out of console and the problem with appbrowser not opening.
pardon my inefficiency with the terminal.


fdisk -l
mkfs.ext3 /dev/sda2
rebuildfstab
mount /mnt/sda2
mkdir -p /mnt/sda2/boot/grub
mount /mnt/sr0
cp -p /mnt/sr0/boot/* /mnt/sda2/boot/
mkdir -p /mnt/sda2/tce
cp -p /usr/lib/grub/i386-pc/* /mnt/sda2/boot/grub/
vi /mnt/sda2/boot/grub/menu.lst


default 0
timeout -1

title   Tiny Core
root    (hd0,1)
kernel  /boot/vmlinuz quiet tce=sda2 tce=home tce=opt
initrd  /boot/core.gz

title   Windows XP
root    (hd0,0)
makeactive
chainloader +1
~


grub

root (hd0,1)
setup (hd0)
quit

umount /mnt/sr0
eject /dev/sr0
reboot



cp -a /mnt/sr0/cde/* /mnt/sda2/tce
chmod -R 775 /mnt/sda2/tce


at this point I have already installed grub-splash0.97
root@box:~# mkfs.ext3 /dev/sda2
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
2908160 inodes, 11614995 blocks
580749 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
355 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@box:~# rebuildfstab
root@box:~# mount /mnt/sda2
root@box:~# mkdir -p /mnt/sda2/boot/grub
root@box:~# cp -p /mnt/sr0/boot/* /mnt/sda2/boot/
cp: omitting directory '/mnt/sr0/boot/isolinux'
root@box:~# mkdir -p /mnt/sda2/tce
root@box:~# cp -p /usr/lib/grub/i386-pc/* /mnt/sda2/boot/grub/
root@box:~# vi /mnt/sda2/boot/grub/menu.lst
default 0
timeout -1

title   Tiny Core
root    (hd0,1)
kernel  /boot/vmlinuz quiet tce=sda2 tce=home tce=opt
initrd  /boot/core.gz

title   Windows XP
root    (hd0,0)
makeactive
chainloader +1
~


grub

root (hd0,1)
setup (hd0)
quit

umount /mnt/sr0
eject /dev/sr0
reboot
root@box:~# cd /
root@box:/# ls
bin   dev   etc   home  init  lib   mnt   opt   proc  root  run   sbin  sys   tmp   usr   var
root@box:/# cd mnt
root@box:/mnt# ls
sda1  sda2  sr0   test
root@box:/mnt# cd sda2
root@box:/mnt/sda2# ls
boot        lost+found  tce
root@box:/mnt/sda2# cd tce
root@box:/mnt/sda2/tce# ls
root@box:/mnt/sda2/tce#
root@box:/mnt/sda2/tce# cd /
root@box:/# ls
bin   dev   etc   home  init  lib   mnt   opt   proc  root  run   sbin  sys   tmp   usr   var
root@box:/# cd mnt/
root@box:/mnt# ls
sda1  sda2  sr0   test
root@box:/mnt# cd sr0/
root@box:/mnt/sr0# ls
boot  cde
root@box:/mnt/sr0# cd cde/
root@box:/mnt/sr0/cde# ls
copy2fs.lst  onboot.lst   optional     xbase.lst
root@box:/mnt/sr0/cde# cd optional/
root@box:/mnt/sr0/cde/optional# ls
Xlibs.tcz                 Xvesa.tcz                 flwm_topside.tcz
Xlibs.tcz.md5.txt         Xvesa.tcz.md5.txt         flwm_topside.tcz.md5.txt
Xprogs.tcz                fltk-1.1.10.tcz           wbar.tcz
Xprogs.tcz.md5.txt        fltk-1.1.10.tcz.md5.txt   wbar.tcz.md5.txt
root@box:/mnt/sr0/cde/optional# ls -la
total 4087
dr-xr-xr-x    2 root     root          2048 Apr  2 03:36 .
dr-xr-xr-x    3 root     root          2048 Apr  2 03:36 ..
-r--r--r--    1 root     root       3313664 Apr  2 03:36 Xlibs.tcz
-r--r--r--    1 root     root            44 Apr  2 03:36 Xlibs.tcz.md5.txt
-r--r--r--    1 root     root        131072 Apr  2 03:36 Xprogs.tcz
-r--r--r--    1 root     root            45 Apr  2 03:36 Xprogs.tcz.md5.txt
-r--r--r--    1 root     root        372736 Apr  2 03:36 Xvesa.tcz
-r--r--r--    1 root     root            44 Apr  2 03:36 Xvesa.tcz.md5.txt
-r--r--r--    1 root     root        294912 Apr  2 03:36 fltk-1.1.10.tcz
-r--r--r--    1 root     root            50 Apr  2 03:36 fltk-1.1.10.tcz.md5.txt
-r--r--r--    1 root     root         28672 Apr  2 03:36 flwm_topside.tcz
-r--r--r--    1 root     root            51 Apr  2 03:36 flwm_topside.tcz.md5.txt
-r--r--r--    1 root     root         36864 Apr  2 03:36 wbar.tcz
-r--r--r--    1 root     root            43 Apr  2 03:36 wbar.tcz.md5.txt
root@box:/mnt/sr0/cde/optional# cd ..
root@box:/mnt/sr0/cde# ls
copy2fs.lst  onboot.lst   optional     xbase.lst
root@box:/mnt/sr0/cde# ls -la
total 8
dr-xr-xr-x    3 root     root          2048 Apr  2 03:36 .
dr-xr-xr-x    4 root     root          2048 Apr  2 03:36 ..
-r--r--r--    1 root     root            73 Apr  2 03:36 copy2fs.lst
-r--r--r--    1 root     root            73 Apr  2 03:36 onboot.lst
dr-xr-xr-x    2 root     root          2048 Apr  2 03:36 optional
-r-xr-xr-x    1 root     root            57 Apr  2 03:36 xbase.lst
root@box:/mnt/sr0/cde# cp -a /mnt/sr0/cde/* /mnt/sda2/tce
root@box:/mnt/sr0/cde# chmod -R 775 /mnt/sda2/tce
root@box:/mnt/sr0/cde#
root@box:/mnt/sda1# cd /
root@box:/# ls
bin   dev   etc   home  init  lib   mnt   opt   proc  root  run   sbin  sys   tmp   usr   var
root@box:/# cd mnt
root@box:/mnt# ls
sda1  sda2  sr0   test
root@box:/mnt# cd sda2
root@box:/mnt/sda2# ls
boot        lost+found  tce
root@box:/mnt/sda2# cd tce/
root@box:/mnt/sda2/tce# ls
copy2fs.lst  onboot.lst   optional     xbase.lst
root@box:/mnt/sda2/tce# ls -la
total 24
drwxrwxr-x    3 root     root          4096 May  8 19:08 .
drwxr-xr-x    5 root     root          4096 May  8 18:50 ..
-rwxrwxr-x    1 root     root            73 Apr  2 03:36 copy2fs.lst
-rwxrwxr-x    1 root     root            73 Apr  2 03:36 onboot.lst
drwxrwxr-x    2 root     root          4096 Apr  2 03:36 optional
-rwxrwxr-x    1 root     root            57 Apr  2 03:36 xbase.lst
root@box:/mnt/sda2/tce# cd optional/
root@box:/mnt/sda2/tce/optional# ls -la
total 4128
drwxrwxr-x    2 root     root          4096 Apr  2 03:36 .
drwxrwxr-x    3 root     root          4096 May  8 19:08 ..
-rwxrwxr-x    1 root     root       3313664 Apr  2 03:36 Xlibs.tcz
-rwxrwxr-x    1 root     root            44 Apr  2 03:36 Xlibs.tcz.md5.txt
-rwxrwxr-x    1 root     root        131072 Apr  2 03:36 Xprogs.tcz
-rwxrwxr-x    1 root     root            45 Apr  2 03:36 Xprogs.tcz.md5.txt
-rwxrwxr-x    1 root     root        372736 Apr  2 03:36 Xvesa.tcz
-rwxrwxr-x    1 root     root            44 Apr  2 03:36 Xvesa.tcz.md5.txt
-rwxrwxr-x    1 root     root        294912 Apr  2 03:36 fltk-1.1.10.tcz
-rwxrwxr-x    1 root     root            50 Apr  2 03:36 fltk-1.1.10.tcz.md5.txt
-rwxrwxr-x    1 root     root         28672 Apr  2 03:36 flwm_topside.tcz
-rwxrwxr-x    1 root     root            51 Apr  2 03:36 flwm_topside.tcz.md5.txt
-rwxrwxr-x    1 root     root         36864 Apr  2 03:36 wbar.tcz
-rwxrwxr-x    1 root     root            43 Apr  2 03:36 wbar.tcz.md5.txt
root@box:/mnt/sda2/tce/optional#
root@box:~# grub

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub> quit
root@box:~# umount /mnt/sr0
root@box:~# eject /dev/sr0
root@box:~# reboot
backup...backup...backup

aus9

  • Guest
Re: new install 4.7.6 stops at text screen when booting
« Reply #35 on: May 08, 2013, 08:19:30 PM »
Hi

reply 30
Quote
can that be invoked by ctrl + alt + f1

Yes and No. The trouble is if you already have graphics running and want to do something with X not running, the correct method is to click on the exit options and choose Exit to prompt......which has designed by the TC team to shutdown graphics.

If you just want to see a console, TC only gives you one, and your action will show it, then change that action to c/a/F2 to get back to X.

your last reply ....sorry its a bit long to give a quick reply but I would like you to understand that it generally frowned upon to weaken your permissions to 777.

Code: [Select]
find /mnt/sda3/tce/ -perm 775
/mnt/sda3/tce/
/mnt/sda3/tce/optional
/mnt/sda3/tce/ondemand

Above is my sda3 system. If you re-look at your last reply you have a lot of files with   r-- r--  r-- that ain't right!
tce/optional has some minor quirks as we have not all built them to the wiki standard but IMHO
664 with tc:staff would be the way to go.

The apps panel must have the abiltiy to over write an older file on update and without the w.....updates will fail
I could waffle on, but I hope you take the time to review your permissions

TCZs are files that are read by the function tce-load or whatever its called in the TC boot up scripts, they are not executables.

As I said, read the wikis.

##########

Alternatively leave those folders as 777, reboot and fix them when you can tell you have a graphical system

good luck

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11742
Re: new install 4.7.6 stops at text screen when booting
« Reply #36 on: May 08, 2013, 09:11:24 PM »
Hi ejames82
That's one busy post, but this stands out:
Code: [Select]
kernel  /boot/vmlinuz quiet tce=sda2 tce=home tce=optI think this might work a little better:
Code: [Select]
kernel  /boot/vmlinuz quiet tce=sda2 home=sda2 opt=sda2

aus9

  • Guest
Re: new install 4.7.6 stops at text screen when booting
« Reply #37 on: May 08, 2013, 09:51:01 PM »
ahh I am slow witted today

you copied from a cd that is read only, thats why the copy gave your r--

Quote
chmod -R 775 /mnt/sda2/tce

ok I have that wrong

try
Code: [Select]
chmod 775 /mnt/sda2/tce
chmod 775 /mnt/sda2/tce/optional
chmod 644  /mnt/sda2/tce/optional/*

reboot and run  .....ls -al /mnt/sda2/tce/optional....no need to post it, just tell us if you now have rw-   r-- r--

good luck


Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #38 on: May 08, 2013, 10:35:29 PM »
aus9,

I checked out your reply and will respond categorically tomorrow. 


Rich,

you have an eagles eye.  I finished the install and tried booting to hard drive and it said kernel is corrupt.  a mistake like that one would cause that exactly.  to say the least, the OS didn't behave.


it shows I am tired out.  I will fix this tomorrow after I recharge.  I don't want to make things worse.
thanks for the replies
backup...backup...backup

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #39 on: May 09, 2013, 12:47:37 PM »
recap:

I do a fresh command-line install and cannot boot past the console, so I boot to the cd and enter this command:
cp -a /mnt/sr0/cde/* /mnt/sda2/tce
but now, my appbrowser won't open.  this command fixes it:
chmod 777 /mnt/sda2/tce/optional    here are the permissions of /mnt/sda2/tce/optional  after the command:
drwxrwxrwx    2 root     root          4096 May  9 11:50 optional
here I run other commands and show the permissions after the commands.
root@box:/mnt/sda2/tce# chmod 775 /mnt/sda2/tce/optional
root@box:/mnt/sda2/tce# ls -la
drwxrwxr-x    2 root     root          4096 May  9 11:50 optional
appbrowser won't open
root@box:/mnt/sda2/tce# chmod 777 /mnt/sda2/tce/optional
root@box:/mnt/sda2/tce# ls -la
drwxrwxrwx    2 root     root          4096 May  9 11:58 optional
now it will

so I know specifically that the third w in the permission line dictates whether or not I am able to open appbrowser
root@box:/mnt/sda2/tce# chmod 775 /mnt/sda2/tce
appbrowser opens 
root@box:/mnt/sda2/tce# chmod 775 /mnt/sda2/tce/optional
now it won't open
root@box:/mnt/sda2/tce# chmod 644 /mnt/sda2/tce/optional/*
still won't open
root@box:/mnt/sda2/tce# chmod 777 /mnt/sda2/tce/optional
now it will open
backup...backup...backup

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #40 on: May 09, 2013, 02:38:25 PM »
aus9,

I was able to get to console by choosing exit>exit to prompt   but ctrl + alt + f2 didn't work to return me to X
startx
did.

thanks.
backup...backup...backup

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11742
Re: new install 4.7.6 stops at text screen when booting
« Reply #41 on: May 09, 2013, 02:47:56 PM »
Hi ejames82
If the GUI is running, Ctrl-Alt-F1 will get you the console and Ctrl-Alt-F2 will get you back to the desktop.
If you use exit>exit to prompt or Ctrl-Alt-Backspace to get to the console, it kills the GUI, and the only way back is
to restart the GUI with startx.

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #42 on: May 09, 2013, 04:21:43 PM »
Hello Rich,

ctrl + alt + f1 to get to console and ctrl + alt + f2 to get back to gui is now working for me.
thanks.
backup...backup...backup

aus9

  • Guest
Re: new install 4.7.6 stops at text screen when booting
« Reply #43 on: May 09, 2013, 07:49:32 PM »
Quote
drwxrwxrwx    2 root     root          4096 May  9 11:58 optional

consider changing the ownership
Code: [Select]
sudo chown -R tc:staff /mnt/sda2/tce

re-look at your /mnt/sda2/tce/optional pls
you no longer need 777 as you are tc and you are already in the first group rwx so now that you own that folder, drop sudo

Code: [Select]
chmod 755 -R /mnt/sda2/tce
(takes care of folders now do files)
chmod 644 /mnt/sda2/tce/optional/*

and test you can download an app

you are almost there, I can feel it ...
« Last Edit: May 09, 2013, 07:59:01 PM by aus9 »

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: new install 4.7.6 stops at text screen when booting
« Reply #44 on: May 09, 2013, 09:57:45 PM »
aus9,

nice work.  :)  all of those commands went without a problem and appbrowser still works.
tc@box:/mnt/sda2/tce$ ls -la
drwxr-xr-x    2 tc       staff         4096 May  9 21:25 optional/

what's more, I ran appbrowser>apps>maintenance and ran everything listed in there.  I haven't received any more prompts from firefox since.
the appsaudit feature seems to be discontinued.  it's mentioned in the wiki.  little things that are new to tinycore I've discovered in different places.  tinycore has always been solid, though, even way back when I first tried it out, version 2.11.1.
everything is working like it's supposed to be.  I hope I don't find any more problems.

thanks aus9.



backup...backup...backup