<?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=4737&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4737</link>
		<description><![CDATA[The most recent posts in [SOLVED] create new partition table on HDD, but not with root as owner.]]></description>
		<lastBuildDate>Thu, 23 Dec 2021 22:45:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33424#p33424</link>
			<description><![CDATA[<div class="quotebox"><cite>nobodyuknow wrote:</cite><blockquote><div><p>complaining that there was nothing in /media/&quot;$USER&quot;/ and it was correct, there was nothing there even though the HDD was running and connected vis USB.</p></div></blockquote></div><p>So GVFS isn&#039;t acting on the device then. Or it&#039;s mounting it somewhere else — use <span class="bbc">findmnt /dev/sdX</span> to see if it&#039;s mounted anywhere.</p><p>You could try mounting it manually to change the filesystem permissions:</p><div class="codebox"><pre><code>mkdir ~/storage
sudo mount /dev/sdXY ~/storage
sudo chown -R &quot;$USER&quot;:&quot;$USER&quot; ~/storage
sudo umount ~/storage
rmdir ~/storage</code></pre></div><div class="quotebox"><cite>nobodyuknow wrote:</cite><blockquote><div><p>partitioned to FAT32</p></div></blockquote></div><p>FAT doesn&#039;t allow permissions so anybody can do anything to it, unlike ext4. But it has a 4GiB file size limit and it&#039;s pretty fragile so I wouldn&#039;t really recommend it for general use.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 23 Dec 2021 22:45:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33424#p33424</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33423#p33423</link>
			<description><![CDATA[<p>I tried the chown command HOAS suggested, but it didn&#039;t work, complaining that there was nothing in /media/&quot;$USER&quot;/ and it was correct, there was nothing there even though the HDD was running and connected vis USB.</p><p>Then I tried the same trick on a USB flash drive. It had some strange stuff on it from Windows, so I formatted the drive using gnome-disk-utility and created a partition table &amp; partitioned to FAT32 using GParted -- and I can copy files to it. And there&#039;s a directory in /media/&quot;$USER&quot;/ with the new name of the USB flash drive. There&#039;s something about EXT4.</p>]]></description>
			<author><![CDATA[dummy@example.com (nobodyuknow)]]></author>
			<pubDate>Thu, 23 Dec 2021 22:24:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33423#p33423</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33422#p33422</link>
			<description><![CDATA[<p>NTFS doesn&#039;t use Linux-style permissions unless you configure it specifically, which would explain why you are able to write to drives formatted from Windows.</p><p>Linux has recently (5.15) had a native NTFS kernel driver added so FUSE is no longer needed and performance is much improved. <a href="https://liquorix.net/" rel="nofollow">Liquorix</a> offers a Debian stable compatible kernel of that version that could be used with Devuan.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 23 Dec 2021 21:22:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33422#p33422</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33416#p33416</link>
			<description><![CDATA[<p>I vaguely understand the concept of mount, but I don&#039;t think I&#039;ve ever used it in Linux (I probably used it in Unix a million years ago). Here&#039;s what I always do with an HDD I formatted in Windows: I insert the USB cable into my laptop; a nemo (this is Cinnamon) file manager pops up; I access the files on it.</p><p>I have another HDD I need to format. I will try HOAS&#039;s chown command.</p>]]></description>
			<author><![CDATA[dummy@example.com (nobodyuknow)]]></author>
			<pubDate>Thu, 23 Dec 2021 18:14:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33416#p33416</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33410#p33410</link>
			<description><![CDATA[<p>@OP: please don&#039;t mark the thread [SOLVED] before I&#039;ve given the solution. It could be frustrating for others who have the same problem.</p><p>I&#039;m presuming you&#039;re using some sort of graphical file manager to attempt to access the device and since most of those use GVFS I also presume that the device is mounted under /media/$username where $username is your actual username.</p><p>That being the case insert the device then run this command:</p><div class="codebox"><pre><code>sudo chown &quot;$USER&quot;:&quot;$USER&quot; /media/&quot;$USER&quot;/*</code></pre></div><p>That should change the filesystem permissions and allow you to drag-and-drop files to the device.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 23 Dec 2021 10:59:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33410#p33410</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33409#p33409</link>
			<description><![CDATA[<p>how are you mounting/connecting the ntfs data? Through devuan or windows?</p><p>By mount, hoas means that the device is connected and mounted read write, usually partitions are created by root and can be accessed by the user so long as the permissions are correct, so this applies to the EXT4 data filesystem, so we want to know how you are connecting and mounting this also.</p><p>mount = mount a filesystem</p><p><a href="https://linux.die.net/man/8/mount" rel="nofollow">https://linux.die.net/man/8/mount</a></p>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Thu, 23 Dec 2021 09:22:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33409#p33409</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33406#p33406</link>
			<description><![CDATA[<p>@golinux</p><p>Uh, oh, if the moderator has trouble doing it, it&#039;s not trivial.</p><p>@Head_on_a_Stick</p><p>Your use of the word mount confuses me. I don&#039;t want to mount it when I use it; I want to simply connect it via USB and access it, like I do with HDDs I create in Windows. Accessing an NTFS HDD in Linux is obscene, with CPU approaching 100% simply for writing to the drive. I figured that creating an EXT4 HDD would be more efficient.</p><p>Here&#039;s my sequence of commands for a 500 GB HDD:</p><p>sudo shred -vn 1 /dev/sda</p><p>use GParted to create an ms-dos partition table and single EXT4 partition.</p><p>Try to copy a directory to the newly formatted HDD.</p><p>I have screenshots of Gparted and failed copy, but I have no idea how to attach them, as there does not appear to be a way to do that, The text of the error message is &quot;The folder &lt;somename&gt; cannot be copied because you do not have permissions to create it in the destination.&quot;</p><p>I guess I&#039;ll just live with the obscene access via NTFS.</p>]]></description>
			<author><![CDATA[dummy@example.com (nobodyuknow)]]></author>
			<pubDate>Thu, 23 Dec 2021 00:16:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33406#p33406</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33405#p33405</link>
			<description><![CDATA[<p>Note to nobodyuknow . . . I still struggle and get confused when I try to do what you&#039;re trying to do.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Wed, 22 Dec 2021 21:59:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33405#p33405</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33403#p33403</link>
			<description><![CDATA[<p>Ownership is defined by the mount point and the filesystem rather than the partition table or the partition itself.</p><p>What do you actually want to do with this drive? How are you mounting the device?</p><div class="quotebox"><cite>nobodyuknow wrote:</cite><blockquote><div><p>I&#039;ve tried chown,which appears to work, but then I still cannot copy files onto the HDD.</p></div></blockquote></div><p>Please post exact commands and error messages rather than vague descriptions.</p><p>*Do not* use <span class="bbc">chown</span> on /dev/sdXY, that is a really bad idea.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 22 Dec 2021 21:38:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33403#p33403</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] create new partition table on HDD, but not with root as owner]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33402#p33402</link>
			<description><![CDATA[<p>Up until now, I&#039;ve always created partition tables and partitions on Windows. I&#039;m trying to wean myself off Windows, so I thought I&#039;d create a data HDD via Linux. But regardless of how I create it -- GParted, fdisk, mkfs -- I always end up with a partition that is exclusively owned by root. I&#039;ve tried chown,which appears to work, but then I still cannot copy files onto the HDD. I&#039;m missing something. Any hints?</p>]]></description>
			<author><![CDATA[dummy@example.com (nobodyuknow)]]></author>
			<pubDate>Wed, 22 Dec 2021 21:04:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33402#p33402</guid>
		</item>
	</channel>
</rss>
