LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-07-2006, 06:21 AM   #1
Chroma
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, 06:28 AM   #2
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

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

Code:
/sbin/mkfs -t ext3 /dev/hdb6
You may have to unmount it first.
 
Old 10-07-2006, 06:36 AM   #3
Chroma
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.
 
  


Reply


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




All times are GMT -5. The time now is 07:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration