Attach a new partition to Linux FS
I just discovered a 2.5 GB unformatted space on my hard disk.I formatted it to ext2 type using parted program.But I am at a loss as to how I would be able to attach it to my existing Linux file system,i.e., I want to move my home directory to the new partition.
My puzzlement is, if I copy all the files and directories to the new partition and then remount it as home, won't my existing files under /home will all be orphaned?.Once I remount the new partition at /home,I wouldnot really be able to access ant files under the old home,and not able to erase them,which means the space on the disk occupied by them will not be recovered for use. Does anybody know? Parameshwara Bhat |
I would love a reply to this
how would you go about mounting home to a different partition anyways what filesystem should be chosen where should additional partitions for storage purposes be mounted those are the questions I would like answered |
Lets see,
example, mount /dev/hda3 /home hda being your primary hard disk, and the 3 being the third partition on it. But I dont know what your current setup looks like. You may need to copy your current /home to somewhere else before mounting it like that. To have it mounted at boot time you need to edit the /etc/fstab file. Try man. Eg, man mount |
I managed it.
How I did was like this. I mounted new partiotion at /data. Being root who has his own home directory at /root,I moved all home folders to /boot,but retained /home directory.Now I edited fstab to mount the new partition at /home,and rebooted.Everything turned out perfect just as I expected. I have been working in my own home diretory moved like this and fsck reports less than 0.5% of disk fragmentation.I do not know how it manages it! P Bhat |
All times are GMT -5. The time now is 11:21 PM. |