anirudh vij schreef:
> hmm...and what if i want to mount it as my /usr partition (/usr in
> blfs system that is).
> as most programs,libs etc get installed in either /usr or
> /usr/local,this would be best.and the new packages could also be put
> there.
> what will happen to the existing stuff in /usr if i do a mount -t ext3
> /dev/sda? /usr
> will a
> cp -ra /usr /mnt/sda?(/mnt/sda? is existing mount point of the
> partition in the blfs sysytem) be enough to tranferr everything from
> the present /usr to the new (to be
> will i have to unmount from /mnt before mounting to /usr.
> pardon the large number of questions. I just dont want to take a risk
> with my blfs system.it took too much time to build to destroy with a
> mount!

(Your large number of questions? You indians are always so polite :) )
Like Lauri said, (and you probably picked that up already) if you mount 
some existing directory to a different location, then files will become 
unavailable (not deleted). Seeing as these are valuable libraries, 
unmounting and whatever else will likely fail (but could still work 
because libraries are loaded in memory?) if you simply mounted your 
bigger drive as /usr straight away.
I think your best/safest bet is to mount the bigger disk as something 
new, like /mnt/usrbackup and then copy everything over from /usr. After 
that is done, you could change your /etc/fstab (setting /usr to 
/dev/sda?) and reboot.
If that worked you still need to clean up your old /usr ofcourse, which 
is unreachable as long as the new disk is mounted over that.
I have never done this, so I don't know whether your system will 
complain, but you might need a livecd to get rid of your old /usr files.
Simply unmounting /dev/sda? and rm -rf /usr might not work, but you can 
at least safely try.

Cheers, Warren
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to