LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-16-2009, 06:57 AM   #1
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Rep: Reputation: 33
considering dumping windows partion


hi folks,

I thought I knew how to do this, but after thinking about it for several nights, its more tricky than I thought. Heres my partion table now:


Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 swap
/dev/sdb2 63013348 9867152 49945248 17% /
/dev/sdb3 50394996 47674508 160532 100% /home

/dev/sda1 9992396 4521596 5470800 46% /media/disk

I have grub on this lot, for when I wanted to use windows. So when I installed windows, It had to be first. Then I put linux on.

So how would I go about removing windows, it will be ext3, and munted as /home/ftp , yep, thats where all the space has gone!

And reconfiguring grub, to auto start linux?
 
Old 09-16-2009, 07:16 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Must admit I don't understand your angst.
Removing Windoze will be easy - mkfs.ext3; if you want to be neat about it, also change the partition id from 0x07 to 0x83 but it isn't absolutely necessary.
For grub, simply change the default line - delete the (Windoze) stanza altogether wuld make sense.
(an "fdisk -l" listing would have been more useful)
 
Old 09-16-2009, 07:38 AM   #3
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by syg00 View Post
Must admit I don't understand your angst.
Removing Windoze will be easy - mkfs.ext3; if you want to be neat about it, also change the partition id from 0x07 to 0x83 but it isn't absolutely necessary.
For grub, simply change the default line - delete the (Windoze) stanza altogether wuld make sense.
(an "fdisk -l" listing would have been more useful)
there you go:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1244 9992398+ 7 HPFS/NTFS

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001c8f3

Device Boot Start End Blocks Id System
/dev/sdb1 14345 14593 2000092+ 82 Linux swap / Solaris
/dev/sdb2 1 7970 64018993+ 83 Linux
/dev/sdb3 7971 14344 51199155 83 Linux

Partition table entries are not in disk order

--------

it's the grub bit I'm concerned about,
 
Old 09-16-2009, 07:49 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Quote:
Originally Posted by johnh10000 View Post
it's the grub bit I'm concerned about,
The windows partition is irrelevant to a standard grub install. Grub may be in the MBR of that disk, but that isn't within any partition - Windoze, Linux or otherwise.
 
Old 09-16-2009, 08:17 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
To reformat your windows partition you can use mkfs.ext3, or mke2fs -j. You might want to check the -m option and set it to zero, since this device is going to serve as storage only. The drive seems to be /dev/sda1

To "fix" grub, you edit /boot/grub/grub.conf (or menu.lst) you can delete the windows section altogether, then set the "default" line to whatever entry you want to be the default. The count starts in zero, not 1.

To make that drive to mount permanently in /home/ftp, you need to add a line like this to your fstab:

Code:
/dev/sda1 /home/ftp auto defaults,umask=000 0 0
You can try playing with umask to get different permissions. "auto" can be changed by either ntfs or ntfs-3g. ntfs comes with the stock kernel, it doesn't have write support except for very minimal capabilities. ntfs3g is a 3rd party driver that has full r/w support, you need to install it separately if your OS don't bundle it by default.
 
Old 09-16-2009, 08:20 AM   #6
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by syg00 View Post
The windows partition is irrelevant to a standard grub install. Grub may be in the MBR of that disk, but that isn't within any partition - Windoze, Linux or otherwise.
Oh yeah, mbr is not in a partion , duh!

ok cheers
 
Old 09-16-2009, 08:55 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I would also recommend altering the partition type via fdisk; it'll save confusion later.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Dumping Windows for Mac OS ... Or Linux? LXer Syndicated Linux News 0 11-17-2007 07:50 AM
LXer: Dumping Windows for Mac OS ... Or Linux? LXer Syndicated Linux News 0 11-17-2007 04:11 AM
dumping windows pass from linux raven4d Linux - Networking 2 07-06-2006 06:36 AM
Novell is dumping KDE, so I'll be dumping SuSE KimVette SUSE / openSUSE 10 11-12-2005 09:09 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 01:51 PM


All times are GMT -5. The time now is 10:48 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