How to move files amongst SHARES (Greyhole or not)

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to move files amongst SHARES (Greyhole or not)

Postby ralfb » Sat Dec 18, 2010 10:32 am

Many thanks Guillaume,
Just put back the lines that start with credentials=... at the end of the preceding lines, and you'll be fine.
umount /mnt/samba/*
Then re-mount it by executing the 3 commands found in your rc.local (or rebooting).
I used nano /etc/fstab as root to make one line for each share.

Then I used the command

root@padme ralf]# unmount /mnt/samba/*

but got this every time:
root@padme ralf]# unmount /mnt/samba/*
bash: unmount: command not found
[root@padme ralf]# unmount /mnt/samba/*
bash: unmount: command not found
[root@padme ralf]#
After rebooting, no change, all share locations such as /mnt/samba/movies are empty.

this is /etc/fstab now:
[root@padme ralf]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Dec 12 17:52:24 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_padme-lv_root / ext4 defaults 1 1
UUID=cd9649e6-6d69-4624-8199-9089ac97241b /boot ext4 defaults 1 2
/dev/mapper/vg_padme-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=42ea0928-74e1-4c49-ada8-452d0dda3ea2 /var/hda/files/drives/drive1 ext4 defaults 1 2
UUID=30e95e65-2d7d-4101-90d1-993423380444 /var/hda/files/drives/drive2 ext4 defaults 1 2
UUID=b4bd72a2-d31d-4c10-af4c-9c927c7ca060 /var/hda/files/drives/drive3 ext4 defaults 1 2
#smb#//127.0.0.1/movies /mnt/samba/movies cifs credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0
#smb#//127.0.0.1/music /mnt/samba/music cifs credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0
#smb#//127.0.0.1/ralf /mnt/samba/ralf cifs credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0

[root@padme ralf]#
.

I believe the line breaks are created by me copying and pasting from Terminal into this post.

What's missing still?
Many thanks

Ralf
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: How to move files amongst SHARES (Greyhole or not)

Postby radioz » Sat Dec 18, 2010 11:28 am

root@padme ralf]# unmount /mnt/samba/*
That command should be: umount /mnt/samba/*

Try it again.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: How to move files amongst SHARES (Greyhole or not)

Postby gboudreau » Sat Dec 18, 2010 11:33 am

Code: Select all

fpaste /etc/fstab

Code: Select all

/bin/sed -ie 's/#smb#//g' /etc/fstab /bin/mount -a /bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab ls -la /mnt/samba/* | fpaste
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to move files amongst SHARES (Greyhole or not)

Postby ralfb » Sat Dec 18, 2010 4:43 pm

Ooops, sorry I did not read carefully.

umount NOT unmount

I followed your commands and now the shares are present and I can work with them.

Below is my reply to your code.

Now rebooting to see what happens.

Many thanks for your patience and guidance.

Ralf

Code: Select all

fpaste /etc/fstab
http://fpaste.org/gwJc/

Code: Select all

/bin/sed -ie 's/#smb#//g' /etc/fstab /bin/mount -a /bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab ls -la /mnt/samba/* | fpaste
[ralf@padme ~]$ su
Password:
[root@padme ralf]# /bin/sed -ie 's/#smb#//g' /etc/fstab
[root@padme ralf]# /bin/mount -a
[root@padme ralf]# /bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab
[root@padme ralf]# ls -la /mnt/samba/* | fpaste
Uploading (3.2K)...
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to move files amongst SHARES (Greyhole or not)

Postby ralfb » Mon Dec 20, 2010 11:32 pm

Hi Guillaume,

Many kind thanks for your guidance. I much appreciate it.

The mounted shares are working perfectly now with the exception that I need to mount them manually after rebooting.

Any ideas what else could be missing?

Many thanks

Ralf
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: How to move files amongst SHARES (Greyhole or not)

Postby gboudreau » Tue Dec 21, 2010 5:49 am

See the updated instructions to mount shares locally: http://wiki.amahi.org/index.php/Mount_Shares_Locally
You'll want to remove what you added in fstab and rc.local, and use the above procedure instead.
This new procedure will prevent your server from hanging when rebooting or during shutdowns, which was a known issue with the fstab/rc.local method.

If the shares are not mounted automatically on boot with the above procedure:

Code: Select all

fpaste /var/log/boot.log
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to move files amongst SHARES (Greyhole or not)

Postby ralfb » Thu Jan 06, 2011 4:08 am

Hi Guillaume, Happy New Year!

Many thanks for your continued support.

I followed the instructions and the shares did not mount after reboot.

Here is the log:

http://fpaste.org/HA3U/

On another note:

From OsX and Win 7 PCs my HDA share is reported as 1MB available.

When I boot up the Amahi Server I get a low disk space warning on each drive.

HOWEVER the Amahi dashboard shows me that I've got 330GB of space left across 3 x 2TB drives.

Not sure what to make of this.

regards,
Ralf
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: How to move files amongst SHARES (Greyhole or not)

Postby gboudreau » Thu Jan 06, 2011 6:17 am

The init.d script for mount_shares_locally didn't execute.
You probably missed a step somewhere.

Code: Select all

chkconfig --list mount_shares_locally
should return

Code: Select all

mount_shares_locally 0:off 1:off 2:on 3:on 4:on 5:on 6:off
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to move files amongst SHARES (Greyhole or not)

Postby ralfb » Sun Jan 16, 2011 3:11 am

Many thanks,

here's what I got when executing the command.

Looks right, n'est pas?

[ralf@padme ~]$ chkconfig --list mount_shares_locally
mount_shares_locally 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[ralf@padme ~]$

I'll go through every step again and will report back.

thanks
Ralf
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: How to move files amongst SHARES (Greyhole or not)

Postby gboudreau » Sun Jan 16, 2011 6:42 am

No need to go through all steps. As root:

Make sure the init.d script is executable

Code: Select all

ls -l /etc/init.d/mount_shares_locally chmod +x /etc/init.d/mount_shares_locally
Then try to restart the service manually:

Code: Select all

service mount_shares_locally stop

Code: Select all

service mount_shares_locally start
The output you get from the last (service start) command should appear in your boot.log
Reboot, and check the boot.log:

Code: Select all

grep mount_shares_locally /var/log/boot.log
chkconfig says that the mount_shares_locally service is setup to be started on boot.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 8 guests