Changes

From Amahi Wiki
Jump to: navigation, search
If you get something like ''Disk /dev/dm-0 doesn't contain a valid partition table'' or ''mount: unknown file system type 'lvm2pv''' its because you have LVM's that 'fdisk' can not recognize (or something similar). It's nothing to worry about if you get that when executing the hda-diskmount script.
:'''NOTE:''' If hda-diskmount does not recognize your new drive and you are trying to add a GPT partitioned 2+TB drive, you may need to edit your hda-diskmount script. You can a fix for this issue at this [https://forums.amahi.org/viewtopic.php?f=15&t=2326&p=11617 forum thread].
:Failure to recognize GPT drive:<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;">
<small>
[root@hda ~]$ hda-diskmount
No usable Linux, Windows or Mac partitions found on your disks.
</small>
</div></blockquote>
:Example fix to /usr/sbin/hda-dismount<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;">
<small>
# Now for the real work
drivesext=`fdisk -l 2> /dev/null | <strong style="color:red">egrep -iw 'Linux|GPT'</strong> | egrep -v 'swap|LVM' | awk -F '/| ' '{print $3}'`
</small>
</div></blockquote>
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:
</div>
This might occur if you have made changes to the drive configuration order after you installed Amahi. If you want to stay with the reconfigured drive order, instructions on how to fix this are in the next [[Adding_a_second_hard_drive_to_your_HDA#Disk_Mount_Order|Disk Mount Order]] section, Manually setting up the disk mount orderbelow.
==Test Hard Drive==
12,424

edits