Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: rminnich on October 11, 2009, 04:43:57 PM

Title: simple way to find mount point of boot device
Post by: rminnich on October 11, 2009, 04:43:57 PM
I have a usb stick working, which comes up as /dev/sda1 on some systems and /dev/sdb1 on others.

Now I can write the ugly script to find out "where did root come from" ... but I'm wondering if the info is already in / somewhere and I'm not finding it.

Any pointers?

Thanks

ron
Title: Re: simple way to find mount point of boot device
Post by: perthie on October 11, 2009, 05:06:34 PM
Have a look at the hidden file /opt/.tce_dir. Is it useful?
Title: Re: simple way to find mount point of boot device
Post by: Juanito on October 11, 2009, 08:27:55 PM
You can use LABEL or UUID to identify the usb stick and reference it at boot.

See the wiki/faq for details.