Tiny Core Linux

General TC => General TC Talk => Topic started by: ulfr on May 06, 2018, 06:45:29 PM

Title: ash script to make live usb and usb home
Post by: ulfr on May 06, 2018, 06:45:29 PM
hi all   
tinycore is the greatest
thanks for all the work creating it

1. does anyone have the ash script commands to make a live usb with syslinux and dd
i can make one that loads but i cant get the usb to be rw

2. another request
can anyone tell me how to use the usb as home
i made a 1 gig image with an ext2 filesystem on the usb
and can loop link it and write to it when tc has loaded
but i cant make it be recognized at boot 

any ideas are appreciated

thanks
ulfr 

Title: Re: ash script to make live usb and usb home
Post by: polikuo on May 06, 2018, 06:54:30 PM
1. does anyone have the ash script commands to make a live usb with syslinux and dd
i can make one that loads but i cant get the usb to be rw

What file system are you planing to use ?
How do you make your syslinux USB ?

2. another request
can anyone tell me how to use the usb as home
i made a 1 gig image with an ext2 filesystem on the usb
and can loop link it and write to it when tc has loaded
but i cant make it be recognized at boot 

Have you tried the bootcode "home=UUID=your-uuid" ?
Title: Re: ash script to make live usb and usb home
Post by: ulfr on May 06, 2018, 06:58:11 PM
thanks for the reply  polikuo

1.  the usb has a fat32 filesystem
     syslinux has instructions on how to load it

2. i use home=sda1   as the bootcode  to try to get to the usb 
Title: Re: ash script to make live usb and usb home
Post by: polikuo on May 06, 2018, 07:09:46 PM
1.  the usb has a fat32 filesystem
     syslinux has instructions on how to load it

Have you loaded dosfstools.tcz ?
IIRC, you would need that to have read/write access for a fat32 file system.

2. i use home=sda1   as the bootcode  to try to get to the usb 

I'd go for the UUID method.
To find out your UUID, type
Code: [Select]
blkid /dev/sda1
Title: Re: ash script to make live usb and usb home
Post by: ulfr on May 06, 2018, 07:15:11 PM
thanks a lot

will try those suggestions

ulfr 
Title: Re: ash script to make live usb and usb home
Post by: Rich on May 06, 2018, 09:12:29 PM
Hi ulfr
2. i use home=sda1   as the bootcode  to try to get to the usb 
There's no guarantee as to which  dev file  will be assigned to a USB device. This is especially true if multiple USB devices are
connected and even more so if you plug it into a different computer. You want a unique way to identify your device and nothing
says unique like UUID.
Title: Re: ash script to make live usb and usb home
Post by: curaga on May 07, 2018, 12:32:53 AM
dd will not be able to create a rw usb stick. Please use the installer, that's the easiest way
Title: Re: ash script to make live usb and usb home
Post by: ulfr on May 07, 2018, 06:51:46 AM
thanks for all the help

will do what you suggest

ulfr