[mythtv-users] partition names

Daryl McDonald darylangela at gmail.com
Sun Nov 1 01:30:48 UTC 2015


On Sat, Oct 31, 2015 at 7:04 PM, Nicolas Krzywinski <myth at site7even.de>
wrote:

> Message: 7
>> Date: Fri, 30 Oct 2015 23:02:05 +0100
>> From: Hika van den Hoven <hikavdh at gmail.com>
>> To: Discussion about MythTV <mythtv-users at mythtv.org>
>> Subject: Re: [mythtv-users] partition names
>> Message-ID: <1686206041.20151030230205 at gmail.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hoi Daryl,
>>
>> Friday, October 30, 2015, 10:24:06 PM, you wrote:
>>
>> Greetings Mythizens, In the same way that I have my storage drives named
>>> /media/storage and /media/storage2, is it OK to name my OS partitions
>>> /dev/sda1 and /dev/sda6, and my swap /sda5?
>>>
>>
>> I've set up a second OS partition and copied my original "fstab to the
>>> second partition's /etc and now realize that the UUID is incorrect. So
>>> when
>>> I correct that can I safely give names to other UUID's?
>>>
>>
>> Oh and in fstab you can use the literal name or LABEL=<the disklabel> or
>> UUID=<the UUID> you can find the actual names with the blkid command
>> see: man fstab
>>
>> Tot mails,
>>   Hika                            mailto:hikavdh at gmail.com
>>
> My advise for labels is to use a short abbreviation that describes a) the
> drive and b) the purpose of this partition.
>
> E. g. my 1 TB HGST drive has partitions with labels: h1t_root, h1t_home,
> h1t_var, h1t_usr, h1t_data, h1t_swap
> Applying this consequently to all partitions on all drives helps a lot
> when doing manual maintenance. Of course, there is an additional index
> needed, to distinguish multiple drives of same type.
>
> I would not recommend to label partitions after a volatile name. This may
> lead to confusion when adding a new drive that gets the device name sda,
> pushing the old drive to sdb, having the old partition labels sda1, sda2,
> ... etc.
>
> Regards, Nicolas
>
>
> ---
> Bleibend ist immer das Sinnbild - nie das Abbild. (Hermann Hesse)
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

trieli at mythtv:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        74G   15G   56G  21% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            3.9G  4.0K  3.9G   1% /dev
tmpfs           799M  1.3M  798M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.9G   33M  3.9G   1% /run/shm
none            100M   52K  100M   1% /run/user
/dev/sdc3       917G  635G  236G  73% /media/storage
/dev/sdb1       917G  474G  397G  55% /media/storage2
trieli at mythtv:~$

I ended up not putting names/labels on them, including the other boot
partition in the /etc/fstab made it so I couldn't access it through the GUI
(file system launcher) so I #'d them out so they look like this:

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=f2746f47-5e69-4b03-a5c1-c6c89e6ccdb4 /               ext4
 errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e527fee4-9467-430a-8050-bb3f570d8109 none            swap    sw
       0       0
# UUID=5677efe7-4044-45b7-b8b9-9e79b51cb659 /               ext4
 defaults        0       1
UUID=3769e2e8-adde-456c-86e4-0402be737ef6 /media/storage  ext4    defaults
       0       1
UUID=ec787761-11d5-4127-b198-e159bfcd2a6a /media/storage2 ext4    defaults
       0       1
trieli at mythtv:~$

line 3 and 6 are reversed respectively per boot drive.

thanks for all the advice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20151031/61ba1b3b/attachment.html>


More information about the mythtv-users mailing list