WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Shared directory on USB install?  (Read 3323 times)

Offline Nate

  • Newbie
  • *
  • Posts: 10
Shared directory on USB install?
« on: August 25, 2010, 02:06:43 AM »
Hello,

I have TinyCore 2.3 installed on a USB drive, and it boots and works great.

I would like to copy some data from another computer onto the USB drive
that TinyCore is loaded.

Can I just put arbitrary files in the Tiny Core USB's "/tce" folder, and TinyCore will be able to see
them when it boots?

Or, can I put arbitrary directories on the Tiny Core USB drive, and mount them when Tiny Core boots?

This would save me from having to boot to my USB drive,
and then copy the data/pictures over via ssh or network share, etc.

I apologize if this is a FAQ, I've done some searching and couldn't find
anything.

Thanks,
--Nate

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Shared directory on USB install?
« Reply #1 on: August 25, 2010, 02:24:12 AM »
Can I just put arbitrary files in the Tiny Core USB's "/tce" folder, and TinyCore will be able to see
them when it boots?

Or, can I put arbitrary directories on the Tiny Core USB drive, and mount them when Tiny Core boots?

I think the second option would be better, the /tce folder would be better kept for extensions.

Offline phiphu2002

  • Newbie
  • *
  • Posts: 6
Re: Shared directory on USB install?
« Reply #2 on: September 10, 2010, 06:48:42 AM »
I have a same configuration with Nate.
How could i make directory "/tce" in TCL on USB? Using "mkdir" as usual doesnt work.
Thanks

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Shared directory on USB install?
« Reply #3 on: September 10, 2010, 07:24:02 AM »
There could be a couple of reasons for this:

1. The usb stick is not mounted
2. You might need root privileges to create a folder on the usb stick

Assuming your usb stick is at /dev/sda1:
Code: [Select]
$ sudo mount /dev/sda1 /mnt/sda1
$ sudo mkdir /mnt/sda1/tce
$ sudo chown tc:staff /mnt/sda1/tce

Offline tikbalang

  • Newbie
  • *
  • Posts: 9
Re: Shared directory on USB install?
« Reply #4 on: September 10, 2010, 08:16:06 AM »
i put tinycore files inside /tce. clutter is minimized, and no problems so far.

Offline phiphu2002

  • Newbie
  • *
  • Posts: 6
Re: Shared directory on USB install?
« Reply #5 on: September 14, 2010, 07:36:49 AM »
Bellow is my configuration:
+ virtual machine runs on VirtualBox, host machine is Ubuntu desktop 9.10
+ two partitions, of a USB flash, are add to the virtual machine as two hard drives
+ tinycore3.0 is installed on the first patition of the USB flash
+ bood loader is syslinux
Here is the result:
+ vitual machine can boot from tinycore
+ virtual machine can see two partitions of the USB (/dev/hda and /dev/hdb)
+ output of "showbootcodes" is "initrd=/boot/tinycore.gz quiet waitusb=5 tce=hdb1 opt=hdb1 BOOT_IMAGE=/boot/bzImage"

Questions:
+ Is it possible to use second partition of the USB for Persistent Repository and Backup?
+ If it is possible? How to use?

Thanks for you help

Offline phiphu2002

  • Newbie
  • *
  • Posts: 6
Re: Shared directory on USB install?
« Reply #6 on: September 15, 2010, 07:45:05 AM »
Please help me!

Offline phiphu2002

  • Newbie
  • *
  • Posts: 6
Re: Shared directory on USB install?
« Reply #7 on: September 15, 2010, 08:05:17 AM »
After the system bootup, using "fdisk -l" shows that there are 02 disks on machine, /dev/hda (with root fs), and /dev/hdb.
I can mount /dev/hdb and use that disk. However, adding "tce=hdb retore=hdb" to the boot code makes system hang at boot "Invalid device hdb". The same result happens when using UUDI instead of "hdb".
Can you help?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Shared directory on USB install?
« Reply #8 on: September 15, 2010, 10:16:31 AM »
After the system bootup, using "fdisk -l" shows that there are 02 disks on machine, /dev/hda (with root fs), and /dev/hdb.
I can mount /dev/hdb and use that disk. However, adding "tce=hdb retore=hdb" to the boot code makes system hang at boot "Invalid device hdb". The same result happens when using UUDI instead of "hdb".
Can you help?
You need to use partitions, not drives for tce and restore options.

Offline phiphu2002

  • Newbie
  • *
  • Posts: 6
Re: Shared directory on USB install?
« Reply #9 on: September 16, 2010, 04:48:25 AM »
Event using partition /dev/hdb1, TCL bootup is still hang.
Another strange thing is "mount -t vfat /dev/hdb /mnt/hdc" is ok. But "mount -t vfat /dev/hdb1/hdc" returns "Invalid option".

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Shared directory on USB install?
« Reply #10 on: September 16, 2010, 09:58:48 AM »
You need to use partitioned drives with a Linux filesystem, not a Windows filesystem.
Also, when using persistent /opt you need to remove the opt entries from .filetool.lst.