Trouble with SAMBA + udevil

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Trouble with SAMBA + udevil

Postby fox1986 » Sat Jul 20, 2013 9:29 am

This is what I have done so far:

- Installed ArchLinux on my Pogoplug E02
- OS is on USB Flashdrive and booted with echo "LABEL=ROOTFS / ext3 rw,noatime 0 1" >> /etc/fstab


This is what I wanna do:

- Install SAMBA so I can access my attached NTFS Harddsik within the network
- Combine SAMBA with udevil, so that attached devices are automatically mounted and provided by SAMBA
- When I switch of Pogoplug, and swith it on again, I want the plug to boot and mount all attached device and make them accesible via SAMBA again.

I know how to setup Samba, however I have no idea how to combine udevil with samba. Samba requires a smb.conf
with explicit information about each device and its path. But of course device and path change every time a new device
is attached

My second problem is that, since I installed udevil and activated tell him to automount on boot, my pogoplug fails to boot. I have to unplug my harddisk and reboot again. Whatever I do, once i reboot the device, everything seems to fail, while everything is running perfect as long as i reboot. Is that normal?
fox1986
 
Posts: 10
Joined: Fri Jul 19, 2013 5:41 pm

Re: Trouble with SAMBA + udevil

Postby moonman » Sat Jul 20, 2013 10:24 am

Attach your bootable flash to the bqck bottom usb port. Is your ntfs drive over 2tb?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Trouble with SAMBA + udevil

Postby fox1986 » Sat Jul 20, 2013 10:44 am

Ok I gave up on udevil since It seems to fail mounting my usb-harddisc. Once I removed the harddisc and the udevil service I can boot into archlinux again.

The phenomenom I have is:
Everytime I mount a device and start SAMBA, everything is fine. I can see the device in Windows and Linux and acces its data. But one I do a reboot or plug the system of, I cant access via ssh anymore and the pogoplug does not appear on my router-clientlist anymore. Only after removing the harddisk and boot with the system-usb, I can access again.

What do I do wrong? Everything went fine, but one reboot or restart of the plug destroys everything?

@moonman: no I tried a 1TB NTFS and a 4GB EXT3 so far. Same bad result. Does it change anything to plug it on the backside?
fox1986
 
Posts: 10
Joined: Fri Jul 19, 2013 5:41 pm

Re: Trouble with SAMBA + udevil

Postby WarheadsSE » Sat Jul 20, 2013 1:51 pm

1) enable netconsole per the advanced tab, and get us some debug output
2) is the ntfs drive configured with a GPT partition table?
3) what is the order of disk detection in the kernel log, if it makes it that far.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Trouble with SAMBA + udevil

Postby fox1986 » Sat Jul 20, 2013 4:00 pm

I plugged the usb-stick with ArchLinux now on the lower usb-slot on the back (its my 4th usb-stick now and this one actually is the only one that boots correctly).

I followed the guide here:
http://blog.qnology.com/2013/03/tutoria ... linux.html

I think the problem is the correct boot order of the two devices, since I can mount and access them via Samba
without problems, it just collapses on reboots.

My fstab looks like this:

LABEL=ROOTFS / ext3 rw,noatime 0 1
UUID=F474B7AA74B76DCC /media/wd ntfs-3g

ROOTFS is the USB-Stick running archLinux.
The UUID Entry is the one of my WD-Harddisk NTFS formatted.

Is there any way to tell that the ROOTFS schould boot first (since the OS is on there, and the Harddisk second?)
fox1986
 
Posts: 10
Joined: Fri Jul 19, 2013 5:41 pm

Re: Trouble with SAMBA + udevil

Postby grayman4hire » Sat Jul 20, 2013 4:10 pm

Why do so many people insist on using ntfs drives with their pogoplug?

Just follow the tutorial and use ext3 and keep thing simple. I left out ntfs (and udevil) instructions intentionally.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: Trouble with SAMBA + udevil

Postby fox1986 » Sat Jul 20, 2013 4:17 pm

$this->bbcode_second_pass_quote('grayman4hire', 'W')hy do so many people insist on using ntfs drives with their pogoplug?

Just follow the tutorial and use ext3 and keep thing simple. I left out ntfs (and udevil) instructions intentionally.


Because I wanna use this harddisk on Windows-PCs aswell like so many other people do?
fox1986
 
Posts: 10
Joined: Fri Jul 19, 2013 5:41 pm

Re: Trouble with SAMBA + udevil

Postby grayman4hire » Sat Jul 20, 2013 6:21 pm

$this->bbcode_second_pass_quote('fox1986', '')$this->bbcode_second_pass_quote('grayman4hire', 'W')hy do so many people insist on using ntfs drives with their pogoplug?

Just follow the tutorial and use ext3 and keep thing simple. I left out ntfs (and udevil) instructions intentionally.


Because I wanna use this harddisk on Windows-PCs aswell like so many other people do?


You have samba running to transfer files already, why would you need to plug the drive into your PC? On top of that, every time you need to do this, you have to ssh into your pogoplug to power it down properly (during the time you don't have your hd plugged into your pogoplug, chances are the pogoplug is not operational because you have a entry in fstab for a drive that is missing). And then when you plug your drive back into your pogoplug, you have to cross your fingers and hope it boots properly. Also, ntfs samba performance isn't that great (yeah I know you can tune it) compared to ext3.

IMHO, its better to have the hard drive dedicated to your pogoplug.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA
Top

Re: Trouble with SAMBA + udevil

Postby WarheadsSE » Sat Jul 20, 2013 7:37 pm

With this in mind, I really want to see your boot log so that we can sort out exactly what is happening.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: Google [Bot] and 2 guests