Ubuntu Karmic: How do I use the sdX naming scheme instead of UUID?
I deciphered that I would have to change the /etc/fstab and grub.conf.
So the question is:
1: Which files must I edit?
2: How do I edit grub.conf to use the sdX scheme?
Thanks in advance. :)
In Karmic, you do not expect to find a grub.conf or a menu.lst - it uses grub2 - the file is grub.cfg and you do not usually edit it directly.
So you need to learn how to use grub2.
You can just use the old /dev/sdx scheme in fstab as usual. you are better to learn how to use uuids.
If your problem is related to the way karmic mounts usb drives then see:
It sounds like you are trying to do something sub-optimally. What do you want to achieve?
Here is my /etc/fstab:
<Please see the nest post>
I am confused because I do not know how to edit the /etc/fstab correctly (I don't want to screw anything up), and the files pointed to by grub.cfg don't give me any ideas how to switch to sdX.
EDIT: @Simon Bridge; 1. sdX is a more vanilla naming scheme; 2. So I can use a 'universal' swap when I install another distro. Last time I let Ubuntu keep the UUID's, and the system hung infinitely on boot.
EDIT: @Simon Bridge; If there is no performance loss, then I would rather have sdX, as I like it better.
Thanks to the investigative work of Simon Bridge, I fell back to a more familiar legacy GRUB, which turns out to be much faster than GRUB2.
Anyways, please excuse the sudden change, and disregard the grub.cfg contents. Thank You. Here is the new, improved and much easier to edit menu.lst:
If you want to know uuids, you can check /dev/disk directory and find out the uuids.
Figure out which partitions are what and substitute the hd(x,y) or sdx for the uuids. Remember how menu.lst used to look? If not, just search LQ or google for an example.
title Ubuntu 9.10, kernel 2.6.31-20-generic
%uuid 093db984-d6ef-464e-bbfb-2bc46720edfb %%% if this is /dev/sda1 normally
kernel /boot/vmlinuz-2.6.31-20-generic root=/dev/sda1 ro quiet splash
... discussion on uuids, devfs labels and disk labels.
... using grub2 in ubuntu.
The reason why I like sdX is it's easier to administer to when I have a problem. I don't use RAID arrays or LVMs, and all USB attached devices always show up as the /dev/sdb. It's a very clean and easy way to diagnose potential problems when they occur. Like you said, and I forgot :redface:, there is plenty of documentation for legacy GRUB as well.
Although I used your example and set up the menu.lst, I tried your suggestion of man menu.lst and received no manual entry.
Anyways, this thread is SOLVED. Thank you Simon Bridge for your help.
Great to hear.
I included the uuid and grub2 links for future readers rather than you. sdx is conceptually easier than uuids and and similarly grub to grub2, if you don't need the extra power why have it?
Usually if you install grub you get man pages to go with it. Oh well, it worked anyway.
|All times are GMT -5. The time now is 04:39 AM.|