LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-22-2017, 02:56 AM   #1
lenin99
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Rep: Reputation: Disabled
edit a file /etc/fstab , what parameters can be changebale and which parameters


Hi guys,
I can't find any detail explanation which parameters on /etc/fstab file I can change and not cause critical errors for system. Which values they can get.

After i change some parameters I stuck after reboot system on "Emergency-mode" and sometimes system changed to red-only.
 
Old 01-22-2017, 06:33 PM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi,

/etc/fstab is very sensitive file.
ALL parameters can bring your system enter the emergency mode.

You really need to know what you are doing while editing that file.
You can find good tutorial in the man page or googling.
 
Old 01-22-2017, 09:31 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
If you provide specific information as to what settings you have attempted to change and what you wish to accomplish, perhaps more precise responses could be provided.

When I edit /etc/fstab, I commonly comment out the line I intend to change and create a new line with the changes I wish to make. That way, I can quickly restore the original line if I break something.

The Arch wiki has a good article about /etc/fstab: https://wiki.archlinux.org/index.php/Fstab

The man page (man fstab) is also a good reference.

Last edited by frankbell; 01-22-2017 at 09:32 PM.
 
1 members found this post helpful.
Old 01-23-2017, 02:08 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Can you please post the contents of your /etc/fstab here. That will allow us to better answer your question.
 
Old 01-24-2017, 01:19 AM   #5
lenin99
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Can you please post the contents of your /etc/fstab here. That will allow us to better answer your question.
This is content of my
Code:
fstab
file

Code:
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/mmcblk0p2 during installation
UUID=568132ff-7f47-48f2-aaae-87454a461df2 /               ext4    errors=remount-ro 0       0
# /boot was on /dev/mmcblk0p1 during installation
UUID=85074b4a-e89a-48d6-aa48-0dbc3ead6839 /boot           ext2    defaults        0       0
# swap was on /dev/mmcblk0p5 during installation
UUID=4382df77-81fe-4310-9e1f-b92ce6b551fe none            swap    sw              0       0
#10.0.0.1:/home/developer/devel /root/devel nfs rw,async,hard,intr 0 0
When I change <dump> or <pass> to 1 instead of 0 system start behave strange
 
Old 01-24-2017, 01:34 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by lenin99 View Post
This is content of my
Code:
fstab
file

Code:
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/mmcblk0p2 during installation
UUID=568132ff-7f47-48f2-aaae-87454a461df2 /               ext4    errors=remount-ro 0       0
# /boot was on /dev/mmcblk0p1 during installation
UUID=85074b4a-e89a-48d6-aa48-0dbc3ead6839 /boot           ext2    defaults        0       0
# swap was on /dev/mmcblk0p5 during installation
UUID=4382df77-81fe-4310-9e1f-b92ce6b551fe none            swap    sw              0       0
#10.0.0.1:/home/developer/devel /root/devel nfs rw,async,hard,intr 0 0
When I change <dump> or <pass> to 1 instead of 0 system start behave strange
Can you try setting <pass> to 1 for / and 2 for /boot. Leave it as 0 for the swap partition, and leave all the <dump>s as 0 (assuming you're not using the dump utility).

Let us know what happens.

As a side question, are you using Grub? If so, after you've rebooted, can you run update-grub as root and paste the output here?
 
Old 01-24-2017, 02:57 AM   #7
lenin99
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Can you try setting <pass> to 1 for / and 2 for /boot. Leave it as 0 for the swap partition, and leave all the <dump>s as 0 (assuming you're not using the dump utility).

Let us know what happens.

As a side question, are you using Grub? If so, after you've rebooted, can you run update-grub as root and paste the output here?

I use bootloader
 
Old 01-24-2017, 04:03 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by lenin99 View Post
I use bootloader
I've never heard of that (the term "bootloader" on its own seems kind of generic).

Is it one of the ones listed here?: https://en.wikipedia.org/wiki/Compar...f_boot_loaders or https://wiki.debian.org/BootLoader
 
  


Reply



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
LXer: How to edit your kernel boot parameters on Linux LXer Syndicated Linux News 0 07-03-2015 07:30 AM
[SOLVED] Why there are two separate parameters in /proc/sys/net/ipv4/ for security parameters gprathap1121@gmail.com Linux - Security 4 07-14-2014 12:41 AM
File to put database parameters Huamin Linux - Software 7 07-03-2013 10:43 PM
RH4 U4 Cluster File Parameters quackerjack_98 Red Hat 0 08-07-2007 04:26 PM
read parameters from a file (c language) alaios Programming 7 08-20-2005 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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