<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px"><br></div> <br> <div class="gmail_signature"></div> <br><p class="airmail_on">On March 5, 2019 at 13:18:22, Stephen P. Molnar (<a href="mailto:s.molnar@sbcglobal.net">s.molnar@sbcglobal.net</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I have just reinstalled Debian Stretch and have soee questions about the <br>fstab.<br><br>I have installed a new hdc.<br></div></div></span></blockquote><div><br></div><div>A new physical drive? So you added a third physical drive, ostensibly /dev/sdc? I’m not sure if “hdc” here means a 3rd drive, or refers to a new hard drive controller.</div><br><blockquote type="cite" class="clean_bq"><span><div><div>Here is my durectiry stucture:<br><br>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br>sda 8:0 0 465.8G 0 disk<br>├─sda1 8:1 0 457.9G 0 part /<br>├─sda2 8:2 0 1K 0 part<br>└─sda5 8:5 0 7.9G 0 part [SWAP]<br>sdb 8:16 0 1.8T 0 disk<br>├─sdb1 8:17 0 1.8T 0 part /media/comp/900b5f0b-4f3d-4a64-8c91-29aee4c6fd07<br>├─sdb2 8:18 0 1K 0 part<br>└─sdb5 8:21 0 7.9G 0 part<br>sdc 8:32 0 465.8G 0 disk<br>└─sdc1 8:33 0 465.8G 0 part /media/comp/1f363165-2c59-4236-850d-36d1e807099e<br>sr0 11:0 1 1024M 0 rom<br><br>Here is what I have the installed fstab:<br><br># /etc/fstab: static file system information.<br>#<br># Use &#39;blkid&#39; to print the universally unique identifier for a<br># device; this may be used with UUID= as a more robust way to name devices<br># that works even if disks are added and removed. See fstab(5).<br>#<br># &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt;<br># / was on /dev/sda1 during installation<br>UUID=4dc278b7-1792-4e89-b67e-a517fce97d19 / ext4 errors=remount-ro 0 1<br># swap was on /dev/sda5 during installation<br>UUID=acfb9d26-69c6-4489-88fc-12f5c50bda97 none swap sw 0 0<br>/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0<br><br>Here is what I&#39;m proposing:<br><br>/dev/hda1 / ext4 defaults 0 1<br>/dev/hda5 none swap sw 0 0<br>/dev/hdb1 /hdb1 ext4 defaults 0 0<br>/dev/hdc1 /hdc1 ext4 defaults 0 0<br></div></div></span></blockquote><div><br></div><div>Based on the information provided above, I think these will need to be /dev/sd*, not /dev/hd*.</div><div><br></div><div>If those are your desired mount points, ensure that the directories /hdb1 and /hdc1 (or /sdb1, /sdc1) exist. A directory in this context is - serves as - a mount point.</div><br><div><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span><div><div>There are two key questions:<br><br>1. Will the boot proceed to completion?</div></div></span></blockquote></div><p>Maybe? The UUID is there to allow the system to search for the correct partition, rather than depending on a strict filesystem ordering. In reality, it’s pretty rare for ie /dev/sda1 and /dev/sdb1 to switch places - it usually happens when disks are physically moved to another port or location on the system bus.</p><p>Based on the information provided, I don’t see why the system wouldn’t boot. Your master boot record location hasn’t changed, so all of the references held by the bootloader stuff (grub, initrd, etc) should still be valid.</p><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span><div><div>2. Will users have read/write permission?</div></div></span></blockquote></div></div><p>r/w permission to what? </p><p>With the exception of marking the entire filesystem as readonly to everyone, fstab generally doesn’t control a user’s r/w access. The ‘user’ mount option (IIRC, can’t find it in the manpage atm) says whether a normal user can mount/unmount the filesystem - generally not something you want to happen. </p><p>File permissions are controlled at the filesystem level. So you would mount the filesystem wherever you want it, make it permanent in /etc/fstab, and then set the ownership/permissions using chown/chmod.</p></body></html>