Reformatting /var
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > Reformatting /var




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Reformatting /var  
Madhusudan Singh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-21-05 10:46 PM

If I copy all the stuff over to some other partition to backup and then try
to unmount it (before mkfs) :

# umount /var
umount: /var: device is busy
umount: /var: device is busy

-f switch does not work either.

So, how do I reformat var here (which is reiserfs) to make it ext3 ?





[ Post a follow-up to this message ]



    Re: Reformatting /var  
Amarok


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-21-05 10:46 PM

Madhusudan Singh wrote:

> If I copy all the stuff over to some other partition to backup and then
> try to unmount it (before mkfs) :
>
> # umount /var
> umount: /var: device is busy
> umount: /var: device is busy
>
> -f switch does not work either.
>
> So, how do I reformat var here (which is reiserfs) to make it ext3 ?

Do it with a live-cd like knoppix





[ Post a follow-up to this message ]



    Re: Reformatting /var  
wittempj@hotmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-21-05 10:46 PM

Move it physically to another partition, then make your reiserfs an
ext3 fs - and then move it back?






[ Post a follow-up to this message ]



    Re: Reformatting /var  
Dave Uhring


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 01:45 AM

On Sun, 21 Aug 2005 18:40:58 -0400, Madhusudan Singh wrote:

> If I copy all the stuff over to some other partition to backup and then tr
y
> to unmount it (before mkfs) :
>
> # umount /var
> umount: /var: device is busy
> umount: /var: device is busy
>
> -f switch does not work either.
>
> So, how do I reformat var here (which is reiserfs) to make it ext3 ?

By booting from CD.






[ Post a follow-up to this message ]



    Re: Reformatting /var  
Madhusudan Singh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 01:45 AM

wittempj@hotmail.com wrote:

> Move it physically to another partition, then make your reiserfs an
> ext3 fs - and then move it back?

How does one do that ?

There can be only one var under /, remember ?





[ Post a follow-up to this message ]



    Re: Reformatting /var  
Alan Connor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 01:45 AM

On comp.os.linux.misc, in
<430902cd$0$18649$14726298@news.sunsite.dk>, "Madhusudan Singh"
wrote:

> If I copy all the stuff over to some other partition to backup
> and then try to unmount it (before mkfs) :
>
> # umount /var umount: /var: device is busy umount: /var: device
> is busy
>
> -f switch does not work either.
>
> So, how do I reformat var here (which is reiserfs) to make it
> ext3 ?

Use a rescue disk or remove the /etc/fstab entry for /var
and reboot?

(can you even boot without var?)

AC






[ Post a follow-up to this message ]



    Re: Reformatting /var  
Toby Inkster


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 12:46 PM

Madhusudan Singh wrote:

> # umount /var
> umount: /var: device is busy
> umount: /var: device is busy
>
> -f switch does not work either.

"umount -fl" might do it, but you'll probably crash a few processes by
formatting /var.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact






[ Post a follow-up to this message ]



    Re: Reformatting /var  
acd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 10:52 PM

Alan Connor wrote:

> On comp.os.linux.misc, in
> <430902cd$0$18649$14726298@news.sunsite.dk>, "Madhusudan Singh"
> wrote:
> 
>
> Use a rescue disk or remove the /etc/fstab entry for /var
> and reboot?
>
> (can you even boot without var?)
>
yes you can, using -b as flag to the boot parameters ( single user ).
all you need to do basically is going down to single user and then
unmount/reformat /var . this is done with "init 1" or "init s" depending on
your setup. don't need rescue cd's doing that
hope that helped,
--
acd





[ Post a follow-up to this message ]



    Re: Reformatting /var  
Alan Connor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 10:52 PM

On comp.os.linux.misc, in <4309e2b2@nntp.zianet.com>, "acd"
wrote:

(Earthlink's newsserver doesn't carry alt.os.linux.debian.)

> Alan Connor wrote:
> 
>
> yes you can, using -b as flag to the boot parameters ( single
> user ). all you need to do basically is going down to single
> user and then unmount/reformat /var . this is done with "init
> 1" or "init s" depending on your setup. don't need rescue cd's
> doing that hope that helped,
> -- acd

Thanks a lot,


AC






[ Post a follow-up to this message ]



    Re: Reformatting /var  
Alan Connor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 10:52 PM

On alt.os.linux.debian, in <3erOe.178$Mb5.59@newsread1.news.pas.earthlink.net>, "Alan Connor
" wrote:
>
> On comp.os.linux.misc, in <4309e2b2@nntp.zianet.com>, "acd"
> wrote:
>
> (Earthlink's newsserver doesn't carry alt.os.linux.debian.)
>

I was wrong about the above. My list is out-of-date. Sorry.

<snip>

AC





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:46 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register