date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,424,716,405,000 |
I am having issues getting autofs to mount user's home directories via NFS. I have an NFS client (client.home) and an NFS server (server.home). Both systems are CentOS 7.4. SELinux is running in permissive mode on both systems.
Can anyone point me into the right direction so I can automount user's home directories?
... |
I figured it out. I was editing the /etc/auto.master on the server when I should have been doing it on the client. That is, on the client add the following to /etc/auto.master
/home/ /etc/auto.home
Still on the client, create the /etc/auto.home file and add the following to it
* -nfs4,rw &:/home/&
Finally r... | Autofs Issues Mounting NFS Home Directories (CentOS 7.4) [closed] |
1,424,716,405,000 |
I'm on CentOS 6.6 and I'm having a strange problem with autofs.
I'm trying to mount an smb share on /var/www/html/mysite/docfolder, so I created a docfolder inside the mysite folder, ran chmod 777 on it, then added:
/var/www/html/mysite/docfolder /etc/auto.docfolder --ghost
in /etc/auto.master . Then i created auto.d... |
Found this in my notes, from when I ran into this same thing:
Set SELinux boolean to allow Apache to access CIFS shares:
# setsebool -P httpd_use_cifs on
| autofs 'failed to mount autofs path' as service but not manually (selinux) |
1,424,716,405,000 |
Does anyone have a more comprehensive /etc/auto.disks script for autofs that takes into consideration all mounted disks, even NTFS, FAT32? So all that's needed to mount any attached drive is ls /mnt/sda1 or ls /mnt/sdb2?
This guide along the line of what I'm looking for, except this guy only accesses ext3 drives.
|
Here's what I came up with:
#!/bin/bash
key="$1"
[ -b /dev/${key} ] && {
fstype=`sudo blkid -s TYPE "/dev/$key" -o value`
opts="-fstype=$fstype,rw"
echo "$opts :/dev/${key}";
}
| Comprehensive /etc/auto.disks script for autofs that takes into consideration all mounted disks, including NTFS and FAT32? |
1,424,716,405,000 |
Is there a way to find out what is trying to mount this file?
Jul 13 14:27:24 myhost automount[13527]: lookup(file): lookup for
tmp_dir failed
Something is looking for "tmp_dir", and I've grepped a bunch of places but cannot find what script, program, etc... is looking for the file/dir and is causing automount to ... |
Here are a couple of ways to monitor accesses to particular files. I'm not completely sure how they'll interact with an automounter, but they probably will work.
Put a LoggedFS filesystem on the automount directory (/amnt or whatever), and configure it to look out for /amnt/tmp_dir. Start from the provided configurat... | Automount lookup failed. How to determine what is trying to access the file? |
1,424,716,405,000 |
I have a laptop with an extra internal HDD and external HDD via USB that I would like to automount using autofs. Here is my auto.master:
/mnt/ /etc/auto.ext-int
/run/media/ /etc/auto.ext-usb
Auto.ext-int, which is for the internal HDD, contains:
external -fstype=auto :dev/sda1
Auto.ext-usb, which is for th... |
The problem is that you are using /dev/sdb in your automount definition, which is the device name for the whole drive, not an individual partition. Pick /dev/sdb1 or /dev/sdb2, and it will mount.
Also, you are using /run/media as the mount point, which the udisks2 service also uses. It will create its own mount poin... | autofs/automount not mounting an external HDD |
1,424,716,405,000 |
I'm working with the DataDomain server in our Commvault solutions. Anytime this server is rebooted the network disk in use for the solution does not remount. Right now this means we need to stop some processes then run:
boostfs mount -d datastore.company.com -s Commvault /cvdisk
I didn't see a way to mount with fsta... |
See page 37 of the BoostFS for Linux Configuration Guide. In there, you will see a section on using mount. For your environment, the mount command would be mount -t boostfs datastore.company.com:Commvault /cvdisk. In /etc/fstab terms:
datastore.company.com:Commvault /cvdisk boostfs defaults 0 0
| Automatically remount boostfs drive |
1,429,982,938,000 |
What is a “bind mount”? How do I make one? What is it good for?
I've been told to use a bind mount for something, but I don't understand what it is or how to use it.
|
What is a bind mount?
A bind mount is an alternate view of a directory tree. Classically, mounting creates a view of a storage device as a directory tree. A bind mount instead takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the ori... | What is a bind mount? |
1,429,982,938,000 |
On my Arch Linux system (Linux Kernel 3.14.2) bind mounts do not respect the read only option
# mkdir test
# mount --bind -o ro test/ /mnt
# touch /mnt/foo
creates the file /mnt/foo. The relevant entry in /proc/mounts is
/dev/sda2 /mnt ext4 rw,noatime,data=ordered 0 0
The mount options do not match my requested opti... |
Bind mount is just... well... a bind mount. I.e. it's not a new mount. It just "links"/"exposes"/"considers" a subdirectory as a new mount point. As such it cannot alter the mount parameters. That's why you're getting complaints:
# mount /mnt/1/lala /mnt/2 -o bind,ro
mount: warning: /mnt/2 seems to be mounted read-wri... | Why doesn't mount respect the read only option for bind mounts? |
1,429,982,938,000 |
Rather than using mount | grep, I'd like to use mount -l -t bind, but that doesn't work, and -t none shows all mounts.
|
Bind mounts are not a filesystem type, nor a parameter of a mounted filesystem; they're parameters of a mount operation. As far as I know, the following sequences of commands lead to essentially identical system states as far as the kernel is concerned:
mount /dev/foo /mnt/one; mount --bind /mnt/one /mnt/two
mount /de... | List only bind mounts |
1,429,982,938,000 |
I'm using fstab to bind a folder that belongs to another user in one of my own directories. I know that I can map users when I mount an SSHFS, I've been doing some research and I can't find a mount --bind equivalent.
Is there any way I can mount another user's folder and files as my own?
Update: It doesn't necessarily... |
You can't do that with the Linux bind mount kernel feature. But you can do it with the FUSE filesystem bindfs. Bindfs is slower than bind mounts and doesn't pass extended attributes, but on the flip side, it can be used by non-root users and on Unix variants other than Linux, and most importantly for you, allows simpl... | mount --bind other user as myself |
1,429,982,938,000 |
Asked on serverfault but didn't get enough attention, so reposted here, with the hope some people here know the answer.
There is another question discussing about umounting rbind mounts, but the solution has unwanted effect. Consider the following directory layout:
.
├── A_dir
│ └── mount_b
├── B_dir
│ └── mount_... |
I found the solution myself. I simply just need to use --make-rslave to make any changes in A_dir/mount_b not propagate back to B_dir:
sudo mount --make-rslave A_dir/mount_b
sudo umount -R A_dir/mount_b
See mount man page section The shared subtree operations.
| Unmount a rbind mount without affecting the original mount |
1,429,982,938,000 |
Why doesn't this work?
$ unshare -rm mount --bind / /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /, missing codepage or helper program, or other error.
These work ok:
$ unshare -rm mount --bind /tmp /mnt
$ unshare -rm mount --bind /root /mnt
$
$ uname -r # Linux kernel version
4.17.3-200.fc28.x86... |
The difference is that / has child mounts. Inside a user namespace, you are not allowed to separate inherited mounts from their child mounts. A more obvious example is that you are not allowed to umount /proc. Otherwise, it could suddenly grant you access to files that were hidden underneath other mounts. Overmoun... | Why can't I bind-mount "/" inside a user namespace? |
1,429,982,938,000 |
So I'm trying to get a handle on how Linux's mount namespace works. So, I did a little experiment and opened up two terminals and ran the following:
Terminal 1
root@goliath:~# mkdir a b
root@goliath:~# touch a/foo.txt
root@goliath:~# unshare --mount -- /bin/bash
root@goliath:~# mount --bind a b
root@goliath:~# ls b
f... |
If you are on a systemd-based distribution with a util-linux version less than 2.27, you will see this unintuitive behavior. This is because CLONE_NEWNS propogates flags such as shared depending on a setting in the kernel. This setting is normally private, but systemd changes this to shared. As of util-linux 2.27, a p... | Why is my bind mount visible outside its mount namespace? |
1,429,982,938,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,429,982,938,000 |
Original Problem
I have a file on one filesystem: /data/src/file
and I want to hard link it to: /home/user/proj/src/file
but /home is on one disk, and /data is on another so I get an error:
$ cd /home/user/proj/src
$ ln /data/src/file .
ln: failed to create hard link './file' => '/data/src/file': Invalid cross-device ... |
There's a disappointing lack of comments in the code. It's as if no-one ever thought it useful, since the time bind mounts were implemented in v2.4. Surely all you'd need to do is substitute .mnt->mnt_sb where it says .mnt...
Because it gives you a security boundary around a subtree.
PS: that had been discussed q... | Why can't I create a `hardlink` to a file from a "mount --bind" directory on the same filesystem? |
1,429,982,938,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,429,982,938,000 |
A common scenario for setting up a container/sandbox is wanting to create a minimal set of device nodes in a new tmpfs (rather than exposing the host /dev), and the only (unprivileged) way I know to do this is by bind-mounting the desired ones into it. The commands I'm using (inside unshare -mc --keep-caps) are:
mkdir... |
Well, this seems to be a very interesting effect, which is a consequence of three mechanisms combined together.
The first (trivial) point is that when you redirect something to the file, the shell opens the target file with the O_CREAT option to be sure that the file will be created if it does not yet exist.
The secon... | Why do bind mounts of device nodes break with EACCES in root of a tmpfs? |
1,429,982,938,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,429,982,938,000 |
I was going through the Gentoo Handbook in preparation for installing Gentoo on my system.
In the Chrooting section, these commands are given:
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
These are the doubts I have rega... |
1.) /sys is not a real on-disk filesystem: it is a representation of and a means to access kernel internal state in the form of a virtual filesystem. It is entirely RAM-based and there is no point in storing the contents of /sys on disk.
In a certain sense you might say that /sys is regenerated from scratch each time... | What is the purpose of bind mounting (rbind specifically) /sys? |
1,429,982,938,000 |
In FreeBSD, man mount_nullfs states that:
The primary differences between a virtual copy of the file system and a
symbolic link are that the getcwd(3) functions work correctly in the virtual
copy, and that other file systems may be mounted on the virtual copy
without affecting the original. A diffe... |
The primary differences between a virtual copy of the file system and a
symbolic link are that the getcwd(3) functions work correctly in the virtual
copy,
getcwd’s behaviour with symlinked directories is a fairly well-known gotcha, documented in Advanced Unix Programming for example (see this SO question for a... | Meaning of statement that 'getcwd functions work correctly' in FreeBSD man page for mount_nullfs? |
1,429,982,938,000 |
I do not understand why I get ENOENT when bind-mounting after unlink:
kduda@penguin:/tmp$ echo hello > a
kduda@penguin:/tmp$ touch b c
kduda@penguin:/tmp$ sudo unshare -m
root@penguin:/tmp# mount -B a b
root@penguin:/tmp# rm a
root@penguin:/tmp# cat b
hello
root@penguin:/tmp# mount -B b c
mount: mount(2) failed: No su... |
Walking through the source code, I found exactly one ENOENT that was relevant, i.e. for an unlinked directory entry:
static int attach_recursive_mnt(struct mount *source_mnt,
struct mount *dest_mnt,
struct mountpoint *dest_mp,
struct path *parent_path)
{
[...]
/* Preallocat... | Why does bind mounting a file after unlink fail with ENOENT? |
1,429,982,938,000 |
I have mounted a directory to another directory using mount --bind so that an sftp user of my server can access this directory.
mount --bind /path/share /path/home/user/stuff
I have put this in /etc/fstab and it is working great.
If I cd into the mounted directory and do pwd, it seems as if the directory is actually, ... |
I think you're looking for mount -l.
| pwd: show mountpoint |
1,429,982,938,000 |
I need the mountpoints of all disks attached to a host inside a docker container. The mount information is available in /proc/1/mounts file, but I cannot access that file on all OS.
When I run the following on Ubuntu it's working fine.
docker run -it -v /proc/1/mounts:/tmp/mounts ubuntu:16.04
But on CentOS with SELin... |
I am making the assumption that you do not strictly require the mounts visible to the init process (pid 1) and that the mounts visible to the docker daemon are sufficient. Normally, they should both have the same mount namespace.
Answer for CentOS docker package
(Using docker 1.13.1 from the CentOS repository)
I can r... | How to get mount information of host inside a docker container |
1,429,982,938,000 |
My objective is to have the physical storage for the Linux FHS read/write directories (/home, /srv, /tmp, /var) on a separate (logical or physical) disk from the potentially read-only rest of the root file system.
I know I can create four partitions on my second disk and use each partition for one of the beforemention... |
One option is to use a distro with a merged /usr; then you can mount /usr RO and the rest RW, and have most of the relevant stuff RO. This doesn't catch /etc, though, which you might want. Not quite a solution, more a workaround.
Another is to make a single BTRFS volume with subvolumes for all the mounts you want, the... | How to split FHS read-only and read/write directories across two disks with Linux/systemd, without partitioning the raed/write disk? |
1,429,982,938,000 |
I mount successively two points using fstab in my linux system
# Mounting apps drive
UUID=c54ca7da-117d-4cb2-8897-019ba4f6f12d /media/user/apps ext4 defaults 0 2
# Mounting opt based on apps mountpoint
/media/user/apps/opt /opt none bind
As you can see, the second mountpoint /opt is mounted on the previous mounted pa... |
/media/user/apps/opt /opt none bind,x-systemd.requires=/media/user/apps
Should do the trick.
There are two more options that help doing a safe successive mounting, because when we need to specify order dependencies between mount commands and other units.
x-systemd.after
x-systemd.before
So we can add
/media/user/ap... | Mounting successively in fstab: wait for partition to be mounted? |
1,429,982,938,000 |
It hasn't always behaved this way, but nowadays I get this inconsistent behaviour. Bind mounts don't copy existing mounts (unless you use --rbind), but new mounts (and unmounts) get copied automatically. It seems like a bug. What causes this?
# mount --bind / /mnt/tmp
# mount | grep /mnt
/dev/mapper/fedora-root on ... |
You should be able to see that new mounts stop being copied, if you run mount --make-private on the mount point.
The difference when running bash as init, is that the source filesystem has been mounted as private.[*] Whereas booting the full system is effectively running --make-shared. You can see the difference by... | Mounting new filesystem affects non-recursive bind mounts? |
1,429,982,938,000 |
Why does a repeated bind mount create multiple entries in /proc/mounts?
# md -p /mnt/test-mount/{source,target}
# mount --bind /mnt/test-mount/{source,target}
# grep test-mount /proc/mounts
/dev/sda3 /mnt/test-mount/target ext4 rw,relatime 0 0
# mount --bind /mnt/test-mount/{source,target}
# grep test-mount /proc/mou... |
Mount propagation.
This is a specific case of the "mount point explosion problem", which is explained in the "MS_UNBINDABLE example" in mount_namespaces(7)
systemd effectively enables mount propagation by default. For example, this makes it feasible to run a service in a child namespace where /home is blocked off, as... | Why do repeated bind mounts create entries for the source directory? |
1,429,982,938,000 |
While trying to create a test environment using mount --bind I was surprised to find that it sometimes fails with permissions errors because root cannot access the source directory. This only appears to affect NFS file-systems.
Is there a way to mount --bind a directory which root cannot access? Perhaps by inode numbe... |
Please note that doing any mount in /tmp is hazardous, because some cleaning task might suddenly decide to do its work in /tmp and not care about mountpoints, thus wiping old files not actually belonging to /tmp. That said I'll use the /tmp examples from OP.
method 1:
If you're in full control of the NFS environment,... | How to create a mount --bind when root does not have permission to access the source directory? |
1,429,982,938,000 |
In a bash script I have the following lines:
TARGETS="$(findmnt -n -v -t btrfs -o TARGET --list)"
UUIDS="$(findmnt -n -v -t btrfs -o UUID --list)"
I run this script on some servers (running Arch Linux). However, it fails on NFS servers. In that case, findmnt returns multiple mount points for a given UUID (due to bind... |
From List only bind mounts, it seems that bind mounts cannot be distinguished from the original after mounting. While partial binds (where a subdirectory of a mount point is bind mounted somewhere) do show up differently in findmnt output, there's no distinguishing a mountpoint that was bind mounted elsewhere.
So if I... | How to exclude bind mounts from findmnt results list? |
1,429,982,938,000 |
I have a number of ZFS sub-filesystems (so that I can granularly manage snapshots and ZFS options) like so:
tank/media
tank/media/pictures
tank/media/pictures/photos
tank/media/movies
tank/media/music
tank/media/documents
tank/media/documents/public
I am running Debian GNU/Linux 8.6 (jessie) with ZFS-on-Linux, kernel... |
I have found that mounting with the rbind (rather than bind) option in the lxc mount line solves the issue (syntax for proxmox):
lxc.mount.entry: /tank/media media none rbind,create=dir,optional 0 0
Going off the RedHat documentation on sharing mounts, rbind achieves replication of mounts on the source in the bound d... | How can I automatically make ZFS filesyatems mount shared / rshared? |
1,429,982,938,000 |
I have been experimenting with privilege escalation using the mount command and would like to know if it is possible to create a suid file owned by root without having access to any external device.
i.e. I'm trying to find a way to do one the following:
bind mount /bin/bash to another file, so that I can set the suid... |
You stipulate that you are allowed to run sudo mount with any arguments. In that case, unless I misunderstand your question, it seems to be trivially easy to gain root access: just create a disk image that contains a setuid-root binary and mount it with sudo mount -o loop! After all, anyone can create a disk image, it... | Is it possible to mount a file with different ownership/permissions? |
1,429,982,938,000 |
Please read the following steps to understand my problem,
Execute following commands
mkdir ~/src
mkdir ~/destination
sudo mount ~/src ~/destination --bind -o ro
src folder has been bind mounted to destination folder. When I view the destination folder with nautilus it is read only. But the ll command gives same file... |
There are two things at play here:
Directory permissions.
Mount options.
The directory permissions are independent of the fact that the mount was read-only. Hence, ls will still list the permissions assigned to the folder, without regards for how it was mounted.
In the same way, if I mount a folder with noexec, ls w... | ls -la doesn't display correct permission for a mount --bind folder |
1,470,320,883,000 |
I have the following set-up:
FreeBSD 10.3 with ZFS on root. A ZFS volume hierarchy (multiple volumes nested in each other, for lack of a better name) is duplicated using mount_nullfs in order to make it available to multiple jails at once.
When I try to use find as a normal user on the nullfs-mount I get the followin... |
The underlying directory that mount_nullfs mounts over is not traversable to the user. Unmount the nullfs and make sure that users are still able to traverse the directory:
chmod 755 /path/to/unmounted/nullfs
It seems that when traversing away from a filesystem using cd .., the permissions of the underlying director... | find: fts_read: Permission denied through mount_nullfs |
1,470,320,883,000 |
In a Linux user namespace, as non-root, I bind mount /tmp/foo to itself. This succeeds.
Then, I try to remount /tmp/foo to be read-only. If /tmp is mounted with nosuid or nodev, then the remount fails. Otherwise, the remount succeeds.
Is there some reason why nosuid and/or nodev prevent the remount from succeeding?... |
I have found the answer.
As can be seen in the below excerpts from the kernel source code, if any of the flags NODEV, NOSUID, NOEXEC, and/or ATIME are already set, I will need to preserve (i.e. continue to set) them in my second call to mount().
From fs/namespace.c in the Linux kernel source code:
/*
* Handle reconfi... | In a user namespace as non-root, on a nosuid,nodev filesystem, why does a bind mount succeed but a remount fails? |
1,470,320,883,000 |
I need to use an alternative fstab file for mounting a folder in another folder, like the command
mount --bind /folder1 /folder2
I tried the command
mount --fstab /pathToFile.fstab
as stated in the man:
-T, --fstab path
Specifies an alternative fstab file. If path is a directory then the files in the directory a... |
The command
mount --fstab /pathToFile.fstab
is the same as mount with no options when using the standard fstab file, i.e. "list mounted filesystems".
To actually mount all automountable filesystems specified in a custom fstab file similar to using mount -a with the standard fstab files, you'll need to use the --fsta... | Mounting using alternate fstab file |
1,470,320,883,000 |
I'm trying to mount /etc/folder and /var/folder to the same external volume UUID=xyz. This external volume already has subdirectories etc_folder and var_folder and has been formatted and available to mount. I want to change fstab and achieve something like the following, before doing "mount -a":
UUID=xyz:/etc_folder /... |
The following works in /etc/fstab:
UUID=xyz /mnt ext4 defaults,nofail 0 2
/mnt/var_folder /var/folder none bind 0 0
/mnt/etc_folder /etc/folder none bind 0 0
I just need to mount the whole volume to one location e.g. /mnt, keep... | Mounting two folders to corresponding directories within external volume? |
1,470,320,883,000 |
I wish to make the following mount permanent:
[michael@devserver ~]$ findmnt | grep public
└─/home/jail/home/public/repo /dev/mapper/centos-root[/home/michael/testing/gateway/repo] xfs ro,relatime,attr2,inode64,noquota
[michael@devserver ~]$
I created this mount using the following:
sudo mkdir /home/ja... |
Well, your /etc/fstab file does not seem to have bind mount-point configured.
Be so kind and add the following line:
/home/michael/testing/gateway/repo /home/jail/home/public/repo none bind,ro 0 0.
Then, I would type the following command to verify, if mountpount is persistent and works.
mount /home/jail/home/publ... | Editing /etc/fstab to permanently bind mount directory |
1,470,320,883,000 |
Does the command mount -o bind allow mounting a folder from a different file system (vfat, ntfs) to a folder in Linux native partition?
|
Yes. Well, I've made a quick test on my system, mounting a NTFS partition from Windows onto a directory in a XFS Linux partition, and it worked okay.
You have to do this operation as root.
| Bind Mounting across different file systems |
1,470,320,883,000 |
I want to calculate a directory size with all its subdirectories. But I had made some of the subdirectories to mount from a mount point. (using mount -B/--bind)
when I use du -hks the returned size includes the mounted directories. Is there a way to eliminate their size from the result?
Edit:
The Directories I calcula... |
du -x (at least GNU and busybox du) is fooled by Linux bind-mounts because files have the same device-id, so you'd need to prune the mount-points by hand. With GNU du:
du -xhs --exclude=./bind/mount/point
Alternatively, you could use GNU find to find the files and print their disk usage, calling the mountpoint comma... | Calculating directory size without subdirectories bind-mounted from the same device |
1,470,320,883,000 |
I have 2 files: /MyDir/a and /MyDir/MySubDir/b and am running a bash script, to which I want to add code to make file /a point to file /b, but only in the current process and its descendants.
In hopes of making /MyDir/a point to /MyDir/MySubDir/b in the context of only the current process (not including its descendant... |
A shell-only solution would be:
For interactive shell:
# unshare --mount
# mount --bind /MyDir/MySubDir/b /MyDir/a
#
non-interactively, before a script that doesn't have to know about these settings:
# unshare --mount sh -c 'mount --bind /MyDir/MySubDir/b /MyDir/a; exec somethingelse'
The unshare manpage also warns... | Making a bind-mount take effect only in the context of the current process and its descendants |
1,470,320,883,000 |
I have an encrypted container containing an ext4 filesystem with a subdirectory which is bind-mounted at a later point in time. If I take look at /proc/self/mountinfo, the root-directory for the mount has a value I do not know the reason for.
Steps to reproduce:
cd /tmp
fallocate -l 1G container.luks
cryptsetup luksFo... |
56 24 253:5 / /mnt/container
57 24 253:5 /subdir /tmp/abc
Given the information for mount #57, how I am able to deduce, that mount #57 is a bind mount of a subdirectory of mount #56?
It's not. You don't deduce that.
The two mounts are only related by being mounts of the same filesystem/device (253:5); it's not that... | Bind-mount and cryptsetup result in truncated root-path in /proc/self/mountinfo |
1,470,320,883,000 |
if i have /target mounted with suid and then make a bind-mount on /bound with mount -o bind,nosuid /target /bound, will nosuid take effect on /bound ?
(imo it should take effect but i'd still like a definite answer, and nobody else had asked yet here or so it seems)
|
yes, bind is capable of enforcing nosuid even if the target has suid. here's a test i ran:
C source code of a.out:
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main(){
uid_t uid=getuid(), euid=geteuid();
printf("uid: %u, euid: %u\n",uid,euid);
return 0;
}
and then
root@ratma:/# mount -o bind,nos... | does nosuid work on bind-mounts to suid partitions? |
1,470,320,883,000 |
I have multiple folders that share the same path pattern which I would like to mount them all with a single command if possible. The command I tried is:
sudo mount --bind /var/my/vendor /var/www/official/*/*/vendor
However, it doesn't seem to work. I didn't get any specific error but it seems like I just used the wr... |
mount --bind takes two arguments: the path to replicate and the location where it is to be replicated. You seem to be trying to make multiple replicas; to do this, you need to issue multiple mount --bind commands.
for d in /var/www/official/*/*/vendor; do
mount --bind /var/my/vendor "$d"
done
| How to mount multiple folders which share the same path pattern? |
1,470,320,883,000 |
In case you needed to know, I'm on a GNU+Linux distro with kernel version 5.5.5.
So, suppose I have a directory named base. Further suppose this directory only contains one empty file, named a.
Ideally, I'd like to fork that directory retaining its content into a new directory named fork. Then, I'd write something ... |
You can take a look at OverlayFS, or on some distributions the still available aufs.
Here's the description of OverlayFS in the Linux kernel documentation:
Overlay Filesystem
This document describes a prototype for a new approach to providing
overlay-filesystem functionality in Linux (sometimes referred to as
uni... | How to mount (bind) in a one-way writing fashion |
1,470,320,883,000 |
I have the following mount and automount units enabled for my external USB drive.
Mount Unit:
[Unit]
Description=Time Machine Drive Mount Service
[Mount]
What=/dev/disk/by-uuid/some-uuid
Where=/media/timemachine
Type=hfsplus
[Install]
WantedBy=multi-user.target
Automount Unit:
[Unit]
Description=Time Machine Drive ... |
This issue for the upstream project systemd would seem to indicate that what you're trying to do is not possible, and they aren't going to add it, mainly due to limitations with how the kernel works.
Mount unit with 'bind' type does not remounted on parent remount #6542
excerpt
please note that bind mounts after th... | How to tell systemd to create a bind mount when plugging in an automounted drive? |
1,470,320,883,000 |
I have a custom, non-default Ubuntu installation, where I use my other Linux distro's boot manager (rEFInd). As such, I don't want Ubuntu to see my EFI partition, on the principle that it has no business to what's there (which has already saved my ass last night when I did an rm -rf /*...). However, because I'm using ... |
As @RamanSailopal suggested, the answer was (of course) in dmesg. The root of the problem was that systemd creates unit files from fstab entries, and for whatever reason, they must have a filename that maps to the mountpoint. In other words, multiple mounts per mountpoint are disallowed.
I worked around this by creati... | Shadow bind mount in fstab |
1,470,320,883,000 |
Trying to use a chrooted system via
mount -B stage3 gentoo
mount -t sysfs none gentoo/sys
mount -t proc none gentoo/proc
mount -R /dev gentoo/dev
mount --make-rslave gentoo/dev
unshare --fork chroot gentoo
umount -R gentoo
After the last umount, dev, dev/pts, dev/shm, dev/mqueue, dev/hugepages were still mounted unde... |
Why they were mounted to stage3?
Because you bind-mounted stage3 onto gentoo and stage3 propagation flag is set to shared (verify this with: findmnt -o PROPAGATION stage3)
How could I unmount those? Every mountpoint is busy.
You've just spawned a chroot on the mounted tree. If you want to unmount the tree while the ... | How to unmount a mountpoint with rbind and rslave? |
1,470,320,883,000 |
I was trying to attach specific USB drive to home folder of the user. I have installed vsftpd, but Kodi can't move on upper hierarchy. So he can't access /media folder, but FileZilla can.
My USB is automounted by system when I connect it,as /media/DRIVE, always with same name.
I'm trying to create symlink ln -s /media... |
You could try the debian usbmount package. The script /usr/share/usbmount/usbmountis triggered by udev when a USB storage device is connected, according to the rules in /lib/udev/rules.d/usbmount.rules. It looks for e.g. the UUID of the device, and mounts according to entries in the /etc/fstab (which, of course, shoul... | Bind USB drive to home directory on demand |
1,470,320,883,000 |
BACKGROUND INFORMATION :
I have an init script that allows me to mount a folder to tmpfs, while bind-mounting the folder on drive to another location, so I can sync the contents (on startup, shutdown, and when needed) between the tmpfs and the original folder on system drive.
It's used mostly to move to ram the folder... |
Asked this question in the systemd-devel mailing list, and got a definitive answer from Lennart. http://lists.freedesktop.org/archives/systemd-devel/2015-November/035043.html
Pasting here the answer, for posterity.
No, there is not. And I don't really see this a strong enough usecase
to make it something native.
So... | migrating to systemd a startup-shutdown script that works with tmpfs and bindmounts |
1,470,320,883,000 |
Suppose I bind-mount file a atop file b...
$ echo 'line 1' > a
$ touch b
$ mount --bind a b
The initial file contents will be mirrored at both paths, as expected:
$ cat a
line 1
$ cat b
line 1
And if I concatenate to either path, the new contents will be mirrored both ways, as expected:
$ echo 'line 2' >> a
$ cat ... |
Because a and b are involved in a mount point, you can't use mv.
However, you could overwrite it with cp.
Or, instead of bind mounting onto b, you could bind mount the parent directory.
| Can a file that's being supplied by bind-mount support overwriting via `mv`? |
1,470,320,883,000 |
From the proc manual it names the 4th column of mountinfo as "root", and describes it as "the pathname of the directory in the filesystem which forms the root of this mount". But how to understand it?
I thought the basic elements of a mount is the source and the target path, since the "mount source" is the 10th column... |
It is hard to explain it with language elements (at least with my english skills) - so I decided to make an example based answer:
The root directory is often called the highest or uppest directory. This is only partially true. This directory is assumed as the highest directory. You could describe it with "from this d... | What does the 4th column (root) in /proc/.../mountinfo mean? |
1,553,373,938,000 |
my raspberry pi 3 model B, running Arch, has an issue with bluetooth. First of all:
Bluetooth has worked flawlessly previously
pi-bluetooth from the AUR is up to date
bluez and bluez-utils are up to date
The system is up to date as well (just ran pacman -Syu)
Still, when I try to use the bluetooth interface, it does... |
Okay, wow, turns out all I had to do was run
bluetoothctl power on
| bluetooth.service running, but bluetoothctl says "org.bluez.Error.NotReady" |
1,553,373,938,000 |
I am new to Fedora and recently installed Fedora 26 OS. I am trying to connect to wifi using that. I followed the youtube video Broadcom installation and tried to install the Broadcom drivers. I have downloaded the rpm file broadcom-wl-6.30.223.271-2.fc26.noarch.rpm when I ran the command rpm -ivh broadcom-wl-6.30.223... |
There is no problem if both rpm files depend on one another; just install the two together:
rpm -ivh akmod-wl-6.30.223.271-13.fc26.x86_64.rpm broadcom-wl-6.30.223.271-2.fc26.noarch.rpm
Logically; if there are more dependencies; you can install all of them together. If you don't want to hassle with all these dependenc... | What to do with a circular dependency between two packages in Fedora? |
1,553,373,938,000 |
I just installed Arch, and I noticed that my wifi range is very poor. I have to be about 10 feet away from the router for it to work. I also noticed that when I boot, I get this message:
Support for cores revisions 0x17 and 0x18 disabled by module param allhwsupport=0. Try b43.allhwsupport=1
I am completely new to L... |
It seems that support for that particular chip or firmware version is still not very stable.
The message is telling you to pass an option to the b43 kernel module to activate support for your chip version. This may improve things or not. To do so, create a file /etc/modprobe.d/local-b43.conf containing the lines
# Act... | b43 wireless driver error |
1,553,373,938,000 |
I have a Lenovo Yoga 3 that apparently has a new Broadcom Bluetooth device.
The bluetooth is detected at boot and when I try to pair a something in gnome, I can see a list of devices but none of them pair.
How can I get this device to work?
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 D... |
As of version 3.19, this device is supported in the Linux kernel, but you need to manually provide the device's firmware to the kernel.
Finding the Firmware:
You can find the firmware in the device's Windows driver, which you can download from Lenovo (or your computer manufacturer's website). Many drivers can just be ... | How can I get the Bluetooth working on my Lenovo Yoga 3? |
1,553,373,938,000 |
I've installed Debian Jessie to dual-boot on a Macbook Pro 12,1. So far, I haven't been able to set up my WiFi drivers correctly. I've followed the instructions here in this way:
Found my chipset using the table on the documentation above.
BCM43602 14e4:43ba
Downloaded necessary .bin files by cloning the reposit... |
The notes for the chip BCM43602 say:
Supported in 3.17+.
You probably have an older kernel. Check by running:
uname -r
If this is the case, update your kernel to >= 3.17 and everything will work properly.
Updating your kernel
You can update your kernel by adding jessie-backports to your sources list. Open up /etc/a... | WiFi not working with Broadcom 43ba driver |
1,553,373,938,000 |
I have a broadcom wireless card in my laptop and as far as I know, it acts as an USB device.
I also have one USB stick wireless device (TL-WN422G - uses ath9k_htc driver) which I want to use at the same time as the first (Broadcom) device.
The problem is, after I load ath9k_htc - iwconfig does not show the new USB dev... |
for some reason the ar9721.fw file was empty… downloaded the file again – put it into /lib/firmware and now it works…
| Multiple USB wireless devices? |
1,553,373,938,000 |
I have a problem similar to this:
Unable to get Broadcom wireless drivers working on Arch Linux
But in my case, loading the broadcom-wl-dkms driver did not work. I am new to this, so maybe the solution is quite simple (hopefully).
What I did so far:
I installed various drivers with yaourt and pacman, ending up with ... |
I finally got it working.
My working environment: 4.16.5-1-ARCH [rname -r]
My Desktop: GNOME
My Network-Env.: network-manager-applet 1.8.11dev+12+ga37483c1-1
My Wlan-Card: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] [lspci -vnn -d 14e4:]
What I did:
I looked at https://wireless.wiki.kerne... | Broadcom Wireless PCI Card BMC4360 14e4:43a0 cannot get drivers working |
1,553,373,938,000 |
I just installed Debian Wheezy stable. I am now facing the problem, that I am not able to activate the WiFi. I use a HP-Pavilion DM1 notebook with a button (F12 and wlan button) to activate the WiFi. However pressing it does not cause any reaction.
Furthermore ifconfig -a does not list wlan0.
The computer is equipped ... |
I found a solution for my problem. I tested different drivers that were mentioned for the Broadcom Chip. The first success was a slow wifi connection. The thing is to have a look that sometimes more than one driver module can be disturbing for the driver. Driver modules can be unloaded with modprobe -r followed by the... | Debian: Unable to activate wifi on HP Pavilion Dm1-4055sg (with Broadcom BCM4313) |
1,553,373,938,000 |
I know Broadcom does not play nice with Fedora, I've been dealing with this for several years and versions. In the past, installing kmod-wl or akmod-wl was usually enough to get everything up and running (after blacklisting b43 and b43 legacy and long time ago).
Details:
Lenovo Thinkpad Twist s230u
uname -r
4.9.5-200... |
I have exactly the same issue, I installed kernel-devel
sudo dnf install kernel-devel-4.9.6-200.fc25.x86_64
then I followed the same steps that Xenox mentioned in his answer and now wifi is working fine
| Fedora 25 Broadcom Wireless BCM43228 No WiFi |
1,553,373,938,000 |
I'm currently searching for the right driver for my Broadcom BCM4313 network/wifi device.
At first no network was recognized at all, now I managed to connect, but the connection is really slow. I read that it can be helpful to unload some driver modules with modprobe since they can disturb each other. To find the rig... |
To unload modules you can use these 2 commands, lsmod and rmmod. lsmod will list what modules are loaded, while rmmod will remove a given module from the Kernel, assuming it was dynamically built so that it can/could be dynamically loaded.
$ sudo lsmod | head -5
Module Size Used by
bluetooth ... | Testing which modules are unloaded with modprobe |
1,553,373,938,000 |
I am trying to load the bwn driver as a module as mentioned in the man page.
However, when I attempted to edit /boot/defaults/loader.conf I could not write the changes to the file, this was attempted as root.
Then I read that this file is not to be edited. How can I load this driver as a module?
|
You need to put if_bwn_load="yes" in /boot/loader.conf. If you don't have a /boot/loader.conf file on your system, just create it. As with the /etc/defaults/rc.conf file, /boot/defaults/loader.conf contains default values that can be overridden in a per-system fashion.
Of course, you'll need to either reboot the syste... | Enabling bwn in FreeBSD |
1,553,373,938,000 |
I've installed Ubuntu 12.04 on my 8 gb USB stick, and got it running. It seems like I don't have the full Ubuntu OS on the stick though, and that was my intention. Anyway, I can run a "demo" version it seems, and it looks like the normal installation of Ubuntu but with a installer package on the desktop.
The issue su... |
I am pretty sure that has something to do with the fact that you don't have the full install, just a 'test' version.
And this test version doesn't have all default applications installed, or doesn't have all software sources enabled.
I would suggest installing an actual Ubuntu install to the disk, not just the live CD... | Running Ubuntu of a USB stick. Can't install wireless driver |
1,553,373,938,000 |
Just installed Fedora 18 and I can't get the wireless to work.
What do I have and what have I done?
I have a Broadcom BCM4312 which is supported by the broadcom-wl driver. (link)
lspci | grep Network
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
0c:00.0 Network controller:... |
I was originally running kernel 3.7.4-204.fc18.i686 with kmod-wl-3.7.4-204.fc18.i686-5.100.82.112-7.fc18.8.i686 and the wireless had issues. After 2 more updates of the kernel it just works fine.
So this is what I have running and working good now:
sly@localhost ~$ uname -r
3.7.6-201.fc18.i686
sly@localhost ~$ rpm -q... | Fedora 18 No Wireless |
1,553,373,938,000 |
Some recent Bluetooth chipsets from Intel and Broadcom need to run the btattach command in user-space for Bluetooth to be enabled properly (it "attaches" the BT chipset and triggers the loading of the required firmware if needed).
Such an example is the Broadcom BCM43241 rev B5 chipset found on Lenovo ThinkPad 8 table... |
A more refined approach consists in creating a udev rule, triggered only when the right hardware is present, to launch the needed btattach command from a systemd service. This is merging the concepts of the 2 earlier answers.
For the specific chipset mentioned in the question, the udev rule looks simply like this:
$ c... | How to enable Bluetooth *automatically at boot* for recent Intel and Broadcom chipsets relying on btattach? |
1,553,373,938,000 |
It seems to be that the drivers are installed for BCM43142 on my laptop:
lspci -k
02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
Subsystem: Dell Wireless 1704 802.11n + BT 4.0
Kernel driver in use: bcma-pci-bridge
kernel modules: bcma
However, there seems to be ... |
Install the broadcom-wl-dkms package.
You can Install it from AUR using yaourt (deprecated use yay instead) please see the complete list on AUR helpers:
yaourt -S broadcom-wl-dkms
Unload conflicting modules.
rmmod b43
rmmod ssb
rmmod bcma
Load the wl module:
modprobe -r wl
modprobe wl
| broadcom 43142 on archlinux: no interface |
1,553,373,938,000 |
I'm new to FreeBSD, it's working fine one my Laptop. Only problem is, that my wifi device isn't in ifconfig so I can't use it. I tried a lot of reading but I couldn't get it to work. How can I get my Broadcom chip to work?
Model: Acer Aspire 5820TG
# uname -a
FreeBSD rindtop 10.2-RELEASE-p7 FreeBSD 10.2-RELEASE-p7 ... |
Broadcom has always ignored FreeBSD and fail to supply drivers so we choose to use other wifi devices, mostly Atheros. As of a year ago, I don't see anyone getting that chip to work and can't find it in the FreeBSD hardware compatibility list.
You'll find far more responses and questions about this on the FreeBSD wif... | FreeBSD Broadcom BCM43225 Setup |
1,553,373,938,000 |
I have been having WiFi trouble for months now, and I've tried all manner of solutions with no change.
Hardware: Mid 2012 MacBook Pro unibody, 16gb RAM and 500gb Samsung SSD
OS: Kali Linux 2021.2 with weekly updates to all software. Running Live with Persistence from a USB drive.
Driver: Broadcom BCM 4331
Problem: Lin... |
Solved my own problem! The solution was to:
Add
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
and
deb http://deb.debian.org/debian bullseye main non-free
to /etc/apt/sources.list.d/deb.list.
Run apt update and apt upgrade as well as apt dist-upgrade to add all the new dependencies and ... | Persistent WiFi connectivity problems in Kali Linux |
1,553,373,938,000 |
After upgrading the mint 18 kernel to 4.4.0-87-generic I no longer have wireless. My wired device still works, but my wireless nic has disappeared from ifconfig -a.
It does show up for lspci:
02:00.0 Network controller: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter (rev 03)
iwlist scan; lshw -c net... |
this might be useful, basically...
sudo apt-get install firmware-b43-installer
and if something like "An unsupported BCM4312 Low-Power (LP-PHY) device was found." comes out, then:
sudo apt-get install firmware-b43-lpphy-installer
| Linux mint:Wireless Device Unclaimed after Upgrade |
1,553,373,938,000 |
I am attempting to enable my wireless interface in Slax Linux, so far, I know the driver I need is brcmsmac, since I have a broadcom card; and this work in Slackware.
The driver is available and does not show any errors when I load it with:
# modprobe brcmsmac
But no new interface is loaded.
Here is I've tried:
# lsp... |
Given the output from dmesg I would suggest downloading the firmware from the broadcom site. Check out that link, there are pretty detailed instructions on how to download and install the firmware that the dmesg error message is mentioning.
general steps
1. download firmware file: http://git.kernel.org/cgit/linux/kern... | brcmsmac does not work |
1,553,373,938,000 |
I am dual booting arch linux on my mac mini 3,1. Am trying to get the WiFi to work and have hit a block.
Following these instructions. I have identified my card as BCM4321, which from the tables I read I can use the b43 driver/module (is a driver really just a module?) which is already in the kernel. I ran lsmod and ... |
I should just be able to wget the tarballs from http://linuxwireless.sipsolutions.net/en/users/Drivers/b43/ those on the pen drive and then try loading transferring them into arch
That is exactly what to do. Unfortunately, Broadcom does not provide distribution licensing for the firmware, so you have to download the... | getting wifi up and running in Arch Linux on Mac Mini 3,1 |
1,553,373,938,000 |
I have a fresh install of Linux Mint Mate 64 on an old iMac (late 2008).
I can not connect using a network cable so I need to use wlan.
I've installed broadcom drivers, the network managers shows the wi-fi connection and everything seems fine... but I cannot connect to anything except localhost.
I've tried to reduce ... |
To solve the problem I've selectively disabled all possibile drivers for my wifi card.
$ sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
I've also deleted all the connections shown in the network-manager taskbar icon.
At this point I've started re-enabling every driver separately. Every time I had to wait for a wi... | Unable to ping router but broadcast ping returns response from it |
1,519,213,760,000 |
I always upgraded the linux kernel of my machine to the latest stable version, but, with any version later than the 4.14.8 WiFI doesn't work anymore, how can i solve this?
Info about my wireless card:
description: Wireless interface
product: BCM43142 802.11b/g/n
vendor: Broadcom Corporation
physical id: 0
... |
Apparently, they took the wl driver, which is what's used to run Broadcom wifi chips, out of the linux kernel starting at 4.14.8 . This only hit me now, when my Ubuntu box upgraded to kernel 4.15, and I suddenly didn't have wifi.
You need to install a DKMS version of the driver, which is broadcom-sta-dkms in debian ba... | WiFi not working with kernel later than 4.14.8 |
1,519,213,760,000 |
My cellphone connects just fine to the 5Ghz network, so I know it is up and functioning properly. My Dell Inspiron though, running elementary OS Loki which is based on Ubuntu 16.04, refuses to do so and instead connect to the 2.4GHz network which has a much lower signal strength.
Here's the iwlist output, which confir... |
The BCM4313 WiFi chipset is a single frequency 2.4GHz chipset. It is capable of going to a theoretical speed of around 150Mbps.
You might also suspect by the lsusb output, in the 802.11bgn string, it does not support 5GHz (802.11b, 802.11g are not in the 5GHz band*, and in 802.11n the 5GHz band support is optional). ... | Dell laptop won't connect to 5GHz network |
1,519,213,760,000 |
I need to test some signals off. I use Debian and need to inject packets which the broadcom chipset inside this would not allow or maybe I don't know how to ( I mean, if I run "wash" tool it doesn't provide me any results and gave some kind of error, which on googling seemed to be the "packet injection inability".). S... |
For packet injection abilities you have to buy a wifi chipset that does support the functionality; Broadcom is not certainly one of them.
Some chipsets support monitor mode, and even a stricter small set does support injection capabilities; shame is that in several ethical hacking courses, that limitation is not menti... | Is there any way that I can make packet injection to work on my MBA 2015 11"s Wireless NIC (Broadcom)? |
1,519,213,760,000 |
I have a MacBook Pro 16, and decided to install Pop!_OS on it.
My system info is:
OS: Pop!_OS 22.04 LTS x86_64
Host: MacBookPro16,2 1.0
Kernel: 6.2.6-76060206-generic
My Network controller is a Broadcom Wireless Network Adapter (Broadcom Inc. and subsidiaries BCM4364 802.11ac Wireless Network Adapter). I found the... |
Ok so turns out, the mac book I was using has a T2 chip. I don't know why, but it causes problems. Some people patched the kernel and fixed the wifi.
All of those models have this chip
If you have mac os still installed besides your linux installation, follow this guide. Credits to this answer If you don't, it will be... | MacBook Pro's wifi doesn't work on a fresh Pop!_OS install |
1,519,213,760,000 |
I'm new to linux & I'm trying to add external ethernet NIC to hpe dl380 gen9 server, the os is ubuntu 20.04.
I can't find the NICs using ifconfig, and after some googling I used
lshw -C network and it's appearing as network unclaimed
full description:
Broadcom Inc. and subsidiaries NetXtreme II BCM57810 10 Gigabit Et... |
You need to install linux-firmware and linux-modules, the kernel driver is bnx2x.ko.
sudo apt install linux-firmware linux-modules-$(uname -r)
sudo modprobe -v bnx2x
In debian is packaged under firmware-bnx2x, here is the description:
This package contains the binary firmware for Broadcom NetXtreme II 10Gb network ... | Broadcom NetXtreme II BCM57810 10 Gigabit Ethernet appearing as unclaimed on ubuntu 20.04 |
1,519,213,760,000 |
I installed broadcom-sta-common and it caused WiFi to not work , i purged it but i still need to run sudo modprobe brcmsmac manually after boot to make WiFi work.
How can i make it work automatically like before ?
some outputs :
rahman@debian:~$ sudo rfkill list
0: hp-wifi: Wireless LAN
Soft blocked: no
Har... |
it works on startup now after adding brcmsmac to /etc/modules
| How to make WiFi work automatically? |
1,519,213,760,000 |
I am trying to get Wifi working on my Arch Linux installation so I have installed broadcom-wl-dkms, but it still does not seem to work. I noticed that one every startup I got this message:
Support for cores revisions 0x17 and 0x18 disabled by module param allhwsupport=0. Try b43.allhwsupport=1
So I enabled them as it... |
OP has a Broadcom BCM4313 chipset, which is not supported by the b43 driver, so enabling the core revisions listed in the warning will have no effect. Further, this particular chipset is not fully supported by the brcmsmac driver, leaving only Broadcom's own (restrictively-licensed) broadcom-wl driver, specifically t... | Unable to get Broadcom wireless drivers working on Arch Linux |
1,519,213,760,000 |
I'm trying to get the WiFi working on a Banana PI M2M using the mainline kernel.
The device tree definition of the banana pi m2m is very incomplete sun8i-r16-bananapi-m2m.dts I successfully managed to get SPI working but I am now struggling to get the WiFi drivers working as they should.
The banana pi M2M uses the AP6... |
I have same board and also want to use mainline Linux.
I found this line in 3.4 kernel log of Banana pi m2m bsp:
[ 14.519605] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 14.535387] dhd_conf_read_others: ccode = CN
[ 14.535623] dhd_conf_read_others: regrev = 0
[ 14.535763] Final fw_path=/lib/fir... | Banana PI M2M (allwinner A33/R16) WiFI drivers in mainline kernel |
1,519,213,760,000 |
After a fresh install of Fedora 27, the wifi card is not detected after the running the first system update. After some lengthy troubleshooting online I am still no closer to the solution.
uname -r
4.14.5-300.fc27.x86_64
lspci -vnn -d 14e4:
04:00.0 Network controller [0280]: Broadcom Limited BCM4356 802.11ac Wire... |
I had the same problem when I upgraded my Thinkpad X260 from Fedora 26 to 27 (the chipset is BCM4356 too). I solved it thanks to this bug report at RH Bugzilla
I downgraded to linux-firmware-20171009-78.gitbf04291.fc27
I had taken before the same steps installing broadcom-wl package. I commented brcmfmac module in th... | Broadcom wireless undetected in Fedora 27 |
1,519,213,760,000 |
I have a new Kali Rolling set up and am having numerous problems attempting to install WiFi drivers for a broadcom 14e4:43a0 device (TP LINK Archer T8E). I am currently USB tethering from my phone.
Searching online gave me results that I should install the bcmwl-kernel-source package for the drivers but whenever I att... |
The bcmwl-kernel-source isn't available on kali repository the alternative package is the broadcom-sta-dkms
with the regularly kali-linux repository, your /etc/apt/sources.list should contain only this URL:
deb http://http.kali.org/kali kali-rolling main contrib non-free
the apt-cache search broadcom-sta will show yo... | Installing WiFi drivers for 14e4:43a0 rev 3 broadcom pcie device - can't find bcmwl-kernel-source package |
1,519,213,760,000 |
I need to install the driver as it was not recognised automatically when installing Kali Linux on my MacBook Pro. If I type iwconfig then I get only lo and no wlan0. There is no ethernet port on the new MacBooks so I needed to find a way to connect to the internet in order to download stuff without using the USB metho... |
I eventually fixed this by doing the following:
1) Making sure these were in /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
2) Making sure everything w... | Internal Wireless Card setup Mac Dual Boot 2016 Kali Linux |
1,519,213,760,000 |
My issue looks similar to this one.
I configure my Broadcom BCM4311 802.11b/g device on FreeBSD 10.3-STABLE like this:
sudo kldload if_bwn
sudo kldload bwn_v4_ucode
sudo kldload bwn_v4_lp_ucode
#
# Now, interface `bwn0` is available
#
sudo ifconfig wlan0 create wlandev bwn0
sudo ifconfig wlan0 up # at this moment... |
When you booted your laptop and configured the wired bge0 interface via dhclient, it became the default route (as seen in the rightmost column in the output of netstat -r). When you later configured your wireless bwn0 interface and disconnected the wired interface, it wasn't set to be the default route. When you tri... | Configure wireless network on FreeBSD: router shows wireless device is connected, but cannot ping |
1,519,213,760,000 |
i've install gentoo on a raspberry Pi 3. The version of the kernel sources is 4.1.20-v7+. All works fine except for the wifi.
When i load the module brcmfmac, it is loaded without complaint but the wifi chips isn't recognize nor detected.
For the kernel config, i use the one from the latest raspbian /proc/config.gz.
A... |
I had the same problem, but as it all worked on raspian, I copied ALL the files from /lib/firmware/brcm on raspian to my gentoo system on the theory that if they were not required they would not be loaded.
The problem was solved!
| wifi chipset not detected on rPi 3 with gentoo |
1,519,213,760,000 |
I recently installed Ubuntu 14.04 on a computer with a Broadcom BCM4312 802.11b/g LP-PHY wireless card. After installing the proprietary drivers available from the Ubuntu repositories, I was able to see other wifis (my neighbours') APs, but not mine. I tried several drivers without success. I decided then to try Fedor... |
Although searching on the internet will lead you to instructions like: reboot/reset your router, reinstall "this" or "that" driver version or make sure your ESSID is not configured to be hidden, the problem may be the channel.
Having a look at the 2.4 GHz (802.11b/g/n) specification (my router can only use de 2.4 GHz ... | Broadcom: not able to see my wifi |
1,519,213,760,000 |
I have a Dell 710 with Quad Bcom NetExtreme 5709s. In the name of expediency, I'm trying to boot off the Squeeze live CD, but the Broadcom drivers are in non-free, so they don't come up when you boot.
No problem, I think to myself. I will sneaker-net the bnx2-firmware deb and all is good.
I can see the interfaces in... |
The firmware must be present at the time you load the driver. So be sure to unload the module and reload it:
# <install firmware>
rmmod bnx2
modprobe bnx2
For some drivers (I don't know about this one), you may need to unload auxiliary modules that it's using. lsmod | grep bnx2 will show what modules bnx2 uses. Ca... | Debian Live - modprobe failed to bring up Broadcom ethernet interfaces |
1,519,213,760,000 |
I've update my kernel version from 4.11 to 5.4.3-g9c2490ac8-dirty #3 SMP PREEMPT Sun Aug 8 12:11:16 UTC 2021 armv7l GNU/Linux
I have an issue with brcmfmac kernel module. I have enabled brcmfmac debug and enables all messages types in debug message.
you can see the dmesg output when I put this command insmod /<path to... |
the issue resolved.
I have add compatible property to usdhc in dts file.
&usdhc1 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
max-frequency = <50000000>;
pinctrl-0 = <&pinctrl_usdhc1_alt>;
bus-width = <4>;
no-1-8-v; /* force 3.3V VIO */
non-removable;
pm-i... | brcmfmac, brcmfmac_module_init No platform data available |
1,519,213,760,000 |
Whenever I try to connect to my 5 GHz network, my KDE Network Manager takes a while on "configuring interface", where then I am prompted to enter a password. I enter the network password, but the whole process repeats. I am running Manjaro Linux, and additional information is below.
$ sudo lspci -vvvnnk -d 14e4:
02:00... |
This card, according to the Broadcom Wiki, does support only the abgn networks.
You probably meant that the a stands for ac, which is nowadays 5 GHz standard.
I am sorry, but this card simply does not support ac networking.
| Can't connect to 5GHz network on Broadcom BCM43228 802.11a/b/g/n [14e4:4359] |
1,519,213,760,000 |
A few hours ago I installed Puppy Linux on to the quoted machine and have been pulling my hair out trying to configure the wifi.
Reasonably sure my machine needs the broadcom driver/pack but have no clue how to fix it.
I've laboriously looked through previous posts but the only solutions i could find used shell comma... |
From your desktop clic connect
Next step clic Load module
Choose b43 or b43-legacy then press Load
If the tow modules doesn't work , you can choose Ndiswrapper then select the .inf file (of the windows driver)
| Unable to configure wifi on Packard Bell Dot S |
1,519,213,760,000 |
I am having some troubles with the WIFI on my Macbook using Tails (USB). I encountered a problem similar once when setting up an Arch Linux USB system but I as able to find the necessary drivers and install them properly (Arch doc is very well done).
However I have absolutely no idea how to do this in Tails (or Debia... |
I took the time to dig into this. We need to install the wl driver for the 14E4:43A0 chip.
Here are the steps :
Enable non-free in the /etc/apt/sources.list file
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
modprobe -r b44 b43 b43legacy ssb brcmsmac to remove drivers that may c... | Install wifi driver for Macbook 11.1 under Tails |
1,475,223,652,000 |
I have installed fedora 23 and have dual boot with Windows 10 on Dell Inspiron 1545. The system doesn't recognize the wireless card with is Broadcom BCM4312.
I downloaded several rpms and tried to install them but failed.
I managed to install rfkill but
rfkill list wifi
gives nothing
rfkill list all
gives nothing ... |
I was advised to put all three rpm packages in one directory and run one command and so I did and it worked.
So I put
kmod-wl-4.2.3-300.fc23.x86_64-6.30.223.271-4.fc23.x86_64.rpm
kmod-wl-6.30.223.271-4.fc23.x86_64.rpm
broadcom-wl-6.30.223.271-1.fc23.noarch.rpm
in a new directory and ran
sudo rpm -ivh *.rpm
It wo... | Cannot install driver for BCM4312 with Fedora 23, no internet connection |
1,475,223,652,000 |
My keyboard's wifi LED should normally be orange when turned off , blue when turned on, but it's always orange and that makes me uncomfortable.
Here are some outputs I think are useful:
root@Machine:~# uname -a
Linux Machine 4.9.0-kali4-amd64 #1 SMP Debian 4.9.30-2kali1 (2017-06-22) x86_64 GNU/Linux
root@Machine:~# ls... |
The issue was the module I use, changing the module from brcmsmac to wl will resolve the problem; by running the following (after adding deb http://httpredir.debian.org/debian/ stretch main contrib non-free to /etc/apt/sources.list)
:
apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linu... | keyboard's wifi LED doesn't work properly |
1,475,223,652,000 |
I'm using Mint 21 on an HP 17-y002na laptop. It's been connected via ethernet cable for much of the time since I updated to 21, but has had wifi capability at times. Last week I noticed that the symbol showing ethernet connection was absent from my panel, but wired connection still works. Unplugged, I get no wifi opti... |
After running
sudo apt remove bcmwl-kernel-source && sudo apt install --reinstall broadcom-sta-dkms
sudo modprobe -rv bcma wl
and
sudo modprobe -v wl,
then rebooting, still no wifi icon or connection, but I hit on the idea of running terminal commands to see what could be seen
nmcli dev wifi
listed networks I cou... | Linux Mint 21 - Broadcom 43142 - wifi stopped working |
1,475,223,652,000 |
I'm running Debian 11 5.10.0-9-amd64. I've got an A10Networks Thunder TPS 4435 Network Appliance with 16 SFP+ Ports that are connected to one Broadcom network chip. In the original software, the interfaces are detected, but I've removed it from the disk so I can't check which driver it uses for the NIC.
Results of lsp... |
The Broadcom page of the PCI ID Repository does not know about product ID b844 either.
But it would seem that the ID falls within the group of IDs used apparently exclusively for the BCM56xxx series of switch ASIC chips. Of course this is nothing more than an educated guess.
| Searching for Broadcom Inc. and subsidiaries Device b844 (rev 02) driver |
1,475,223,652,000 |
About 2 weeks ago I installed an antivirus (ESET nod32) on my Mint 20.1 server. However, after discovering that it is not at all optimized for Linux (blocked basically all my ports + connections and provided no firewall manager), I uninstalled it and my connections began working again. Recently, after toying around wi... |
After examining the output of of sudo journalctl -b 0 -u NetworkManager as suggested by @waltinator, resulting in:
<info> [...] device (eno1): carrier: link connected
<warn> [...] dhcp4 (eno1): request timed out
I finally realized that it may be helpful to check the wifi extender that my server is connected to via et... | Ethernet Not Connecting on Linux Mint |
1,475,223,652,000 |
I've installed Debian 10.5 few days ago, after playing with drives and packages I was able to set up required broadcom drivers and was able to connect to wifi.
Because I've accomplished my mission I was quite happy thus I went sleep that day. Tho in the morning I saw that wifi connection is not there any more. It show... |
So I figured out that somehow issue was behind mac dual-boot system.
My build was like this: MAC OS on main SSD and Debian 10 on external SSD.
From time to time I was booting between MAC OS and DEB, and it affects the network card on Debian site.
Not sure how to fix it, so I uninstalled MAC OS from main SSD and instal... | I'm not able to connect to wifi on Debian 10 |
1,475,223,652,000 |
Since debian is a second OS on a dual booted mac, there is always problems with Wi-Fi. On this decice, my driver is BCM43224, which is supported by the Broadcom Wl driver. Upon installation, the Wi-Fi worked perfectly for half a day.
However then, the power cable got disconnected and the mac shutdown forcefully. There... |
Ostensibly, the problem got fixed by restoring /etc/network/interfaces back to default. I added a wlan0 in there earlier as it wasnt there before, but wlan0 now also shows in ifconfig
| Problems with Wi-Fi on Debian |
1,478,650,619,000 |
It seems like every application from the terminal gives warnings and error messages, even though it appears to run fine.
Emacs:
** (emacs:5004): WARNING **: Couldn't connect to accessibility bus:
Failed to connect to socket /tmp/dbus-xxfluS2Izg: Connection refused
Evince:
** (evince:5052): WARNING **: Couldn't co... |
Unfortunately, GTK libraries (used in particular by GNOME) tend to emit a lot of scary-looking messages. Sometimes these messages indicate potential bugs, sometimes they're totally spurious, and it's impossible to tell which is which without delving deep into the code. As an end user, you can't do anything about it. Y... | X applications warn "Couldn't connect to accessibility bus:" on stderr |
1,478,650,619,000 |
Since this bug affects so many platforms, we might learn something from the process by which this vulnerability was found: was it an εὕρηκα (eureka) moment or the result of a security check?
Since we know Stéphane found the Shellshock bug, and others may know the process as well, we would be interested in the story of... |
To reassure a few, I didn't find the bug by observing exploits, I have
no reason to believe it's been exploited before being disclosed
(though of course I can't rule it out). I did not find it by
looking at bash's code either.
I can't say I remember exactly my train of thoughts at the time.
That more or less came from... | How was the Shellshock Bash vulnerability found? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.