LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How do I unset 'nosuid' and 'nodev' options on a newly mounted partition? (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-do-i-unset-nosuid-and-nodev-options-on-a-newly-mounted-partition-4175523186/)

tcymtz 10-23-2014 10:41 PM

How do I unset 'nosuid' and 'nodev' options on a newly mounted partition?
 
Hi all,

This is my first post here. I am a brand new linux user. I am working through the LFS tutorial and I have hit a snag with which I was hoping y'all could help me. In section 2.4 the tutorial reads:

"Ensure that this new partition is not mounted with permissions that are too restrictive (such as the nosuid or nodev options). Run the mount command without any parameters to see what options are set for the mounted LFS partition. If nosuid and/or nodev are set, the partition will need to be remounted."

But when I type "mount", I get a lot of stuff, but I don't see the partition that I thought I mounted (sda6). Here is the output:

Code:

tracy@comp1:/mnt/lfs$ mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
/home/tracy/.Private on /home/tracy type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=42f89aca85f2bf50,ecryptfs_fnek_sig=94cf22b55cdc7250)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=tracy)
tracy@comp1:/mnt/lfs$

I think I mounted it correctly because when I go to the '/mnt' directory I see a folder which says 'lfs' which was not there before:

Code:

tracy@comp1:/$
tracy@comp1:/$ cd /mnt
tracy@comp1:/mnt$ ls
lfs
tracy@comp1:/mnt$

Would someone mind explaining to me what is going on?

Thanks,

Tracy

linosaurusroot 10-24-2014 05:25 AM

df /mnt/lfs

syg00 10-24-2014 05:10 PM

First off, there is a dedicated LFS forum here where you're likely to get better help - click the "Report" button on your initial post and ask to have the thread moved.
Quote:

Originally Posted by tcymtz (Post 5258606)
I am a brand new linux user. I am working through the LFS tutorial

I wouldn't consider that a good combination normally, although it is likely to be educational. How "new" are you ?. Do you meet the (personal) requirements as listed under "Prerequisites" ?.

And what are you using for a build system - Ubuntu ?.

tcymtz 10-26-2014 10:42 AM

Quote:

Originally Posted by syg00 (Post 5259105)
First off, there is a dedicated LFS forum here where you're likely to get better help - click the "Report" button on your initial post and ask to have the thread moved.
I wouldn't consider that a good combination normally, although it is likely to be educational. How "new" are you ?. Do you meet the (personal) requirements as listed under "Prerequisites" ?.

And what are you using for a build system - Ubuntu ?.


Thanks for the suggestion. I'll request a move.

I have gone through several tutorials and read through several hundred pages of background material. I am using Ubuntu. Also I am a software developer for General Motors, so I am fairly familiar with computers. I have written about a dozen applications, although they were in c/c++/vb/java on windows, including my own speech recognition system. But as far as working with linux, other than the tutorials on the terminal and a few others about linux kernels, I am new to linux.

syg00 10-26-2014 05:26 PM

OK, for Ubuntu you'll need to append "sudo " (no quotes) to most of the commands you'll be using to get sufficient authority to run the command. Like so
Code:

sudo mount -v -t ext4 /dev/<xxx> $LFS
The first time you use sudo you'll have to enter your password - and maybe every 15 minutes or so after that. Ubuntu has really good community support, so finding doco on sudo why vs why-nots shouldn't be hard if you're interested.
For your mount problem the first place to look is the kernel message ring - dmesg does that for you. The following will print the last 20 lines - use it after any command (or action like plugging in a USB) to get an idea of what may have happened.
Code:

dmesg | tail -20
.
Manpages are your friend - use "q" (no quotes) to quit.
Code:

man man
man sudo
man dmesg

You will need a basic set of *nix skills to get by - have you read the suggested reading list ?.

spiky0011 10-28-2014 09:09 AM

Hi you would have to make sure your path is set to LFS

Code:

export LFS=/mnt/lfs
and check it.
Code:

echo $LFS
returns /mnt/lfs

tcymtz 10-30-2014 06:06 PM

Thanks guys. Finally got it.

Keith Hedger 10-30-2014 07:32 PM

If your problem is solved it is good manners to say exactly what solved your problem and mark your thread as SOLVED

tcymtz 11-01-2014 05:33 PM

Quote:

Originally Posted by Keith Hedger (Post 5262155)
If your problem is solved it is good manners to say exactly what solved your problem and mark your thread as SOLVED

Thanks for teaching me the ettiquette. It was solved by putting sudo in front of it. Guess that was all I needed. Thanks. :)


All times are GMT -5. The time now is 11:44 AM.