LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-10-2017, 08:00 AM   #16
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242

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.
Code:
userx%voider ⚡ ~ ⚡> ls -la /home
total 40
drwxr-xr-x  7 root  root   4096 Jun 30 09:49 .
drwxr-xr-x 17 root  root   4096 Apr 26 09:00 ..
drwxr-xr-x  2 root  root   4096 Apr 20 17:57 ftp
drwx------  2 root  root  16384 Mar  4 07:56 lost+found
drwx--x--x 27  1001 users  4096 Jul  7 08:14 surooterdude
drwx--x--x 44 userx users  4096 Jul 10 07:28 userx
drwx--x--x 50 userx users  4096 Jun 19 15:53 userx-bk
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.

Last edited by BW-userx; 07-10-2017 at 08:05 AM.
 
Old 07-10-2017, 08:06 AM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by abo sal View Post
BW-userx
windows is in (sda1). but I can log to the root using recovery or alt+ ctr l F1.
then this is bad information
Code:
/root /dev/sda1 <-- linux is root not windows
/home /dev/sda2
/swap /dev/sda3 <-- same as
NTFS /dev/sda3 <-- this
which I already pointed out the sda3 thing

regardless all of the steps are the same it is just the partitions numbering that changes is all.

Last edited by BW-userx; 07-10-2017 at 08:08 AM.
 
Old 07-10-2017, 08:09 AM   #18
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
<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.
 
Old 07-10-2017, 08:13 AM   #19
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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

Last edited by BW-userx; 07-10-2017 at 08:14 AM.
 
Old 07-10-2017, 09:33 AM   #20
abo sal
LQ Newbie
 
Registered: May 2017
Location: KSA
Distribution: ubuntu 14.4
Posts: 9

Original Poster
Rep: Reputation: Disabled
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).
 
Old 07-10-2017, 09:51 AM   #21
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by abo sal View Post
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)>>#
 
  


Reply

Tags
fstab, home, uuid



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
restoring ubuntu in boot option in multi-boot set up. avee137 Linux - Newbie 4 05-07-2010 01:42 AM
Multi-boot Ubuntu-64/Vista-64/WinXP only boots Ubuntu and Vista rben Linux - Newbie 4 02-24-2009 04:52 AM
Ubuntu Partition does not work on Multi System PC countrydance Linux - Desktop 2 10-15-2008 02:03 PM
LXer: Installing Ubuntu/Kubuntu Dapper Drake on a Single/Multi-Boot RAID System LXer Syndicated Linux News 0 02-08-2007 03:21 PM
Mounting a new ext3 on LVM system by a co-existing older system's ext2 /etc/fstab JZL240I-U Linux - Software 2 11-28-2005 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration