Hello everyone,
I've been following the advice in the Wiki on Adding a Second Hard Drive. Things were going swimmingly until I attempted to mount the hard disk. The wiki says:
"In a Terminal, as root, type the following command:
hda-diskmount2"
I do that, but I get the following message:
[root@localhost will]# hda-diskmount2
bash: /usr/sbin/hda-diskmount2: Permission denied
I am very much new to linux and am unsure why I am denied permission? Any ideas?
Thanks!
-Deth
Issue When Mounting New Hard Drive
Re: Issue When Mounting New Hard Drive
If you followed the wiki instructions there should be no issue. This may be a dumb question, but are you sure you executed the command as the root user? There should be no permissions issues if so.
If you could provide more details as to what you have done so far, we will be able to better assist you.
If you could provide more details as to what you have done so far, we will be able to better assist you.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Issue When Mounting New Hard Drive
can you post the results of this command:
Code: Select all
ls -l /usr/sbin/hda-diskmount2
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
-
- Posts: 6
- Joined: Wed Apr 28, 2010 11:56 am
Re: Issue When Mounting New Hard Drive
Thanks for the replies. I am loving Amahi, very excited to get more storage.
Bigfoot: I ran the "su" command and provided my root password. This changed the terminal prompt from [will@localhost ~]$ to [root@localhost will]# . I assumed this meant I was executing as root.
Moredruid: when I run that command, here is what I see:
will@localhost ~]$ ls - /usr/sbin/hda-diskmount2
ls: cannot access -: No such file or directory
I think the problem may be when I ran this command:
[root@localhost will]# wget -q -O /usr/sbin/hda-diskmount2 http://dl.dropbox.com/u/3022105/Amahi/hda-diskmount2 && chmod +x /usr/sbin/hda-diskmount2
I received no info that anything happened after this command ran. I thought at the time that this was because I already had the hda-diskmount2 script. Clearly I don't, or else the /usr/sbin/hda-diskmount2 would be populated, correct?
Thanks again.
Bigfoot: I ran the "su" command and provided my root password. This changed the terminal prompt from [will@localhost ~]$ to [root@localhost will]# . I assumed this meant I was executing as root.
Moredruid: when I run that command, here is what I see:
will@localhost ~]$ ls - /usr/sbin/hda-diskmount2
ls: cannot access -: No such file or directory
I think the problem may be when I ran this command:
[root@localhost will]# wget -q -O /usr/sbin/hda-diskmount2 http://dl.dropbox.com/u/3022105/Amahi/hda-diskmount2 && chmod +x /usr/sbin/hda-diskmount2
I received no info that anything happened after this command ran. I thought at the time that this was because I already had the hda-diskmount2 script. Clearly I don't, or else the /usr/sbin/hda-diskmount2 would be populated, correct?
Thanks again.
Re: Issue When Mounting New Hard Drive
it was ls -l not ls -
try the following command:
it should work then
otherwise try the following:

try the following command:
Code: Select all
chmod u+x /usr/sbin/hda-diskmount2
otherwise try the following:
Code: Select all
bash /usr/sbin/hda-diskmount2
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
-
- Posts: 6
- Joined: Wed Apr 28, 2010 11:56 am
Re: Issue When Mounting New Hard Drive
Oh geez, really shouldn't do these things first thing in the morning.it was ls -l not ls -![]()
I ran the command properly and received the following output:
will@localhost ~]$ ls -l /usr/sbin/hda-diskmount2
-rwxr-xr-x 1 root root 8599 2010-05-21 08:20 /usr/sbin/hda-diskmount2
Just for fun, I ran the hda-diskmount2 script again and it worked!
root@localhost will]# hda-diskmount2
****************************************************************
Ignoring /dev/sda1 - already in /etc/fstab or mounted
****************************************************************
Mounted /dev/sdb1 as '/var/hda/files/drives/sdb1' (read-write)
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=90230534-252b-4538-92ec-7e4f40f77947 /var/hda/files/drives/sdb1 ext4 defaults
Yay! Following the wiki to use the disk for all shares, I ran the mv command as below:
[root@localhost will]# mv /var/hda/files/* /var/hda/files/drives/sdb1/
mv: cannot copy a directory, `/var/hda/files/drives', into itself, `/var/hda/files/drives/sdb1/drives'
Currently waiting for this to finish, as there is about 1Tb to move. Everything seems back on track. Thanks alot!
-
- Posts: 6
- Joined: Wed Apr 28, 2010 11:56 am
Re: Issue When Mounting New Hard Drive
So, it has been about 26 hours and the mv command is still transferring files. Logging into the HDA dashboard, on the storage tab, I see two partitions: /(1.3TB) and /var/hda/files/drives/sdb1/ (1.3TB)
/ has 902 GB Free and 467 GB used
/var/hda/files/drives/sdb1/ has 790 GB free and 585 GB used
This means that over 26 hours 585 GB have transferred, equaling only about 22.5 GB per hour between the two drives. This seems to be unbearably slow. When I used GParted to add the primary ext3 partition to the new disk, it took 4.5 hours to do this job -- also seemingly very slow.
I have followed the Wiki instructions for adding a Second Hard Disk (Use Hard Drive for all Shares) and am up to the point of moving the files after first mounting the disk, my next step according to the wiki will be to unmount like so: umount /var/hda/files/drives/sdb1/
I am using a Masscool XWT-RC040 PCI to 4xSATA adapter to add the second hard disk. This card uses the Silicon Image SiI3114 host controller chip, which according to the manufacturer is compatible with the latest Linux kernels. I installed no drivers, and when I plugged in the new HDD it was detected automatically, so I assume that the PCI to SATA adapter card is working as normal. There is no manual for this device, and I plugged the HDD into one of the SATA ports at random, assuming they would all provide the same functionality.
Are these slow transfer and partition speeds normal, or is there perhaps something going wrong here?
My hardware setup:
Intel Atom D510M0 (1.6 Ghz Dual Core)
1 gb DRR2 RAM
2x 1.5 Western Digital Caviar Green HDDs (1 attached via mobo sata, the other via PCI to SATA adapter)
Masscool XWT-RC040 PCI to sata adapter.
Thanks for any info!
/ has 902 GB Free and 467 GB used
/var/hda/files/drives/sdb1/ has 790 GB free and 585 GB used
This means that over 26 hours 585 GB have transferred, equaling only about 22.5 GB per hour between the two drives. This seems to be unbearably slow. When I used GParted to add the primary ext3 partition to the new disk, it took 4.5 hours to do this job -- also seemingly very slow.
I have followed the Wiki instructions for adding a Second Hard Disk (Use Hard Drive for all Shares) and am up to the point of moving the files after first mounting the disk, my next step according to the wiki will be to unmount like so: umount /var/hda/files/drives/sdb1/
I am using a Masscool XWT-RC040 PCI to 4xSATA adapter to add the second hard disk. This card uses the Silicon Image SiI3114 host controller chip, which according to the manufacturer is compatible with the latest Linux kernels. I installed no drivers, and when I plugged in the new HDD it was detected automatically, so I assume that the PCI to SATA adapter card is working as normal. There is no manual for this device, and I plugged the HDD into one of the SATA ports at random, assuming they would all provide the same functionality.
Are these slow transfer and partition speeds normal, or is there perhaps something going wrong here?
My hardware setup:
Intel Atom D510M0 (1.6 Ghz Dual Core)
1 gb DRR2 RAM
2x 1.5 Western Digital Caviar Green HDDs (1 attached via mobo sata, the other via PCI to SATA adapter)
Masscool XWT-RC040 PCI to sata adapter.
Thanks for any info!
Who is online
Users browsing this forum: No registered users and 8 guests