|
Creating a /home/ partition on Ubuntu
|
| Author |
Message |
Phillip J Fry
Unregistered
|
Creating a /home/ partition on Ubuntu
Okay, So I'm wanting to install another Linux Distro without having to search for flash drives and old CD’s just to hold all my music, documents, and WINE utilities. Usually I have to wipe the entire disk to install a new Linux Distro and research for all everything I had in my home directory. So my question for all you Linux guru's is rather or not I could create a new Home partition on my Hard-disk without royally messing up my system?
This way when I install a new Linux Distro I could wipe the root partition without wiping my Home directory along with it. I must have over 10 Gig's of different music, docs and who knows what else that I'd like to save before going with something besides Ubuntu.
No offence, but Ubuntu doesn't agree with this cheap $250 Wall-mart special and it's been running like Windows XP on an old computer. This would save me from stressing a lot and wanting to break this desktop into pieces.
If you could tell me anything that would be appreciated Thanks
|
|
| 05-31-2012 05:01 PM |
|
 |
Bloke
Posts: 2,183
Group: Registered
Joined: Jul 2010
Status:
Away
|
RE: Creating a /home/ partition on Ubuntu
Really sorry but i have not the slightest idea what you just said.
In your case, less "tetchy", perhaps, and more "overbearing, obnoxious arsehole", if it's all the same with you, Bloke. Is it ok? Oh, good! 
http://www.youtube.com/watch?v=bFEoMO0pc7k
"Aint nobody got time for that"
|
|
| 05-31-2012 05:02 PM |
|
 |
Phillip J Fry
Unregistered
|
RE: Creating a /home/ partition on Ubuntu
I was wondering if I could use a disk utility to create a new home partition on my hard disk. Then if it would be possible to move all my content from the /****/home/ directory to the new home partition ? :/
|
|
| 05-31-2012 05:08 PM |
|
 |
Lang
Posts: 6,557
Group: Registered
Joined: Feb 2006
Status:
Offline
|
RE: Creating a /home/ partition on Ubuntu
I don't know how to resize a partition in Ubuntu. May I suggest though that you are attempting something that may not be worth the effort. For a long time, I started out with multiple partitions, then installed my OS--actually, I think that this is in fact the default layout--and shuffled stuff between them before wiping a partition, but eventually, I decided it was in fact easier to just have one partition per disk, and use multiple disks. This way, instead of guessing how much space you will need for a particular function, and potentially guessing wrong, you just use the whole disk, then you have something else for storage. I store my files on a separate disk from the get-go, and there is no moving stuff around.
Chris Christie is so fat, I was giving a presentation and he ate my pie charts.

All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
PROUD DISRUPTIVE DINGBAT
http://Siochanna.deviantart.com
http://neversubmit.xanga.com/
|
|
| 06-01-2012 03:53 AM |
|
 |
Shnoing
Posts: 2,113
Group: Registered
Joined: Jan 2007
Status:
Away
|
RE: Creating a /home/ partition on Ubuntu
Yes, a separate (mobile) disk for all your data seems to be a good idea.
If you try something real weird, you can unplug it BEFORE, so you cannot mess your data up.
|
|
| 06-01-2012 11:35 AM |
|
 |
Phillip J Fry
Unregistered
|
RE: Creating a /home/ partition on Ubuntu
The problem is that I don't enough storage (Flash drives, compact disks, etc) to hold all my personal data and I would like to go with something besides Ubuntu, which is making me want to take this desktop and smash it into a million pieces. The hard-drive is already messed up due to it booting up when a power outage happened.
|
|
| 06-01-2012 01:08 PM |
|
 |
Shnoing
Posts: 2,113
Group: Registered
Joined: Jan 2007
Status:
Away
|
RE: Creating a /home/ partition on Ubuntu
I though about a new one. Like this.

Without wanting to show any preference for certain brands etc. Just fyi. (1 TB, 125 U$)
|
|
| 06-01-2012 01:58 PM |
|
 |
Phillip J Fry
Unregistered
|
RE: Creating a /home/ partition on Ubuntu
what's TB? I know it has to be more than a Gigabyte, and that would certainly give me enough space for all my personal things
I got a new question, about the amount of system RAM I have on this computer. I think I must have around 512 MB's (Not sure where to check) of RAM on this stupid desktop and I was wondering if adding more RAM to this desktop would increase it's performance ?
|
|
| 06-01-2012 02:17 PM |
|
 |
Shnoing
Posts: 2,113
Group: Registered
Joined: Jan 2007
Status:
Away
|
RE: Creating a /home/ partition on Ubuntu
1 TB is 1.000 Gigabytes (because Hdd producers sort of cheat with the numbers).
A lot OSs "likes" up to 3 GB RAM. I've got a sticker on my tower which "boasts" about CPU, RAM, and HDD capacity.
I think that 64bit OSs can handle much more RAM.
|
|
| 06-01-2012 02:28 PM |
|
 |
Phillip J Fry
Unregistered
|
RE: Creating a /home/ partition on Ubuntu
Wonder what I could do with all that memory ? lol I think I should be looking into more system RAM so this stupid desktop isn't swapping all the time. BTW I so want that 1 TB external hard disk
|
|
| 06-02-2012 03:21 PM |
|
 |
Gareth
Administrator
      
Posts: 11,443
Group: Administrators
Joined: Jul 2004
Status:
Offline
|
RE: Creating a /home/ partition on Ubuntu
The way I do this, not very newbie-compatible and there's probably a shiny little graphical "click next" tool somewhere to do the same thing:
Plug in external drive
Go to terminal
type dmesg and hit enter
Look for something like this:
[799752.952621] sd 7:0:0:0: Attached scsi generic sg2 type 0
[799752.960118] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[799807.040429] sd 7:0:0:0: [sdc] 31449088 512-byte logical blocks: (16.1 GB/14.9 GiB)
[799807.041021] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[799807.043768] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[799807.043780] sdc: sdc1
This shows that the drive is sdc1, but sometimes it'll be something else - it'll likely be sdcX or sddX where X is a single digit number from 0-9 - where I use sdc1 below just substitute the correct name for your system
Make sure it didn't automount by typing this:
umount /dev/sdc1
Then do this:
mkdir /mnt/newdrive
mount /dev/sdc1/newdrive
That second command might fail, if it does skip this next bit:
ls /mnt/newdrive/
Look at the output, if you see anything that looks like your root partition then DO NOT PROCEED FURTHER - you have the wrong drive, it should be either blank or have perhaps a few drivers from the new drive's manufacturer
Unmount it again:
umount /dev/sdc1
Now comes the fun part, close EVERYTHING, including your window manager and X11 if possible and do this:
mkfs.ext3 /dev/sdc1
mount /dev/sdc1 /mnt/newdrive
cp -Rv /home/* /mnt/newdrive/
Then look around in /mnt/newdrive and make sure all your important data is there - i'd also make sure it's backed up before you started following my instructions too. Once you're 100% sure then do this and make no typos or you'll destroy it all:
rm -rf /home/*
mkdir /home
echo /dev/sdc1 /home ext2 defaults 1 2 >>/etc/fstab
mount /home
Now your /home is stored on the USB drive and can be safely unplugged and moved around so long as you first shutdown the system.


“Lanie, I’m going to print more printers. Lots more printers. One for everyone. That’s worth going to jail for. That’s worth anything.” - Printcrime by Cory Doctrow
|
|
| 06-02-2012 08:59 PM |
|
 |