Raspberry-Pi get Arch Linux

Got CP 2, Sabnzbd and Sickbeard ready to work. Now I have buggered this up a few times already so now its working I want to know if its possible to do a sort of "Ghost" backup, basically like the img files I started with, except updated with all my stuff. I have installed and run them but not actually confirmed so its a pretty good recovery point and chances are some friends will be getting Pi's soon too.

Also want to give Bodhi a try quick and the only other SD card I have is too small. Just to see what its like, but my geek side will probably keep me on arch anyway.

Also I read soemthing about partitions but when listening to it broke everything so skipped the next time round, but it appears as if Arch is only using ~2gb of my 16GB card. Is it too late to expand it, can I maybe just create another partition with the balance of the space?

You should be able to use the 'dd' command to image individual partitions or entire drives. Be VERY careful with dd that you don't mix up the source and destinations devices, people don't call it 'data destroyer' for nothing :D

What file system is in use on that partition? If the fs supports expanding I don't see why not. You should be able to create another partition but I dunno if you will be able to boot from it as I honestly don't know how the PI handles things like this. Best to maybe read up a bit. Unless you just wanna use it for storage or something.
 
You should be able to use the 'dd' command to image individual partitions or entire drives. Be VERY careful with dd that you don't mix up the source and destinations devices, people don't call it 'data destroyer' for nothing :D

What file system is in use on that partition? If the fs supports expanding I don't see why not. You should be able to create another partition but I dunno if you will be able to boot from it as I honestly don't know how the PI handles things like this. Best to maybe read up a bit. Unless you just wanna use it for storage or something.

Ya will spend some time on google with this, waited 8 weeks for the pi and spent 3 days setting it up, in now hurry to screw things up.
Not looking to boot from what would be partition 3, it will be for the temp storage for sabnzbd. If all goes as planned I will have it doing the downloading with a 320GB 2.5" attached to a powered hub for the completed storage, also temp really as the file server will take everything over when I am in the house. Come to think of it, without xbmc the extra drive is pretty pointless except for really big downloads which would be limited by the sd card anyway..
 
Then you should be fine ;)

Had found a few guides that said its best to do it from within linux and the fact that its mounted amkes it impossible to do from within the Pi, then found a giude that mentioned the GParted live cd so I slapped that into my Virtual Box and boom, partition resized.
 
So managed to sort out the SD cards partition, grabbed a Live GParted CD and used Oracle VMBox to sort that out.
Got my External Drive mounted and working.

Just got, I think 1 last glitch. Got samba setup and shared the external drive, I can access it but I cannot rite to it.
Set as:
read only = no
public = yes
writable = yes

Does not seem as if something is missing, but still cannot write to it or delete on it. Tried another command that had the chmod values attached, that did not help.
 
Usually this should fix the problem:
Code:
chmod -R 666 /home/user/folder

You can also right click on any file in the directory and see what the permissions are, it should be only read+write across all users (root, group, user).

Samba's config can also give you problems every now and then if not properly set up, I do not have a smb-user set up and therefore no smb-pwd, so my smb.conf is very basic and allows unsecured access across the LAN from any computer, dangerous if you want to use your PC on a public LAN (office), but at home there should be no problem unless the kids decide to wipe your data!

So, post /etc/samba/smb.conf as well if the above command does not work for you.
 
What ultimately ended up solving the problem was "force user = username"

The Pi is now official sorted, software is installed, startups are starting up, network mounts are mounting, external drives are mounting and then finished it off with some ssh access and dyndns.
 
Is it possible to have the crontab run a telnet command, I want to schedule reboots for the router, my dydns throws out every now and then if the router stays on for too long.

I know if it worked like ftp or sql i could simply run something like "telnet username:p[email protected]", it however does not work that way and googles leaving me hanging too.
Normally a lil windows app would run this for me with the help of task scheduler, but with the Pi the media server will be spending far fewer hours actually on.
 
You will need to write a simple bash script and tell cron to run this as and when you see fit.

Read up on:
Automated telnet command linux

That should help you out. I suck at coding, so if you are struggling, find a Linux coding forum, they should sort you out in no time flat. Or maybe someone on here are bash scripting ninjas and will help you out. I suggest starting out on your own, post your work (to show that you at least tried) and you will be amazed at how willing people will be to help you out.
 
You will need to write a simple bash script and tell cron to run this as and when you see fit.

Read up on:
Automated telnet command linux

That should help you out. I suck at coding, so if you are struggling, find a Linux coding forum, they should sort you out in no time flat. Or maybe someone on here are bash scripting ninjas and will help you out. I suggest starting out on your own, post your work (to show that you at least tried) and you will be amazed at how willing people will be to help you out.


Ended up at http://www.cyberciti.biz/tips/shell-script-to-reboot-dsladsl-router.html and used autoexpect to generate the script.
Worked like a charm.
 
Top
Sign up to the MyBroadband newsletter
X