Cannot get the Diskmounter.sh scrip to run

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Cannot get the Diskmounter.sh scrip to run

Postby moredruid » Tue Dec 22, 2009 12:03 pm

A reboot is required after you make the change to the mtab and fstab.
uhm no... actually hell no :)

any edit in /etc/fstab can be effectuated by running the command

Code: Select all

mount -a
if you've made a mistake (you'll get an error) you can still fix it. If you reboot and it's wrong you'll need to go a lot deeper than necessary to fix it (boot into single mode, set root-filesystem from ro to rw and edit the file and reboot again - this is because linux will hang on a missing or wrong filesystem).

Now for helping mpopomeni (read through this completely before you start):
the /etc/fstab and /etc/mtab files are not executables but files you will need to edit (as the root user).
make sure you login as root, and you have the line you need from your /etc/mtab (you can get it with cat /etc/mtab)

Code: Select all

cd /etc cp fstab fstab.old vi fstab
now you will need to add the following line:
/dev/sdb1 /media/sdb1 vfat rw,noexec,nosuid,nodev 1 2
you can do this by pressing Shift+G (to go to the end of the file) and Shift+A in the editor (insert mode at the end of the line), press enter and add the line above. Instead of the "rw,noexec,nosuid,nodev" you could also type the word "defaults"
when you're done press Esc, then ":wq" without the quotes. You should be in your root shell again.
Now unmount the drive you've just entered in /etc/fstab, check if /mnt/sdb1 still exists and mount everything in /etc/fstab again:

Code: Select all

umount /dev/sdb1 ls /media/ <this should list "sdb1", if not, create it like this: mkdir sdb1> mount -a
If you get no errors, you can list your mount points with the command "mount", at the bottom you should see /dev/sdb1 /media/sdb1
If you do get errors copy the fstab.old file back to the original file like this:

Code: Select all

cp /etc/fstab.old /etc/fstab
If you get asked if you want to overwrite the file press Y for yes.

good luck... it sounds harder than it is :)
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

mpopomeni
Posts: 9
Joined: Tue Dec 15, 2009 5:25 am

Re: Cannot get the Diskmounter.sh scrip to run

Postby mpopomeni » Wed Dec 23, 2009 9:45 am

Thanks a ton moredruid! I have now managed to mount sdb1.

I am assuming that I now repeat all the code for each of the additional drives sdc1 and sdd1. Is this right?

I am having trouble, however amending Amahi to use the sdb1 partition, it just does not want to change using the setup in Amahi. Is this the correct place to be amending the path to the hda files?

Thanks for the prompt replies.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Cannot get the Diskmounter.sh scrip to run

Postby moredruid » Wed Dec 23, 2009 12:25 pm

I am assuming that I now repeat all the code for each of the additional drives sdc1 and sdd1. Is this right?
yup
I am having trouble, however amending Amahi to use the sdb1 partition, it just does not want to change using the setup in Amahi. Is this the correct place to be amending the path to the hda files?
Yes, but you can also mount the directories in already existing or new shares in the default Amahi location (/var/hda/files/)

for example we can create a new share in Amahi in the default location called "mine" through the webinterface. Make sure the path is /var/hda/files/mine.
Then mount your existing drive in that directory:

Code: Select all

mount /dev/sdc1 /var/hda/files/mine
You can also mount a drive on an existing directory, but make sure it's empty because your new disk will render the data that's in that directory invisible (it's still there, unmount the drive and you'll see). This is because a mount is laying itself on the mount point. It sounds complicated but it's quite logical (think of a blanket that covers you in bed. Your body still exists, you just can't see it :lol:).

Picture this:
directory
|_subdirectory1
|__file1
|__file2

Now if we mount a disk on subdirectory1 (which contains file1 and file2) you will lay the root of that disk on subdirectory1, covering everything what's inside. Say your disks root directory contains a directory called "mine" the picture will look like this:
directory (same as above)
|_subdirectory1 (same as above)
|__mine (different)

If you unmount the disk again you'll see that file1 and file2 will reappear.
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

mpopomeni
Posts: 9
Joined: Tue Dec 15, 2009 5:25 am

Re: Cannot get the Diskmounter.sh scrip to run

Postby mpopomeni » Sat Dec 26, 2009 8:20 am

Hi. i think thats done now, although I can't be sure as I cannot see any new folders created in sdb1. The problem now is that I am asked for a password when first accessing the network folders from within Vista. When I enter the overall hda system password I can access and write to the folders associated with the root drive sda1, but it just keeps saying access denied when I try to write to the music folder, which I have mounted on the sdb1 drive (not the mine you suggested). Is there anything I have missed, or possibly messed up?

Thanks again for the ongoing help. We will get there eventually!

Who is online

Users browsing this forum: No registered users and 24 guests