Find the answer to your Linux question:
Results 1 to 6 of 6
I used the commands Code: sudo umount /dev/sda5 and then Code: sudo e2label /dev/sda5 data for change a partition label on my HD. Then i mounted and used this partition ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4

    I changed partition label and i used this without reboot... safe or dangerous?

    I used the commands
    Code:
    sudo umount /dev/sda5
    and then
    Code:
    sudo e2label /dev/sda5 data
    for change a partition label on my HD.
    Then i mounted and used this partition without reboot (the label changed only after a reboot), is this safe or dangerous? i have very important data on this partition... thank you.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    As for as I know,if you remove an existing/modify label ,then that will create issues with /boot/grub.conf and /etc/fstab (isometimes labels used here to mount or boot)

    I don't think adding a new label,will create any issues during reboot.

    I'm not 100% sure about my statement So better wait for some LF member to confirm this.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    No, i haven't troubles with grub/fstab configuration.
    When you change a partition label on your hard disk with e2label, you can see the new label only after a reboot.
    My question is: before reboot i re-mounted and used this partition, can this create some issue?

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    I've noticed that these days many distros (except maybe Red Hat) use UUIDs to identify partitions instead of labels, so changing a label has no positive or negative effect.

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    In /etc/fstab i used always UUIDs to identify partitions on my hard disk.

  6. #6
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    I've read some document because i'm curious to know why i have to reboot to see the new label on my partitions (i know that linux must be rebooted just when kernel is updated).
    Maybe i'm wrong because i'm a n00b but i try to give my thesis:
    labels are located in /dev/disk/by-label path and are readed at kernel boot.
    It's wrong?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...