Latest LQ Deal: Latest LQ Deals
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 02-04-2008, 10:54 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Help me change permissions and move my Home folder

I am running Ubuntu on VMware. I have added a 39 gig virtual disk which is now available only to root or superuser, which means I can't just use the thing. What I want to do is to change the permissions on the new partition so that my user account can read and write files to the new drive. I also want to move my current home directory to the new partition.

As a bonus, since I primarily use WIndows, can you tell me how to easily see my hard drive partitions within Gnome file manager or see there icons on the desktop? This would make navigation much easier.



Old 02-05-2008, 01:28 AM   #2
Registered: Jan 2008
Location: Noble Park ,Victoria, Australia
Distribution: Mageia
Posts: 183
Blog Entries: 2

Rep: Reputation: 23
im a noob myself
have you tried to chown it?
as in open konsole
chown you:group /diskloaction ie media/hd5
Old 02-05-2008, 01:35 AM   #3
LQ Newbie
Registered: Feb 2008
Location: INDIA
Posts: 3

Rep: Reputation: 0
U can try chown or chmod ,such that all the users can have access to drives.
Ex chmod 777 location of drives
Old 02-05-2008, 02:52 AM   #4
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44

Rep: Reputation: 16
Did you already partition this new virtual disk? You can do that with

sudo fdisk /dev/sdb

with /dev/sdb being the new virtual disk. Or you just install gparted in Ubuntu, which makes partitioning and formatting a lot easier. For this, type

sudo apt-get install gparted

If you partition the disk with fdisk, you can do the formatting with

sudo mke2fs


sudo mkfs.ext3

After partitioning and formatting the disk, you need to mount a partition. To mount it at /home, type

sudo mount /dev/sdb1 /home

with /dev/sdb1 being the first partition of the hard disk sdb. The files that you had at /home won't be visible anymore since you mounted the partition on top of old /home. To unmount /dev/sdb1, type

sudo umount /dev/sdb1

If you want to first copy all your settings from your old /home, you can first type in

sudo mkdir /tmp/home

to create a directory /tmp/home and then

sudo cp -a /home/* /tmp/home

to copy everything from /home to /tmp/home. Then you can delete everything on /home, mount your new partition and then copy your old settings with

sudo cp -a /tmp/home/* /home
Old 02-05-2008, 11:26 PM   #5
LQ Newbie
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
N00b reply warning!

Using right click in File Browser to access the disk and open in terminal I have tried the chown and other commands and have messed each one up.

Here's the particulars of the drive I want to use as my home:

/dev/sdb1 (ext2) etc etc.

What do I do within the gnome interface, terminal, etc to make a Home folder, and then move all my stuff into so this will work each time I boot this virtual machine. (Honest, I swear to God I will help others If I get this straight).

Sorry for being such a n00b.



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
Home folder permissions carnold SUSE / openSUSE 5 04-22-2007 10:50 PM
FC6 box add new HDD and move HOME folder to it titel Linux - Hardware 1 12-28-2006 12:34 PM
i move my /etc folder in my /home folder Casanogab Linux - Newbie 8 03-31-2006 01:21 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM > Forums > Linux Forums > Linux - Newbie

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