Re: [gentoo-user] [OT] moving mountpoint to folder
On 12/13/05, michael higgins [EMAIL PROTECTED] wrote: Hello, all. So, my question is, does anyone know what will happen if I try to umount -l, remove the /usr/lib mountpoint, and rename /usr/lib2 to /usr/lib? It would seem that there'd be no problem as long as I don't need to log into a new shell? Going the other way wasn't a problem, as I just renamed the old folder and mounted the partition on a new one. That should work, I think. If nothing else, you should be able to boot with init=/bin/bash to get a really basic environment with nothing mounted or running. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] moving mountpoint to folder
On Wednesday 14 December 2005 09:33, michael higgins wrote: So, my question is, does anyone know what will happen if I try to umount -l, remove the /usr/lib mountpoint, and rename /usr/lib2 to /usr/lib? It would seem that there'd be no problem as long as I don't need to log into a new shell? Going the other way wasn't a problem, as I just renamed the old folder and mounted the partition on a new one. Any suggestions appreciated. If you are willing to take the system down for a few minutes, try booting with a copy of knopix or your gentoo livecd, and doing your filesystem mods that way. Then you can be more comfortable with the sanity of your os. after all there is so much important stuff in there. Or maybee drop to single user mode, that may work. -- Your responsibility as a parent is not as great as you might imagine. You need not supply the world with the next conqueror of disease or major motion picture star. If your child simply grows up to be someone who does not use the word collectible as a noun, you can consider yourself an unqualified success. -- Fran Lebowitz, Social Studies -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] moving mountpoint to folder
On 2005-12-13 12:33 -0800, [EMAIL PROTECTED] wrote: So, my question is, does anyone know what will happen if I try to umount -l, remove the /usr/lib mountpoint, and rename /usr/lib2 to /usr/lib? It would seem that there'd be no problem as long as I don't need to log into a new shell? Going the other way wasn't a problem, as I just renamed the old folder and mounted the partition on a new one. If it was me, I'd probably simply reboot from a live CD (the Gentoo installation CD comes to mind), make the changes that cannot be done while the system is running normally, and reboot. -- Michael Kjörling, [EMAIL PROTECTED] - http://michael.kjorling.com/ * ASCII Ribbon Campaign: Against HTML Mail, Proprietary Attachments * * . No bird soars too high if he soars with his own wings . * pgpitTZr8q8vJ.pgp Description: PGP signature
Re: [gentoo-user] [OT] moving mountpoint to folder
Richard Fish wrote: On 12/13/05, michael higgins [EMAIL PROTECTED] wrote: Hello, all. So, my question is, does anyone know what will happen if I try to umount -l, remove the /usr/lib mountpoint, and rename /usr/lib2 to /usr/lib? It would seem that there'd be no problem as long as I don't need to log into a new shell? Going the other way wasn't a problem, as I just renamed the old folder and mounted the partition on a new one. That should work, I think. If nothing else, you should be able to boot with init=/bin/bash to get a really basic environment with nothing mounted or running. -Richard Or you may try doing it from the CD. That is how I move things around, just to make sure I don't get one of those pisky file is busy or locked things. Dale :-) -- To err is human, I'm most certainly human. I have four rigs: 1: Home built; Abit NF7 ver 2.0 w/ AMD 2500+ CPU, 1GB of ram and right now two 80GB hard drives. 2: Home built; Iwill KK266-R w/ AMD 1GHz CPU, 256MBs of ram and a 4GB drive. 3: Home built; Gigabyte GA-71XE4 w/ 800MHz CPU, 128MBs of ram and a 2.5GB drive. 4: Compaq Proliant 6000 Server w/ Quad 200MHz CPUs, 128MBs of ram and a 4.3GB SCSI drive. All run Gentoo, all run folding. #1 is my desktop, 2, 3, and 4 are set up as servers. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] moving mountpoint to folder
michael higgins wrote: Hello, all. Some time ago, I moved my /usr/lib folder to a separate partition to net some space on /. Now, I want to fix my partitions on that second drive, so I've moved all the linux folders to / again. (The /usr/lib files are in a folder called /usr/lib2 for now.) The problem I've come across this time is that so many things are using files in /usr/lib, I can't unmount it. Stopping all services leaves me with my login being the only thing still hanging the umount. So, my question is, does anyone know what will happen if I try to umount -l, remove the /usr/lib mountpoint, and rename /usr/lib2 to /usr/lib? It would seem that there'd be no problem as long as I don't need to log into a new shell? Going the other way wasn't a problem, as I just renamed the old folder and mounted the partition on a new one. Any suggestions appreciated. Already solved but waiting for something to finish so here's my version: #mkdir /mnt/tmp #mount -obind / /mnt/tmp #cp -a /usr/lib/* /mnt/tmp/usr/lib #umount /mnt/tmp #rm -r /mnt/tmp #umount -l /usr/lib/ At this point restart as much services as possible is a good idea (but not really needed). The trick is done by bind option _not_ binding mounted subdirectory (i.e. after step 2 /mnt/tmp/usr/lib should be empty) as opposite of rbind that bind also all mounted subdirectoryes (and is useful sometimes with /dev) -- gentoo-user@gentoo.org mailing list