ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes. uuid is always in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, that is 8-4-4-4-12 characters. There is an utility called uuidgen to generate random uuid sequences.. here are some results:
I want to learn in awk. Next thing is that I moste of parts of script is in awk. It would be strange to mix awk and sed commands if all can be done by awk.
I wanted to change
root=UUID=eab515e9-bc3e-4024-9f01-55fddaa0fb1c
to
root=(hd0,2)
is it valid for use in menu.lst?
Yes and no.....
There are two usages of "root" in the GRUB menu.lst:
1. root (hd0,2) means: "GRUB, please look in the 3rd partition of drive #1 to find your files."
2. kernel /boot/vmlinuzxyz root=/dev/sda3 ro Here, the "root" statement is a message to the kernel, telling it where to mount the filesystem. (sda3 also means 3rd partition of drive 1)
The grub root and the filesystem root are not necessarily the same.
The grub root and the filesystem root are not necessarily the same.
I thing (hd0,2) is better because depending on OS I can have
/dev/sda3 (Mandriva) or /dev/hda3 (Ubuntu)
I look for solid solution, not changeable
Edit
Was is surprising for me is POST #9 CODE - line 2 - different uuids. I guess its error in my code. Is it normal to have two different uuids on one line?
Edit
Was is surprising for me is POST #9 CODE - line 2 - different uuids. I guess its error in my code. Is it normal to have two different uuids on one line?
there are 2 kernel commands: "root" is where to mount the filesystem. I assume that "resume" means where to go when waking up from suspend or hibernate----but I am just guessing. You will need to do some more research.
As for the "root" explanation, there can be only one right answer for each one---you don't have a choice. Did you understand the 2 definitions?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.