Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-01-2010, 08:28 AM   #1
LQ Newbie
Registered: Nov 2005
Location: Netherlands
Posts: 3

Rep: Reputation: 0
Question Move /boot from hdd to usb

I've installed a DIY nas box with ubuntu server (10.4) which runs on 4 2TB hard-drives in raid 5. On all 4 disks I've created a 300MB boot (ext3) and the remainder is raid. On top of this raid I've used LVM to create volumes for swap, root, var, data etc.

This works like a charm but I now have recoverable raid errors on the 1st drive so it needs to be replaced, the problem is that the box boots of this failing drive. Is is possible to move the /boot partition to an usb stick and boot from that? I'm a bit reluctant to do this all 'hot-swap' since it hosts around 5TB of my photos/music/movies with no real backup (..I know..).

I've already noticed during installation/testing that removing drives 'reorders' the /dev names which doesn't seem to be a real problem as raid/lvm seem to be looking for guid identifiers. So either I need to move/copy the /boot to one of the other drives but with every update I need to update those copies too so moving /boot to a usb stick seems the most logical option to me. I'm not sure if this can be done easily with raid/lvm/grub2 etc.

2nd question, I'm thinking of migrating the current 4 disk raid5 to a 6 disk raid6, would there be noticeable degradation in performance or is it about the same?

Comments, questions & solutions are welcome.
Old 11-02-2010, 01:03 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,798

Rep: Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158
If the box (BIOS) supports USB booting, should be do-able. Don't know I'd like it as the only long-term option though.
What about mirroring that boot partition ?. That way you at least get 2 disks you can survive over without you having to remember to copy it. Would need the MBR on the second be written so that it pointed to itself (i.e. its own disk) rather than the original (failing in this case) disk.
Ubuntu typically uses UUID to locate filesystems, so booting from either disk should be seamless.

No experience with software RAID, but I can't imagine RAID6 would be a major performance hit - unless you have consistently high write loads, and the disks are sharing channels/busses. Even then wouldn't be much more than RAID5 I'd reckon. All conjecture on my part as I said.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best way to move all my data from a 500GB HDD to a 1TB HDD? roders22 Linux - Newbie 5 07-27-2010 05:59 AM
Ubuntu 9.04 , changing hdd and wants move contents to new hdd BenPoza Ubuntu 2 01-16-2010 01:22 PM
move /boot to USB tkh23 Linux - General 3 09-21-2009 10:49 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
boot from USB HDD, no MOBO usb boot support magiconexxx Linux - Hardware 0 11-03-2004 12:38 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration