Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Can't partition main drive, in use....
New Posts  All Forums:Forum Nav:

Can't partition main drive, in use....

post #1 of 17
Thread Starter 
So I have my entire hard disk formatted as ext 4 and now I would like to partition it so I can put windows on it. I can't do it from the windows installer because windows doesn't like to recognise linux formats.

I've tried using Disk Utility, GParted, and KDE Partition Manager and they all tell me I cant partition the main drive cause it is in use. I don't have any access to live cd's or usb's. Does anyone know how I can do a partition? I'm using ub10.10 btw. Thanks.
post #2 of 17
WHAT ABOUT pARTED mAGIC?
TheFlyer
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX8120 GIGABYTE UD5 REV1 XFX HD6950 G.Skill RipJaws Z 4x4GB 
Hard DriveOptical DriveCoolingOS
Vertex 4 128GB Sony Optiaric XSPC Rasa 240 7/64/ULT 
MonitorKeyboardPowerCase
Benq G2420HD 24" LCD yep NZXT Hale 750 NZXT Phantom White 
MouseMouse Pad
yep nope 
  hide details  
Reply
TheFlyer
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX8120 GIGABYTE UD5 REV1 XFX HD6950 G.Skill RipJaws Z 4x4GB 
Hard DriveOptical DriveCoolingOS
Vertex 4 128GB Sony Optiaric XSPC Rasa 240 7/64/ULT 
MonitorKeyboardPowerCase
Benq G2420HD 24" LCD yep NZXT Hale 750 NZXT Phantom White 
MouseMouse Pad
yep nope 
  hide details  
Reply
post #3 of 17
Quote:
Originally Posted by thx1138 View Post
So I have my entire hard disk formatted as ext 4 and now I would like to partition it so I can put windows on it.
Wrong order... you can't partition a drive that is formatted.

1. Remove the entire partition
2. Use the whole drive with the windows installer.
3. ...
4. Profit.

Windows refuses to do anything that is not FAT or NTFS.
Guess your to dual-boot? Then you have to install a boot-loader as-well or install windows first then install Linux on an other partition.
Edited by Aeogenia - 2/6/11 at 12:34pm
post #4 of 17
Thread Starter 
Quote:
Originally Posted by Aeogenia View Post
Wrong order... you can't partition a drive that is formatted.

1. Remove the entire partition
2. Use the whole drive with the windows installer.
3. ...
4. Profit.

Windows refuses to do anything that is not FAT or NTFS.
Guess your to dual-boot? Then you have to install a boot-loader as-well or install windows first then install Linux on an other partition.
There should be no reason I couldn't make the ext4 smaller and clear the other space with 0x0 and then install windows to it and use then use the pre-loaded grub boot manager to choose which OS to boot.

I know that much.....
post #5 of 17
Try downloading and using UBootin to create a bootable USB to live boot into windows or Linux distro to format the HDD while not in use.
Edited by Rebelord - 2/6/11 at 12:42pm
SixthElement
(17 items)
 
   
CPUMotherboardGraphicsRAM
i7-4770k Z87-GD65 MSI R7950 TF3 RipjawsX 8G 1600 CL9 
Hard DriveHard DriveOptical DriveCooling
OCZ Vertex 3 Western Digital Caviar Black LG DVD Multi / Lightscribe H100 
OSMonitorKeyboardPower
Win 7 Ult x64 Samsung 2494SW CM Storm Quickfire Reds Corsair HX750 
CaseMouseMouse PadAudio
550D G700 XTrac Ripper XXL Onkyo TX-SR804 
Audio
Bowers & Wilkins 686 BookShelfs 
CPUMotherboardGraphicsRAM
AMD 1090t 990FXA-UD7 MSI R7950 TF3 TBD 
Hard DriveOSPowerCase
Samsung 20G Win 7 Ultimate Corsair CM650 Fractal Design XL 
  hide details  
Reply
SixthElement
(17 items)
 
   
CPUMotherboardGraphicsRAM
i7-4770k Z87-GD65 MSI R7950 TF3 RipjawsX 8G 1600 CL9 
Hard DriveHard DriveOptical DriveCooling
OCZ Vertex 3 Western Digital Caviar Black LG DVD Multi / Lightscribe H100 
OSMonitorKeyboardPower
Win 7 Ult x64 Samsung 2494SW CM Storm Quickfire Reds Corsair HX750 
CaseMouseMouse PadAudio
550D G700 XTrac Ripper XXL Onkyo TX-SR804 
Audio
Bowers & Wilkins 686 BookShelfs 
CPUMotherboardGraphicsRAM
AMD 1090t 990FXA-UD7 MSI R7950 TF3 TBD 
Hard DriveOSPowerCase
Samsung 20G Win 7 Ultimate Corsair CM650 Fractal Design XL 
  hide details  
Reply
post #6 of 17
get yourself a copy of ubuntu or other linux distro. boot into live cd and open gparted. select hard disc you want to partition and shrink down the file system that is formatted and in use. then format the unallocated space after the file-system shrink. and there you have it.
valkyrja
(28 items)
 
mini destroyer
(17 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600k asrock z77 professional-m evga GTX670 (reference) patriot viper extreme division 4 
Hard DriveHard DriveHard DriveOptical Drive
OCZ Vertex 4 SSD Seagate Momentus  Western Digital My Book ASUS SDRW-08D2S-U 
CoolingCoolingCoolingCooling
XSPC EX120 JINGWAY DDC12V PRO 800LPH PUMP swiftech micro res assorted fittings 
CoolingCoolingCoolingCooling
XSPC RAZA  EK FC670 GTX ACETAL CSQ EK FC670 BACKPLATE XSPC EX120 
CoolingCoolingCoolingCooling
XSPC EX120 YATE LOON D12SM-12 YATE LOON D12SM-12 YATE LOON D12SM-12 
OSMonitorKeyboardPower
Windows 7 Ultimate x64  AOC E2343FK Logitech G110 Corsair AX850 
CaseMouseMouse PadAudio
Silverstone ps07 x7 xl-790h Corsair MM200 Pioneer VSX-D914 
CPUMotherboardGraphicsRAM
intel core i7-3615QM apple mac mini 6,1 logic board intel hd 4000 patriot mac series 
Hard DriveHard DriveCoolingOS
corsair neutron gtx 240 ssd hitachi apple hdd stock apple cooling osx 10.8.4 mountain lion 
MonitorKeyboardPowerCase
asus vs238 apple wired usb keyboard stock apple psu mac mini 6,1 late 2012 
MouseMouse PadAudioAudio
apple mighty mouse corsair 200m presonus firestudio presonus audiobox usb 22vsl 
Audio
samson resolve A6 studio monitors 
  hide details  
Reply
valkyrja
(28 items)
 
mini destroyer
(17 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600k asrock z77 professional-m evga GTX670 (reference) patriot viper extreme division 4 
Hard DriveHard DriveHard DriveOptical Drive
OCZ Vertex 4 SSD Seagate Momentus  Western Digital My Book ASUS SDRW-08D2S-U 
CoolingCoolingCoolingCooling
XSPC EX120 JINGWAY DDC12V PRO 800LPH PUMP swiftech micro res assorted fittings 
CoolingCoolingCoolingCooling
XSPC RAZA  EK FC670 GTX ACETAL CSQ EK FC670 BACKPLATE XSPC EX120 
CoolingCoolingCoolingCooling
XSPC EX120 YATE LOON D12SM-12 YATE LOON D12SM-12 YATE LOON D12SM-12 
OSMonitorKeyboardPower
Windows 7 Ultimate x64  AOC E2343FK Logitech G110 Corsair AX850 
CaseMouseMouse PadAudio
Silverstone ps07 x7 xl-790h Corsair MM200 Pioneer VSX-D914 
CPUMotherboardGraphicsRAM
intel core i7-3615QM apple mac mini 6,1 logic board intel hd 4000 patriot mac series 
Hard DriveHard DriveCoolingOS
corsair neutron gtx 240 ssd hitachi apple hdd stock apple cooling osx 10.8.4 mountain lion 
MonitorKeyboardPowerCase
asus vs238 apple wired usb keyboard stock apple psu mac mini 6,1 late 2012 
MouseMouse PadAudioAudio
apple mighty mouse corsair 200m presonus firestudio presonus audiobox usb 22vsl 
Audio
samson resolve A6 studio monitors 
  hide details  
Reply
post #7 of 17
Thread Starter 
Quote:
Originally Posted by Rebelord View Post
Try downloading and using UBootin to create a bootable USB to live boot into windows or Linux distro to format the HDD while not in use.
Quote:
Originally Posted by ELEKTRIK_BLUE View Post
get yourself a copy of ubuntu or other linux distro. boot into live cd and open gparted. select hard disc you want to partition and shrink down the file system that is formatted and in use. then format the unallocated space after the file-system shrink. and there you have it.
Quote:
Originally Posted by thx1138 View Post
I don't have any access to live cd's or usb's.
Thanks anyway
post #8 of 17
Quote:
Originally Posted by thx1138 View Post
There should be no reason I couldn't make the ext4 smaller and clear the other space with 0x0 and then install windows to it and use then use the pre-loaded grub boot manager to choose which OS to boot.

I know that much.....
You cant do anything to a partition that is mounted, so you are stuck with using a live OS or reinstall w/ the partition already made.
post #9 of 17
Thread Starter 
Quote:
Originally Posted by Aeogenia View Post
You cant do anything to a partition that is mounted, so you are stuck with using a live OS or reinstall w/ the partition already made.
That's ridiculous, I can't believe windows can do that but linux can't.
post #10 of 17
Quote:
Originally Posted by thx1138 View Post
That's ridiculous, I can't believe windows can do that but linux can't.
It's for security. Stability? I'm not sure, I just know that there is a good reason for it. =P RiserFS can do it, so an BtrFS, on-line shrink and enlarge.

http://www.tummy.com/journals/entrie...0070730_123311

I guess Initrid has a good use after all!

You can also use the same disc that you used to install Linux, that's basically a LiveCD situation.

There are other ways, but it's extremely risky. I don't exactly remember how I went about doing it but you have to do it cmd for cmd without errors. There is no Undo, no "Ops" moments with those situations so I don't usually do them or recommend them.
Edited by mushroomboy - 2/6/11 at 1:23pm
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Can't partition main drive, in use....