how to fix fstab of one Ubuntu from older Ubuntu in multi-boot system
Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
more:
when in DVD OS
just mount whatever your partition is that you are going to put home on in your /tmp ogg the DVD os.
Code:
sudo mkdir -pv /tmp/home/username
or
sudo mkdir -v /tmp/home
that all depending on how you want to handle adding a user, and
the -p is just to make more than one directory at a time.
then as you see root owns home or 0755 but root cteation of home and leave it alone - I'll never had any issues in doing it that way.
it is the user and own his own 'home' under /home that needs to be sure it has proper UID. If you did not or do not delete that user prior to doing all of this then it is a changing permissions that may need to be done on that /home/USER directory that maybe needed.
<username> is the name of the user's folder in /home, usually the same name as the user's login name. Then you will have to use chown command to change ownership of the folder to the user.
Last edited by colorpurple21859; 07-10-2017 at 09:17 AM.
more thoughts..
if you do not have your Linux split into two seleprate / and /home then you cannot delete /home and expect your Linux OS to still be there. as you have not provided proper information on how you HDD is really split up and used I cannot give you exact how to's
Code:
fdisk -l /dev/sda
copy paste the results of that back so everyone can see what is really going on. thank you.
it should look something like this. as this is what is really needed.
Code:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
/dev/sda2 1028160 204902463 203874304 97.2G 7 HPFS/NTFS/exFAT
/dev/sda3 204906496 205828095 921600 450M 27 Hidden NTFS WinRE
/dev/sda4 205828096 488397167 282569072 134.8G 5 Extended
/dev/sda5 205830144 249968639 44138496 21G 83 Linux
/dev/sda6 249970688 303507455 53536768 25.5G 83 Linux
/dev/sda7 303509504 488396799 184887296 88.2G 83 Linux
BW-userx
I logged to the root ( using name and password of the administrator)
then cd ect
wrote nano fstab
edited fstab couldn't save fstab (permission problem).
that is strange indeed. you are using LINUX to do this?
if you're root then you should not be having any problems. I do this all of the time, or have with my dual boot, whenever I screw up something by forgetting to do it right - I just boot into my other linux mount make needed changes to fix it using su or sudo no problems.
but this is Ubutututu and in my option are a screwed up OS due to how they control root account.
by rights you should be able to just be in root and do whatever to whatever because it is root.
you must have missed something,
try using sudo regardless where you're logged into. or 'whoami' to be sure your root.
Code:
good morning userx
userx%voider ⚡ ~ ⚡> whoami
userx
userx%voider ⚡ ~ ⚡> su
Password:
(root@voider⚡️/home/userx)>># whoami
root
(root@voider⚡️/home/userx)>>#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.