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.
 
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:
<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
****************************************************************
Ignoring /dev/sdf1 - already mounted
Ignoring /dev/sdf1 - already in /etc/fstab as UUID=b8c125e3-4199-4b56-a566-397fdd8bab8a
****************************************************************
No usable Linux, Windows or Mac partitions found on your disks.
</small>
</div>
 
Example fix to /usr/sbin/hda-dismount
<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
drivesntfs=`fdisk -l 2> /dev/null | grep -i 'ntfs' | awk -F '/| ' '{print $3}'`
drivesfat=`fdisk -l 2> /dev/null | grep -i 'fat32' | awk -F '/| ' '{print $3}'`
driveshfs=`fdisk -l 2> /dev/null | grep -i 'HFS' | awk -F '/| ' '{print $3}'`
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>
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:
77

edits