LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 10-23-2014, 10:41 PM   #1
tcymtz
LQ Newbie
 
Registered: Oct 2014
Posts: 8

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

Last edited by tcymtz; 10-23-2014 at 10:48 PM.
 
Old 10-24-2014, 05:25 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
df /mnt/lfs
 
Old 10-24-2014, 05:10 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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 View Post
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 ?.
 
Old 10-26-2014, 10:42 AM   #4
tcymtz
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
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.
 
Old 10-26-2014, 05:26 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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 ?.
 
Old 10-28-2014, 09:09 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 10-30-2014, 06:06 PM   #7
tcymtz
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks guys. Finally got it.
 
Old 10-30-2014, 07:32 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
If your problem is solved it is good manners to say exactly what solved your problem and mark your thread as SOLVED
 
Old 11-01-2014, 05:33 PM   #9
tcymtz
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] /etc/fstab options: dev / nodev, sync/async gacanepa Linux - Newbie 5 08-23-2013 02:41 PM
Will these nosuid and nodev going to be a problem? DavidLee1A Linux From Scratch 2 12-27-2012 04:11 PM
'nodev' and 'nodev' option for removable media wjs1990 Linux - Newbie 1 01-06-2010 02:58 AM
Setting perms for a newly mounted partition? redkazan Linux - Newbie 8 12-31-2003 04:59 PM
automounted filesystems should be mounted using nosuid ForumKid Linux - Security 2 01-09-2002 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:13 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