PaulSmitz
Posts: 5
Joined: Sun Jul 08, 2012 10:19 pm

Hdd as root fs?

Sun Jul 08, 2012 10:31 pm

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...

User avatar
psergiu
Posts: 224
Joined: Mon Nov 07, 2011 8:36 am
Location: TX, U.S.A. (was: RO, E.U.)
Contact: Website

Re: Hdd as root fs?

Mon Jul 09, 2012 11:44 am

- 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

PaulSmitz
Posts: 5
Joined: Sun Jul 08, 2012 10:19 pm

Re: Hdd as root fs?

Wed Jul 11, 2012 9:06 am

wow that sounds a lot easier than I expected... :)

PaulSmitz
Posts: 5
Joined: Sun Jul 08, 2012 10:19 pm

Re: Hdd as root fs?

Wed Jul 11, 2012 9:22 pm

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!

PaulSmitz
Posts: 5
Joined: Sun Jul 08, 2012 10:19 pm

Re: Hdd as root fs?

Fri Jul 13, 2012 7:43 pm

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...

hilaryyy
Posts: 7
Joined: Fri Jul 13, 2012 1:48 am

Re: Hdd as root fs?

Fri Jul 13, 2012 10:35 pm

Could be worth just booting from the SD and creating a chroot startup script too.

PaulSmitz
Posts: 5
Joined: Sun Jul 08, 2012 10:19 pm

Re: Hdd as root fs?

Sat Jul 14, 2012 9:18 am

It wouldn't let me chroot Couldnt load /bin/bash seems that the tonido could be a slightly different arm processor possibly arm7?

Return to “Advanced users”