[SOLVED] How do I unset 'nosuid' and 'nodev' options on a newly mounted partition?
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
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?
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
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 ?.
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.
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 ?.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.