Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
12-13-2004, 05:40 PM
|
#1
|
|
Member
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113
Rep:
|
Dual-boot Slackware and XP
My computer came with Windows XP pre-installed. The first partition is a 7 GB recovery partition. The second one is a 70 GB main XP partition. I would like to resize the 70 GB one without losing any data. It is NTFS. Then I want to create a partition to install Slackware on and possibly a swap partition. How can I do this for free without losing data? It's not worth $70 for Partition Magic which I would use once. Please help. Thanks.
|
|
|
|
12-13-2004, 05:54 PM
|
#2
|
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
if this is a new pc, i think it's faster/more reliable to re-install xp , while keeping space for Slack.
or is this not an option ?
and there are also evaluation-versions of PM. i believe, but i don't know if it's capable to shrink a ntfs-part.
egag
|
|
|
|
12-13-2004, 06:46 PM
|
#3
|
|
Member
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51
Rep:
|
I think qtparted can shrink an ntfs partition. But I'm not sure, since I didn't have to do it.
When you find something to shrink the NTFS partition, be sure to defragment that partition before you shrink it. Otherwise, you might be limited in the amount you can shrink it.
Good luck 
|
|
|
|
12-13-2004, 07:20 PM
|
#4
|
|
Member
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113
Original Poster
Rep:
|
I once had the Partition Magic demo but you couldn't do anything other than check the features. Also, I can't reinstall XP because I don't have the disc, the computer came with no disc (I don't think many do) and XP is preinstalled. I'll look more into qtparted. Thanks for the crazy fast answers. These forums are amazing!
|
|
|
|
12-13-2004, 07:41 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2004
Distribution: FC3
Posts: 11
Rep:
|
QTParted can shrink your NTFS partition for you. However, I used MEPIS and Knoppix Live CD's (both had QTParted) and they both froze when i tried to shrink it. I ended up just using 'fdisk' that comes on the Slackware install CDs. My situation was kinda similar in that Im using an HP laptop with a 40gig hard drive. It had one very small (<500MB) partition for something, another partition for hibernation, and the rest was for XP. Problem was that i had used 32 gigs of space...I set aside 5gigs for my Linux partitions (this is including swap, but since i've got 512M of RAM I decided i didn't need alot of swap). Im running into problems (just look for the most recent thread) but it seems like your on the right track. Just backup like everything on your computer (you can use a free 30-day eval of BackUpMyPC), and defrag like everyone else said. This post here was a great help to me. Hope I helped!
|
|
|
|
12-13-2004, 11:59 PM
|
#6
|
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091
Rep:
|
Quote:
|
I can't reinstall XP because I don't have the disc, the computer came with no disc (I don't think many do) and XP is preinstalled.
|
not sure what pc you're using, but with hp or compaq, they offer you the ability to create the recovery cd's by copying the files in the hidden recovery partition. this is accessed in "start>all programs>pc help and tools"
if you're not using an hp or compaq, i'd still check around to see if you don't have some sort of similar option...
|
|
|
|
12-14-2004, 02:13 AM
|
#7
|
|
Member
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144
Rep:
|
i use partition magic a lot for those kind of tricks if u want i can send u an iso.
|
|
|
|
12-14-2004, 10:59 AM
|
#8
|
|
Member
Registered: May 2004
Distribution: Slackware
Posts: 42
Rep:
|
I have done what you want to do with a new machine, and I didn't want to fork over the money for partition magic either because I only needed to do this on one machine. Before I became a slacker, I began my introduction to Linux with Mandrake. On Mandrake 9.x versions and up, there is a utility that does partiton resizing just like partition magic, and best of all, it's free. If you run Mandrake setup on the 1st installation CD, you will come to a screen (early on) where Mandrake wants to create and format partitons. If you choose the advanced tab, there is a slider that you can use to resize the NTFS partition without harming your XP installation or data. I left the small utility partition on my dell (hda0) alone, resized hda1 (XP partiton) then saved it and exited the Mandrake installation. You can then reboot with the Slack CD. I created and formatted my additional partitions (swap, root, etc.) through slack and never had any problems. I would suggest backing up the data on your NTFS partition to be safe. If you don't have, or can't borrow a Mandrake CD, you can download the ISO for CD1 and use it for the partitioning. I keep a Mandrake 10 (which sucked) CD on hand just for the partitioning utility. Oh yeah, before you can do all this without losing data, you have to defrag the NTFS partition in XP. Once defraged, reboot to the Mandrake CD immediatley.
Last edited by lukameen; 12-14-2004 at 11:08 AM.
|
|
|
|
12-14-2004, 01:00 PM
|
#9
|
|
Member
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662
Rep:
|
http://www.terabyteunlimited.com/
Consider BootIT NG. It's got a boot manager that I'm using instead of lilo, because of the graphical UI, and because it also has an extremely useful partition manager. I just go into maintenance mode for the parititon manager, and everything works.
It'll resize your NTFS partition. It also has the ability to create a compressed image of any partition, which I use as a "recovery" partition for my Windows XP install. It's also not crippleware (though it does nag you about registering if you use for more than 30 days)
|
|
|
|
12-14-2004, 05:51 PM
|
#10
|
|
Member
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113
Original Poster
Rep:
|
Quote:
Originally posted by detpenguin
not sure what pc you're using, but with hp or compaq, they offer you the ability to create the recovery cd's by copying the files in the hidden recovery partition. this is accessed in "start>all programs>pc help and tools"
if you're not using an hp or compaq, i'd still check around to see if you don't have some sort of similar option...
|
I have an HP a710e and I created the disks a couple weeks ago, but one question about them. Can they be used to make new partitions? I haven't tried them, but will they fix partitions? Thanks.
|
|
|
|
12-14-2004, 07:20 PM
|
#11
|
|
Member
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113
Original Poster
Rep:
|
Also, do people have experience with qtparted? I think I might try that (if Partition Magic .iso is to big for dial-up). This is what I got on the qtparted forum from someone.
Quote:
The partition resizing is relatively simple, just changing some bytes in the partition table, outside of the filesystem. Still, unfortunately this may be problematic on some Linux kernels if not the right partitioner software is used. In these cases (about 1-2% of all user cases) Windows will not boot because the disk geometry will be incorrect in the partition table. The solution is either changing the disk access to LBA in the BIOS, or if it can't be done (e.g. no BIOS access possible) then the partition table needs to be rewritten this way:
sfdisk -d /dev/hda | sfdisk --no-reread -H 255 /dev/hda
The magic value 255 might be instead 240 (or very rarely even something else).
In short, if you use the right tools then it's 100% safe (but no guarantee against power outage, so make backup). If you use bad tools then you can make Windows boot again, without data loss.
More info at http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html
|
What's your thoughts? Can I do it safely?
|
|
|
|
12-14-2004, 07:28 PM
|
#12
|
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
well... i think there's no safe way to resize partitions.
it's always advised to back-up important things.
egag
|
|
|
|
12-14-2004, 07:48 PM
|
#13
|
|
Member
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662
Rep:
|
Seriously, use bootit ng to resize the partition. I did it with my NT partition 12 times in the last 3 days, without any problems at all. (what can I say, I'm a glutton for punishment?) You can also run it off a boot floppy without needing to reserve space on the hdd for it.
I've also used it to completely wipe the hard drive, and reinstall Windows from an image. As long as the partition is in the right *place* in the partition tables, the size is irrelevant. So long as you're using a proper partition resizer.
|
|
|
|
12-14-2004, 08:46 PM
|
#14
|
|
Member
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113
Original Poster
Rep:
|
Downloading bootitng now but it looks like it runs of a floppy and I don't have a floppy drive. Can I change that or do something else? Also, are you talking WinNT or NTFS or does WinNT use NTFS? I don't want to bust my computer as I'm sure you can understand. Thanks.
|
|
|
|
12-14-2004, 08:52 PM
|
#15
|
|
Member
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662
Rep:
|
It'll require a floppy, AFAIK. Although, some of the other freeware on the site can be used to create a bootable CD. Those can probably be used to install BootIt NG to a CD drive.
Um, what genius decided you didn't need a floppy drive? If I needed a reason other than their moving my job to India (apparently they speak French in Bangladesh) not to buy an HP, that would be it....
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:35 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|