Cannot get the Diskmounter.sh scrip to run

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

Cannot get the Diskmounter.sh scrip to run

Postby mpopomeni » Sat Dec 19, 2009 1:13 pm

I have installed Amahi on an 80Gb drive, and have a further 3 drives in the box to add. I have downloaded the Diskmounter.sh script but am unable to get it to execute. All I get is "No such file or directory", but it is in the downloads directory. The whole system is useless unless I can mount the additional drives.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Cannot get the Diskmounter.sh scrip to run

Postby cpg » Sat Dec 19, 2009 11:59 pm

you do not say how you try to run it.

say like this?

Code: Select all

cd Downloads sh Diskmounter.sh
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

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

Re: Cannot get the Diskmounter.sh scrip to run

Postby mpopomeni » Sun Dec 20, 2009 3:57 am

Thanks for that!! I am trying to follow the instructions in the wiki, being a TOTAL linux noobee. It now runs, but I get the following
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
mount: unknown filesystem type 'LVM2_member'

Please, do you have any further suggestions? I have formatted the drives to FAT32 using the Fedora built in utility, called Palimpsest. The root drive (80 Gb) is formatted to Linux (0x83), and all the others are formatted to W95 FAT32 (LBA) (0x0c).

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Cannot get the Diskmounter.sh scrip to run

Postby cpg » Sun Dec 20, 2009 2:13 pm

hmmm, maybe this script is trying to mount your existing (LVM) drive?

i am not sure why it's worrying about lvm if your disks have fat partitions, honestly.

what i think we should do is integrate this disk mounting script into amahi somehow, to make it easy to do all this.

the problem is that there are so many possible configurations that we have stayed out of managing the users data.

back to your problem .... maybe you can post details, such as the output of

Code: Select all

mount
and the output of

Code: Select all

fdisk -l /dev/sd[abcdef]
to see what your disks are composed of?

does anyone else have any suggestions as to what could be going on here?
(i do not have much experience with this diskmounter script)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

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 » Mon Dec 21, 2009 12:49 am

also please post your /etc/fstab and /etc/mtab (label them clearly):

Code: Select all

cat /etc/fstab cat /etc/mtab
and the output of:

Code: Select all

vgdisplay -v
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 » Mon Dec 21, 2009 1:22 pm

For mount:

[root@Server Downloads]# mount
/dev/mapper/vg_server-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /home/Systemuser/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=Systemuser)
/dev/sdc2 on /media/sdc2 type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1 on /media/sdb1 type vfat (rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000)
/dev/sdc1 on /media/sdc1 type vfat (rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000)
/dev/sdd1 on /media/sdd1 type vfat (rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000)

For cat /etc/fstab:
[root@Server Downloads]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sun Dec 13 09:37:40 2009
#
# 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_server-lv_root / ext4 defaults 1 1
UUID=e2c1b4fd-dba7-4b9b-949d-f9f48d61252a /boot ext4 defaults 1 2
/dev/mapper/vg_server-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

For cat /etc/mstab
[root@Server Downloads]# cat /etc/mtab
/dev/mapper/vg_server-lv_root / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda1 /boot ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
gvfs-fuse-daemon /home/Systemuser/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=Systemuser 0 0
/dev/sdc2 /media/sdc2 fuseblk rw,noexec,nosuid,nodev,allow_other,blksize=4096 0 0
/dev/sdb1 /media/sdb1 vfat rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000 0 0
/dev/sdc1 /media/sdc1 vfat rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000 0 0
/dev/sdd1 /media/sdd1 vfat rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000 0 0

Hope this helps. Many thanks for the assistance so far.

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

Re: Cannot get the Diskmounter.sh scrip to run

Postby mpopomeni » Mon Dec 21, 2009 1:24 pm

Sorry, here's the rest.

[root@Server Downloads]# vgdisplay -v
Finding all volume groups
Finding volume group "vg_server"
--- Volume group ---
VG Name vg_server
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 74.33 GB
PE Size 4.00 MB
Total PE 19029
Alloc PE / Size 19029 / 74.33 GB
Free PE / Size 0 / 0
VG UUID IKdI4z-ygSh-qDGm-GLuI-pUak-a1tM-V70CP4

--- Logical volume ---
LV Name /dev/vg_server/lv_root
VG Name vg_server
LV UUID uvWENp-AH2c-LfCf-JsIl-rl8t-dDeC-aUOA1v
LV Write Access read/write
LV Status available
# open 1
LV Size 72.36 GB
Current LE 18525
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/vg_server/lv_swap
VG Name vg_server
LV UUID x3FJB3-BL9b-AJWa-7wY7-lvOO-lPU6-tqo6wW
LV Write Access read/write
LV Status available
# open 1
LV Size 1.97 GB
Current LE 504
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Physical volumes ---
PV Name /dev/sda2
PV UUID KK2Asr-Ae8I-XU1n-QfDm-0cfE-aswr-m86ILK
PV Status allocatable
Total PE / Free PE 19029 / 0

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:12 am

thanks.
the filesystems are already mounted, just not in the place you want (or expect).

You could try the diskmounter script with just 1 additional disk attached, and see what gives. Then add the next one, run again etc. Not sure if you already tried that.

could you try the following commands:

Code: Select all

ls /media/sdb1/ ls /media/sdc1/ ls /media/sdd1
and tell me if you can see data on those disks (if you never saved data on it you don't have to do the commands ofcourse ;))

If you want those disks permanently mounted you will need to add them to /etc/fstab
Ofcourse you would want them on the amahi shares so you will need to remount them there.
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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Cannot get the Diskmounter.sh scrip to run

Postby bigfoot65 » Tue Dec 22, 2009 6:04 am

Hello,

I tried to use the script and it didn't work for me either :( Here's what I did to get my additional drives mounted permanently.

Take the line out of the mtab for each drive and put them in the fstab. For example:

Remove from mtab:
/dev/sdb1 /media/sdb1 vfat rw,noexec,nosuid,nodev,fmask=0133,dmask=0022,uid=1000,gid=1000 0 0

Add to fstab:
/dev/sdb1 /media/sdb1 vfat rw,defaults,umask=0000 0 0

What this does is mount your sdb1 drive as /media/sdb1 with read/write permissions on boot. You can then add them as shares in Amahi. The path to the share would be /media/sdb1.

Repeat this for all drives you want to add. I recommend you try one first to ensure it works. A reboot is required after you make the change to the mtab and fstab.

Hope it works for you.

bigfoot65
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

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

Re: Cannot get the Diskmounter.sh scrip to run

Postby mpopomeni » Tue Dec 22, 2009 11:39 am

Hello bigfoot65.

I am unsure where I am supposed to be doing this changing of lines. Where are the lines located? Do you mean that I should execute the mtab and fstab commands in the terminal window, and then change them there? If so I have tried, and it simply says permission denied.

Thanks for the suggestions so far.

Who is online

Users browsing this forum: No registered users and 46 guests