LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-13-2005, 05:14 PM   #1
andy101
LQ Newbie
 
Registered: Nov 2005
Location: England, UK
Distribution: Ubuntu, 6.06 Daper Drake
Posts: 10

Rep: Reputation: 0
can't repartiton hard drive for a dual boot because disk contains data near end


I want to install linux, but I still need to keep Windows because there are some apps I need that won't run under linux. I only have one hard disk (160gig).

I've been told that I need a different partition for Linux. I have tried resizing my NTFS windows partition using QT Parted (from a Knoppix Live CD) but it can't resize it because there isn't enough free space at the end of the partition.

I have tried using Windows disk defragger again and again (at least 10 times now, possibly 20 times) and each time it leaves something near the end. Though its not marked as "unmovable". Anyone know any way I can either get disk defrager to move the offending data nearer the front of the disk or to find out exactly which files are in the way (so i can erase them, if they're not important). I have over half my Hard drive free so I would have thought it would have plenty of space to put my files somewhere closer the beginning. Is windows disk defragger configured to leave stuff at the end of the disk to stop people installing dual boots or something because I have been repeatedly defragging my hard drive all day and whatever I do it always has the same small amount of data near the end. All I want is about 35 gig at the end to use for Linux.

Thanks
 
Old 11-13-2005, 05:21 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Norton Utilities and some other Norton tools tend to stick
stuff at the far end of the hdd and make them "system", so
defragging can't move them... also, can you find out (using
whatever tools windows has for that purpose) which files
they are and maybe manually move/remove them?


Cheers,
Tink
 
Old 11-13-2005, 08:30 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It might be possible to do it from a live cd, or a distro install cd if it allows you to boot a running Linux from the cd (as a live cd would do).

There is a set of utilities for working with ntfs partitions, called ntfsprogs. One of the set is ntfsresize. It allows you to resize the filesystem (not to be confused with resize the partition). While the man page doesn't specifically say ntfsresize will move those files at the end of the partition, that's the sense I got on reading the man page.

After resizing the filesystem, you then resize the partition with something like parted or cfdisk (I prefer cfdisk; it's easier to work with).

You must run ntfsresize and partitioner on an unmounted partition, and you MUST be careful to resize the partition to a size larger than the resized filesystem, or risk losing data.

So, with 160G to work with, resize the ntfs filesystem to 100G. Then resize the partition to 130G (creates a 30G buffer zone between the end of the filesystem and the end of the partition. After that, create a new 30G partition at the end of the disk for Linux, flag it as bootable, format it, write the partition table.

Then reboot into windows and defrag to expand the filesystem to the size of the windows partition.

Then install Linux. Try to boot Linux. If you get error messages about exceeding the 1024 cylinder limit, I didn't say any of this.
 
Old 11-14-2005, 01:52 PM   #4
andy101
LQ Newbie
 
Registered: Nov 2005
Location: England, UK
Distribution: Ubuntu, 6.06 Daper Drake
Posts: 10

Original Poster
Rep: Reputation: 0
Now I feel like an idiot, I tried QTParted again, only this time it worked! Shrank my NTFS partition. When I rebooted my machine however windows noticed I had done something to the hard disk and insisted on scanning it. After it finished and rebooted itself everything seems to work fine, or more precisely I haven't noticed any damage . not sure why it failed the first time, possibly user error grr. Now to add Linux, wish me luck . Will probably have some food first though.

Thanks for your help
 
  


Reply



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
Best method for dual boot with dual hard drive? aidano Linux - Software 2 11-16-2006 12:04 PM
Using Knoppix to rescre data from a non-boot hard drive satimis Linux - General 2 05-18-2005 09:27 AM
Dual Boot from hard disk using overlay sanil Linux - Hardware 1 02-23-2004 10:50 AM
Repartiton Hard Drive Epson710 Linux - Newbie 1 01-10-2004 04:17 PM
How dual boot 2 hard disk zaldyd Linux - Newbie 1 07-15-2003 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 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
Open Source Consulting | Domain Registration