Page 1 of 1

Hdd as root fs?

Posted: Sun Jul 08, 2012 10:31 pm
by PaulSmitz
I have just ordered my raspi and am waiting for it to be delivered... I am wanting to replace my rubbish tonidoplug with it.... (running Debian squeeze)

It has everything set up on it as i have had it for a few years (samba,afp,torrents,apache,php,mail,vpn etc etc) and being arm6 should run everything on this with only the kernel changed (but this isn't the case but hey ho)

So my question is... How easy is it to either

a) use my current rootfs and just have it booted from the SD card. (definitely preferred)

B) reinstall the lot and pull all my stuff off it...

Re: Hdd as root fs?

Posted: Mon Jul 09, 2012 11:44 am
by psergiu
- get the latest RPi kernel & libs from the Git repository. Copy the /lib/modules/ & /opt/vc stuff on your external HDD
- get a small SD/MMC card formated as FAT32 and put the binary blobs & kernel.img on there
- edit the cmdline.txt file to have "root=/dev/sdaXn"
- insert SD/MMC card in Pi, connect HDD to USB port, power everything correctly

Re: Hdd as root fs?

Posted: Wed Jul 11, 2012 9:06 am
by PaulSmitz
wow that sounds a lot easier than I expected... :)

Re: Hdd as root fs?

Posted: Wed Jul 11, 2012 9:22 pm
by PaulSmitz
well I got it today! did it all as said... seems it doesn't like me moving me... it boots, but no cigar... services fail to start...

looks like I have to reinstall squeeze with the right stuff!

Re: Hdd as root fs?

Posted: Fri Jul 13, 2012 7:43 pm
by PaulSmitz
Well it was easier than I thought... Install raspian... Apt-get everything... Copy over the config files... Add an entry to fstab for my external Hdd and we are away...
Uptime of 27hours now... Loads of services running... And its more reliable than my tonidoplug...

Re: Hdd as root fs?

Posted: Fri Jul 13, 2012 10:35 pm
by hilaryyy
Could be worth just booting from the SD and creating a chroot startup script too.

Re: Hdd as root fs?

Posted: Sat Jul 14, 2012 9:18 am
by PaulSmitz
It wouldn't let me chroot Couldnt load /bin/bash seems that the tonido could be a slightly different arm processor possibly arm7?