Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-31-2012, 04:23 AM   #1
Registered: Oct 2012
Distribution: Slackware 14.0 86x
Posts: 43

Rep: Reputation: Disabled
Not sure about partitions - Slackware 14


I had my Slackware installed in couple small partitions and when I realized that I need more space I created two new partitions, one for '/' and one for '/home' and just copied all files with cp -r.

Problem and thing which I'm unsure about is that I need remove these old partitions. My new '/' partition is /dev/sda9 but in mount's I see it as '/dev/sda1 on /'.
Also in 'fstab' I have '/dev/sda1 /'.

This is confusing and I'm scared to take any action against /dev/sda1 even though I need to since /dev/sda1 was my old partition (kinda can guess why this is happening, because linux swaps partitions so it can have sda1 with root partition, just guess).

Another thing I'm unsure about is since these partitions have partition(s) between (ex-root partition is in /dev/sda1 and ex-/home/ partition is at /dev/sda5), is it gonna be little bit of pain to transfer these partitions ?
Don't feel like playing with virtual partitions.
Old 12-31-2012, 04:40 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,701

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
Examine both /etc/fstab files. Fix them. They are probably the same, if you copied them.

IIRC, cp -a is a better choice than your 'cp-r' for copying a partition. You might hit ownership issues if you copied /home.
Old 12-31-2012, 04:48 AM   #3
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 353

Rep: Reputation: 73
If mount says you have sda1 mounted at /, then you are running from sda1. Of course you need to change fstab to your new partition.

I think you need an archieve flag with cp. I haven't transfered a system with cp, but I have many times used 'rsync -aXv'. I have written about it in another thread

Mount both your new root and new home, and then run rsync. There is no problem at all that they are not next to each other or to your old root.

mkdir /mnt/new
mount /dev/sdXY /mnt/new
mkdir /mnt/new/home
mount /dev/sdXY /mnt/new/home
Old 12-31-2012, 07:12 PM   #4
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It would be helpful to those providing advice to post here the content of your /etc/fstab (both versions, if you've now got two of them), the output of '/sbin/fdisk -l' (as root, and that is a lowercase ell), and the bootloader commandline that sets the root partition (or maybe just the contents of /proc/cmdline). Include a verbal description of what each device contains.
Knowing exactly what you've got will help people from giving suggestions with ambiguous descriptions of device/partition names.

--- rod.

Last edited by theNbomr; 12-31-2012 at 07:13 PM.


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
[SOLVED] Is it safe to resize my Slackware partitions after removing my Mint 10 partitions? Robert.Thompson Slackware 19 02-18-2011 12:47 PM
slackware partitions mortal Slackware - Installation 2 03-16-2004 09:04 PM
Slackware and old partitions celticselph Linux - Newbie 20 03-16-2004 07:26 AM
Slackware, cfdisk, partitions, etc.. philY Slackware 7 11-02-2003 10:17 AM
Partitions for slackware installation Ed-Slack Slackware 13 01-01-2003 09:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration