WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: uuid with path? iso with uuid?  (Read 2882 times)

Offline zallik

  • WikiUser
  • *
  • Posts: 3
uuid with path? iso with uuid?
« on: May 24, 2013, 11:07:22 AM »
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.

Offline zallik

  • WikiUser
  • *
  • Posts: 3
Re: uuid with path? iso with uuid?
« Reply #1 on: May 24, 2013, 10:54:04 PM »
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?

aus9

  • Guest
Re: uuid with path? iso with uuid?
« Reply #2 on: May 25, 2013, 04: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

 

« Last Edit: May 26, 2013, 04:53:58 PM by aus9 »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10424
Re: uuid with path? iso with uuid?
« Reply #4 on: May 25, 2013, 12: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
The only barriers that can stop you are the ones you create yourself.

Offline zallik

  • WikiUser
  • *
  • Posts: 3
Re: uuid with path? iso with uuid?
« Reply #5 on: May 25, 2013, 03: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.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: uuid with path? iso with uuid?
« Reply #6 on: May 25, 2013, 10:21:24 PM »
10+ Years Contributing to Linux Open Source Projects.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1166
Re: uuid with path? iso with uuid?
« Reply #7 on: May 26, 2013, 09:29:30 AM »

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.

aus9

  • Guest
Re: uuid with path? iso with uuid?
« Reply #8 on: May 26, 2013, 04: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