LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-19-2006, 01:01 PM   #1
benr77
Member
 
Registered: Sep 2004
Location: London, UK
Distribution: Fedora Core 4
Posts: 59

Rep: Reputation: 15
Can I remount '/' partition without a reboot?


I have a server with the following partitions configured:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2             78234008   2242520  72017376   4% /
/dev/hda1                99043      8004     85925   9% /boot
none                    111368         0    111368   0% /dev/shm
I want to add quota support to the / partition, which requires the I modify /etc/fstab and then remount the partition in question. Can I remount this partition using:

Code:
mount -o remount /
Will this cause any problems considering the mount program itself is located on the partition which is being remounted? I'd like to do this without rebooting the machine if at all possible.

Thanks
 
Old 08-19-2006, 04:16 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
Yes, you can remount the root partition without rebooting with that command. Shouldnt have any problems.
 
Old 08-19-2006, 04:32 PM   #3
benr77
Member
 
Registered: Sep 2004
Location: London, UK
Distribution: Fedora Core 4
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks AAnarchYY.

What would happen if the remount failed for any reason? I assume then the system would be left without access to any binaries, and then require a reboot. Is this correct?
 
Old 08-21-2006, 09:50 AM   #4
mkirc
Member
 
Registered: Apr 2006
Location: Vienna-Austria
Distribution: Suse 10.x, Fedora, DSL
Posts: 63

Rep: Reputation: 15
Mount a CD with a Linux first, in case of problems remounting /-Filesystem you have at least the CD-Commands to work with.
Maybe you can solve the potential issue and remount the /-Filesystem then manually !
 
Old 08-21-2006, 09:55 AM   #5
benr77
Member
 
Registered: Sep 2004
Location: London, UK
Distribution: Fedora Core 4
Posts: 59

Original Poster
Rep: Reputation: 15
I'm not able to mount a Linux CD as this is a remote system.

I suppose I could copy a set of useful binaries to a temporary location on another partition instead.
 
Old 08-21-2006, 03:02 PM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
or if your looking to save space, throw busybox on a little loop device and then give it a shot. it should have all the commands you need.
 
Old 08-21-2006, 03:04 PM   #7
benr77
Member
 
Registered: Sep 2004
Location: London, UK
Distribution: Fedora Core 4
Posts: 59

Original Poster
Rep: Reputation: 15
Yes, thanks. I'd forgotten about busybox - I'll do exactly as you suggest. Cheers!
 
Old 08-22-2006, 12:12 AM   #8
mkirc
Member
 
Registered: Apr 2006
Location: Vienna-Austria
Distribution: Suse 10.x, Fedora, DSL
Posts: 63

Rep: Reputation: 15
My I ask: What is busybox ?Sounds interesting !?
 
Old 08-22-2006, 01:26 AM   #9
benr77
Member
 
Registered: Sep 2004
Location: London, UK
Distribution: Fedora Core 4
Posts: 59

Original Poster
Rep: Reputation: 15
Busybox is a collection of many unix utilities - it's designed for embedded systems with restricted resources. Each tool has cut down options, but includes the commonly used ones which still behave exactly like their GNU counterparts.

What is can be used for however, is mounting on a loopback device to provide a local copy of system tools that takes up little space - great for situations such as mine where I'm need to remount / or /usr on a remote system where I'm keen to avoid a reboot - and busybox would give me access to the mount command if my remount failed and I was unable to access the system mount binary.

http://www.busybox.net/about.html
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it safe to remount a partition on a working server dimsh Linux - Newbie 3 05-31-2006 06:58 AM
Partition Error "errors=remount-ro" xpix Ubuntu 4 02-17-2006 04:48 PM
Can't remount USB device unless I reboot servnov Linux - Newbie 5 10-29-2005 01:11 PM
How do I remount a network SMB share (on reboot) requiring a username & password BuckRogers01 Linux - Networking 1 07-09-2005 11:53 AM
remount root to new partition khutze Linux - Software 0 08-20-2002 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration