date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,509,752,415,000 |
I tried to install Debian Stretch (9.4.0) together with desktop environment LXQt.
Hereby I installed a raw and clean system without any additional packages first and then set the recommended and suggested packages to 0 via file /etc/apt/apt.conf.d/10noinstall-recommends.
Afterwards I installed the following (basic) pa... |
The first problem of freezing screen can be solved by installing the package xserver-xorg-input-libinput
Second problem could be solved by switching the icon theme to standard gnome theme, then it worked fine
Third problem was solved by installing the package lxqt-policykit which will install policykit-1 as a depende... | Debian 9.4.0 (Stretch) with LXQt - anyone experienced the same issues? |
1,509,752,415,000 |
Sometimes after I turn on the desktop PC, randomly one of the 4 cores goes to 100% and the machine "freezes".
Well, I have htop running on it from a remote connection and I can see that all processes are still working.
An interesting thing that happens is ex.: a youtube video will continue playing its audio but the sc... |
Yes, it is probably video io. Because there is a kworker on 100%, there is also an interrupt overflow.
Interrupts are handled on linux in two steps: 1) the direct interrupt handler collects all of the interrupt data in a temporary queue 2) the workers are working not in the interrupt handlers, but as separate kernel t... | how to determine the origin of: one core to be at 100% and "freeze" the machine? |
1,509,752,415,000 |
I'm using Arch Linux, and I was able to config ncmpcpp to work about three months ago. However today when I open it and press 2 for the Filesystem Browser it freezes while the CPU seems to be working hard (making loud noise). I can not switch to other tabs including back to 1 (Current Playlist). Same problem occurs fo... |
It turned out the reason it freezes is because I enabled mpd.service globally, which presumably reads the default root configuration /etc/mpd.conf and causes the freezing. Why would root configuration be a problem? I don't know.
Instead I excute systemctl --user mpd.service and it works again.
See https://wiki.archlin... | ncmpcpp freezes at 2 Filesystem browser, 5 Playlist editor and 7 Output selector |
1,509,752,415,000 |
I've 415 gif files in a directory and trying to make a single pdf of them by using the following command:
convert /path/to/*.gif file.pdf
But it cause for hanging/freezing of the entire system. In other words it makes the system very slower and I've to Ctrl+c (kill) the process (which also consume some time for stopp... |
You are probably using a lot of ram and causing swapping. A simple test using /usr/bin/time -v in front of the command when run on say 5 files, and again on 10 files will show that the Maximum resident set size is approximately double for twice as many files.
So rather than doing them all at once, convert them one at... | `convert`ing *.gif to file.pdf hangs/freezes the system |
1,509,752,415,000 |
I am using the latest Ubuntu Linux with a custom kernel (4.2.0-36-generic), in which I have disabled the CONFIG_STRICT_DEVNEM, because I need to dump and search some terms in memory during a project.
However, when using:
dd if=/dev/mem to print it on screen,
dd if=/dev/mem of=/home/user/Documents/file.dump to save it... |
I think you may run into some memory area used by PCI/ACPI or some such hardware. There might be a memory mapped device that doesn't like being accessed. I can't tell what address exactly causes the problem, but it's usual for some special areas to be located just under the 4 GB limit.
On one machine with 4 GB memory,... | Accessing /dev/mem freezes Ubuntu |
1,509,752,415,000 |
We have two completely different computers both running Mint 17.2, one Xeon server with ECC memory and the other is an i7 laptop with normal memory. Both have 8GB of RAM with default swap.
Both are used to play a CPU-demanding Flash Player game (~ 50% of CPU) in the latest Google Chrome with the latest integrated Flas... |
Since you have a couple of computers you can access from one computer to the other (if the system is still running and network) using SSH for instance, that way you may be able to check what happened and kill the process/es you need.
From cas comment:
The flash game is probably doing something that is triggering a n... | Inability to switch to the console using Ctrl+Alt+F1 when Mint freezes |
1,509,752,415,000 |
I have been using F19 for a couple of days until I've decided to do an yum update. Everything went well but after reboot I can't get past the login screen anymore. I enter my username/password, then the login screen disappears and Fedora freezes, displaying only the login screen background image. I've tried logging in... |
My comment was a little long so I'm putting it in an answer; although I have NOT had to do this myself, it's where I would start.
1) Check if there is a previous kernel listed on the grub boot menu. If so, try that one. If that works, all you have to do is edit /boot/grub2/grub.config here:
set default="0"
The 0 is... | Fedora 19 freezes after login |
1,509,752,415,000 |
I have this strange issue. scp is hard locking my server.
I have tried memcheck, tried downloading big files using wget, tried speed test in openssl and everything works just fine, yet every time I try to copy something (from or to the machine) using scp, it hard locks the machine.
Not even sysrq magic key combos work... |
I suspect there's an obscure bug in either your Ethernet driver, or your Ethernet device's firmware or hardware. Can you trigger the bug by scp'ing to localhost? If not, try replacing the components:
upgrade your network device's firmware, in case the firmware is at fault;
try another network device (e.g. plug in a P... | scp hardlocking my server (both ways) |
1,509,752,415,000 |
On my main home computer I am running fedora 39. It was not originally running fedora 39, I've upgraded through at least 2 previous releases.
My problem is that every few hours my system either completely freezes, or I still can move the mouse around the screen but cannot do anything else. I cannot Ctrl-Alt-F* do drop... |
A while back on my Fedora machine I had exactly the same problem that you described. I would be using my computer then it would randomly freeze but usually the mouse would continue to move.
Initially I thought there was a problem with my Asus GeForce 8800 GT graphics card. However I removed the graphics card and I sti... | Finding the cause of system freezes - Fedora 39 |
1,509,752,415,000 |
Whenever I'm trying to boot the Debian 11 is getting stuck at the following
Welcome to Debian GNU/Linux 11 (bullseye)!
systemd[1]: Set hostname to <arm>.
systemd[1]: Failed to open netlink: Function not implemented
systemd[1]: Failed to allocate device monitor: Function not implemented
systemd[1]: Failed to allocate ... |
Is the system originally installed as Debian 11, or has it been upgraded from an earlier release of Debian?
The fact that you are reaching the "Welcome to Debian..." message suggests the system is getting past the initramfs phase and reaching the real root filesystem, but on transitioning from the initramfs's mini-sys... | What should be the reason for debian getting stuck at Assertion '*_head == _item'? |
1,509,752,415,000 |
I am a software developer and I come into contact with a lot of unstable software.
Recently I made a small game, which for some reason memleaks until the system hangs and is unresponsive. Usually, REISUB helps, but sometimes not even that and you need to do a hard poweroff.
Then it happened to me again with another pr... |
Simple idea: check if memory exceeds a given value, and check again after some time. Hand out strikes, three strikes in a row will lead to a kill. Need to know: PID of process
#!/bin/bash
pid=$1
strike=0
#as long as process exists
while (kill -0 $pid 2>/dev/null) ; do
#get RAM usage in kB
ram=$(pmap -x $pid | ta... | Kill process if it takes more than xGiB of RAM in a given amount of time |
1,509,752,415,000 |
Its really annoying - every now and then the desktop completely freezes and sometimes even the UI look like a tetris game or something. And the keboard and mouse cannot be used so I have to use a SSH client from my android (Juice) to kill the userprocess i.e log out. This means I lose all open applications and not the... |
TL;DR
You can replace it, and it's ok.
Step to do:
switch off nouveau.
install proprietary nvidia, link
remove nouveau.modeset = 0
Yes you can replace the nouveau-driver and I suggest you to do so if you cannot fix the build in ones. you can turn off nouveau by clicking e when you are in grub (which you may select... | Linux desktop freezes caused by Nouveau driver |
1,509,752,415,000 |
Sorry if I'm not formatting this question correctly - I've never used StackExchange before - but I need some help with my Ubuntu freezes/crashes.
Since getting this distro (and especially since getting Regolith) I've been having a great experience on my laptop, and have been finding that I'm using a lot less memory an... |
Sorry this is a late reply, I was doing a lot of testing to make sure I'd fixed the problem and forgot to check back on this. It turns out the Bluetooth speaker connection was messing up the system for some reason, so I tried connecting the speaker to my laptop headphone port manually (with a certain type of wire, I'v... | Daily Ubuntu freezes following certain behaviour |
1,509,752,415,000 |
My system freezes and the only solution is to force shutdown it. I'm not sure but maybe the problem is due chromium-vaapi , any missconfiguration or something.
I'm in 5.4.13-arch1-1 #1 SMP PREEMPT.
Here my journalctl with the freeze.
Thanks a lot.
|
Actually, this is a GPU driver bug. It's already in your paste.
ene 22 18:59:01 dlag-pc kernel: i915 0000:00:02.0: GPU HANG: ecode 9:1:0x00000000, hang on rcs0
ene 22 18:59:01 dlag-pc kernel: GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
ene 22 18:59:01 dlag-pc kernel: Please file... | System completly freezes often (maybe chromium-vaapi) |
1,708,708,060,000 |
I've come across a strange enough problem in the past days that I need to write my question down here.
I have a dual boot setup with Ubuntu on one NVME and Windows on the other. The Bootmanager is installed on the Ubuntu drive so I always start that first and then go to Windows from there. The Ubuntu system is used fo... |
I eventually resolved the problem by replacing Motherboard CPU and RAM.
RAM was most likely not the issue but I wasn't able to test the Motherboard and CPU individually and the new board had DDR5 now.
| Ubuntu freezes after hardware reinstall |
1,708,708,060,000 |
Good day!
Trying to install linux on new SSD but everytime, no matter what i do, even in LiveCD linux freezes and i have to restart PC from button.
Tried to install PopOS, Fedora and Debian. Also used Ubuntu livecd.
PopOS just freezes before installing
Fedora one tried to install, got bootloader error(i think because ... |
I think i found the problem. First i discovered, that PopOS runs smooth with only one RAM stick. 2 sticks on dual-channel or on single-channel - leads to crash.
So if you having such problem, try to look for X.M.P(extreme memory profile) in your BIOS Another info that i found, but not tried - increase RAM voltages a b... | Linux freezing after few minutes of using |
1,708,708,060,000 |
I have been working on installing dual boot on my Acer Nitro AN515-51 laptop (with pre-installed Windows 10) for several days now, and am hoping some of you Linux gurus can help a very frustrated (but determined) newbie out.
TLDR:
I reinstalled Debian on a dual boot Windows 10 computer, but both the original Debian i... |
I am posting my solution in case someone else experiences the same issues as me.
I should also mention that on top of the rebooting issue, my computer started to freeze whenever I opened Firefox. This was after I did a sudo apt-get update and sudo apt-get upgrade
I fixed both of these issues by simply disabling nouve... | Debian 10 freezes when I try to reboot (dual boot machine) |
1,708,708,060,000 |
I run a CentOS 7 on VM11.The problem is whenever I type a letter on the file browser to activate search function that particular GUI stuck (but not other ones). Then I have to use Ctrl+Alt+F2 the kill the PID called"tracker-store" to unstuck the program.Any idea what might cause this issue?should I reinstall anything?... |
Ok here is how I disable the gnome indexer.The issues seems disappeared. I don,t know how it worked and still wish someone can come up with an answer with more explanation.
In terminal:
[yourname@localhost ~]$ sudo yum install tracker-preferences
Password: ****
In desktop gui:
click search and indexing
uncheck e... | Stuck on "tracker-store" during search file CentOS 7 |
1,485,483,815,000 |
I just found out that my mother had several virtualbox packages installed. But not virtualbox itself.
Namely, if I remember correctly, these three:
virtualbox-guest-dkms
virtualbox-guest-utils
virtualbox-guest-x11
And yes, these were installed on the host.
As she never used virtualbox, I probably installed it along w... |
There were multiple issues with this computer:
installed guest packages on the host system; removed
bad SSHD disk; replaced
swappiness was at standard value of 60, but as this computer uses normally 6 GB of RAM and has 8 GB RAM, it was swapping like crazy; set to 1
kernel was causing some of the issues; upgraded
Sit... | virtualbox-guest-* installed on the host; could this be the cause of system freezing? |
1,485,483,815,000 |
I've got a strange problem with my dell Latitude E6530: everytime I put it to suspend mode (closing the lid, as per Power Manager configuration) and the virtualization daemons (libvirtd and virtlogd) are running the computer goes to suspend but at the last moment when the power led should blur out and in, the computer... |
A couple of updates later (now with kernel version 4.4.17-1) and the problem seems to have disappeared. I guess that was a bug in the kernel but I'm still not quite sure. Time will tell.
| My Dell Latitude freezes upon suspending if libvirtd/virtlogd is running |
1,485,483,815,000 |
I just bought a E350M1 mainboard with onboard AMD Radeon 6310 Graphics Card.
I did (I think I did) the UEFI-Bios trick:
CSM activated
and plugged-in a usb-stick with an Ubuntu 13.10 Desktop i386 (made with lili Live USB Creator).
Unfortunately I got a screen like this:
I cant see a menu, I am only able to reboot ... |
Linux Mint 16 works.
Unfortunately I need to wait for release of other distributions.
| Blue gradient line on top and bottom instead of Ubuntu-USB-Grub-Screen |
1,485,483,815,000 |
Our Java application plays short notification sounds periodically (in response to user actions). On some hardward, our application will lock up after the 3rd or 4th short sound. We have to pkill java to recover.
We have the application installed on around 40 computers. All are running Linux. Half have Kubuntu 12.04 in... |
I previously obtained the best results for playing sound in Java on Linux with the sun.audio.AudioStream and sun.audio.AudioPlayer. Those are "internal" classes and not recommended, but they worked better than anything else for me (for many years). Until the problem that prompted this question.
My new solution is jus... | Java application locks up after playing sound |
1,485,483,815,000 |
Very often, when I type something in Omnibox (address-bar), Chromium/Chrome crashes. W/ crash I mean that it freezes and refuses to any signals (mouse, keyboard etc.).
This is what got printed out to terminal (if browser is spawned through it):
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object... |
I switched to Firefox for a while, but few weeks ago I tried Chrome once again. It was a big surprise to me; it works! Seems that system upgrade had fixed the bug in some point. I'm using Google Chrome 24.0.1284.2 dev from AUR now.
| Typing in Chromium's/Chrome's Omnibox crashes browser |
1,485,483,815,000 |
I encounter a bug that made my computer, under Debian 10, crash two times in ten days, and being unable to restart for ten minutes to half an hour.
Today during an Eclipse session, before while playing a game.
During my Elipse session today, I'm opening a web page on Firefox, and the computer frozes but the mouse is s... |
It went that my computer was broken : two memories sticks and one DIMM support on the motherboard were badly working and had to be removed or disabled.
The message :
next->prev should be fff f 8e7ab9011680
but was fff b 8e7ab9011680
hinted me to such failure. Because a pointer changing it's value by a single bit and t... | Computer froze and unable to restart for tens of minutes : can my syslog show if the trouble comes from a memory stick, a package or its power unit? |
1,485,483,815,000 |
I've been using Fedora 15 for a couple months now and haven't had any problems. Last week I switched desks and got a new monitor, and now all of a sudden it will randomly freeze up.
Also sometimes without freezing it will make all title bars (including the system bar at the top of the screen) and system images (such a... |
It may be the nouveau driver, which many people advise to void like the plague. This link explains how to disable it and replace it with the native nVidia drivers.
| System freezing on Fedora 15 - graphics issue? |
1,485,483,815,000 |
The last weeks I have been trying to reinstall a Linux distro in my laptop Asus X553S these are the specs:
8 GB Ram
Pentium Processor N3700 4 cores, 1.6 GHz
Hard drive 20 GB for root partition, 100 GB home partition, 2 GB Swap
Integrated intel graphics card
I tried to use other distros as Mageia and Zenwalk (slackwa... |
I have the same CPU model and the same issue. Those low-end Intel CPUs have some issues with their power states on Linux.
Try adding kernel parameter intel_idle.max_cstate=1 in your /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
(The line GRUB_CMDLINE_LINUX_DEFAULT is already the... | Random Linux freeze (Slackware, mageia, and others) |
1,485,483,815,000 |
Occasionally when I plug my Dell USB-C docking station into my laptop running Manjaro, the system immediately freezes completely and requires a hard reboot.
Other times, my external screens don't get detected until I unplug and replug the docking station. Keyboard and mouse always work though.
I've had these issues fo... |
When freezing I'd use journalctl -b -1. It will show you the previous kernel messages until reboot.
In case of non detected screens, I'd look at /var/log/Xorg0.log or other Xorg*.log files. You might post the relevant part of the logs in your question.
| Debugging issues with docking station |
1,485,483,815,000 |
This one is a bit weird.
We have a closed network of about five (5) Red Hat Workstation 7 assets in one of our development laboratories. One of the REHL 7 machines is hosting a USB connected DroboPro via NFS to the other machines - the other machines are mounting this share on boot via /etc/fstab. Everything works gre... |
give this a try: add the following flags to your nfs mount point in /etc/fstab:
bg,intr,soft,timeo=3,retrans=3,actimeo=3,retry=3
adjust timeout rates accordingly but i found this combination works the best. Ensure "default" is not set in nfs mount point line and read the man pages for nfs to see exactly how this woul... | NFS Share Locking Workstations in Closed Network |
1,485,483,815,000 |
My problem
If I transfer file with rsync using tapes,or disk(usb,e-sata,firewire)
linux hang,no way to resume if not using powerbutton(brutal shutdown!)
sysrq-trigger don't work,ssh don't answer,keyboard and screen no input.
I have a M5A97 R2.0 Asus board,with 16G ram Crucial.
I 've ordered a couple of other ram by ki... |
Change ram and..works fine.
Transfer of over 2TB completed
without panic.
So problem was my old ram.
| linux hang on transfer with rsync,can be a ram error? |
1,485,483,815,000 |
When I open too many (more than ~8/9) tabs in Chrome the whole GUI freezes and the mouse pointer doesn't move and the system responds incredibly slowly to keyboard input (~20s delay). I'm assuming it's all down to lack of RAM on my laptop but I haven't been able to check this when it actually happens due to the nature... |
Alt-Sysrq-F should help you if you're already in the trouble and system is very slow due to search for any free memory bits. But it's better to add more RAM especially with modern browser applications, which become more and more bigger due to support of many new web standards. As an alternative, you can increase your ... | Too many tabs in Chrome causes whole computer to freeze |
1,485,483,815,000 |
Yesterday I successfully managed to make a kiosk from Ubuntu Server. I'm going to use it to rub some web application that will run non-stop.
However, in some cases, duo to lot of js animation I'm afraid that it may freeze/won't respond anymore and I won't be there to do anything.
Is there a way to run some commands o... |
Browsers freeze typically when they hog memory. Since you are running in kiosk mode you can find out the ideal memory usage by the browser , and also the memory it is taking when it actually gets hung while you are observing it.
Lets say it gets hung when you are working - just find out the memory it is taking by usi... | Relaunch an app if it freezes |
1,485,483,815,000 |
My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day).
It may look different
white screen
black screen
screen freeze
Maybe some of these symtoms look familiar and you know possible reasons to check?
If not, what updates/logs/diagnostic tools can you advice to make the... |
Start from the very beginning. Go to /var/log and have a look at the syslog file.
Almost every error and problem will show up there. Any error entry is a potential problem, it is either the result of another error or the primary cause of your issues.
A healthy system should have VERY few error entries in syslog.
Onc... | frequent linux mint hangs |
1,712,611,232,000 |
I moved from Windows to Linux. I have been using Linux for a few weeks. I am having some problems, such as freezing, errors. I am a programmer on the rider program. When I run this program, Linux freezes and I cannot do anything with it.
When I use Bluetooth headphones, there is a delay in the sound and interruption, ... |
In general, and specifically to possibly address your Bluetooth audio issues, I would suggest a distro other than Debian stable. Debian stable is, while very stable, quite old in terms of included packages.
I would suggest, as a beginner, you might find Pop!OS, Ubuntu, or Mint to work better for you. These are kept mu... | Why does linux freeze and not work correctly |
1,712,611,232,000 |
So, I've installed Linux many times in the past, generally from a liveUSB, as I'm using now. It's a 32 GB SamData SD101, on USB 2.0. (Probably excessive for an installer, but it's what I had on hand and it was empty.)
I am currently running Linux Mint 20.4, and it's past time for an upgrade, so in this island between ... |
So, I got it on there. Here's what was happening.
To begin with, now that I've got some time for it, I cleared a USB port at the back of my machine and plugged the thumb drive in there. (It's not easy to get to, but doable; I usually just use that space for consistent peripherals and the front-panel or a hub for every... | Strange boot issue installing KUbuntu |
1,712,611,232,000 |
My Linux crashes after it wakes up from sleep mode,
namely, it stops responding to any commands,
at the moment I have Manjaro Linux, but there was a similar problem on Ubuntu.
My laptop: Huawei Mate Book D16 RLEF-X with processor: Intel i5-12450H.
I tried to change the value of some parameter in the root/etc/default/g... |
A solution has been found. After many days of trying and suffering, I finally decided to install POP OS! and check its operation on this problematic unit. After coming out of sleep mode in the new system, lo and behold, the system was still working. But it was too early to rejoice, she switched to reading mode. It was... | Linux crashes after resume from suspend |
1,712,611,232,000 |
On my Linux Mint 21.1 Cinnamon running an nvidia-driver-530...
VirtualBox 7.0 guest freezes whenever the guest is switched into full-screen mode. The exact version follows:
$ apt-cache policy virtualbox-7.0
virtualbox-7.0:
Installed: 7.0.8-156879~Ubuntu~jammy
Candidate: 7.0.8-156879~Ubuntu~jammy
Version table:
... |
For some reason, disabling 3D acceleration helped and fixed the issue:
| VirtualBox 7.0 guest freezes whenever the guest is switched into full-screen mode, fix? |
1,606,652,776,000 |
I'm currently running Debian Buster with the 4.19.0-9-amd64 kernel. I find that intermittently after booting my system, selecting this kernel, entering my boot disk encryption key, and waiting for systemd to launch its services, my screen will clear, but will not proceed to launch my WM from that point. (as a note, 4.... |
Since the posting of this questing, I've upgraded my system to Debian 11 (Bullseye), and with that upgrade I'm no longer seeing this hang. I presume some DE package was at fault and was upgraded in the process. I still encounter the "debian-vg" lines at startup, but the don't seem to impact it in any way.
| Intermittent hang after systemd startup on Debian Buster |
1,606,652,776,000 |
My PC freezes a third time and I have to shut it down forcibly. Why doesn't journalctl save the boot logs before forced shutdown? When I do journalctl --list-boots I only get the boot after crash.
I'm not sorting well or misconfiguration?
System: ArchLinux (5.4.8-arch1-1)
|
It depends on the freeze, and it's not clear to me what do you mean by "shut it down forcibly". If this means a power off, definitely, there is no way for your PC to sync data in a proper way. The recommended way to force reboot, is by using the magic SysRq key and the REISUBsequence. More details are at
https://wiki.... | Why journalctl don't save my logs of the boot before forced shutdown? |
1,606,652,776,000 |
I'm running Gnome on Ubuntu 17.04. I had gnome-terminal in fullscreen, neovim in a tmux session, a background process compiling code, and Chromium running as well, when my system froze up on me. I could move the mouse cursor, barely, with extreme lag, but that's all I could do. I waited several minutes, then tried Ctr... |
The following logs can help you debug your system from the last boot:
journalctl --boot=-1 | less
tail /var/log/syslog.1
tail /var/log/kern.log.1
tail /var/log/debug.1
tail /var/log/Xorg.0.log.old
| How to troubleshoot a (near total) freeze? |
1,327,810,934,000 |
In this question I asked how to prevent a media failure from halting the system boot process. However, I got two suggestions for /etc/fstab options
nobootwait
nofail
What is the difference between the two?
|
Firstly nofail allows the boot sequence to continue even if the drive fails to mount.
This is what fstab(5) says about nobootwait
The mountall(8) program that mounts filesystem during boot also recognises additional options that the ordinary mount(8) tool does not. These are:
bootwait which can be applied ... | What is the difference between 'nobootwait' and 'nofail' in fstab? |
1,327,810,934,000 |
What is the difference between sync and async mount options from the end-user point of view? Is file system mounted with one of these options works faster than if mounted with another one? Which option is the default one, if none of them is set?
man mount says that sync option may reduce lifetime of flash memory, but ... |
async is the opposite of sync, which is rarely used. async is the default, you don't need to specify that explicitly in releases of nfs-utils up to and including 1.0.0. In all releases after 1.0.0, sync is the default, and async must be explicitly requested if needed.
The option sync means that all changes to the ac... | Difference between 'sync' and 'async' mount options |
1,327,810,934,000 |
One of my servers is set up to automatically mount a Windows directory using fstab. However, after my last reboot it stopped working. The line in fstab is:
//myserver/myfolder /mnt/backup cifs credentials=home/myfolder/.Smbcredentials
The .Smbcredentials file is:
username=myaccount
password=mypassword
domain=mydoma... |
Thanks, but some more googling turned up the solution. It was using the wrong security type by default; this command worked:
$ sudo mount -t cifs //172.16.1.5/myshare/ /mnt/myshare \
-osec=ntlmv2,domain=MYDOMAIN,username=myusername,password=mypassword
| mount error 13 = Permission denied |
1,327,810,934,000 |
I'd like to know what is the exact mechanism (implementation) used to defer mounting until after network interface is up when one uses _netdev option in /etc/fstab?
Does systemd alter this behavior?
Also, what does delay_connect option to sshfs provide what _netdev does not?
From mount man page:
_netdev
... |
From man systemd.mount for version 231 of systemd:
Mount units referring to local and network file systems are
distinguished by their file
system type specification. In some cases this is not sufficient (for example network block device based mounts, such as
iSCSI), in which case _netdev may be ad... | How does _netdev mount option in /etc/fstab work? |
1,327,810,934,000 |
I know how to use /etc/fstab to automatically mount devices on boot or when doing sudo mount -a, which works perfectly fine. For example, here is my current line for my device
UUID=B864-497A /media/usbstick vfat defaults,users,noatime,nodiratime,umask=000 0 0
How do I achieve automatic mounting when this USB device w... |
I use the usbmount package to automount USB drives on my Ubuntu server install. I have confirmed that the package exists for Wheezy too. Recently also added for Jessie.
sudo apt-get install usbmount
usbmount will automount hfsplus, vfat, and ext (2, 3, and 4) file systems. You can configure it to mount more/diff... | How to automatically mount an USB device on plugin-time on an already running system? |
1,327,810,934,000 |
It seems that I have added incorrect record to /etc/fstab:
//servername/share /mnt/share cifs defaults,username=myuser 0 0
When I did mount -a, it asked user password to mount network share. It seems that it cannot proceed without password on boot, so it is just hung.
How can I fix fstab to prevent boo... |
It seems that I’ve found a solution:
At the GRUB prompt, hit A to append options.
Add init=/bin/bash to the end of the kernel command line and press Enter.
The system will boot to a prompt like bash-3.2# enter the following commands at the prompt
mount -o remount,rw /
Then edit the fstab:
vim /etc/fstab
Edit the f... | How to fix boot failure due to incorrect fstab? |
1,327,810,934,000 |
mount -a works fine as a one-time action. But auto-mount of removable media reverts to settings that were in fstab at the last reboot.
How to make the OS reload /etc/fstab so auto-mounts use the new settings when media is connected?
The specific example seen with Raspbian (Debian) Stretch:
FAT-formatted SD card; con... |
I suspect this is caused by systemd’s conversion of /etc/fstab; traditional mount doesn’t remember the contents of /etc/fstab.
To refresh systemd’s view of the world, including changes to /etc/fstab, run
systemctl daemon-reload
| How to force OS reload of fstab? |
1,327,810,934,000 |
The Arch Wiki on fstab specifies the options of / to be defaults,noatime, but on my installation the default fstab is created with the options of rw,relatime. The Arch Wiki covers the atime issues. What I am curious about is the defaults option. The man page for mount says:
defaults
Use the default options: rw, suid,... |
You only need defaults if the field would otherwise be empty.
You can leave out the options field altogether if it's empty, unless the 5th or 6th fields are present. Field 5 is the dump frequency, rarely used nowadays. Field 6 fsck order, should be 1 for /, 2 for other filesystems mounted on boot and 0 otherwise. Fiel... | Do you need to specify the "defaults" option in fstab? |
1,327,810,934,000 |
In the blkid output, some lines contain UUID and PARTUUID pairs and others only PTUUID. What do they mean?
In particular, why are two IDs required for a partition and why are some partitions identified by UUID/PARTUUID and some by PTUUID?
|
UUID is a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition. It can only be read if the filesystem type is known and readable.
PARTUUID is a partition-table-level UUID for the partition, a standard feature for all partitions on GPT-partitioned disks. Since it is retrieved fro... | What is UUID, PARTUUID and PTUUID? |
1,327,810,934,000 |
I was making some changes to /etc/fstab, when this chicken and egg question occurred to me - if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then how does the OS read that file in the first place?
|
When the boot loader calls the kernel it passes it a parameter called root. So once the kernel finished initializing it will continue by mounting the given root partition to / and then calling /sbin/init (unless this has been overriden by other parameters).
Then the init process starts the rest of the system by loadin... | How is /etc/fstab accessed before root is mounted? |
1,327,810,934,000 |
For example, this is the first line of my /etc/fstab:
UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1
And here's the output of df -h command (reporting free disk space):
honey@bunny:~$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/vda ext4 ... |
The advantage of using the UUID is that it is independent from the actual device number the operating system gives your hard disk.
Imagine you add another hard disk to the system, and for some reason the OS decides that your old disk is now sdb instead of sda.
Your boot process would be screwed up if fstab points to... | Why does fstab use UUID instead of the actual file system name? |
1,327,810,934,000 |
I'm on an Arch Linux system, which means systemd.
In systemd there are native unit files for mountpoints, with the extension .mount. I've always just used /etc/fstab, which never gave me problems because systemd just picks up information from that. But now that I've actually read the documentation, I'm wondering if I ... |
From man systemd.mount itself:
fstab
Mount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). Mounts listed in /etc/fstab will be converted into native units dynamically at boot and when the configuration of the system manager is reloaded. In general, configuring mount points... | Is there any reason to move away from fstab on a systemd system? |
1,327,810,934,000 |
I am learning about linux security and struggling to understand why a USB stick with a character device on it is potentially dangerous.
If I have a USB stick with a bash executable that has setuid root on it, the danger is obvious: Anybody with such a USB stick can gain root privileges on my computer if I have an entr... |
Because access to the underlying device is controlled only by file permissions by default, so if your USB stick contains a POSIX filesystem with a world-writable device node corresponding to a real device in the system, you can use that device node to access the corresponding device as a "plain" user. Imagine a device... | Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking? |
1,327,810,934,000 |
I'm on Ubuntu 14.04.
I pasted something incorrect (from a tutorial) into my /etc/fstab file. As a result, the root file system will not mount when the machine boots up.
I know what needs to be fixed in /etc/fstab, but I cannot save the file (or any file) because the system boots as read only.
As root, I tried:
mount -... |
To get things back to where they should be, I:
Highlighted 'Ubuntu' at the boot menu
hit 'e' to edit the configuration
in the line starting with linux=, I switched the 'ro' to 'rw' and added the word 'single' at the very end of the line
hit f10 to boot
once it booted, as root, I did:
mount -o remount,rw /
as root, I... | How to edit /etc/fstab when system boots to read only file system? |
1,327,810,934,000 |
I currently have an extra HDD which I am using as my workspace. I am trying to get it to mount automatically on reboots using the following line added to /etc/fstab
/dev/sdb1 /media/workspace auto defaults 0 1
This works to auto mount it, however I would like to restrict read/write access to users belonging to a spec... |
If the filesystem type is one that doesn't have permissions, such as FAT, you can add umask, gid and uid to the fstab options. For example:
/dev/sdb1 /media/workspace auto defaults,uid=1000,gid=1000,umask=022 0 1
uid=1000 is the user id.
gid=1000 is the group id.
umask=022 this will set permissions so that the owner... | Automatically mount a drive using /etc/fstab, and limiting access to all users of a specific group |
1,327,810,934,000 |
Using Fedora 24, I had configured in /etc/fstab an external usb drive:
UUID=6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external ext4 defaults 0 0
When I unplugged the usb disk and reboot, it does not boot
That is the error message:
[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-6826692e\x2d79f4\... |
Using the nofail mount option will ignore missing drives during boot. See man pages fstab(5) and mount(8).
nofail Do not report errors for this device if it does not exist.
So your fstab line should instead look like:
UUID=6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external ext4 defaults,nofail 0 0
| Cannot boot because missing external disk |
1,327,810,934,000 |
..and what are the consequences of the different methods?
I have been trying some things with the mounting of an sda2 partition.
Mounting in fstab, not mounting in fstab but from the file manager.
So far, if I am right, I learned that by mounting in fstab, a partition is mounted automatically at startup.
But this mo... |
This is documented (at least for gnome-shell/nautilus) in gvfs-udisks2-volume-monitor:
The gvfs-udisks2-volume-monitor process is responsible for the disks,
media, mounts and fstab entries shown in the desktop user interface.
..........................................
A device is either mounted (in which case its dire... | What is the difference between mounting in fstab and by mounting in file manager |
1,327,810,934,000 |
The way I understand it, initramfs is responsible for loading the "real" root filesystem.
Now, there are two places where we define that root. First we put an entry in /etc/fstab. Second, we put the device on the kernel boot commands e.g. root=/dev/sda1.
Which one does initramfs use to determine where is the root fi... |
As you stated, the purpose of initramfs is to get the "real" root filesystem mounted (it can do other things too, but this is the common task).
Without an initramfs, the kernel will normally mount a partition up as read-only and then pass control over to /sbin/init. An initramfs just takes over this task from the kern... | Does initramfs use /etc/fstab? |
1,327,810,934,000 |
From my understanding of /etc/systemd options, noauto means that the device will not be mounted at boot time (or with mount -a).
Is there any situation where adding nofail changes the behaviour if noauto is already given, or is it totally redundant?
man systemd.mount(5) says:
With noauto, this mount will not be added... |
Just for the record:
For an external USB disk which is usually not connected at startup, I have an fstab entry
/dev/disk/by-label/data /data xfs noauto,user,noatime 0 0
When booting there is no error as noautokeeps the system from trying to mount. When I try to mount manually without the drive connected, I immedi... | /etc/fstab: meaning of "nofail" if "noauto" is already specified |
1,327,810,934,000 |
I'm learning how to set up a tmpfs in fstab for my www-data user and I was wondering if I can use the actual user/group name instead if the numeric ids (personal preference)?
I'm on Debian with ext4, formatted with "msdos" during setup.
It seems to be working, but I'm wondering if this is a Debian-specific feature or ... |
The Linux mount program interprets non-numeric parameters to uid and gid options as user and group names respectively. This applies to all filesystem types. It works both if the options come from the command line and if they come from /etc/fstab.
Source: source (old (parse_opt), new (mnt_optstr_fix_gid, mnt_optstr_fix... | Can fstab options uid and gid be the user-group name or must they be numeric? |
1,327,810,934,000 |
I have done many obscure system optimizations in the past, but I got rid of most of them after powertop told me I should set my USB ports to autosuspend, which forced them to an eternal sleep, and also after I realized the benefits of a higher swappiness.
But today, while looking at /etc/fstab, I noticed I had set the... |
What does commit really do?
I think one of the best explanations was given here by allquixotic.
Are there really advantages of increasing it (like responsiveness and
power savings)? May it actually cause data loss?
As per the ext4 official documentation:
Ext4 can be told to sync all its data and metadata every ... | Advantages/disadvantages of increasing "commit" in fstab |
1,327,810,934,000 |
In my /etc/fstab file I have an entry for my swap as follows:
/root/swap swap swap sw 0 0
I have other machines and also I've seen online that sometimes they put default or xfs or other options. Then, I'm a little confused on what 'sw' means and what's for, and also which one would be the best option to put there and... |
From the fstab manual on my system:
The fourth field, fs_mntops, describes the mount options associated with the filesystem. It is formatted as a comma separated list of options. It contains at least the type of mount (see fs_type below) plus any additional options appropriate to the filesystem type. [...]
If fs_type... | What 'sw' means in the fstab swap entry for 'mount options' column |
1,327,810,934,000 |
I get that I can use mount to set up / directories and that I can use the /etc/fstab to remount them on reboot.
Testing the fstab file is also fun with mount -faV.
When I'm looking at the fstab file, the number of space is disconcerting. I would have expected one space (like a separator between command parameters) o... |
The number of spaces is a way to cosmetically separate the columns/fields. It has no meaning other than that. I.e. no the amount of white space between columns does not matter.
The space between columns is comprised of white space (including tabs), and the columns themselves, e.g. comma-separated options, mustn't cont... | What are all the spaces in the /etc/fstab for? |
1,327,810,934,000 |
I am using OpenStack Cloud and using LVM on RHEL 7 to manage volumes. As per my use case, I should be able to detach and attach these volumes to different instances.
While updating fstab, I have used defaults,nofail for now but I am not sure what exactly I should be using. I am aware of these options:
rw, nofail, noat... |
As said by @ilkkachu, if you take a look at the mount(8) manpage, all your doubts should go away. Quoting the manpages:
-w, --rw, --read-write
Mount the filesystem read/write. This is the default. A synonym is -o rw.
Means: Not needed at all, since rw is the default, and it is part of the defaults option
nofail Do... | When and where to use rw,nofail,noatime,discard,defaults? |
1,327,810,934,000 |
Question: What does /dev/disk/by-pathdescribe? And where is this documented?
Going through the meaning of what is displayed in the folders /dev/disk/by- I've got that far, and I wonder is this correct?
by-id → based upon the serial number of the hardware devices
by-label → Whatever name was set manually for this disk... |
Mountpoint /dev is devtmpfs filesystem and managed by udev completely.
So for details we have to go to udev configuration.
2 udev rules are handling this typically
$ grep -ri '/dev/disk' /usr/lib/udev/rules.d/
/usr/lib/udev/rules.d/60-persistent-storage.rules:# persistent storage links: /dev/disk/{by-id,by-uuid,by-lab... | understanding /dev/disk/by- folders |
1,327,810,934,000 |
I am running Oracle Linux 7 (CentOS / RedHat based distro) in a VirtualBox VM on a Mac with OS X 10.10. I have a Synology Diskstation serving as an iscsi target.
I have successfully connected to the Synology, partitioned the disk and created a filesystem. It is refernced as /dev/sdb and the partition is /dev/sdb1. ... |
Just change the parameter "defaults" by "_netdev", like this:
UUID=723eb295-8fe0-409f-a75f-a26eede8904f /mnt/www ext3 _netdev 0 0
This way the mount point will be mounted only after the network start correctly.
| Mount iscsi drive at boot - system halts |
1,327,810,934,000 |
What is the difference between using auto.master and having autofs automount your NFS mountpoints versus just putting the info in fstab? Linux Red-Hat 5/6
|
With fstab, the advantage is the remote filesystem will be mounted on system (when the noauto mount option is not used).
Additionally, it depends how the mount point is defined. There are two options which determines the recovery behaviour when the NFS client can't reach the server. With the hard option (default one... | Linux: difference between using autofs with NFS and just using fstab |
1,327,810,934,000 |
Can I include another file in my fstab file?
I.e. can I have fstab execute lines from another file at an arbitrary point, and then return to the main file when completed?
|
Generally not, but with newer versions of mount/swapon/fsck... on Linux (from util-linux 2.19) at least, you can have more files (with .fstab extension) in /etc/fstab.d. So you can have a /etc/fstab.d/00_header.fstab, /etc/fstab.d/50_middle.fstab, /etc/fstab.d/99_end.fstab.
Another approach if all you want is mount -a... | Can I include another file in fstab |
1,327,810,934,000 |
I have an ext4 mounted with the flags rw,suid,dev,exec,auto,user,async in /etc/fstab but running mount after mounting gives rw,nosuid,nodev,noexec,relatime,user.
How do I get it to mount exactly as written in /etc/fstab and (optionally) why is there such a difference?
I'm using Arch Linux.
|
You must put the exec, suid and dev options after the user option, because user implies noexec, nosuid and nodev.
See mount man page for details:
user
Allow an ordinary user to mount the filesystem. The name of the mounting user is written to the mtab file (or to the private libmount file in /run/mount on systems ... | Drive mounted with flags different from /etc/fstab - not respecting suid, dev, or exec |
1,327,810,934,000 |
What is the difference between nointegrity, noatime and relatime? And what is the best option for a SSD? I am using ext4 as my filesystem. And why disabling journaling on my system, data loss can occur? Can I use for example nointergrity & noatime together in fstab, or only one option is accepted?
Thank you!
|
The nointegrity option has no direct relation with atime, noatime, relatime or nodirtime. You could choose only one of the time options for files. Using noatime imply nodirtime. So, noatime will make all files and directories noatime.
In my system I can not find the option nointegrity for ext4. Please check the man mo... | Difference between nointegrity, noatime & relatime |
1,327,810,934,000 |
The server is listening on port '8765' and requires a SSH key for authentication.
I can mount the remote directory using this command:
sshfs -o idmap=user,port=8765 stephen@server:/export/usb2T /mnt/usb2T
The server recognizes my SSH public key.
I have seen that as an fstab entry for the standard SSH port this will b... |
I want this sshfs mount to:
happen only after network connection is achieved;
for the files on the mount to be executable.
Pulling together the info provided in somethingSomething's excellent post along with the options required we have this:
stephen@server:/export/inbox /mnt/inbox fuse.sshfs x-systemd.automount,x-... | How to make an fstab entry for sshfs on non-standard SSH port and using ssh key |
1,327,810,934,000 |
I'm running a modified WD MyCloud (Gen 1) NAS with Debian 8 (Jessie) installed on it.
Due to the nuances of the device, I can't resize the root partition, and am struggling with space on it.
To remedy this, I've rsynced the /var and /usr directories on to the main data partition.
I've then added the following lines to... |
If you are using systemd, mounts are done in parallel (by dynamically converting the fstab entries into mount units), line ordering is not preserved as would be expected from pre-systemd experience.
You have an untold dependency that's not automatically guessed: mounting /data/ before mounting /usr. WIthout it you get... | /etc/fstab fails to bind mount on boot, but running mount -a works correctly |
1,327,810,934,000 |
I recently upgraded my kernel from 3.16.4 (Debian jessie) to 4.9.0 (Debian stretch).
Everything was fine, until I tried to "Hibernate" (suspend to disk).
When I use Hibernate option in LXDE, it appears to hibernate. I can hear the disk spindle ticking and writing data. But the problems appears when resuming from hiber... |
The issue is due to a conflict between hibernate and kASLR on x86-32. This can be solved by disabling kASLR with the nokaslr kernel boot option. x86-64 is not affected.
For Grub this can be done by editing /etc/default/grub and adding nokaslr to the boot options, e.g.:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nokaslr"
Then r... | Hibernation resume fail on linux kernel 4.9.0, Debian 9 |
1,327,810,934,000 |
I have a 1TB HDD (/dev/sda1, mount point /run/media/<name>/4733A97E4133EADF) that I'm trying to mount as read-write, but I can only get it to mount as read-only.
System:
$ uname -a
Linux <hostname> 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux
$ lsblk -f
NAME FSTYPE LABEL UUID ... |
Although @ingopingo answered the question in one of the comments, i am going to write an answer with further information now.
By default the Linux kernel only supports reading from the NTFS file system. For read/write access you will need a read-write NTFS driver like the ntfs-3g package from extra repository.
After i... | Unable to mount drive as read-write |
1,327,810,934,000 |
I can mount a drive using 9p on to my libvirt guest using the following command...
mount -t 9p trans=virtio,version=9p2000.L,rw share /machine/host
...but can't work out what to add to /etc/fstab to do it on startup.
I have tried...
share /machine/host 9p trans=virtio,version=9p2000.L,rw 0 0
...but the guest fails ... |
This did it for me.
https://superuser.com/q/502205/524816
All credit to @roiama for the answer (in question comments).
| How to mount 9p drive using /etc/fstab? |
1,346,289,248,000 |
I have a home partition which is shared by mulitple distros on the same box. I'm using bind mounts from fstab. Each Linux install has something like this:
UUID=[...] /mnt/data ext4 nodev,nosuid 0 2
/mnt/data/arch /home none defaults,bind 0 0
/mnt/data/files /files none defaults,bind 0 0
The ... |
It's safe to unmount one of the bind-mounted copies. After you run mount --bind /foo /bar, the kernel doesn't keep track of which of /foo or /bar came first, they're two mount points for the same filesystem (or part of a filesystem).
Note that if /foo is a mount point but /foo/wibble isn't, mount --bind /foo/wibble /b... | Umount device after bind mounting directories: is it safe? |
1,346,289,248,000 |
I am experimenting mounting options for a program I am writing. I am running Linux Mageia 2.
I added the following line to /etc/fstab
/dev/sr0 /mem auto user,noauto, 0 0
and I removed all other entries regarding /dev/sr0 which is the device for my DVD drive.
Then, acting as normal user, I can successfully
$ mount /d... |
The problem is that your /etc/mtab is not a file but a symlink to /proc/mounts. This has advantages but also the disadvantage that user does not work. You already guessed right the reason for that: "the system is confused when remembering who mounted the file system". This information is written to mtab, cannot be wri... | Option "user" work for mount, not for umount |
1,346,289,248,000 |
I'm using sshfs in my fstab to mount a filesystem in Ubuntu 18.04.04 LTS:
sshfs#[email protected]:/remote-dir /mnt/local-mnt fuse rw,exec,user,allow_other,noauto,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 0 0
It mounts fine, but if I try to execute anything in the path I get:
./some-executable: Permi... |
The exec option is not being ignored - it's being overwritten by an implicit noexec associated with the subsequent user option. This behavior is alluded to in man mount:
user Allow an ordinary user to mount the filesystem. The name of the
mounting user is written to the mtab file (or to the privat... | 'exec' option ignored in fstab for sshfs, need to specify to 'mount' on command-line? |
1,346,289,248,000 |
While following this guide to installing Arch Linux the reader is instructed to execute the following command:
genfstab -U -p /mnt >> /mnt/etc/fstab
It is stated the the -U option uses UUID's over labels, but what does the -p option do? I have Googled it and can only find a page on fstab itself, not its generator. Ar... |
As stated in the "usage" section, -p will skip pseudo-FS mounts (tmpfs, AutoFS and others):
usage: genfstab [options] root
Options:
-L Use labels for source identifiers (shortcut for -t LABEL)
-p Avoid printing pseudofs mounts (default behavior)
-t TAG Use TAG for source identifiers
-U ... | What does genfstab's -p option do? |
1,346,289,248,000 |
I got a new drive and I can copy files fine with simple cp on the drive. However for some weird reason I get Permission denied with ffmpeg.
Permissions seem fine unless I'm missing something
> ll /media/manos/6TB/
drwxrwxrwx 13 manos 4096 Apr 16 00:56 ./
drwxr-x---+ 6 manos 4096 Apr 16 00:49 ..
-rwxrwxrw... |
So after a lot of digging I figured the issue is with snap package manager. Apparently by default, snap can't access the media directory so we need to manually fix this.
Check if ffmpeg has access to removable-media like below
> snap connections | grep ffmpeg
desktop ffmpeg:desktop ... | "Permission denied" with ffmpeg (via snap) on external drive |
1,346,289,248,000 |
When I installed my SSD I just mounted with discard and didn't sweat it. However today I was reading about the pros and cons of using fstrim instead and decided to run the program to get an idea of how long it would actually take (still with my partitions mounted with discard). The command took several minutes on both... |
Two things here:
fstrim trims all the data that is unallocated in the filesystem (well, not really all the data, only the data blocks that are not allocated, I don't think the unused parts of the inode table or the parts of not-completely used blocks are trimmed), regardless of whether discard is in used or not. fstr... | fstrim trims more than half of partition size even though partition mounted with discard |
1,346,289,248,000 |
I have a remote sshfs drive that I use on a daily basis. I previously executed the following command every time I booted up my computer.
sshfs -o Ciphers=arcfour -o Compression=no -o reconnect remote:dev ~/dev
Obviously, it's not super convenient to do that by hand every time, so I thought I'd just add the remote to ... |
To include the options you want, you should modify your fstab entry as shown below. Be careful, as adding an option that doesn't actually exist will cause your system not to boot.
sshfs#wbarlow@remote:/home/wbarlow/dev /home/wbarlow/dev fuse defaults,users,noauto,idmap=user,Ciphers=arcfour,Compression=no,reconnect 0 ... | Force reconnect on sshfs drive mounted via fstab |
1,346,289,248,000 |
I have a mount command which with the use of -t cifs mounts a remote folder (for example \\remote_ip_address\folder) to a local folder (for example /srv/mount_destination).
So the whole command looks like this:
mount -t cifs -o ro,username=UN,password=PWD '\\remote_ip_address\folder' /srv/mount_destination
However I ... |
Given the line you’ve added to /etc/fstab, the following should work:
USER=UN mount /srv/mount_destination
(replacing UN with the appropriate value). This will use the file system, target and options specified in /etc/fstab, the username stored in the USER environment variable, and prompt for a password. If you want ... | Use "mount -o" with a non-root user |
1,346,289,248,000 |
I had swap from a swapfile working for quite some time, but for some reason it stopped working.
sudo fallocate -l 4G /home/.swap/swapfile
sudo chmod 600 /home/.swap/swapfile
sudo mkswap /home/.swap/swapfile
# /etc/fstab
/home/.swap/swapfile swap swap defaults 0 0
sudo swapon -a
swapon: /home/.swap/swapfile: swapon ... |
Please try replacing
fallocate -l 4G /home/.swap/swapfile
with
dd if=/dev/zero of=/home/.swap/swapfile bs=1M count=4096
| Swapfile Swapon invalid argument |
1,346,289,248,000 |
In mount man page errors=remount-ro is an option for mounting fat but this option doesn't appear in ext4 options catalog.
I know what this option means: In case of mistake remounting the partition like readonly but I don't know if it's a correct option or only a bug.
|
It is perfectly valid for ext4, and is defined in the ext4 manpage:
errors={continue|remount-ro|panic}
Define the behavior when an error is encountered. (Either
ignore errors and just mark the filesystem erroneous and
continue, or remount the filesystem read-only, or panic and
... | Why do I have "errors=remount-ro" option in my ext4 partition in my Linux? |
1,346,289,248,000 |
It's a simple question: but I am in much pain over this situation, so here is the question:
How can I "mount" a share so that a) the share is run on boot b) that I can control things like chown/chmod from the client.
# mount -t cifs -o username=root,password=******** //192.168.0.110/backup/ /var/backup/
# chown -R ww... |
If you add the share to fstab you should be ok, but remember you need to have a network connection before you actually mount the drive. There "network" option is for that.
Now as to making it look "exactly" like a native partition, you can't. There are certain things that are not supported over a network drive. There... | how do I mount a CIFS share so I can fully control the mounted volume on the client |
1,346,289,248,000 |
In Eric Hammond's article Running MySQL on Amazon EC2 with EBS he shows how to add a second drive (/vol/) and then progresses to move mysql's config and data there.
/sdh gets mounted as /vol by editing fstab and adding:
/dev/sdh /vol xfs noatime 0 0
And next some paths are added like this:
/vol/etc/mysql /etc/mysql ... |
bind mirrors a filesystem (among other situatons, it's useful when setting a chroot inside which you need to have a "complete" system (like when unpacking/installing Gentoo).
Just simply like that, it mirrors a tree from A into B. I don't know for sure if it has any option, but I doubt it, it does not do more than, we... | What is the difference between a symlink and binding with fstab? |
1,346,289,248,000 |
Inside the /etc/fstab file, in the sixth column, there is a number that corresponds to whether a filesystem should be scanned for errors. Possible values are:
0 - skip
1 - high priority
2 - low priority
Why was fsck 'priority' introduced in /etc/fstab?
|
The field exists so you can define the order in which filesystems are checked. Different partitions on the same drive should not be checked at the same time since the IO going to each filesystem will compete with one another, and slow the whole process down. Filesystems on different physical disks could be set to ch... | Why was fsck priority introduced in /etc/fstab? |
1,346,289,248,000 |
I want to be able to mount our file server's file share (on a Mac OS X server, shared via AFP and Windows File Sharing) on my Ubuntu 10.10 linux laptop. I want to be able to mount it as my normal user, and be prompted for the password each time. What do I add to /etc/fstab to make this happen? I know I did it before, ... |
The line in /etc/fstab I eventually used was:
//10.1.0.15/G4\040320H /media/G4 cifs username=master,user 0 0
What solved the issue of not being prompted for the password as well as credentials= not working was installing mount.cifs via:
sudo apt-get install cifs-utils
Just like Michael Mrozek I assumed I h... | How do I add an entry in /etc/fstab for a windows share? |
1,346,289,248,000 |
In BuildRoot 2015.08.1 /etc/fstab contains the following line.
/dev/root / ext2 rw,noauto 0 1
On my encrypted Ubuntu laptop /etc/fstab contains the following line.
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
Question: What is the purpose of listing the rootfs in /etc/fstab?
Not the answer:
The kernel m... |
The options in fstab are supposed to be used to remount it, applying the options specified ( which may NOT include rw access ). A boot script that is hard coded to remount the root fs with rw without consulting fstab is broken. Thus, the only result of leaving it out of fstab is that it won't be remounted, and will ... | What is the purpose of listing the rootfs in /etc/fstab? |
1,346,289,248,000 |
I have 2 XFS partitions I want to mount via /etc/fstab:
/dev/sdb1 /media/data xfs defaults 0 2
/dev/sdc1 /media/backup xfs defaults 0 2
Both are mounted at boot but when I try to access it as a non-root user, I get
$ cd /media/data
-bash: cd: /media/... |
I have currently resolved this by:
Creating a new group and add my user to the new group
chgrp the mounts /media/data and /media/backup to created group
chmod 775 to both mounts
I can now access said mount points as my user and any user added to the new group I've created.
| How do I mount an XFS partition via /etc/fstab and non-root users can r/w to it? |
1,346,289,248,000 |
How this is possible?
ACL is not enabled in /etc/fstab, and I can verify it via manually opening fstab or running sudo mount | grep -i acl.
But getfacl & setfacl Commands would work without any complains!
The problem is, first I need to understand why this is working, and second I need to check other systems to see... |
ext3/4 file systems have a default mount options attribute in their headers. You can see it with:
$ LC_ALL=C tune2fs -l /dev/device | grep 'Default mount options:'
Default mount options: user_xattr acl
You can change it with tune2fs -o and mounting with -o noacl would override it.
When creating a new file system, ... | ACL is NOT enabled but it's working [duplicate] |
1,346,289,248,000 |
I mounted a FAT32 drive onto my Linux computer using the following terminal command:
> sudo mount /dev/sdb1 /media/exampleFolderName -o dmask=000, fmask=111
I did this so I could share / edit the files over a network connection. Unfortunately Linux doesn't support per file permissions in FAT32 format, so this sets th... |
You probably want to add a line like
/dev/sdb1 /media/drive1 vfat dmask=000,fmask=0111,user 0 0
to /etc/fstab. The additional ,user in the options field allows any user to mount this filesystem, not just root.
| Linux, fat32 and etc/fstab |
1,346,289,248,000 |
For /tmp in /etc/fstab, I have mode=1777, but after a reboot, the permissions on /tmp are 0755. Another directory /var/tmp is configured in exactly the same way but does not have this problem (see below). This is a Raspberry Pi running Ubuntu 18.04 Server. The root filesystem is a microSD card mounted read-only.
What ... |
This was part of my initial configuration (because / is mounted read-only):
sudo rm -rf /var/spool && sudo ln -s /tmp /var/spool
Apparently at boot, the system does chmod 755 /var/spool, which changed /tmp in my case.
The fix was to replace the symlink with a normal directory and add a third tmpfs mount:
sudo rm -rf ... | Why is /tmp mounted with permissions 0755 when fstab has 1777? |
1,346,289,248,000 |
I have a partition, /dev/sdb1, that gets mounted at /data. In /etc/fstab I have:
/dev/sdb1 /data ext4 defaults 1 2
After that partition gets mounted, I then have the following bind mounts:
/data/backups/f17/opt /opt none rw,bind 0 0
/data/backups/f17/home /home none r... |
A bind mount is equivalent to the original. There isn't one that's marked as the original and one that's marked as a copy. Bind mounts are like hard links in this respect, not like symbolic links.
Since GNU coreutils 8.21 (if I read the changelog correctly), df strives to report each filesystem only once. Older versio... | bind mounting and df output |
1,346,289,248,000 |
I need to mount a ntfs partition and be able to use it with unix file system permissions. The problem is that, when I mount the partition using the following fstab entry, I cannot run chown and chmod successfully. It executes without error, but the file access rights are not changed.
PARTUUID=c3e3b171-d451-44e6-9f17-f... |
With NTFS-3G, setting the owning user and group seems only to be possible when a UserMapping file containing a mapping for the targeted user/group is present. This is not really clear from the documentation, but I'm testing it just now and that is what is happening.
If compatibility with an existing Windows installat... | Cannot chown, chmod on mounted ntfs partition |
1,346,289,248,000 |
We have a Redhat 7 machine. And the filesystem for device /dev/sdc is ext4.
When we perform:
mount -o rw,remount /grop/sdc
We get write protected error like:
/dev/sdc read-write, is write-protected
in spite the /etc/fstab allow read and write and all sub folder under /grop/sdc have full write/read permissions:
/dev... |
It appears your filesystem has become corrupt somehow. Most filesystems switch to read-only mode once they encounter an error. Please perform the following commands in a terminal:
umount /dev/sdc
e2fsck /dev/sdc
mount /dev/sdc
If /dev/sdc is the harddisk which has your operating system on it, use a startup DVD or usb... | How an ext4 disk became suddenly write protected in spite configuration is read/write? |
1,346,289,248,000 |
I'm messing around with having both /home and /var on a separate partition which will be mounted in /myhdd.
Next, I use mount --bind to mount /var on /myhdd/var and /home on /myhdd/home. With this configuration I am able to successfully install Arch Linux, but as soon as I boot to the installed system /var and /home a... |
Your problem:
/myhdd ... /mnt/myhdd/... /mnt/myhdd/...
It should read either:
/mnt/myhddd ... /mnt/myhdd/... /mnt/myhdd/...
or...
/myhdd ... /myhdd/... /myhdd/...
| bind mount /var with fstab |
1,346,289,248,000 |
I've been trying to set up my Raspberry Pi B+ as a HTPC that also shares a USB HDD over Samba and AFP. The latter is working just fine, and the Samba share seemed to be working too for a moment. However, whenever I try to connect to the Pi now (no modifications AFAIK) it shows me the folders with small stop icons. The... |
I noticed that by default, OSMC also shares external HDD's over Samba. On connecting to the Raspberry via Samba, I get the following options:
osmc
homes (not relevant in this case)
Data (ExFat partition on HDD)
When connecting to osmc, from my understanding, it serves me /home/osmc which has symlinked folders that I... | Mounting ExFAT on Linux |
1,346,289,248,000 |
I want to use aufs to combine a few disks.I am able to mount the aufs file system using the mount command from the command line.
However, when trying to mount the same through an fstab entry, it fails. Google tells me that fstab does not mount file systems in the specified order, creating this problem. I also found re... |
Systemd has native support for mounts (man systemd.mount). In fact systemd reads /etc/fstab, uses it to generate mount units, and mount the filesystems itself.
Rather than relying on fstab, it's also possible to create mount units by hand. This is how system mounts like /dev, /sys, /proc, etc are handled (/usr/lib/sys... | How to mount aufs file system on boot in archlinux? |
1,346,289,248,000 |
As I was checking the /etc/fstab I noticed that the swap space has attr pass=0, which means its filesystem is not checked at boot time.
Can anyone please tell me why is this behavior for?
|
At boot time, swap doesn’t contain any data which would need to be recovered, so there’s no point in writing a tool to repair swap. If a swap partition or file is corrupted in such a way that swapon can’t make use of it, the fix is to mkswap it again — there’s no need for a separate fsck.swap tool, so there isn’t one ... | Why swap space doesn't get filesystem check at boot time? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.