<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=1742&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Persistent Block Device Names on Ascii]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=1742</link>
		<description><![CDATA[The most recent posts in Persistent Block Device Names on Ascii.]]></description>
		<lastBuildDate>Sat, 25 Nov 2017 10:34:37 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Persistent Block Device Names on Ascii]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6431#p6431</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>I wouldn&#039;t think of using <span class="bbu">udev</span> to dream up identifications, since it&#039;s merely concerned with making sure there are <span class="bbu">/dev</span> points for the partitions, unless for some reason you want to insist that a partition of a certain label (or UUID) also end up at a certain <span class="bbu">/dev</span> point. If it works correctly, <span class="bbu">udev</span> should also be setting up identification mapping for label and UUID and whatnot to the associated <span class="bbu">/dev</span>.</p></div></blockquote></div><p>Yes, that&#039;s exactly what I want. Normally, I could solve this problem with UUID but this drive has none and as UUID | /dev/sdX can be used in /etc/crypttab, I have to use its /dev/sdX name. I have never had this issue in the many distros I&#039;ve run on this computer.</p><div class="quotebox"><blockquote><div><p>With <span class="bbu">/etc/fstab</span> you assign block devices to mount points, and there you have a few different ways to refer to the block devices, where I think using labels or UUID are the reliable approaches if your hardware is moody. In my experience, most hardware is not moody, and I do well in using the <span class="bbu">/dev</span> points for identification. But it sounds like that doesn&#039;t work for you.</p></div></blockquote></div><p>It does not help to define the mount point in /etc/fstab because it is an encrypted disk and /etc/crypttab is read before /etc/fstab. This disk is using plain encryption and there is no header or filesystem on disk, so I relied on it consistently appearing as /dev/sdb in my system which alway has, until now.</p><p>Anyhow, I put a usb hub in between the external harddrive bay and the computer which seems to delay those disks from being read before the &quot;second&quot; internal drive bay, and have rebooted a number of times without issue. Though they are still read funny by the system </p><div class="codebox"><pre><code>lsblk
NAME           MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sdd              8:48   0   2.7T  0 disk  
└─sdd2           8:50   0   2.7T  0 part  
sdb              8:16   0   1.8T  0 disk  
└─home         254:1    0   1.8T  0 crypt 
  ├─home-home  254:2    0   1.8T  0 lvm   /home
  └─home-swap  254:3    0    19G  0 lvm   [SWAP]
sr0             11:0    1  1024M  0 rom   
sdc              8:32   0 465.8G  0 disk  
├─sdc2           8:34   0   100M  0 part  
├─sdc3           8:35   0    16M  0 part  
├─sdc1           8:33   0   450M  0 part  
└─sdc4           8:36   0 465.2G  0 part  /media/root/C24673CE4673C1A9
sda              8:0    0 223.6G  0 disk  
├─sda2           8:2    0   244M  0 part  /boot
├─sda3           8:3    0 222.9G  0 part  
│ └─sda3_crypt 254:0    0 222.8G  0 crypt /
└─sda1           8:1    0   512M  0 part  /boot/efi</code></pre></div><p>But that&#039;s not really an issue so much as it is just bothersome lol.</p><p>Though it&#039;s not really the solution I thought I would find, it&#039;s also not a problem I thought I would face.</p><p>And I had actually ordered the usb hub before I even had installed this distro or had this problem. And what I planned on using it for, ended up solving the problem I didn&#039;t even know I was going to have in the first place!</p><p>So that&#039;s exciting.</p><p>Anyway, thanks for the input!</p>]]></description>
			<author><![CDATA[dummy@example.com (theezekielproject)]]></author>
			<pubDate>Sat, 25 Nov 2017 10:34:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6431#p6431</guid>
		</item>
		<item>
			<title><![CDATA[Re: Persistent Block Device Names on Ascii]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6420#p6420</link>
			<description><![CDATA[<p>Perhaps you have two examples of namings at two different reboots? E.g., a <span class="bbu">blkid</span> snap of each? And it probably wouldn&#039;t hurt to see an <span class="bbu">lspci</span> snap as well. (I&#039;m not sure; not really my forte, but I&#039;m guessing what would be useful background info)</p><p>With <span class="bbu">/etc/fstab</span> you assign block devices to mount points, and there you have a few different ways to refer to the block devices, where I think using labels or UUID are the reliable approaches if your hardware is moody. In my experience, most hardware is not moody, and I do well in using the <span class="bbu">/dev</span> points for identification. But it sounds like that doesn&#039;t work for you.</p><p>I wouldn&#039;t think of using <span class="bbu">udev</span> to dream up identifications, since it&#039;s merely concerned with making sure there are <span class="bbu">/dev</span> points for the partitions, unless for some reason you want to insist that a partition of a certain label (or UUID) also end up at a certain <span class="bbu">/dev</span> point. If it works correctly, <span class="bbu">udev</span> should also be setting up identification mapping for label and UUID and whatnot to the associated <span class="bbu">/dev</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 24 Nov 2017 09:25:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6420#p6420</guid>
		</item>
		<item>
			<title><![CDATA[Persistent Block Device Names on Ascii]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6419#p6419</link>
			<description><![CDATA[<p>Hello all, <br />I originally <a href="https://www.linuxquestions.org/questions/linux-newbie-8/block-device-name-scheme-inconsistent-on-newer-kernel-versions-4175617976/" rel="nofollow">asked this question on linuxquestions</a> but due to the lack of responses, I figured I&#039;d try here. </p><p>I&#039;ve installed Devuan on my main computer which is currently a laptop but am having an issue with block device naming. With the 3.16.0-4 kernel, I get persistent block device names. E.g. /dev/sdX always shows up as /dev/sdX. But, when running Ascii (Testing), kernel (4.9.0-4), the names seem to be random with the exception of /dev/sda. ( Except for one case where /dev/sda did NOT show up as /dev/sda. Not sure what happened there and it hasn&#039;t happened since.)</p><p>I&#039;m aware that this is usually solved with udev rules, but it seems that having to manually write them nowadays should be rare; I have never had to write them in the past on any of the Debian derivative (or other, for that matter) linux distros I&#039;ve tested on this computer. Some even running the same kernel version (Though, admittedly, I&#039;m not sure there aren&#039;t necessarily significant differences between Debian derivative kernels, I am not sure how these differences would effect udev.rules.) </p><p>I&#039;ve looked into persistent block device naming but the results I&#039;ve found seem to refer to mountpoints (and how to &quot;fix&quot; them via fstab, which I am aware of, and is not the issue.), rather than how the the system refers to such devices in output from commands such as lsblk (e.g. device with UUID=X always mapped to /dev/sdX). Can someone point me in the right the direction of how to fix this? I would think this should not be difficult, so I wouldn&#039;t be surprised if I&#039;m missing something basic. I feel like persistent naming was implemented out of ease in the first place so this seems like a regression. Any help appreciated. My googlefu seems to be failing me</p>]]></description>
			<author><![CDATA[dummy@example.com (theezekielproject)]]></author>
			<pubDate>Fri, 24 Nov 2017 07:15:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6419#p6419</guid>
		</item>
	</channel>
</rss>
