<br><br><div class="gmail_quote">On Sat, Sep 25, 2010 at 6:54 PM, Shawn Fertch <span dir="ltr"><<a href="mailto:sfertch@gmail.com">sfertch@gmail.com</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;">
<div class="gmail_quote"><div><div></div><div class="h5">On Sat, Sep 25, 2010 at 18:56, Scott Raun <span dir="ltr"><<a href="mailto:sraun@fireopal.org" target="_blank">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></div><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></blockquote><div><br>On the live-cd theme, why not use clonezilla to copy your boot drive, and then possibly use the fsutils live cd to expand the partition on a bigger drive and then replace your /dev/hda - boot off of it and rsync the data over from your other smaller drives. <br>
<br>-Rob<br> <br></div></div>