LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-05-2010, 08:07 PM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
repartition without losing windows recovery partition


I got a new laptop today (yay) with windows 7 on it. I want to keep a small windows partition, just in case I need it for something. Anyway, I know how to use fdisk, and am comfortable installing on a disk without data I need to maintain.. but this new computer came with 5 (!) windows partitions. I don't know where to start.

I don't mind reinstalling windows after partitioning if I have to, but I really don't want to screw up the recovery partition. Any clues on where to start or what to look for? Or what NOT to do?

It looks like "my computer" has two partitions listed (c: and d: ). I guess I could just take note of the size of these two partitions, free up the partitions that match in fdisk, then repartition that space and install everything. Any reason that might not work?

I realize now that the output from fdisk would probably be helpful. I need to reboot to do that, so I'll edit with the information when I have it.

fdisk output:
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8e0eee9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800    7  HPFS/NTFS
/dev/sda2              26       13590   108953600    7  HPFS/NTFS
/dev/sda3           13590       17532    31660032    f  W95 Ext'd (LBA)
/dev/sda4           17532       19458    15471448   12  Compaq diagnostics
/dev/sda5           13590       17532    31659008    7  HPFS/NTFS

Last edited by mattca; 03-05-2010 at 08:30 PM.
 
Old 03-05-2010, 08:24 PM   #2
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
Even if you don't repartition, I would recommend making an image of that recovery partition. (Using your choice of software... o&o diskimage, ghost, etc - even the free maxtor maxblast has some form of an image option). Even if you burn the image(s) to DVD and hide them in a safe box somewhere, you never know when they'll come in handy.

On the last 2 laptops I bought, I did exactly that, and in both cases I have used the "images" I made when I got the laptops to restore things that got messed up. I made one of the images before even booting that laptop to windows for the first time.

There are also certain bootable "rescue disks" (or live OS's) that have "Partition Editor" on them, which I think uses gparted or similar to let you resize partitions. You don't specifically have to use wipe and re-create those windows partitions - you might get away with resizing them instead.

(But again, I'd recommend that you make some kind of clone so you can recover 100% of the partions, including the MBR and other hidden data on that drive.)
 
Old 03-05-2010, 08:27 PM   #3
Scott271
Member
 
Registered: Nov 2006
Location: New York
Distribution: Slackware-14.1 / Mint
Posts: 103

Rep: Reputation: 21
I'll throw in my experience. I bought a Toshiba (the one in my sig) and it came with Vista on it with the whole recovery partition and some others. I knew right away I wanted at least Zenwalk and Ubuntu on it, as well as Vista.

Mine came with the option to burn recovery DVDs, and that's what I did. I had a Rocker's Team version of Vista I wanted to put on, in addition to the two Linux OSs. I'm at the point now where I just run Slackware and Ubuntu, but barely touch the Ubuntu partition. I still have those recovery DVDs if I need them too.

One more thing. I had originally purchased a Toshiba that did not play nicely with Linux. I burned the DVDs before I did anything, so once I installed Linux and it didn't work, I just ran the recovery DVDs and brought it back to Best Buy. They wanted to know what my problem was because it "appeared" I hadn't even used it.

I say burn the DVDs then partition it the way you want. Hell be damned!

Good luck,
Scott
 
Old 03-05-2010, 08:35 PM   #4
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Hangaber View Post
Even if you don't repartition, I would recommend making an image of that recovery partition.
Oh, good idea. I added my fdisk output above.. any idea which might be the recovery partition? Maybe I should just make images of all 5.

I've never made disk images before.. dd should do the trick, no? And it's best to do each partition separately, rather than the whole disk in one go, right?

Also, I can just put the images on a usb drive, right? ie, there is no reason I have to burn them to a CD?
 
Old 03-05-2010, 08:39 PM   #5
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Scott271 View Post
Mine came with the option to burn recovery DVDs, and that's what I did.
Yeah, good call. I should probably do that.

But for some reason I was under the impression that the recovery CDs windows makes simply "roll back" the system to a previous state.. and use the recovery partition to reinstall. Maybe it varies...

But more importantly, burning CDs takes time, I don't think I have any CDs anyway, and I just want to play with my new toy
 
Old 03-05-2010, 08:54 PM   #6
Scott271
Member
 
Registered: Nov 2006
Location: New York
Distribution: Slackware-14.1 / Mint
Posts: 103

Rep: Reputation: 21
Understand. They're always fun to play with when they're new.

The recovery DVDs, at least the ones I'm use to, will reinstall to factory defaults. Just like it came off the shelf. I had burned them, run GPartEd to set up all my partitions, and began installing. RT Vista on sda1, Zenwalk on sda2, Ubuntu on sda3, /swap on sda5, /home on sda6. I had graphic issues with the first laptop and this arrangement, so I ran the recovery discs and brought it back. It was like brand spanking new.

Scott
 
Old 03-05-2010, 09:00 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That's pretty ugly - you'll probably also want to keep the diag partition (a primary) at the end of the disk. The obvious place to steal some space is sda2. But if you do that you'll have to grow the extended "down". Then adding logicals may change partition numbers. Not sure how Windoze will react to that.
If you pinch some space from sda6, you avoid that, but may not have much to spare. Depends how much you need - use the Win7 disk manager to shrink it. Gparted liveCD is my favourite for general partitioning.
 
Old 03-05-2010, 10:24 PM   #8
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by syg00 View Post
That's pretty ugly
Yes, very much so. And I just noticed that two of the partitions (3 & 5) cover the same sectors. What's up with that? This is so bizarre. I might just make images just in case and scrap the whole thing.

Ideally I'd scrap it all, repartition it the way I want, then reinstall windoze. But I can't do that without a windoze install disk. I should ask around and see if I can fine one.. I have the product key, so it (theoretically) shouldn't be a problem.

Quote:
you'll probably also want to keep the diag partition (a primary) at the end of the disk.
I assume you mean sda4.. why do I want that at the end of the disk?

Quote:
Gparted liveCD is my favourite for general partitioning.
I've only used fdisk, which doesn't seem to have a high-level option to resize. If I delete a partition, then create a new, smaller, one in its place, does that accomplish resizing in fdisk?
 
Old 03-05-2010, 10:55 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
sda3 is an extended partition - a container for logical partitions. I suggest you go look for a presentation on partitions and partition table - you need to understand how primary, extended and logical partitions differ before you start screwing around.

The diags may be invoked by a "secret" key combination - it'll probably be looking for that partition. And it might need to be right where it is. Who knows. It's at the highest numbered cylinders - the "end" of the disk (partitions are not in order).

Don't use fdisk to make partitions smaller unless you know how to make the filesystems the requisite size *first*. Use gparted as suggested, it'll handle things for you.
 
Old 03-06-2010, 09:23 AM   #10
rmjohnso
Member
 
Registered: Mar 2006
Location: Wisconsin
Distribution: Slackware64-Current
Posts: 294

Rep: Reputation: 43
Quote:
Ideally I'd scrap it all, repartition it the way I want, then reinstall windoze. But I can't do that without a windoze install disk. I should ask around and see if I can fine one.. I have the product key, so it (theoretically) shouldn't be a problem.
I'm not sure what manufacturer you went with, but most will sent you the recovery CDs/DVDs if you call and ask them. They might charge you ~$10 or so. It's worth a shot. I always make a point of getting all of the recovery disks when getting a new laptop, even though every manufacturer now loves these stupid recovery partitions.
 
Old 03-06-2010, 10:17 AM   #11
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by syg00 View Post
sda3 is an extended partition - a container for logical partitions. I suggest you go look for a presentation on partitions and partition table - you need to understand how primary, extended and logical partitions differ before you start screwing around.
Thanks, yeah good call. Clearly I need to learn more about partitioning!
 
Old 03-06-2010, 10:20 AM   #12
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by rmjohnso View Post
I'm not sure what manufacturer you went with, but most will sent you the recovery CDs/DVDs if you call and ask them. They might charge you ~$10 or so. It's worth a shot. I always make a point of getting all of the recovery disks when getting a new laptop, even though every manufacturer now loves these stupid recovery partitions.
Yeah they are stupid. What happens if your hard drive dies?? I went with lenovo... I think I'll do exactly what you suggest, because I really don't want my drive partitioned like this. I'd rather put windoze where I want it. After all, I have the product key and that's what you pay for when you buy windoze. I should even be able to use someone else's CD.

Thanks!
 
  


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
I want to boot off of a recovery windows partition but can't because grub is gone! Willrandship Linux - Newbie 4 10-07-2009 08:18 PM
Need to copy a windows recovery partition from one HD to another. Chaves Slackware 3 09-03-2008 06:49 PM
Repartition a HD without losing data ArianaPantalaimon Linux - Newbie 3 08-23-2008 12:28 AM
Repartition hard drive w/o losing data, centOS 5 sir-lancealot Linux - Server 3 06-05-2008 10:51 AM
Install to laptop with Windows recovery partition piltdown2006 Linux - General 1 09-20-2006 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:27 PM.

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