CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The second method that you posted is the best choice. I say that because that is what I've found from all of the searching I've done over the years. It's also the most practiced method that I have seen here in the forums.
but i see no reason to make a backup and re create my initramfs?
my workstations are on centos 7 1804 min
Ok, yeah, than that makes sense with CentOS:-
Those directories are associated with the rootfs; it's up to you if you make a backup.
Since the boot loader loads the kernel and the initramfs image into memory and starts the kernel and you will be updating grub anyway it's most likely not necessary to backup and re-create your initramfs:-
but its wierd as i have got another file i added to block all usb storage and that works and i didnt need to run the dracut command -
Method 1 – Fake install
In this method, we add a line ‘install usb-storage /bin/true’ which causes the ‘/bin/true’ to run instead of installing usb-storage module & that’s why it’s also called ‘Fake Install’ . To do this, create and open a file named ‘block_usb.conf’ (it can be something as well) in the folder ‘/etc/modprobe.d’,
$ sudo vim /etc/modprobe.d/block_usb.conf
& add the below mentioned line,
install usb-storage /bin/true
Now save the file and exit.
all i did was reboot the centos 7 machine and i could no longer see any usb storage i plugged in
no when i attach a usb storage drive in and when i do "fdisk -l" to show all my drives plugged in it doesnt show up
and all i did was reboot my machine after making that file in modprobe, so thats what i dont understand as i would had thought it would had been the same
maybe its because its a kernal driver the nouveau bit and usb isnt?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.