FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-19-2010, 06:58 PM
Allan Gottlieb
 
Default unmounting /usr in single user mode

I am unable to umount /usr in single user mode on an old system.
I believe the system is baselayout-1 and is amd64.
The trouble is open files, at least some of which appear to be related
to bash and locale (see the files below).

I use grub. On the kernel line can I specify sh instead of bash?
I know sh is linked to bash, but hope that it will not use locale.

I need to umount /usr so that I can resize it (I use lvm and have
already extended the logical volume). Specifically i want to execute
umount /usr
resize2fs /dev/vg/usr
mount /usr

(I realize I will probably need an e2fsck).

On my new system (baselayout-2), this was easy as /usr is not mounted
when rebooting into single user mode.

thanks,
allan

output of lsof | grep usr

bash 1907 root mem REG 254,0 1772320 245830 /usr/lib64/locale/locale-archive
bash 1907 root mem REG 254,0 26050 230642 /usr/lib64/gconv/gconv-modules.cache
bash 2125 root mem REG 254,0 1772320 245830 /usr/lib64/locale/locale-archive
bash 2125 root mem REG 254,0 26050 230642 /usr/lib64/gconv/gconv-modules.cache
lsof 2149 root txt REG 254,0 131144 92097 /usr/bin/lsof
lsof 2149 root mem REG 254,0 1772320 245830 /usr/lib64/locale/locale-archive
grep 2150 root mem REG 254,0 1772320 245830 /usr/lib64/locale/locale-archive
grep 2150 root mem REG 254,0 26050 230642 /usr/lib64/gconv/gconv-modules.cache
lsof 2151 root txt REG 254,0 131144 92097 /usr/bin/lsof
lsof 2151 root mem REG 254,0 1772320 245830 /usr/lib64/locale/locale-archive


output of fuser /usr/lib64/locale/locale-archive

1907 2125

and 1907 was /bin/bash
 

Thread Tools




All times are GMT. The time now is 07:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org