LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-09-2015, 04:37 PM   #1
shadolink
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Rep: Reputation: Disabled
repartition slackware boot drive


Hi guys, I'm not very good with linux despite being a programmer for a good few years now , just seems like such a hassle when it comes to installing binary packages and just getting any sort of work done. Which is why I need to install windows on a second partition. However, right now I can't figure out how to re partition my slackware boot drive, the current structure of my install is like this

sda1 - swap drive 16 gb
sda2 - slackware boot 600 gb

I would like to be able to re partition my sda2 into 2 different ones so I can put windows on the second and be able to run programs that don't work on linux or wine. I'd be very grateful for any help. I tried installing gparted but after I run "installpkg gparted.tgz" I can't find it anywhere. I also tried cfdisk and fdisk but they both don't come up with an option for adding a new partition. I also tried going on a live cd and using fdisk there but it won't even open there.
 
Old 11-09-2015, 05:22 PM   #2
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current with grub2
Posts: 385
Blog Entries: 3

Rep: Reputation: 97
repartition slackware boot drive

As it is your system partition, you can't use gparted without booting for a removable media...

You could have a try with this :

http://gparted.org/liveusb.php

Last edited by Tonus; 11-09-2015 at 05:26 PM.
 
Old 11-09-2015, 05:49 PM   #3
shadolink
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you

I will give it a shot thanks very much I'll try it right now
 
Old 11-09-2015, 09:40 PM   #4
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib." FreeBSD.
Posts: 3,225
Blog Entries: 1

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
First, I haven't bought a copy of ms-anything since XP, so this may no longer apply, but back in those days, ms-windows had to be in the first partition on the drive and you had to install it before installing any other operating system, as it trashes the boot sector. Well, I guess you could install it with another OS on the drive and then go back and re-install the Linux boot manager. As I said, this maybe out dated information.
Hopefully, someone will come along and confirm or provide up to date installation instructions.

Last edited by cwizardone; 11-17-2015 at 08:27 AM. Reason: Typo.
 
Old 11-10-2015, 03:21 PM   #5
shadolink
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
basically when I try to resize the main partition it gives me this little error
https://www.dropbox.com/s/48tj28vnmd...ails2.htm?dl=0

it says "Please run 'e2fsck -fy /dev/sda2' to fix the filesystem" so I do and it gives me the same one after that too.
 
Old 11-10-2015, 08:34 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,387
Blog Entries: 6

Rep: Reputation: Disabled
Looking at the partitions you have:

Code:
sda1 - swap drive 16 gb
sda2 - slackware boot 600 gb
16GB is overkill for a swap partition. 1 to 2GB is sufficient.

You can not modify your partitions on a mounted system.
Your best bet is to download G-parted Live and use that to re-partition your partitions.
http://gparted.org/download.php

-::-Before you repartition perform a backup in case something goes wrong-::-
 
Old 11-10-2015, 10:00 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Windows needs it's boot files on a primary partition and you can then install the system to a logical partition if you have no primary available. Not necessary in your case as you only have two partitions. The link below is to the GParted manual which should give you all the information you need to use it after downloading it and burning it as a bootable CD.

http://gparted.org/display-doc.php3Fname%3Dhelp-manual

Last edited by yancek; 11-11-2015 at 09:06 AM. Reason: add link
 
Old 11-10-2015, 10:23 PM   #8
shadolink
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
yea I tried using it but it fails everytime when I try to resize the main slackware boot drive
 
Old 11-10-2015, 11:08 PM   #9
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current with grub2
Posts: 385
Blog Entries: 3

Rep: Reputation: 97
repartition slackware boot drive

What about trying to resize your swap partition? As said by Ztcoracat, yours is very big. I would wipe it out to have first for Windows (14G) and second for swap (2G), then reinstall bootloader.
 
Old 11-11-2015, 12:43 AM   #10
shadolink
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
I thought it was 16 gb but it's only 8. I wish I could resize this so I could still use linux when I need it but I think I might have to wipe the whole drive.
 
Old 11-11-2015, 09:42 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,387
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by shadolink View Post
I thought it was 16 gb but it's only 8. I wish I could resize this so I could still use linux when I need it but I think I might have to wipe the whole drive.
If you wipe the whole HDD install Windows first. Shrink the Windows partition and than install your Linux distribution. It worked like a charm for me.

If you can't boot into Windows after your fresh Linux install it's because you have to update-grub.
Code:
sudo update-grub
 
Old 11-12-2015, 09:11 AM   #12
shadolink
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
thanks

thanks I will do that , it's such a shame I can't resize my linux partition and keep it.
 
Old 11-12-2015, 05:40 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,387
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by shadolink View Post
thanks I will do that , it's such a shame I can't resize my linux partition and keep it.
Your Welcome:-
 
  


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
How to repartition drive if I can't boot from CD or floppy? jrtayloriv Linux - General 4 01-22-2008 11:15 PM
Need To Repartition hard drive in ubuntu hallows1 Linux - Hardware 1 04-02-2007 07:39 PM
Repartition a FAT32 drive JGF621 Linux - Newbie 3 12-02-2006 10:06 AM
Can't repartition USB Flash Drive babysealclubber Linux - Hardware 3 09-16-2004 03:02 PM
Hard Drive repartition crashed crewblunts Linux - Hardware 7 02-08-2004 12:19 AM


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