At last i think I found the answer ls -l /dev/disk/by-uuid/ will give the UUID give that UUID in /etc/fstab will solve the problem.
Got from http://ubuntuforums.org/archive/index.php/t-908394.html On Tue, Mar 3, 2009 at 9:17 PM, Shino Jacob <[email protected]> wrote: > Hi, > labeling is possible only for ext file systems. part of my filesystem > is fat and ntfs. The problem lies there. The hard disk could boot > without any problems. problems are for the partitions i specified in > the fstab. The system takes the second hard disk as sda. > > On Tue, Mar 3, 2009 at 8:51 PM, bobby dheep <[email protected]> wrote: >> >> Hi Shino, >> >> You can still label your hardisk using the command e2label. The >> syntax is >> >> e2label device-name label >> e2label /dev/sda2 SLASH >> >> then open /etc/fstab -> and edit the lines for eg: >> LABEL=SLASH / ext3 defaults 1 1 >> >> then open grub.conf >> >> and edit the Label field to newlabel >> >> NOTE: Please make sure that you have this checked on any test machine >> before. Just for the safer side. But this should work fine. Labeling >> the existing partitions should be easy. Else if anything goes wrong >> you can get into rescue mode and change everything back..... (for this >> take backup of all the related files) >> >> >> >> Regards >> Dheep Surendran >> >> Linux Engineer. >> >> >> On Mar 3, 9:24 am, Shino Jacob <[email protected]> wrote: >>> so can I still label my hard disk? gparted says it will erase all the data. >>> Any work around? >>> >>> >>> >>> On Tue, Mar 3, 2009 at 12:59 PM, bobby dheep <[email protected]> wrote: >>> >>> > Hi sunil, >>> >>> > Thats exactly right. It is always better to have your disks using >>> > labelling partition rather than the /dev/sda style. The main advantage >>> > would be in case you are trying to take an image of the hardisk and >>> > loading it to another machine. Here the labelling will work, becoz the >>> > disk ids tend to change. Initially when you install ur system during >>> > the disk partitioning setup just edit the partiton setup to have all >>> > partitions use the label names. Its quite easy. >>> >>> > Regards >>> > Dheep Surendran >>> > Linux Engineer >>> >>> > On Feb 23, 8:45 am, sunil s <[email protected]> wrote: >>> >> I think u require labelling partitions >>> >> in redhat, one command e2label is there for labelling partitions >>> >> I don't know whether any utilities like this are available in other >>> >> distros >>> >>> >> On Sun, Feb 22, 2009 at 8:40 PM, Manilal K M <[email protected]> wrote: >>> >>> >> > 2009/2/22 Shino Jacob <[email protected]>: >>> >>> >> > > I am using ubuntu 8.04 hardy, >>> >> > > I was using only one hard disk. Today I connected one more hard disk, >>> >> > > It took the second hard( connected as primary slave) as sda1. So all >>> >> > > my mappings in /etc/fstab needs to be reworked. >>> >> > > Is there a way to avoid this. ie do not let ubuntu set slave as sda. >>> >>> >> > Interchange the HDD ports >>> >>> >> > -- >>> >> > Manilal K M : മണിലാല് കെ എം. >>> >> >http://libregeek.blogspot.com >>> >>> -- >>> Miles to go before I Sleep >> >> >> > > > > -- > Miles to go before I Sleep > -- Miles to go before I Sleep --~--~---------~--~----~------------~-------~--~----~ "Freedom is the only law". "Freedom Unplugged" http://www.ilug-tvm.org You received this message because you are subscribed to the Google Groups "ilug-tvm" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For details visit the website: www.ilug-tvm.org or the google group page: http://groups.google.com/group/ilug-tvm?hl=en -~----------~----~----~----~------~----~------~--~---
