LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-21-2005, 01:18 PM   #1
rebelscum
Member
 
Registered: Jul 2005
Distribution: Slackware 10.1
Posts: 44

Rep: Reputation: 15
resize existing partition w/o losing data


Is there a way to resize an existing partition with out losing any data on it. I remember something similar on mandrake a long time ago but I have not been able or brave enough to try it on slack.

I don't like the way my disk is set up, it's too complicated and wastes a lot of space. I have several windows as well as linux partitions and I wanted to rearrange it with out reinstalling anything. Thanks.
 
Old 07-21-2005, 01:22 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I used parted once, and it worked (no lost datas)

You could install slackware parted package from /extra
 
Old 07-21-2005, 01:26 PM   #3
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
I don't know about resizing, most find it doesn't work correctly.

I had this same problem a few days ago and wanted to repartition my drive so I popped in the slackware installation disk 1 and booted it when I got to the prompt where you normally run setup or cfdisk I mounted both my hdds and copied everything from the 'system' hdd to my 'public' hdd (which contains mp3's, films, software for the rest of the family) I then used cfdisk to repartition my main hdd and mounted the new partitions and copied all the files back. I then rebooted the computer and booted the cd again, this time I used a kernel on the CD to boot the hdd installtion when that had booted I re-ran lilo to restore the MBR, removed the CD and rebooted and the jobs a good'un.
 
Old 07-21-2005, 01:56 PM   #4
rebelscum
Member
 
Registered: Jul 2005
Distribution: Slackware 10.1
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks, I'll give that a try. I did a little research and found a cool looking gui called QTParted. It should be pretty simple. It's exactly what I was looking for.
 
Old 07-21-2005, 03:46 PM   #5
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
QtParted is a nice front-end to parted, but you still have to be careful. I've used these tools maybe six times, and five times everything went perfectly. Once it didn't, however. Thanks to fsck and some fairly recent backups, I didn't fare too badly, but be forewarned. Back up as much as you can.

I think it's a good idea to run QtParted from the System Rescue CD. That way you know for sure that you haven't accidentally mounted one of the partitions that you're trying to resize. I find the System Rescue CD good to have on hand, anyway. You can find an iso at http://www.sysresccd.org/. When you boot with the SysResc CD, you'll get instructions on-screen about how to run QtParted.

Wiser heads don't even use these tools, but for many of us, it's hard to resist. I'm using my WindowsXP installation less and less often, and I'm always wanting more space for Slack, so I just recently resized my WinXP partition (NTFS) using QtParted. That gave me a nice little chunk of disk space for Slackware. Rather than resizing my Slack partition, which I thought was pushing it a little, I just created a new Linux partition where I stash a lot of extra stuff.
 
Old 07-21-2005, 03:49 PM   #6
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Use parted, BUT BACKUP YOU DATA FIRST.
 
Old 07-21-2005, 04:55 PM   #7
jcombs_31
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 104

Rep: Reputation: 15
Funny, I was thinking about something similar, but I want to grab more space from my /home directory for /.

My partions are like this

/
/swap
/usr
/opt
/home

Most of the / partition is being used from images in my /var/www/htdocs for my website. Anyway, to do this, do I need to boot to something other than my root partition, like a cd as was mentioed?

I've used partition magic on windows and from what I remember it rebooted teh computer and did the partition before windows booted.

Anyway, if someone could provide a step by step or more details I'd be interested.
 
Old 07-21-2005, 05:37 PM   #8
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You need to boot off of a LiveCD or slackware CD1 has enough tools to do this because you will need to unmount the root partition at one point and you can't do that if your running your OS from it
 
Old 07-21-2005, 05:44 PM   #9
jcombs_31
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 104

Rep: Reputation: 15
Quote:
Originally posted by phil.d.g
You need to boot off of a LiveCD or slackware CD1 has enough tools to do this because you will need to unmount the root partition at one point and you can't do that if your running your OS from it
That's what i figured, thanks.
 
  


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
Resize existing and add another partition with LVM donv2 Linux - Newbie 3 04-27-2005 04:23 AM
is there a way to re-install the OS without losing existing data? pdmackenzie Linux - Software 4 10-30-2004 07:43 PM
How to resize the Mandrake partition without losing all my data? Cezaro Mandriva 2 09-28-2004 09:14 AM
Install Slack 10, resize partitions w/o losing data Hal Linux - General 4 09-03-2004 10:00 AM
Resize existing windows ntfs partition in mandrake Stoic Mandriva 8 10-17-2003 11:18 AM

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

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