Project

General

Profile

Bug #772

hda-diskmount command complains about missing bc and pomunt - fresh install

Added by mrpositive over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/23/2011
Due date:
% Done:

0%


Description

Hi

I just successfully installed Amahi on Sheevaplug. After running hda-diskmount command it failed and complained about missing bc and pmount:

"yum install bc pmount" as root solved the problem for me.

I assume that the update that Amahi does updated the hda-diskmount script but the underlying system was not updated to install missing dependencies.

Sorry I do not have the exact console output to post here.

History

#1 Updated by mrpositive over 10 years ago

OK I've just installed it on another Sheevaplug and was able to replicate the issue:

Steps:

1) SD Card image: amahi-marvell-1.0.tar.bz2
2) normal amahi install by providing configuration key
3) Hooking up an external USB drive (NTFS formatted)
4) hda-diskmount output:

********************************************************
/usr/sbin/hda-diskmount: line 78: pmount: command not found
mount: unknown filesystem type 'ntfs-3g'
Mounted /dev/sda1 as '/var/hda/files/drives/drive'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=1C24A7D224A7ACE8 /var/hda/files/drives/drive ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2 ********************************************************
/usr/sbin/hda-diskmount: line 220: pmount: command not found ********************************************************
All Linux, Windows and Mac partitions on your disks have been mounted.

5) The partition is not mounted

6) running: yum update

7) hda-diskmount again

********************************************************
/usr/sbin/hda-diskmount: line 78: pmount: command not found
/usr/sbin/hda-diskmount: line 96: bc: command not found
mount: unknown filesystem type 'ntfs-3g'
Mounted /dev/sda1 as '/var/hda/files/drives/drive'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=1C24A7D224A7ACE8 /var/hda/files/drives/drive ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2 ********************************************************
/usr/sbin/hda-diskmount: line 220: pmount: command not found ********************************************************
All Linux, Windows and Mac partitions on your disks have been mounted.

8) the partition is not mounted

9) yum install ntfs-3g

10) hda-diskmount again

this time its spitting until ctrl-c:

...
/usr/sbin/hda-diskmount: line 96: bc: command not found
/usr/sbin/hda-diskmount: line 96: bc: command not found
/usr/sbin/hda-diskmount: line 96: bc: command not found
/usr/sbin/hda-diskmount: line 96: bc: command not found
/usr/sbin/hda-diskmount: line 96: bc: command not found
...

11) yum install bc pmount

12) [root@fedora-arm ~]# hda-diskmount ********************************************************
Mounted /dev/sda1 as '/var/hda/files/drives/drive2'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=1C24A7D224A7ACE8 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
********************************************************
All Linux, Windows and Mac partitions on your disks have been mounted.

13) is lucky this time - all works.

HTH

#2 Updated by cpg over 10 years ago

yes. one solution is to include these two programs in the distribution itself.

probably the best solution is to convert this script to ruby and skip the need to use bc, and (hopefully) pmount.

Also available in: Atom