Obsolete Releases > SME 8.x Contribs

Affa to USB

<< < (2/3) > >>

Brave Dave:

--- Quote from: elmarconi on October 28, 2012, 09:47:22 AM ---Seen this? : http://wiki.contribs.org/USBDisks#USB_on_SME_8

--- End quote ---

Useful command - but Do you intend this to diagnose the cause ?

Not sure what to change to make it behave as expected, my answer has been to cope with the problem, not to fix

janet:
Brave Dave

Did you read my post earlier in this thread ?
I gave you suggestions for correct usage.

As you say, it appears your method of configuration & usage is incorrect, and you have wrote a script to workaround your problem, rather than set it up more appropriately.

Perhaps you need to try what I suggested & tell us if you still have problems, or not.

Quoting myself:
"Label the disks the same as each other, & do not add entries in /etc/fstab, the system will take care of that in sme8 & assign each drive as being /sdc
Remove one drive first then connect the other drive so it is always seen as /sdc
My Affa job shows it as /dev/sdc1

Also you should create a mount point under /media ie
mkdir -p /media/USBBackup
as the system automatically uses that, (rather than using /mnt/affadevice & so on)
In the affa config
AutomountPoint /media/USBBackup
AutomountDevice /dev/sdc1
(depending what you called your partition on your USB drives, which should be the same on both).
Remove the /etc/fstab entries you manually created as they are not needed on sme8.

I think that should be enough to resolve your issues, it works for me.
Please show us the output of
db affa show mavis
(assuming mavis is your jobname)

Your mount & unmount commands in sme8 should look like this,
mount /dev/sdc1 /media/USBBackup
umount /dev/sdc1

Note these changed from the way it was done in sme7

elmarconi:
And please post /etc/fstab...

janet:
Dave
Please re-read my last post (2 up from here) as a number of edits were done

Brave Dave:
Sorry I used the word problem - not a problem, I've worked around. I did read the earlier message Mary, but I only came here after trying most of what had been suggested around the forums, this is a new problem for me, the device addressing of the drives seems to jump around unexpectedly

And the affa is not a problem - again - worked around - sorry, didn't want to get into Affa too much

I was only curious to two things

* Affa doesn't document any Label handling syntax, only device (i.e. /dev/device) -hence the need for a workaround
* But at an Operating system level (i.e. dmesg output) the drives show up everywhere and anywhere, now coming in as drive sdb - hence the question
PS: As far as I can make out they should have never shown up as sdc or sdd, they should have always been sdb


I do have this line in the fstab, I added it so I can mount and read the drive, this works ok - tried with and without - all the disks have been labeled backup_usb (Before posting here I had tried a couple of AutomountDevice alternates - to no avail - affa didn't recognize the syntax) e.g. db affa setprop mavis AutomountDevice backup_usb (tried LABEL=backup_usb)

fstab line:

--- Code: ---LABEL=backup_usb        /mnt/affadevice         ext3    defaults        0 0

--- End code ---

The mavis job automount lines are:

--- Code: ---db affa show mavis mavis=job
==//snip//==
    AutoUnmount=yes
    AutomountDevice=/dev/sdb1
    AutomountOptions=
    AutomountPoint=/mnt/affadevice
==//snip//==

--- End code ---

Also PS - this is an IBM X-Server - not a fan - i mean - NOT A FAN, had a few problems, 4 months old, Motherboard, Raid Controller and Hard disks have been replaced - all data has been lost once - I came on the scene about half way through all the drama.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version