Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-29-2007, 03:33 PM   #1
Registered: Oct 2005
Distribution: Ubuntu 7.10, OpenSUSE 10.3, Linux Mint, Arch
Posts: 92

Rep: Reputation: 15
I need help remaping the partitions.

Hi, I need to change the layout of my partitions.
My current setup was only meant as a temporarily setup.

However, I have openSUSE installed on a single 10 gb partition(/dev/sda1), and I have a 120 gig partition(/dev/sda6), that I mount at /home. However openSUSE's /home is on the same 10 gig partition(/dev/sda1) as the rest of the system. (10 gig's not much)
I now want to move openSUSEs /home on /dev/sda1 to / on /dev/sda6.

First I think I need to move the /home/$USERs on /dev/sda1 to / on /dev/sda6. But I use the same username on multiple distro, so I'll have to change the name of the home directories, I think I'll manage that with YAST's user managment tool.

Secondly, I need to get /dev/sda6 to mount at /home on /dev/sda1. I do believe I need to edit fstab, that's where the real problem is.

What should I do? and how should I do it? And is the even correct?

Any help would be very much appreciated.
Old 11-29-2007, 04:14 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
In the past, I've simply copied all the data to the new partition. Then make a backup of fstab and change the /dev/ for /home. Then from a shell you should be able to (maybe root only) mount -o remount /home. Hmm, now that I look at the manpage for mount, it looks like you might be able to do mount --move, but I've never used it...
Old 11-29-2007, 04:46 PM   #3
Registered: Oct 2005
Distribution: Ubuntu 7.10, OpenSUSE 10.3, Linux Mint, Arch
Posts: 92

Original Poster
Rep: Reputation: 15
OK, Thanks!!
I'll try and see if that works!!

Old 11-30-2007, 10:00 AM   #4
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I am even lazier. When I move /home, I don't even bother changing the mountpoint for it.

I just delete the /home directory off of the old location and replace it with a symlink pointing to the new location.

Works fine.


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
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
Remaping Escape Key frankie_DJ Linux - Newbie 13 09-30-2005 01:07 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:30 PM.

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
Open Source Consulting | Domain Registration