Change Partition Name

Owen Townend owen.townend at gmail.com
Thu Oct 9 06:17:00 BST 2008


2008/10/9 Simon Ives <simon at simonives.info>:
> Hello All.

Hey,

> I've got two partitions on my notebook, one that houses Ubuntu and
> another that I use for storage, backups and temporary files.  Both
> partitions are in ext3 format.  To have the second partition mount at
> boot I've added the following line to fstab:
>
> /dev/sda2 /media/local_b ext3 defaults 0 0
>
> This mounts the partition fine but I have two newb questions.
>
> 1. How do I grant read/write/execute permissions to myself for this
> partition?

$ sudo chown -R simon:simon /media/local_b

Change of course if your username is different.  This will make
everything on the partition belong to you.

> 2. How do I rename the partition?  It's current name is "22.8 GB Media"

$ sudo tune2fs -L MYLABEL /dev/sda2

This would set the label to 'MYLABEL' for that partition.

> Thanks in advance.
> Simon Ives

Hope that helps,
Cheers,
Owen.



More information about the ubuntu-au mailing list