how to access sata drive after installing archlinux

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

Re: how to access sata drive after installing archlinux

Postby iBabu » Sat Oct 20, 2012 3:43 pm

now it gives me this everytime i try to install new package

error: failed retrieving file 'core.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org; Unknown error
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org; Unknown error
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org; Unknown error
error: failed to update community (download library error)
error: failed retrieving file 'alarm.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org; Unknown error
error: failed to update alarm (download library error)
error: failed retrieving file 'aur.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org; Unknown error
error: failed to update aur (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby iBabu » Sat Oct 20, 2012 3:54 pm

nevermind solved it changed the ip to dhcp and started working. anyway to have it set to static?
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby moonman » Sun Oct 21, 2012 10:58 am

You probably changed the IP to static in the plug but you didn't specify the default gateway and DNS servers. Easy way to make it static is to make a static DHCP table in the router. Hard way is to specify the IP in the plug itself, but you need to specify not just the IP but also Net mask (255.255.255.0 if your ip is 192.168.x.x, gateway: something like 192.168.1.1 or 0.1, dns: either the router itself, so the same as gateway or you can use 8.8.8.8 and 8.8.4.4 google dns or your ISPs dns - doesn't matter as long as you have them and they are correct.
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: how to access sata drive after installing archlinux

Postby iBabu » Tue Oct 23, 2012 5:28 pm

last and final problem im having is ftp connects from inside and outside internet but it's read only, doesn't let me copy files to it gives me permission error 550 on fireftp
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby moonman » Tue Oct 23, 2012 8:36 pm

There are too many things that can be wrong. Check that path where you are trying to write through ftp has correct permissions for the username ftp server is running as. Check config. This part is very tricky, try different configurations. There are many examples on the author's website.
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: how to access sata drive after installing archlinux

Postby iBabu » Wed Oct 24, 2012 12:50 am

well im connecting to root with root user and password
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby moonman » Wed Oct 24, 2012 3:07 am

Yes. But when you setup proftpd, or whatever you use it may be (and should be) running under a different user. If you dont have correct permissions on a folder for that user it wont work.
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: how to access sata drive after installing archlinux

Postby iBabu » Wed Oct 24, 2012 10:32 pm

ok i messed around with vsftpd config file and seems to work sometimes now, just need to do couple more things. another thing i cant get it working is changing the data folder for owncloud to my other partition, i went to lot of forums but non of the solution seems to be working
my owncloud is installed in /usr/share/webapps/owncloud/ --- which the os partition
i would like the data folder in owncloud directory to be in my other bigger partition.
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby moonman » Thu Oct 25, 2012 9:40 am

The simplest solution would be to simlink /usr/share/webapps/owncloud/data to a directory on the other partition.
For the sake of an exmaple assume your other partition is /media/part2

$this->bbcode_second_pass_quote('', 'm')kdir /media/part2/owncloud
chown http:http /media/part2/owncloud
cp -r /usr/share/webapps/owncloud/data/* /media/part2/owncloud
rm -r /usr/share/webapps/owncloud/data
ln -s /media/part2/owncloud /usr/share/webapps/owncloud/data


Change what is in bold to your path to the mounted partition.

Now you data folder in /usr/share/webapps/owncloud is actually /media/part2/owncloud

Make sure webserver isn't running before doing this /etc/rc.d apache2 stop ? substitute apache2 for whaterver you use.
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: how to access sata drive after installing archlinux

Postby WarheadsSE » Thu Oct 25, 2012 3:56 pm

That is one hacky method. There should be a config setting.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests