PDA

View Full Version : [ubuntu] Change Home Directory problems



neuman1812
March 31st, 2012, 04:59 PM
I'm trying to move my /home directory to a second drive. I Followed the directions here
https://help.ubuntu.com/community/Partitioning/Home/Moving

On bootup I get an error message stating that it can't mount /media/home

This is my boot.log with the errors.


fsck from util-linux 2.19.1
fsck from util-linux 2.19.1
/dev/sda1: clean, 230942/4759552 files, 15993692/19013376 blocks
2nd_Drive: clean, 4750/7634944 files, 644822/30517467 blocks
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

mountall: mount /media/home [819] terminated with status 32
mountall: Filesystem could not be mounted: /media/home
Skipping /media/home at user request
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
* Starting AppArmor profiles 
[ OK ]
* Setting sensors limits 
[ OK ]
xhost: unable to open display ""
xhost error ignored, GPU computing may not be possible * Stopping Failsafe Boot Delay[ OK ]
* Stopping System V initialisation compatibility[ OK ]
* Starting System V runlevel compatibility[ OK ]
* Stopping automatic crash report generation[fail]
* Starting CPU interrupts balancing daemon[ OK ]
* Starting deferred execution scheduler[ OK ]
* Starting regular background program processing daemon[ OK ]
* Starting LightDM Display Manager[ OK ]
* Starting ACPI daemon[ OK ]
* Starting anac(h)ronistic cron[ OK ]
* Starting save kernel messages[ OK ]
* Starting BOINC core client: boinc 
[ OK ]
* Setting up scheduling for BOINC core client and children: 
[ OK ]
Starting polipo: * Starting CUPS printing spooler/server[ OK ]
polipo.
* Stopping save kernel messages[ OK ]
* Stopping anac(h)ronistic cron[ OK ]

This is my Fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=eb614458-8188-449e-8d39-5c5335fc0aee / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=430c8f10-cd31-464b-9efc-86298a4192b8 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
# (identifier) (location, eg sda5) (format, eg ext3 or ext4) (some settings)
UUID=2cba9a81-a3f2-464d-964c-3bb0946c530b /media/home ext3 nodev,nosuid 0 2

Bucky Ball
March 31st, 2012, 05:08 PM
# (identifier) (location, eg sda5) (format, eg ext3 or ext4) (some settings) UUID=2cba9a81-a3f2-464d-964c-3bb0946c530b /media/home ext3 nodev,nosuid 0 2Is it an EXT3 partition or EXT4? Might be a silly question but you never know ...

Also wondering what 'nodev,nosuid' are there for ...

My entry for /home looks like this:


UUID=0cdd1989-6b0d-48fe-a5a8-2b8ae640dcc1 /home ext4 defaults 0 2

I would just change that to '/media/home' if I was mounting it in /media.

neuman1812
March 31st, 2012, 05:22 PM
ahh crap.... So I just looked at my fstab again...

the new line

# (identifier) (location, eg sda5) (format, eg ext3 or ext4) (some settings)
UUID=2cba9a81-a3f2-464d-964c-3bb0946c530b /media/home ext3 nodev,nosuid

I copied directly from the website....Dummy me I didnt change it...

It should be ext4...

the nodev,nosuid im not sure on.. but I will look them up.

Bucky Ball
March 31st, 2012, 05:24 PM
Use mine and see how that goes. Just change it to:


UUID='your_correct_uuid' /media/home ext4 defaults 0 2

neuman1812
March 31st, 2012, 11:06 PM
OK..So i think i farked this up somehow... thoes original directions I had screwed me up. I wish there was A way, like windows. where I can just right click..change directory location.


Output of blkid

/dev/sda1: UUID="eb614458-8188-449e-8d39-5c5335fc0aee" TYPE="ext4"
/dev/sda5: UUID="430c8f10-cd31-464b-9efc-86298a4192b8" TYPE="swap"
/dev/sdb1: LABEL="250gb" UUID="2cba9a81-a3f2-464d-964c-3bb0946c530b" TYPE="ext4"

What Im trying to do is mount my home directory in the "250gb" drive... its a seperate drive completly from my boot drive..

My fstab is currently

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=eb614458-8188-449e-8d39-5c5335fc0aee / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=430c8f10-cd31-464b-9efc-86298a4192b8 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


I know i have to put a new UUID= line in there ..But I just cant seem to get it right.Any help would be good.

Bucky Ball
April 1st, 2012, 02:36 AM
Use mine and see how that goes. Just change it to:


UUID='your_correct_uuid' /media/home ext4 defaults 0 2

Did you try it???

Bobhuber
April 1st, 2012, 02:57 AM
OK..So i think i farked this up somehow... thoes original directions I had screwed me up. I wish there was A way, like windows. where I can just right click..change directory location.



First of all make a directory.
sudo mkdir /media/home
Then add the following to your fstab file.
/dev/disk/by-uuid/2cba9a81-a3f2-464d-964c-3bb0946c530b /media/home ext4 nodev,nosuid 0 2

Then follow the rest of the directions on the site.
Good luck.