WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: no partition mounted at startup  (Read 2736 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
no partition mounted at startup
« on: March 12, 2013, 09:25:42 PM »
I installed grub at MBR of my USB stick
/boot/grub/menu.lst reads

Code: [Select]
default 0
timeout 3
title tiny core
root (hd0,0)
kernel /boot/vmlinuz
initrd /boot/core.gz

It seems mydata.tgz stored in USB stick does not get loaded .
ALso , I end up with a prompt in which 'df' does not show any partition (/mnt/sd##) mounted.
Also /etc/fstab shows my hard disk NTFS partition as sda5 while USB as sdb1.

Please suggest ?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: no partition mounted at startup
« Reply #1 on: March 12, 2013, 09:35:13 PM »
Use an ext3 filesystem, and have a tce directory on it.
Please read the persistence articles in the wiki.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11290
Re: no partition mounted at startup
« Reply #2 on: March 12, 2013, 09:39:22 PM »
Hi manit123
Try:
Code: [Select]
kernel /boot/vmlinuz waitusb=5

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: no partition mounted at startup
« Reply #3 on: March 13, 2013, 09:46:23 PM »
I will see if adding 'waitusb=5' option in kernel helps.

to gerald_clark
My USB stick has fat32 . Should I create tce folder on it containing mydata.tgz ?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11290
Re: no partition mounted at startup
« Reply #4 on: March 13, 2013, 10:00:54 PM »
Hi manit123
You should definitely have a waitusb on the kernel line.
 
Quote
Should I create tce folder on it containing mydata.tgz ?
You said in your original post:
Quote
It seems mydata.tgz stored in USB stick does not get loaded .
If it wasn't in the tce directory, it won't be found.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: no partition mounted at startup
« Reply #5 on: March 13, 2013, 10:20:57 PM »
Otherwise use boot code "restore=".
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: no partition mounted at startup
« Reply #6 on: March 15, 2013, 05:25:35 AM »
I added waitusb=10 in kernel line of grub menu .
Also copied mydata.tgz to tce directory of USB . Now it gets mounted.

Actually I have noticed that tiny core drops me to a terminal when I boot from USB stick a computer having internal SATA hard disk.
Anyone encountered this ?

Currently I have made a workaround with script pointed by .ashrc  which gets run as 'tc' user before OS drops me into prompt.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11290
Re: no partition mounted at startup
« Reply #7 on: March 15, 2013, 07:27:02 AM »
Hi manit123
Does the SATA drive happen to have a /tce directory? If you don't specify a  tce=  on the kernel line, Tinycore will
scan the computer looking for /tce and use the first one it finds.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: no partition mounted at startup
« Reply #8 on: March 15, 2013, 07:50:58 AM »
to rich,
No . internal hard disk has a 900 GB extended ntfs partition with no tce folder.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11290
Re: no partition mounted at startup
« Reply #9 on: March 15, 2013, 08:18:50 AM »
Hi manit123
Boot the USB stick on a machine where it boots normally. Find the UUID of the partition containing your /tce
directory by entering:
Code: [Select]
blkid /dev/sda1Change sda1 to where your tce directory is. Add the following to your kernel line:
Code: [Select]
waitusb=30:UUID="77f3e5df-806f-480c-b6cc-905cb3132753" tce=UUID="77f3e5df-806f-480c-b6cc-905cb3132753"replacing the UUID values with the one returned by the blkid command.