LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 05-01-2011, 05:24 PM   #1
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Rep: Reputation: 0
Slackware installation questions regarding resizing partitions and bootloader


Hello,

I have Ubuntu Linux and Windows on dual boot, and I'd like to install Slackware as well. Since I already have GRUB, is LILO unnecessary? Also, I was thinking of resizing one of my Windows partitions from 150GB to "X"GB to make room for Slackware. I looked at some information, but I'd like to know what numbers to input after the resize command. I may be unsure as to what partition number it is as well. If this helps, here is the output I get after the df -h command (taken from / directory).

jimmy@jimmy-laptop:/$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 71G 15G 53G 22% /
none 493M 280K 492M 1% /dev
none 497M 252K 496M 1% /dev/shm
none 497M 92K 497M 1% /var/run
none 497M 0 497M 0% /var/lock
none 497M 0 497M 0% /lib/init/rw
/dev/sda2 150G 28G 122G 19% /media/TI105860W0F

Also, I think my Ubuntu partition uses ext4, so what would be a good program to resize it (I don't think gnu parted supports ext4)?
Feel free to lead me to something that I may have been missing, perhaps I haven't looked around enough and/or intently enough.
Help would be appreciated.

Last edited by splitzjc; 05-01-2011 at 05:29 PM.
 
Old 05-01-2011, 06:10 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by splitzjc View Post
Hello,

I have Ubuntu Linux and Windows on dual boot, and I'd like to install Slackware as well. Since I already have GRUB, is LILO unnecessary?
What I usually do is just create a /boot/grub directory and then a menu.lst file with the information for my slackware kernels, then let grub2's os-prober pick them up and add them.
 
Old 05-01-2011, 09:15 PM   #3
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Rep: Reputation: 38
If you're using a modern version of Ubuntu then you have grub2 which uses grub.cfg to define the list of bootable operating systems. You should be able to install Slackware and skip the Lilo installation. When it's all installed you should be able to boot into the ubuntu partition and run the update-grub command. This should automatically probe for and detect the new slack install.

http://man.he.net/man8/update-grub

I haven't actually done this myself but I was planning on doing it sometime this week to triple boot Win7, Linux Mint, and Slackware 13.37 so I'm really curious how you make out.
 
Old 05-01-2011, 09:45 PM   #4
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your input. I might go with thunderstruck's suggestion- it seems more feasible for me. However, I still think I need to make room, which I'm not sure which partition number and what numbers to put in in gnu parted as mentioned above.
 
Old 05-01-2011, 10:17 PM   #5
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Rep: Reputation: 38
Post the output of:

Code:
$ sudo fdisk -l
Also, I highly recommend using the gparted LiveCD to prep/create/resize partitions. I had the pleasure of using it for the first time a few weeks ago and I was extremely impressed with how simple it makes prepping for installing a new system.
 
Old 05-01-2011, 11:04 PM   #6
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
Here is the output (I don't know how to put text in a code box yet)

jimmy@jimmy-laptop:~$ sudo fdisk -l
[sudo] password for jimmy:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3125ebe5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 192 1536000 27 Unknown
/dev/sda2 192 19657 156354611+ 7 HPFS/NTFS
/dev/sda3 29386 30402 8161280 17 Hidden HPFS/NTFS
/dev/sda4 19657 29386 78144513 5 Extended
/dev/sda5 19657 29015 75166720 83 Linux
/dev/sda6 29015 29386 2976768 82 Linux swap / Solaris

Partition table entries are not in disk order


Thanks
 
Old 05-01-2011, 11:17 PM   #7
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Rep: Reputation: 38
Based on your original post (the desire to resize the Windows partition) and the output from df & fdisk, your Windows volume is /dev/sda2. I would resize that to 100GB or so which will leave 50GB or so for Slackware. I prefer using a dedicated partitioning tool like Partition Magic (Win32) or GParted-LiveCD (Linux) to do the resize and format to ext4 prior to installing another OS rather than fooling around with distro specific partitioning tools.
 
Old 05-02-2011, 12:41 PM   #8
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
That sounds good. Would Slackware automatically recognize the newly created partition? Would I have to input certain numbers to tell Slackware where to go? I'm assuming this wouldn't wipe out the other partitions (the Slackbook seemed to focus on installing Slackware as the sole OS).
 
Old 05-02-2011, 04:24 PM   #9
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
I have successfully repartitioned and have approximately 50GB unallocated for Slackware. Thinking of putting the iso image of the Slackware CD with the A section (at least) on a USB with LinuxLive USB.
 
Old 05-02-2011, 05:00 PM   #10
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
Using gparted, I tried to make a new primary partition, but I can't do that because only 4 primary partitions are allowed to be created.
Here are some things gparted listed:

Filesystem Label
/dev/sda1 ntfs system
/dev/sda2 ntfs TI105860W0F
unallocated unallocated
/dev/sda4 extended
/dev/sda5 ext4
/dev/sda6 linux-swap
/dev/sda3 ntfs HDDRecovery


g-parted mentioned using an extended partition, but it also mentioned something about clearing the partition.
 
Old 05-02-2011, 05:43 PM   #11
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
I might increase the size of /dev/sda4 which has as extended filesystem and make a section for Slackware.
 
Old 05-02-2011, 06:06 PM   #12
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
I recently increased the size of /dev/sda4 which has an extended filesystem. I then formatted the newly formed space to ext4. The new section is called /dev/sda7, it is not mounted, first sector: 212832256, second sector: 315783167, and total sectors: 102950912. Can Slackware be installed on a non-primary partition?
 
Old 05-02-2011, 07:30 PM   #13
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by splitzjc View Post
Can Slackware be installed on a non-primary partition?
Yes
 
Old 05-03-2011, 10:34 AM   #14
splitzjc
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks Andrew
 
Old 05-03-2011, 11:21 AM   #15
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
You are welcome, splitzjc.
 
  


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
LXer: Resizing Linux partitions, Part 2: Advanced resizing LXer Syndicated Linux News 0 09-02-2010 05:41 AM
Changing default bootloader in Slackware installation!!! nykey Slackware 11 09-17-2006 03:22 AM
Bootloader error after resizing partitions republicson Linux - Newbie 11 02-28-2006 02:36 PM
Installation (resizing partitions) chatzialex Linux - Newbie 2 11-11-2004 09:17 AM
Partitions for slackware installation Ed-Slack Slackware 13 01-01-2003 09:03 PM


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