LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-20-2004, 11:25 PM   #1
Balkman
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Slackware 10
Posts: 65

Rep: Reputation: 15
I need to resize my partition


I'm running slackware 9.1 with 2 partitions... a main partition and a swap partition.

60 gig harddrive
58 gig main
2 gig swap (i understand it's a lot of swap)

All i want to do is split my main partition into 2 partions so i can add windows XP pro on it, but without losing all my files. Is that even possible?

Please respond thanks
 
Old 08-20-2004, 11:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
I'm running slackware 9.1 with 2 partitions... a main partition and a swap partition.

60 gig harddrive
58 gig main
2 gig swap (i understand it's a lot of swap)

All i want to do is split my main partition into 2 partions so i can add windows XP pro on it, but without losing all my files. Is that even possible?

Please respond thanks
What file-system are you using?


Cheers,
Tink
 
Old 08-20-2004, 11:42 PM   #3
Balkman
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Slackware 10
Posts: 65

Original Poster
Rep: Reputation: 15
i could be wrong but i think it's ntfs
 
Old 08-20-2004, 11:47 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Copy & paste the output of
mount
please ... slack DEFINITELY wouldn't run
of ntfs :) (unless you were an ueber-guru
and did some serious hacking ;})


Cheers,
Tink
 
Old 08-20-2004, 11:53 PM   #5
Balkman
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Slackware 10
Posts: 65

Original Poster
Rep: Reputation: 15
/dev/hda1 on / type reiserfs (rw)
/dev/hdc on /mnt/cdrom type iso9660 (ro,nosuid,nodev)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
proc on /proc type proc (rw)
usbfs on /proc/bus/usb type usbfs (rw)

it's reiserfs sorry
 
Old 08-20-2004, 11:58 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
In this case you have (to the best of my knowledge)
only two choices:
a) back-up everything (probably using partimage and
a networked machine)
or
b)
buy and use the Paragon or Arconis Partition Managers

I'm not aware of any freeware or open-source tools
that will allow resizing ReiserFS partitions.


Cheers,
Tink
 
Old 08-21-2004, 12:00 AM   #7
Balkman
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Slackware 10
Posts: 65

Original Poster
Rep: Reputation: 15
i hate my life then

thanks tho
 
Old 08-21-2004, 12:04 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I just thought of another alternative: :}

If the machine has enough grunt, get
vmware or qemu and run windows in a
virtual machine ;)


Cheers,
Tink
 
Old 08-21-2004, 04:57 AM   #9
seaelf
Member
 
Registered: Apr 2004
Location: Virginia
Distribution: Slackware 10.1 & 12.0
Posts: 66

Rep: Reputation: 16
question about resizing also

Tink-
I have a similiar problem except I have I hard drive that was partitioned with windoze as well as linux. I would like to remove the windoze and increase my linux partition. This is what I get when I type the command "mount":
/dev/hda3 on / type ext3 (rw)
/dev/hda1 on /win1 type vfat (rw)
/dev/hda2 on /win2 type vfat (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
proc on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
----
I used fdisk to make the partitions, so would I just delete the vfat partititions and make another ext3 partition or can I increase the size of the existing ext3?
Thanks and cheers
Neil
 
Old 08-21-2004, 03:33 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Re: question about resizing also

Quote:
Originally posted by seaelf
Tink-
I have a similiar problem except I have I hard drive that was partitioned with windoze as well as linux. I would like to remove the windoze and increase my linux partition. This is what I get when I type the command "mount":
/dev/hda3 on / type ext3 (rw)
/dev/hda1 on /win1 type vfat (rw)
/dev/hda2 on /win2 type vfat (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
proc on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
----
I used fdisk to make the partitions, so would I just delete the vfat partititions and make another ext3 partition or can I increase the size of the existing ext3?
Thanks and cheers
Neil
Two things:

Firstly: the problem is not similar at all, instead
of hi-jacking an existing thread you should be
firing off a new one for your problem :)

Secondly: ext2/3 can be handled by parted (qtparted
if it needs to be graphical) ... it's included in Knoppix,
for example. You can't do that resize to the mounted
partition.


Cheers,
Tink
 
Old 08-21-2004, 05:27 PM   #11
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
OK, I want to deal with the problem of re-sizing a Reiser filesystem.

If what Tink says is true (and, coming from his authority, it most probably is), it's a disappointing aspect of the otherwise wonderul Reiser.

I have a suggestion though. With *any* partitioning, you should have a backup of all your sensitive files. I hope you weren't looking for lazy way out of that.

You could keep them on a CD, by using cdrecord on your cdwriter (if you have one). Alternatively you buy a USB stick or extra hard-disk, and just copy it all over. At some stage you will have a full back-up, and then you can clean install the whole thing, after partitioning.

I say this, because windowsXP likes being on the very first partition. And it's good practice to have back ups.

Another option, if you can delete unnecessary files and shave down your current slackware set up, is to split the swap partition itself, say leave it at 256M, which would allow you to create a middle of 1.75G, onto which you could transfer files from your Partition No.1. I admit 1.75G might not be enough, but I think that's possible with swap, as it's temporary stiorage only.

You will have to turn swap off, and umount it for that operation of course. but there are commands for that.
 
Old 08-21-2004, 06:19 PM   #12
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
I just saw the following article which tells you how to put all your swap into RAM (check http://kerneltrap.org/node/view/3660) meaning that you could try use the full 2GB to try and fit your slack into.

I know that's asking alot, but, as I mentioned with efficient trimming you could copy over all the essentials into the 2GB, and then carve up your 58G partition in any way you want.

However, back-ups are always to be recommended-
 
Old 08-21-2004, 07:50 PM   #13
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I just used the systemrescue cd and qtparted to resize and move a reiserfs partition. Seems pretty d a r n easy to me.
First, I resized it down, commit changes.
Don't forget to leave a swap partition in place.
Then I moved it to the right side of the scale. I moved it to the right because Balkman stated that he wanted to install XP. It is usually easier to put Windows systems on the beginning side of a disk aka /dev/hda1.
When you are going to move the partition to the right, you need to make sure to resize it small enough so the entire partition will fit entirely to the right of where it ends.
In other words, if you have a 60GB drive, resize it down to less than 30GB or the move operation won't work.

After you successfully move things to the right, you can install MS in the normal position. Just make sure to not let MS take over the entire drive.
Also, you will need to edit your /etc/fstab and /boot/menu.lst or lilo.

Edit: I was using system rescue cd 0.2.15 . I don't know if the earlier versions work as well for this.

Last edited by homey; 08-21-2004 at 08:01 PM.
 
Old 08-21-2004, 08:56 PM   #14
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
Well that would mean that resizing ReiserFS *is* possible. Sure it was Reiser, yes? Have you also tested? Interesting one. qtparted is only a gui, it must be using a Reiser tool behind the scenes. I'm tempted to try it out myself, if I had more time.
 
Old 08-21-2004, 09:44 PM   #15
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Yep, it's possible. Yes Qtparted is just a GUI front end. I have done the command line version of resize_reiserfs and fdisk but I thought the GUI tool would be easier to explain.
I don't have any particular attraction to reiserfs but just trying to be helpful.
 
  


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
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
is it possible to resize partition? Itachi Linux - General 3 09-13-2005 11:00 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 08:48 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM

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

All times are GMT -5. The time now is 07:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration