Tiny Core Linux

General TC => General TC Talk => Topic started by: zallik on May 24, 2013, 02:07:22 PM

Title: uuid with path? iso with uuid?
Post by: zallik on May 24, 2013, 02:07:22 PM
I've been checking out Tiny Core for a few days. I think it's great and I have a few questions about boot options that I couldn't find in the documentation.

First, I think using the uuid is really smart. It's faster and more reliable than scanning. Is there a way to use the uuid and also specify a folder path? Say I wanted to keep all of my tiny core files in /tinycore for organization. Is it possible to do something like:
tce=UUID="1234_56/tinycore" or
tce=UUID="1234_56" tcedir=/tinycore/tce

I also have a similar question about the iso= parameter. Is it possible to specify a uuid there instead of a device name.
Title: Re: uuid with path? iso with uuid?
Post by: zallik on May 25, 2013, 01:54:04 AM
If neither of these things are currently easy to do, I'd be interested in taking a crack at implementing them. I'm not sure how difficult it would be, but I'm thinking it might be within the scope of my abilities. I'd just like to make sure I'm not wasting my time before I start. Does anybody else think these would be useful features?
Title: Re: uuid with path? iso with uuid?
Post by: aus9 on May 25, 2013, 07:48:44 AM
Hi
let me add my 2 cents worth
Quote
First, I think using the uuid is really smart
I believe its smarter that you use partition LABEL instead of UUID

assuming you boot a live TC download e2fsprogs as "ondemand" and then clicked into ondemand and selected it, you can use commands like this
Code: [Select]
sudo umount /mnt/sda1 (pretending you have such) (ditto sda2 etc)
sudo e2label /dev/sda1 newlabelname
e2label /dev/sda1  (returns blank if failure or your new label name)
sudo mount /mnt/sda1 (so you can edit your boot loader stuff)

EDIT I had some errors in there, well spotted by hiro
Then assuming you have grub as boot loader your kernel line will look like (example only)
kernel /boot/vmlinuz tce=LABEL=zallik1  blah blah (as per wiki on bootcodes)

I am darn sure TC has no files called zallik so its not a bad option. But I am the local village idiot so use
partone

####
What bootloaders are you used to?
I only use grub so can't help with others but I am sure others here know all the rest

good luck

 

Title: Re: uuid with path? iso with uuid?
Post by: tinypoodle on May 25, 2013, 10:07:18 AM
http://forum.tinycorelinux.net/index.php/topic,13851.0.html
Title: Re: uuid with path? iso with uuid?
Post by: curaga on May 25, 2013, 03:27:09 PM
Yes, you can combine the tcedir uuid with path too. Example: http://forum.tinycorelinux.net/index.php/topic,15018.msg85876.html#msg85876
Title: Re: uuid with path? iso with uuid?
Post by: zallik on May 25, 2013, 06:59:17 PM
Very nice! I ended up appending a path to the UUID, which I didn't realize was a possibility. it looks something like:
iso=UUID="12345_678/images/tinycore.iso" for the iso. and

tce=UUID="12345_678/tinycore/tce" for my normal installation.

The only thing I can add is that it would be great if this functionality was fully outlined in the faq under the boot param section.

I was excited about possibly contributing something, but it turns out you've already thought of it. Outstanding work, Tiny Core is a fantastic tool.
Title: Re: uuid with path? iso with uuid?
Post by: roberts on May 26, 2013, 01:21:24 AM
faq updated. See: http://tinycorelinux.net/faq.html#pendrives
Title: Re: uuid with path? iso with uuid?
Post by: hiro on May 26, 2013, 12:29:30 PM

sudo e2label /mnt/sda1 newlabelname
e2label /mnt/sda1  (returns blank if failure or your new label name)

shouldn't it be /dev/sda1 up there? just curious.
Title: Re: uuid with path? iso with uuid?
Post by: aus9 on May 26, 2013, 07:52:22 PM
Quote
shouldn't it be /dev/sda1 up there?

Well spotted, yes I will update above post with a suitable spanking to myself

Luckily the OP will be following roberts guide