LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2007, 06:28 AM   #1
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Change from Ubuntu + Slack to just Slack


When I got my new laptop, I decided to try out a couple of different distros. So, I partitioned my hard drive accordingly, and installed Ubuntu on the first partition. I then installed Slack on my second root partition (I had separate /home partitions for each distro). Ubuntu was lovely and easy to use, but it wasn't the same as Slackware, and I've since been using Slack as my primary OS again. I'd rather not have to format my entire disk and start again as it's getting to the stage where my Slack install is getting very highly configured.

The problem I have is that Ubuntu is managing the booting of the computer with Grub. I want to move Slack back to the first partition of the disk, and remove Ubuntu altogether. This will presumably mean I lose Grub. Is my plan of action correct:
  1. Boot to a LiveCD.
  2. Make an image of my Slack installation.
  3. Remove the partitions on my disk.
  4. Make the parition layout for one distro only (plus Windows XP).
  5. Restore the Slackware image.
  6. Boot to the Slackware installation CD and install lilo.
  7. Keep my fingers crossed!

Any thoughts are welcome.
 
Old 03-06-2007, 07:08 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,637

Rep: Reputation: 144Reputation: 144
Your steps look right to me.

You might consider cloning your Slackware installation (for example using rsync) to the first partition, so you would not need the image. Depending on your exact partition layout and how/if you want to change your partition layout this could be difficult or impossible with your home partition though.

If you want to keep grub you can do that. There is a grub package in /extra.
 
Old 03-06-2007, 07:20 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
I'm not really too bothered which boot loader I have, so long as it works!

At the moment I have a setup like this: (hope this works!)
Code:
  Primary                               Extended 
|---------||--------------------------------------------------------------|
|---------||----|------------|---------------|--------------|-------------|
  Windows   Swap  Ubuntu root   Ubuntu home     Slack root     Slack home
  (hda1)   (hda5)   (hda6)         (hda7)         (hda8)         (hda9)
What I'd like it to just have three partitions for Linux: hda5, hda6 and hda7, with 6 and 7 being root and home respectively.

As it stands, I can just move everything in my /home partition onto my external USB disk as either an image or a tarball or something (how would I preserve the permissions?) and then restore it when I've finished moving the root partition.
 
Old 03-06-2007, 07:31 AM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,637

Rep: Reputation: 144Reputation: 144
I used rsync to make a copy of my slackware installation before.

I mounted the partition where the copy should be created as /mnt/slack-A-root and /mnt/slack-A-home, then executed (no guarantee, please take a look at other rsync examples or the man page before doing it):

Code:
rsync -axH --delete-after --progress / /mnt/slack-A-root
rsync -axH --delete-after --progress /home/ /mnt/slack-A-root
The trailing slash at the source's path is important!

If I were in your situation I would first copy Ubuntu's /boot folder (at least the grub folder), and modify the menu.lst and copy it back after rsync. Then I would change the rsync-copy's fstab file (if you have absolute /dev-points there and do not mount by label or uuid).
 
Old 03-06-2007, 07:43 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Ah, I see. The problem I have with using rsync to backup to my external disk (which is what I would do) is that it's formatted using fat32, and therefore doesn't keep the original permissions. I suppose I could make an image of /home, and then mount that to some temporary mount point using -o loop after I've sorted out the parition scheme, and simply copy the contents of that image back into my new /home.

I could also just install the grub package now, and then copy the contents from the ubuntu /boot into the slack /boot.

Argh! All these things are making my head ache!
 
Old 03-06-2007, 07:50 AM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,637

Rep: Reputation: 144Reputation: 144
What would we wrong about just using the existing hda6 and hda7? Or do you want to make these partitions just greater than they are now?
 
Old 03-06-2007, 08:11 AM   #7
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
You may also just copy whole installation to required partition and then resize.
  • boot from Live/Rescue CD
  • by fdisk create partition 6 in place of 6 and 7
  • create new filesystem on part. 6 (ext3)
  • mount partitions 8,9 and new 6
  • copy contents of 8 and 9 to 6 (by cp -a f.E.)
  • update lilo or grub with new partition 6
  • u(n)mount part. 6, erase part. 8 and 9
  • resize part. 6 and then create part. 7 of the remaining space and move /home to it
Take it as an excersize how to do it without backups, but forget it when there are some important data for you. In addition it's usefull for filesystems with unchallanged resizing capability.
 
Old 03-06-2007, 08:14 AM   #8
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,637

Rep: Reputation: 144Reputation: 144
Anyways it would be a good idea to make the backup (with tar or whatever) to your external hard disk, no matter how you will solve your problem. This should make your head ache a little less
 
Old 03-06-2007, 08:36 AM   #9
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Well, I want to resize my root partition, and leave all the rest of the drive as /home (it's a 40GB hard drive, and currently I only have a 5GB root partition and a 10GB /home partition for slack (the rest is ubuntu and windows).

This is what I think I'll do:
  1. Make an image of slack root and slack home.
  2. Wipe the drive of all the linux paritions.
  3. Restore the image of my slack installation.
  4. Resize the root partition using a liveCD.
  5. Boot into the installation CD and install lilo.
  6. Finally make a new home and restore that from an image too.
  7. Fingers crossed again!
 
  


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
DST Change and Slack 9.1 wczimmerman Slackware 4 02-22-2007 11:20 AM
Slack Vs. Mepis Vs. Ubuntu User665 Linux - Distributions 44 09-16-2005 09:01 PM
How to change your bootscreen in slack 10.1 (lilo 22.5.9) alamuru420123 Slackware 2 02-20-2005 01:54 PM
Should I change from Slack to Debian?(Seriously) hrothgar Linux - Distributions 3 08-15-2004 12:26 AM
Why is Slack popular & what needs to change?? mrtwice Slackware 51 12-06-2003 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:52 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
Open Source Consulting | Domain Registration