LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 06-12-2003, 05:13 PM   #1
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Rep: Reputation: 30
erasing windows partition


hey i think i am good enough to go to windows fully but i wanted to know i am using mandrake 9.1 iis there anyway i can erase my windows partition from mandrake without reinstallation?
 
Old 06-12-2003, 05:46 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
While running Linux:

Unmount Windows partition

umount /dev/hd<XX>

Zero the partition

dd if=/dev/zero of=/dev/hd<XX>

make sure you type the right partition, this wipes the partition

Make your new filesystem

mkreiserfs /dev/hd<XX>

Make mount point

mkdir /mnt/free-at-last

Mount it

mount /dev/hd<XX> /mnt/free-at-last

Now you can use the new hard drive space.

Edit your bootloader of the virus loader and /etc/fstab to reflect your new filesystem and it's ready for reboot.
 
Old 06-12-2003, 07:37 PM   #3
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
i know what you are saying, but can't i somehow make it part of hda2, which is the linux parition right now?

also..... "Edit your bootloader of the virus loader and /etc/fstab to reflect your new filesystem and it's ready for reboot."........ newb explain and thx
 
Old 06-12-2003, 08:34 PM   #4
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
hda2 is a partition.
Your (ex)windows partition is a partition.
Linux uses a filesystem in which any partition can be mounted anywhere on the filesystem.

# Linux filesystem structure
Directory Navigation Help File
Filesystems, Directories, and Devices Help File
Proper Filesystem Layout

Like I said, why not mount it some where and use it for somethig?

Mandrake uses lilo for a bootloader

LILO mini HOWTO
Multiboot with LILO HOWTO
LILO, Linux Crash Rescue HOW-TO
Installing a bootloader

Your lilo configuration file has the info for the different operating systems you boot. Get rid of the stanza mentioning windows, save the file, then command /sbin/lilo for the changes to take effect.


# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
Install Midnight Commander by commanding:
urpmi mc

Last edited by fancypiper; 06-12-2003 at 08:35 PM.
 
Old 06-15-2003, 01:11 PM   #5
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
Shrinking or growing filesystems is a tricky proposition. There is free software to handle this, but I'm willing to bet that you have linux as hda2 and windows as hda1.... its nearly impossible to add free space to the *beginning* of a partition.

You may need to go out and buy Partition Magic to do this (you'll need to delete the windows partition, move the linux partition to the front of the drive, then make the linux partition bigger to fill the space.). Be sure that whatever you do, you do not change the numbering of the partition! If you change the partition number, /etc/fstab will be incorrect and you won't be able to boot into linux to change it (also, your bootloader will point at the wrong partition to boot!)
 
Old 06-15-2003, 02:13 PM   #6
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
what i did was i reinsatlled mandrake (ANDI CANT GET MY VMWARE TO WORK NOW DAMMIT !!!!! ) but what it does is it deltes the windows parition and it breaks the mandrake partition into the mandrake you had, and the windows parition joines your mandrake parittion but in a different directory such as /home
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
Question about erasing XP partition ctt1wbw Linux - General 2 01-23-2005 03:58 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
What is the code to copy a file from my windows partition to my linux partition? THEBIGFISH Linux - Newbie 3 03-15-2004 10:14 PM
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-28-2003 11:16 PM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration