adding labels to linux partitions?

Discussion in 'all things UNIX' started by lodore, Oct 11, 2008.

Thread Status:
Not open for further replies.
  1. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,065
    Hello,
    soon i am thinking about dual booting fedora and vista 64bit.
    currently have vista 64bit installed.
    my windows partitions are labeled.
    ive got "system" "data" and "backup"
    i want to label my home partition when i dual boot so if i which to upgrade fedora later on i dont delete my home partition by mistake.
    whats the easiest way to label a linux partition?
     
  2. Kerodo

    Kerodo Registered Member

    Joined:
    Oct 5, 2004
    Posts:
    8,013
  3. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,223
    Hi,

    Well, for one thing, make sure you know what partition it (home) resides, regardless of its name. That way, there won't be any need for mistakes.

    e2label /dev/hdXY labelname or e2label /dev/sdXY where XY are your hard drive, partition numbers (e.g. hda1, sdb6 etc).

    tune2fs -L labelname /dev/hdXY (and sdXY).

    Enjoy,
    Mrk
     
  4. Arup

    Arup Guest

Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.