Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-07-2006, 07:21 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
rm -rf /*

Ok ive got a partition [/dev/hdb6] i just converted to ext3 and i want to remove everything on this partition.

Its mounted as /backup and its basicly a mirror of / (but its old and useless now)

Whats the best way to go about this?

I was reading and i figured executing rm -rf /backup* as root would delete everything under /backup with no questions asked.

Then i read that it might actualy delete everything from / too and i really dont want to have to endure that.

please help me out and tell me the best way to entirely clean this partition and only this partition.
Old 10-07-2006, 07:28 AM   #2
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
I'd simply just format that partition:

/sbin/mkfs -t ext3 /dev/hdb6
You may have to unmount it first.
Old 10-07-2006, 07:36 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Sweet, that worked out well.

Basicly my bottle crashed at the thought of executing rm -rf /backup * and watching EVERYTHING on my system vanish.

Thanks for your help extrasolar, much obliged.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 PM.

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