LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 04-26-2013, 10:07 PM   #1
tom_cruz
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
Dell xps 15


Hi, I have already tried slackware 14 on vmware workstation 8 and was wondering if it's safe to dual boot slackware 14 on windows 7. I mean will it destroy my factory image partition?
 
Old 04-27-2013, 06:23 AM   #2
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
It depends on whether you partition correctly. Let's for example say you have these 2 partitions:
Code:
sda1 - Recovery
sda2 - Windooze C:
Typically, Win will use the remainder of the disk for its partition(s), which means there is no free space for your Slackware partition(s). This means that you need to re-size the sda2 partition, and resizing partitions require something else than cfdisk feat on the Slackware CD. Here's what I would do:

First, make a live CD of Gparted Live. This is a partition-centric distro.
Boot the live CD, then make a backup of your partition table and Recovery partition;
Code:
$ fdisk -l > partitions.txt
will create a text file with the partition table. Save this on a USB disk/thumb drive for safekeeping.
Code:
$ dd if=/dev/sda1 of=recovery_part.img
will create a backup image of your partition. Save this to a USB disk/thumb drive for safekeeping.


If you want to be completely safe, skip the 2 steps above and do a full backup of the entire disk (minus free space) using a tool like clonezilla to a USB disk or something. If anything goes wrong, you can restore from that backup.


Now open the Gparted tool from Gparted Live's desktop. Resize the Windooze partition(s) so that you have sufficient free space to install Slackware and save your slackware files on (full slackware install is 5GB+ and you must also have room for _your_ files).

In the free space (say it's 20GB), create a ~7GB+ partition for /, a SWAP partition 2x the size of your physical RAM, and the rest for a /home partition. Now you have:
Code:
sda1 Recovery
sda2 Windooze
sda3 Slackware root /
sda4 EXTENDED
     sdb1 SWAP
     sdb2 /home
Primary partitions are limited to 4 entries AFAIK, so you'll need to make the 4th an extended partition. Execute the changes so a new partition table is written, then right-click the / and /home partitions and format to ext4 (or whatever you prefer). Mark the SWAP as swap. Execute the changes and reboot.

Put your Slackware install CD into the drive and boot it. Run mkswap /dev/sdb1 to activate the swapspace. Type setup to start the setup.
Select /dev/sda3 as TARGET, and add /dev/sdb2 as /home. Then go through the rest of the install steps.

Write lilo.conf (bootloader) to MBR, reboot when done. Now you need to add Windows and recovery partition to the /etc/lilo.conf list. Here's an example with both Slackware and Windooze, notice the boot= option which tells the machine what the default will be.

I know it is possible to edit the boot menu in windooze as well, but I'm not too familiar with it. Lilo works. For a full list of features, see: http://linux.die.net/man/5/lilo.conf
 
Old 04-28-2013, 07:06 AM   #3
tom_cruz
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks! I will try this one first.!
 
Old 04-30-2013, 12:20 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
It shouldn't destroy your factory image partition.

Both of the Linux distributions that I am running didn't and I am in a dual boot on both of my machines:-
 
Old 04-30-2013, 02:36 AM   #5
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
Quote:
Originally Posted by Ztcoracat View Post
It shouldn't destroy your factory image partition.

Both of the Linux distributions that I am running didn't and I am in a dual boot on both of my machines:-
If you go with defaults, you'll usually wipe the entire disk. But if you are careful about partitions, yes, it won't touch the other partition(s).
 
Old 04-30-2013, 02:46 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks; Sigg3

Confirmation is always nice!
 
Old 04-30-2013, 04:55 AM   #7
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
It _will_ touch Windows' boot loader, typically. So add the recovery and windows partitions to your GRUB menu.lst file (if you use GRUB < version 2) so you can boot 'em

It IS possible to add Slackware to Windows' boot loader too, but I'm not sure if Win updates clears the settings and whatnot. GRUB's a good old horse.

Last edited by Sigg3.net; 04-30-2013 at 04:56 AM.
 
Old 04-30-2013, 06:49 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
It IS possible to add Slackware to Windows' boot loader too
Ah; didn't know that- Course I have never ran Slackware-
:~$# thanks!

Last edited by Ztcoracat; 04-30-2013 at 06:50 PM.
 
  


Reply



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
dell xps 13 RudraB Linux - Laptop and Netbook 1 01-02-2013 11:00 AM
Dell XPS 17 rutbug Linux - Laptop and Netbook 5 04-07-2012 07:40 PM
Dell XPS 15(L502X) Sarath1245 Linux - Newbie 2 08-01-2011 02:43 PM
Dell XPS M1530 - Dell ubuntu ISOs? danraider Linux - Laptop and Netbook 4 04-02-2008 04:49 PM
dell xps 400 reddwarf1387 Linux - Newbie 4 02-07-2007 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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