LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools
Old 07-21-2005, 02:18 PM   #1
rebelscum
Member
 
Registered: Jul 2005
Distribution: Slackware 10.1
Posts: 44
Thanked: 0
resize existing partition w/o losing data


[Log in to get rid of this advertisement]
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.
rebelscum is offline     Reply With Quote
Old 07-21-2005, 02:22 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282
Thanked: 1
I used parted once, and it worked (no lost datas)

You could install slackware parted package from /extra
keefaz is offline     Reply With Quote
Old 07-21-2005, 02:26 PM   #3
phil.d.g
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, CentOS & FreeBSD
Posts: 994
Thanked: 0
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.
phil.d.g is offline     Reply With Quote
Old 07-21-2005, 02:56 PM   #4
rebelscum
Member
 
Registered: Jul 2005
Distribution: Slackware 10.1
Posts: 44
Thanked: 0

Original Poster
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.
rebelscum is offline     Reply With Quote
Old 07-21-2005, 04:46 PM   #5
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 429
Thanked: 0
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.
dhave is offline     Reply With Quote
Old 07-21-2005, 04:49 PM   #6
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Distribution: Ubuntu
Posts: 1,465
Blog Entries: 1
Thanked: 1
Use parted, BUT BACKUP YOU DATA FIRST.
ctkroeker is offline     Reply With Quote
Old 07-21-2005, 05:55 PM   #7
jcombs_31
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 104
Thanked: 0
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.
jcombs_31 is offline     Reply With Quote
Old 07-21-2005, 06:37 PM   #8
phil.d.g
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, CentOS & FreeBSD
Posts: 994
Thanked: 0
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
phil.d.g is offline     Reply With Quote
Old 07-21-2005, 06:44 PM   #9
jcombs_31
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 104
Thanked: 0
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.
jcombs_31 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 12:54 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration