Victims of Military abductions surfaced due to Writ of Amparo
Full text of the writ of Amparo can be found here

Printed copies available, email rbahaguejr [at] gmail [dot] com

Wednesday, April 05, 2006

Moving installed partitions to usb harddisk

I am running a p2 333 machine and has a limited support for big capacity harddisks.

I moved /usr and /home to a usb harddisk. Here are the steps.

1. Prepare the target partition. format it using mk2fs.ext3 /dev/device.
2. Create a mount directory on /mnt. Mount the new partition.
$mkdir /mnt/home
$mount -t ext3 /dev/sda3 /mnt/home
3. copy old files to the newly mounted target partition.
$cd /home
$find . -depth -print0 | cpio --null --sparse -pvd /mnt/home/
4. Once the system finished copying, unmount the target partition.
$umount /mnt/home
5. Edit /etc/fstab to reflect the mounts. Below is my new fstab. the last two lines are the relevant details for the new mounts.


kasamang-debian:/home/nyor# cat /etc/fstab
# /etc/fstab: static file system information.
#
#
/dev/hda5 / ext3 errors=remount-ro 0 1
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/sda1 /mnt/sda1 ntfs ro,users,exec,iocharset=iso8859-1,umask=0 0 0

/dev/sda2 /usr ext3 nodev,nosuid 0 0
/dev/sda3 /home ext3 nodev,nosuid 0 2
kasamang-debian:/home/nyor#

6. move the old files.
$mv /home /homeold
$mkdir /home
7. mount the new partition
$mount /home

8. so far i have not got errors.

ref: 1. Ubuntu user blog

No comments: