Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th June 2008, 03:23 AM
faa_70 Offline
Registered User
 
Join Date: Sep 2005
Posts: 28
single user mode

Hey,
I'm trying to extend the /usr volume on my mythbox...so once i log into single user mode, i try and umount /usr...but it keeps telling me it's busy...so i do a lsof | grep /usr to see what's running and i have a few processes running...can anyone tell me how to boot into single user mode so i can umount /usr

Thanks
Reply With Quote
  #2  
Old 4th June 2008, 03:46 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
I haven't done it in quite a while, however, what I used to do [if my memory isn't failing me] was edit my kernel boot line in grub and add the Number 1

your kernel boot line should look like this

...... 1 rhgb quiet

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 4th June 2008, 12:55 PM
faa_70 Offline
Registered User
 
Join Date: Sep 2005
Posts: 28
thanks...but that works getting me to single user mode...but if i try to umount /usr i still get /usr device is busy...so then i do a
lsof | grep /usr

and this is what i get

/usr/lib/locale/locale-archive
/usr/lib64/gconv/gconv-modules.cache
/usr/sbin/lsof
/usr/lib/locale/locale-archive
/usr/lib/locale/locale-archive
/usr/lib64/gconv/gconv-modules.cache
/usr/lib/locale/locale-archive
/usr/sbin/lsof
/usr/lib/locale/locale-archive

so how do i stop these processes???
Reply With Quote
  #4  
Old 4th June 2008, 02:04 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
How is /usr mounted? Is it in an lvm? You don't need to umount ext3 partitions to expand them, see 'man resize2fs'
Reply With Quote
  #5  
Old 5th June 2008, 02:39 PM
faa_70 Offline
Registered User
 
Join Date: Sep 2005
Posts: 28
well it's a logical volume...do it's /dev/VG00/usrLV that i'm trying to expand...and if do a resize2fs /dev/VG00/usrLV it tells me /dev/VG00/usrLV is a mounted filesystem and i can't expand it...

so then i do a umount /dev/VG00/usrLV and it tells me mount: /usr: device is busy
Reply With Quote
  #6  
Old 5th June 2008, 03:47 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
You need to use lvextend first to extend the logical volume, see this howto which shows you how to do if for the whole of '/' without unmounting. You may not need to create a new pv if you have space in the volume group.

http://forums.fedoraforum.org/forum/...d.php?t=154625
Reply With Quote
  #7  
Old 5th June 2008, 04:13 PM
faa_70 Offline
Registered User
 
Join Date: Sep 2005
Posts: 28
doesn't work...i did the lvextend but when i do a resize2fs it tells me i can't do it...

could it be that resize2fs is too old?? i don't have the current one installed...it's like version 1.38
Reply With Quote
  #8  
Old 5th June 2008, 04:20 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
can you post the output of mount, vgdisplay and lvdisplay.

Also what is the exact error from resize2fs and can you post the exact command line you are using.

If it's not an etx3 partition and you have to umount then you can still do it from a livecd session,
Reply With Quote
  #9  
Old 5th June 2008, 04:57 PM
faa_70 Offline
Registered User
 
Join Date: Sep 2005
Posts: 28
okay...the exact command and error are:

# resize2fs /dev/VG00/usrLV
resize2fs 1.38 (30-Jun-2005)
/dev/VG00/usrLV is mounted: can't resize a mounted filesystem!


mount:
/dev/md0 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/mapper/VG00-homeLV on /home type ext3 (rw)
/dev/mapper/VG01-videoLV on /myth/video type ext3 (rw)
/dev/mapper/VG01-movieLV on /myth/movie type ext3 (rw)
/dev/mapper/VG01-musicLV on /myth/music type ext3 (rw)
/dev/mapper/VG00-usrLV on /usr type ext3 (rw)
/dev/mapper/VG00-varLV on /var type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

vgdisplay:
--- Volume group ---
VG Name VG01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.75 GB
PE Size 32.00 MB
Total PE 14904
Alloc PE / Size 12480 / 390.00 GB
Free PE / Size 2424 / 75.75 GB
VG UUID oBU6Cq-DlqV-KvU0-vb0s-8yeC-qEh6-5WEdNd

--- Volume group ---
VG Name VG00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 68.66 GB
PE Size 32.00 MB
Total PE 2197
Alloc PE / Size 948 / 29.62 GB
Free PE / Size 1249 / 39.03 GB
VG UUID yKXukD-CeGa-qBCD-vupP-otiL-6zoA-skBeqk


lvdisplay:
--- Logical volume ---
LV Name /dev/VG01/movieLV
VG Name VG01
LV UUID S80lAj-hf2A-l7qy-nnvz-Xz0u-R01G-9L23fw
LV Write Access read/write
LV Status available
# open 1
LV Size 275.00 GB
Current LE 8800
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VG01/videoLV
VG Name VG01
LV UUID tDMw8c-8SHF-0mz5-Rnsi-jA4d-bpKJ-aJgzd4
LV Write Access read/write
LV Status available
# open 1
LV Size 50.00 GB
Current LE 1600
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

--- Logical volume ---
LV Name /dev/VG01/musicLV
VG Name VG01
LV UUID OPB0q9-IdoT-1lkd-2e0G-wz8Y-rgJB-EsoDeZ
LV Write Access read/write
LV Status available
# open 1
LV Size 65.00 GB
Current LE 2080
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2

--- Logical volume ---
LV Name /dev/VG00/homeLV
VG Name VG00
LV UUID iv0Nsy-ec0r-dHzh-ekAq-mGZo-Ece4-H1Ryv5
LV Write Access read/write
LV Status available
# open 1
LV Size 4.88 GB
Current LE 156
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3

--- Logical volume ---
LV Name /dev/VG00/usrLV
VG Name VG00
LV UUID ygBWam-4lQk-BY6Q-DcFN-wLAt-6BmV-c81tYs
LV Write Access read/write
LV Status available
# open 1
LV Size 19.88 GB
Current LE 636
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:4

--- Logical volume ---
LV Name /dev/VG00/varLV
VG Name VG00
LV UUID HAGI1o-OyK5-UIln-YTU7-0UMo-6MH4-3zmB2e
LV Write Access read/write
LV Status available
# open 1
LV Size 4.88 GB
Current LE 156
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
Reply With Quote
  #10  
Old 5th June 2008, 05:27 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
your resize2fs binary is very old, eg in F8 I get

Code:
[root@localhost ~]# resize2fs
resize2fs 1.40.4 (31-Dec-2007)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-p] device [new_size]
So maybe that is the problem, assuming you did the lvextend successfully, the format of the command is something like

Code:
lvextend -L +10G /dev/VolGroup00/LogVol00
and it will be successful if there are enough free physical extents in the volume group.

Are you running an old version of Fedora? You could install an updated resize2fs but if your OS is old it's probably better to boot up a livecd and do the resize from there.
Reply With Quote
  #11  
Old 5th June 2008, 06:22 PM
faa_70 Offline
Registered User
 
Join Date: Sep 2005
Posts: 28
yes it's old...it's fc5...and i can't update which is why i need to fix it...i can't update even from a disk because there isn't enough space...so i need to extend the lv...but i can't because something is still running under /usr even when i'm in single user mode...
Reply With Quote
  #12  
Old 5th June 2008, 09:21 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
If you don't want to do it from a livecd, try a lazy umount or forced umount in single user mode (options -l and -f) - or alternatively do it from rescue mode on the install disk
Reply With Quote
  #13  
Old 5th June 2008, 11:58 PM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
I'm not sure you're properly in single-user mode. I think you have to use

init=1

or

single

to get into it. If you don't want to mess with the root password (or have forgotten it)

init=/bin/bash

is supposed to get you to a bash prompt without a password, although I've never had to do it. Don't know if all the partitions are mounted or not. I think just /boot and / are, but don't quote me on this.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
Reply

Tags
mode, single, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only login in single-user mode MALDATA Using Fedora 12 4th January 2009 07:05 PM
Block Single User Mode nitsmrinal Security and Privacy 2 13th November 2007 07:24 PM
Single-user mode kirios Security and Privacy 14 2nd October 2007 07:44 PM
Single User Mode webfedor Using Fedora 7 2nd June 2004 05:30 AM


Current GMT-time: 21:43 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat