<div class="gmail_quote">On Sat, Sep 25, 2010 at 18:56, Scott Raun <span dir="ltr"><<a href="mailto:sraun@fireopal.org">sraun@fireopal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sat, Sep 25, 2010 at 05:54:54PM -0500, Jon Schewe wrote:<br>
> On 09/25/2010 02:47 PM, Scott Raun wrote:<br>
> > I lucked into a couple of bigger hard-drives (as in, larger than any<br>
> > of the disks I've currently got in the system). I don't have enough<br>
> > open drive-bay space to just add them. I can add one at a time. I'd<br>
> > like to move my boot drive to one of the new drives, and then pull the<br>
> > current boot drive, working my way through. I've currently got:<br>
> ><br>
> > hda (~120 MB)<br>
> > hda1 holds /<br>
> > hdb (~500 MB)<br>
> > hdb1 holds /home<br>
> > hdd (~20 MB)<br>
> > hdd1 holds swap<br>
> > hdd2 holds /spool<br>
> ><br>
> > So, I want add what will be hde, make it bootable, copy everything<br>
> > from hda to it (preserving permissions, users, etc.), take out hda &<br>
> > boot from hde (maybe hde now becomes hda?), etc.<br>
> ><br>
> > Anyone have a pointer to a How-To?<br>
> ><br>
> ><br>
> Pretty much just copy data and then setup grub.<br>
> for each partition:<br>
> mkdir /new/partition<br>
> cd /partition<br>
> find . -print0 | cpio -0pmd /new/partition # if you have acls on your<br>
> filesystem you'll want to use pax instead of cpio, I can get you that<br>
> commandline too<br>
<br>
I don't have anything beyond basic rwxrwxrwx permissions, but I do<br>
have those. It doesn't look like cpio will preserve them?<br>
<br>
I haven't had to deal with this on a Linux box before - will I need to<br>
deal with any open files issues? Per ps -ae, I've got the following<br>
processes running at the moment:<br>
<br>
acpid dovecot init kthreadd rpc.mountd<br>
afpd dovecot-auth kacpid lockd rpc.statd<br>
aio/0 emacs kacpi_notify mailmanctl rsyslogd<br>
apache2 events/0 kblockd/0 migration/0 smbd<br>
ata/0 exim4 kgameportd mutt sort<br>
ata_aux famd khelper nfsd sshd<br>
atalkd getty khubd nfsd4 su<br>
bash hald kjournald nmbd udevd<br>
CMD hald-addon-acpi kondemand/0 papd uniq<br>
column hald-addon-inpu kpsmoused pdflush watchdog/0<br>
cron hald-addon-stor kseriod portmap winbindd<br>
cupsd hald-runner ksoftirqd/0 ps<br>
cut imap-login ksuspend_usbd python<br>
dbus-daemon inetd kswapd0 rpciod/0<br>
<br>
Some I know I don't have to worry about - emacs, sort, uniq, ps, cut,<br>
and column are all due to this e-mail message. I should be able to get<br>
rid of most of the k* processes by changing to a lower run-level - I<br>
never use X on this box anyway. The rest? I know I can manually shut a<br>
bunch of them down (apache2, the imap stuff, probably cups, exim,<br>
samba).<br>
<br>
> done<br>
> grub<br>
> grub> device(hd0) /dev/hde<br>
> grub> root(hd0,0) # if boot is first partition on drive hde<br>
> grub> setup(hd0)<br>
> grub> quit<br>
> shutdown<br>
> pull other drives and make sure hde is now first drive to BIOS<font color="#888888"><br></font></blockquote><div><br>Boot from a live cd such as slax or ubuntu, then create your partitions and rsync the data. This should preserve your permissions, ownership, etc. <br>
</div></div><br><br clear="all"><br>-- <br>-Shawn<br>