<?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=7015&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Mounting HDD in a USB cradle]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7015</link>
		<description><![CDATA[The most recent posts in [SOLVED] Mounting HDD in a USB cradle.]]></description>
		<lastBuildDate>Mon, 13 Jan 2025 22:01:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54069#p54069</link>
			<description><![CDATA[<p>TL;DR: you guys are fantastic! It&#039;s working now, thanks for the help.</p><div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>Yes, LVM is an additional layer. But as it looks like you have not really seen any issues for many years with it, so what?</p></div></blockquote></div><p>I have no problem with LVM for those who need it or gain some advantage from it, and I&#039;m not saying that it is &quot;bad&quot;. I&#039;m fully aware that the sys admins I used to work with love it for good reason. But in five years I never once needed any of its features, but I&#039;m now paying the cost of that extra complexity. That&#039;s all I&#039;m saying.</p><p>Moving along, I have made a copy of the HDD, changed the Array UUID so I can use the copy rather than the original, and got to this point:</p><div class="codebox"><pre><code>root@sharon:~# /sbin/mdadm --assemble --run /dev/md1 --update=uuid --uuid=c4ca5085:e2e52c3d:0527066c:5e438460 /dev/sda1
mdadm: /dev/md1 has been started with 1 drive (out of 2).

root@sharon:~# vgchange -a y
  3 logical volume(s) in volume group &quot;fedora&quot; now active

root@sharon:~# vgscan
  Found volume group &quot;fedora&quot; using metadata type lvm2

root@sharon:~# mount /dev/mapper/fedora-home /mnt</code></pre></div><p>And now I can access the files! Thank you all again for your help!</p><p><em>(Dances the Dance Of Joy.)</em></p>]]></description>
			<author><![CDATA[dummy@example.com (stevend)]]></author>
			<pubDate>Mon, 13 Jan 2025 22:01:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54069#p54069</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54061#p54061</link>
			<description><![CDATA[<p>mostly for the convenience of future thread visitors, since DD was mentioned:</p><p><a href="https://en.wikipedia.org/wiki/Ddrescue" rel="nofollow"> https://en.wikipedia.org/wiki/Ddrescue</a></p><p>also please visit the other projects as well for additional food for thought:</p><p><a href="https://en.wikipedia.org/wiki/Ddrescue#Unrelated_recovery_tools" rel="nofollow"> https://en.wikipedia.org/wiki/Ddrescue#Unrelated_recovery_tools</a></p><p>sometimes i remember to remember to marvel at each and every successful storage media activation(but oh how the expletives flow when they don&#039;t...sigh)</p>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Mon, 13 Jan 2025 08:07:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54061#p54061</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54043#p54043</link>
			<description><![CDATA[<p>Yes, LVM is an additional layer. But as it looks like you have not really seen any issues for many years with it, so what? Ok it has its own terms you need to get used to like physical volume, volume group, logical volume, etc. Can be learned, there is a LVM HowTo in the internet. Just look for it. BTW: I am using LVM for many many years by now, no real issues with it.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 12 Jan 2025 14:17:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54043#p54043</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54042#p54042</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p><span class="bbc">vgchange -a y</span> will do the job. Quote the output here please.</p></div></blockquote></div><p>Thanks, will do.</p><p>I&#039;m now working in an area well out of my comfort zone, so before I do that I&#039;m making an exact copy of the drive using <span class="bbc">dd</span> in case of accidents. (I know, I should have done this earlier, mea culpa. But better late than never.) Looks like it will take another 15 hours.</p><p>I should be able to get back to this about this time tomorrow.</p><div class="quotebox"><cite>stargate-sg1-cheyenne-mtn wrote:</cite><blockquote><div><p>why no mention of important information like &quot;raid array&quot; and &quot;managed by lvm&quot; in the original post?</p></div></blockquote></div><p>Fair question.</p><p>Because I had set that drive up years ago and had completely forgotten how it was configured until I started seeing the output of commands. I had completely forgotten about using LVM using I saw the error message <span class="bbc">unknown filesystem type &#039;LVM2_member&#039;</span>. It was just a check box in an installer something like five years ago, and then never thought about since. (Until now.)</p><p>Don&#039;t let my ability to run <span class="bbc">lsblk</span> on the command line fool you, I am very much a novice who knows just enough to get into trouble but not enough to get out of it again without help <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>(If I had known LVM is so ... complicated ... I would never have used it in the first place, but I used to work with a rockstar techie who told me &quot;Always use LVM because it is totally awesome.&quot;)</p>]]></description>
			<author><![CDATA[dummy@example.com (stevend)]]></author>
			<pubDate>Sun, 12 Jan 2025 13:15:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54042#p54042</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54038#p54038</link>
			<description><![CDATA[<p>shouldn&#039;t the thread title be less misleading? how about &quot;Can I recover data from a raid member?&quot; also, why no mention of important information like &quot;raid array&quot; and &quot;managed by lvm&quot; in the original post?</p>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Sun, 12 Jan 2025 06:29:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54038#p54038</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54030#p54030</link>
			<description><![CDATA[<p><span class="bbc">vgchange -a y</span> will do the job. Quote the output here please.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 11 Jan 2025 21:13:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54030#p54030</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54029#p54029</link>
			<description><![CDATA[<p>I think you need to &quot;activate the volume group&quot; first; doing so will set up the dm objects for the lvms, and the /dev/mapper (symbolic) links for them, to let you mount them &quot;by name&quot;. I believe it&#039;d be something like:</p><div class="codebox"><pre><code>(bogus advice removed) </code></pre></div><p>EDIT: check the man pages; I don&#039;t use lvm regularly (being happy enough without that confusion layer) so may well be wrong on the detail.<br />EDIT2: I blanked my bogus advice --- see @rolfie&#039;s post.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 11 Jan 2025 21:06:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54029#p54029</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54022#p54022</link>
			<description><![CDATA[<p>Just a question as i&#039;m not familiar with that stuff either, but your command <span class="bbc">mount /dev/mapper/fedora-home /mnt</span></p><p>Shouldn&#039;t that be <span class="bbc">mount /dev/fedora/home /mnt</span> ?</p><p>Possibly some useful info : <a href="https://askubuntu.com/questions/217571/cant-format-delete-locked-partition-from-gparted" rel="nofollow">https://askubuntu.com/questions/217571/ … om-gparted</a></p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Sat, 11 Jan 2025 18:11:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54022#p54022</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54021#p54021</link>
			<description><![CDATA[<p>LVM is out of my knowledge. Maybe this link could help:<br /><a href="https://superuser.com/questions/116617/how-to-mount-an-lvm-volume" rel="nofollow">https://superuser.com/questions/116617/ … lvm-volume</a></p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Sat, 11 Jan 2025 17:48:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54021#p54021</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54020#p54020</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>So now I&#039;m stuck again.</p></div></blockquote></div><p>And I would think you will be until you have all drives in the array available to re-assemble and mount it. Try it doing that I think you will get much farther along on your recovery efforts.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Sat, 11 Jan 2025 17:30:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54020#p54020</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54019#p54019</link>
			<description><![CDATA[<div class="quotebox"><cite>RedGreen925 wrote:</cite><blockquote><div><p>It seems to think it is a member of a raid array, is/was it?</p></div></blockquote></div><p>Yes. Furthermore, it was managed by LVM.</p><p>Brave search suggests an AI-generated answer that I don&#039;t trust but I&#039;ve used it as a guide to explore further:</p><p><a href="https://search.brave.com/search?q=unknown+filesystem+type+%27LVM2_member%27.&amp;source=desktop&amp;summary=1&amp;conversation=9ffb6bb1999056039f2451" rel="nofollow">https://search.brave.com/search?q=unkno … 56039f2451</a></p><p>I&#039;ve gone ahead and installed <span class="bbc">lvm</span> and got this far:</p><div class="codebox"><pre class="vscroll"><code>root@sharon:/home/steve# /sbin/lvdisplay
  --- Logical volume ---
  LV Path                /dev/fedora/root
  LV Name                root
  VG Name                fedora
  LV UUID                GDRkyj-RUSf-92N9-lhMX-Kld6-656Y-A66U61
  LV Write Access        read/write
  LV Creation host, time localhost, 2021-10-05 01:43:11 +1100
  LV Status              NOT available
  LV Size                50.00 GiB
  Current LE             12800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Path                /dev/fedora/home
  LV Name                home
  VG Name                fedora
  LV UUID                zwag1C-ZZnW-Pmm8-wjae-EZPM-80E7-ko2M3w
  LV Write Access        read/write
  LV Creation host, time localhost, 2021-10-05 01:43:17 +1100
  LV Status              NOT available
  LV Size                164.41 GiB
  Current LE             42090
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Path                /dev/fedora/swap
  LV Name                swap
  VG Name                fedora
  LV UUID                NGBkoh-d12e-JsFz-Gl4V-hHYO-spE2-9RGGup
  LV Write Access        read/write
  LV Creation host, time localhost, 2021-10-05 01:43:34 +1100
  LV Status              NOT available
  LV Size                7.83 GiB
  Current LE             2005
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto</code></pre></div><p>I only care about the&#160; &quot;/dev/fedora/home&quot; volume.</p><div class="codebox"><pre><code>root@sharon:/home/steve# /sbin/vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- &lt;222.25g    0 

root@sharon:/home/steve# /sbin/lvs
  LV   VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home fedora -wi------- 164.41g                                                    
  root fedora -wi-------  50.00g                                                    
  swap fedora -wi-------   7.83g                                                    

root@sharon:/home/steve# mount /dev/mapper/fedora-home /mnt 
mount: /mnt: special device /dev/mapper/fedora-home does not exist.
       dmesg(1) may have more information after failed mount system call.</code></pre></div><p>So now I&#039;m stuck again.</p>]]></description>
			<author><![CDATA[dummy@example.com (stevend)]]></author>
			<pubDate>Sat, 11 Jan 2025 16:38:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54019#p54019</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54018#p54018</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Nothing is ever that easy</p></div></blockquote></div><p>It seems to think it is a member of a raid array, is/was it? Try <strong>mount -t ext4 /dev/sdb1 /mnt</strong> to tell it the filesystem to use when mounting the device partition and the output of the <strong>fdisk -l /dev/sdb</strong> would be nice to see as well if it continues to insist it cannot mount it.</p><p>Edit: Apparently answered my raid question while posting my reply, you need all of the devices in an array present to be able to use it, I think anyways never used it in my life so cannot be certain.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Sat, 11 Jan 2025 15:46:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54018#p54018</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54017#p54017</link>
			<description><![CDATA[<p>I installed the mdadm package and tried this:</p><div class="codebox"><pre><code>root@sharon:/home/steve# /sbin/mdadm --assemble --run /dev/md0 /dev/sdb1
mdadm: /dev/md0 has been started with 1 drive (out of 2).
root@sharon:/home/steve# mount /dev/md0 /mnt
mount: /mnt: unknown filesystem type &#039;LVM2_member&#039;.
       dmesg(1) may have more information after failed mount system call.</code></pre></div><p><span class="bbc">dmesg</span> says this:</p><div class="codebox"><pre><code>[1052642.242707] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[1052642.242744] device-mapper: uevent: version 1.0.3
[1052642.242823] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[1052705.382556] md: md0 stopped.
[1052705.401450] md/raid1:md0: active with 1 out of 2 mirrors
[1052705.886437] md0: detected capacity change from 0 to 466087936</code></pre></div><p>Running <span class="bbc">lsblk</span> shows this entry (plus the usual ones seen earlier):</p><div class="codebox"><pre><code>sdb           8:16   0   1.8T  0 disk  
└─sdb1        8:17   0 222.4G  0 part  
  └─md0       9:0    0 222.2G  0 raid1 </code></pre></div><p>So now I&#039;m out of ideas.</p>]]></description>
			<author><![CDATA[dummy@example.com (stevend)]]></author>
			<pubDate>Sat, 11 Jan 2025 15:42:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54017#p54017</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54016#p54016</link>
			<description><![CDATA[<div class="quotebox"><cite>PedroReina wrote:</cite><blockquote><div><p>you can mount it typing this order as root: mount /dev/sdb1 /mnt.</p></div></blockquote></div><p>Nothing is ever that easy <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>root@sharon:/home/steve# mount /dev/sdb1 /mnt
mount: /mnt: unknown filesystem type &#039;linux_raid_member&#039;.
       dmesg(1) may have more information after failed mount system call.</code></pre></div><p>I looked at <span class="bbc">dmesg</span> and this seems to be the only relevant information:</p><div class="codebox"><pre><code>[1051665.382026] usb 2-4: new SuperSpeed USB device number 7 using xhci_hcd
[1051665.403592] usb 2-4: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 1.00
[1051665.403612] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1051665.403619] usb 2-4: Product: External Disk 3.0
[1051665.403624] usb 2-4: Manufacturer: JMicron
[1051665.403628] usb 2-4: SerialNumber: 784158818BA3
[1051665.409940] scsi host2: uas
[1051665.410807] scsi 2:0:0:0: Direct-Access     WDC WD20 SPZX-75UA7T0     8102 PQ: 0 ANSI: 6
[1051665.413999] sd 2:0:0:0: Attached scsi generic sg1 type 0
[1051668.840568] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[1051668.840586] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[1051668.840830] sd 2:0:0:0: [sdb] Write Protect is off
[1051668.840844] sd 2:0:0:0: [sdb] Mode Sense: 53 00 00 08
[1051668.841211] sd 2:0:0:0: [sdb] Disabling FUA
[1051668.841220] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn&#039;t support DPO or FUA
[1051668.885980] sd 2:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[1051668.885995] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of preferred minimum block size (4096 bytes)
[1051668.902926]  sdb: sdb1
[1051668.903172] sd 2:0:0:0: [sdb] Attached SCSI disk</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (stevend)]]></author>
			<pubDate>Sat, 11 Jan 2025 15:38:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54016#p54016</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Mounting HDD in a USB cradle]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54015#p54015</link>
			<description><![CDATA[<p>Your USB-connected disk is recognized as <span class="bbc">/dev/sdb1</span>. So, you can mount it typing this order as root: <span class="bbc">mount /dev/sdb1 /mnt</span>. After that, you can access to its content through the <span class="bbc">/mnt/</span> directory. When finished, type as root <span class="bbc">umount /mnt</span>, wait a bit for the prompt and unplug.</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Sat, 11 Jan 2025 12:33:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54015#p54015</guid>
		</item>
	</channel>
</rss>
