A few more questions

Timothy Holmes taholmes160 at gmail.com
Thu Oct 20 21:54:55 UTC 2016


On Tue, Oct 18, 2016, 6:08 PM Ralf Mardorf <silver.bullet at zoho.com> wrote:

> On Tue, 18 Oct 2016 20:11:15 +0000, Timothy Holmes wrote:
> >Everything seemed to go fine. Heres the output you asked for
> >
> >
> >tim at tim-W8TAH:~$ blkid /dev/sdb1
> >/dev/sdb1: LABEL="Data" UUID="17d6f0e8-3ce4-4190-8f92-c4182acc9ce0"
> >TYPE="ext4" PARTUUID="6a1c233a-01"
> >tim at tim-W8TAH:~$ cat /etc/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>
> ># / was on /dev/sda1 during installation
> >UUID=118b4852-0609-4250-9a0b-d27b406958e3 / ext4 errors=remount-ro 0 1
> ># swap was on /dev/sda5 during installation
> >UUID=205cd43f-a704-44b4-a047-1f8396ddcd2a none swap sw 0 0
> >/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> >/dev/sdb /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
> >tim at tim-W8TAH:~$
>
> Now you need a life media to continue.
>
> From the live media mount the install containing /.
>
>   # mkdir /mnt/install
>   # mount /dev/sda1 /mnt/install/
>
> Then rename /mnt/install/home and add a mount point for the new home.
>
>   # mv -i /mnt/install/home /mnt/install/home.old
>   # mkdir /mnt/install/home
>
> Duplicate the current fstab.
>
>   # cp -ip /mnt/install/etc/fstab /mnt/install/etc/fstab.old
>
> Edit /mnt/install/etc/fstab
>
> FROM
>
> # /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>
> # / was on /dev/sda1 during installation
> UUID=118b4852-0609-4250-9a0b-d27b406958e3 / ext4 errors=remount-ro 0 1
> # swap was on /dev/sda5 during installation
> UUID=205cd43f-a704-44b4-a047-1f8396ddcd2a none swap sw 0 0
> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> /dev/sdb /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
>
> TO
>
> # /etc/fstab: static file system information.
> #
> # Use 'blkid' to print the unive$USERrsally 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>
> # / was on /dev/sda1 during installation
> UUID=118b4852-0609-4250-9a0b-d27b406958e3 / ext4 errors=remount-ro 0 1
> # swap was on /dev/sda5 during installation
> UUID=205cd43f-a704-44b4-a047-1f8396ddcd2a none swap sw 0 0
> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> UUID=17d6f0e8-3ce4-4190-8f92-c4182acc9ce0 /home ext4 defaults 0 2
>
> IOW just change the last line.
>
> That's it, now boot the install and start a user session.
>
> Open a terminal and run
>
>   $ echo "test" > old_home_vs_new_home_test.txt
>   $ diff /home/$USER /home.old/$USER | grep Only\ in
>
> So apart from this new file, there should be no diff.
>
>   $ ls -hAl /home/$USER
>   $ ls -hAl /home.old/$USER
>
> Both /home look ok?
>
>   $ mount | grep /home
>
> mount shows /home?
>
> If so, you could delete the old /home.
>
>   $ sudo rm -Ir /home.old/
>
> Again, it's better if somebody verifies that I didn't made a mistake by
> accident, before you follow my advices.
>
> Regards,
> Ralf
>
>
> Hi Ralf


It seems to have worked fine.  Sorry it took me so long. Didnt get home
till late last night and I was too tired to try it then

Thanks so much for all your help

Tim

> --

Tim Holmes - W8TAH
Sent from my LG Stylo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20161020/b601b9a4/attachment.html>


More information about the ubuntu-users mailing list