How to configure /etc/systemd/system.conf before boot up

More
09 Feb 2023 14:04 #264135 by SertanATL
I connected my cnc machine to a windows computer for file sharing but i had some problems. Winodws file sharing only works if I write -- sudo mount.cifs //192.168.1.94/Router2 ~/WindowsShare/ -o user=ServerGenel,uid=$UIDW -- after every boot up. Unfortunately when the system is shutting down, linux wants to close the connection and it takes 90 seconds. I wanted to edit the default time to 1sec but I accidentaly edited the wrong one and system is not booting. I wanted to edit #DefaultTimeoutStopSec=90s but instead I edited #DefaultTimeoutStartSec=90s and changed the value to 1. Now when I try to boot, it fails. How can I configure this setting before boot up?

Please Log in or Create an account to join the conversation.

More
09 Feb 2023 23:46 #264183 by andypugh
Does it boot at all? ie, do you get a grub menu, or does it completely fail to find the HD?

This might help: unix.stackexchange.com/questions/5079/ho...busybox-when-booting

The other option might be to boot from a USB stick or DVD and then edit the file. (if the drive with the file on it can be mounted...)

Please Log in or Create an account to join the conversation.

More
10 Feb 2023 07:50 #264209 by SertanATL
When I am booting I get a grub menu. When I proceed to boot, I get errors. I am sharing screenshots with you.   
Attachments:

Please Log in or Create an account to join the conversation.

More
10 Feb 2023 08:45 #264210 by SertanATL
I booted from a USB Stick and managed to find system.conf that I changed before. When I try to change it, it tells me that I don't have permission. How do i change it as administrator?

Please Log in or Create an account to join the conversation.

More
10 Feb 2023 11:35 #264213 by tommylight
Open a terminal and type
sudo thunar
That opens a file explorer as admin.

Please Log in or Create an account to join the conversation.

More
10 Feb 2023 12:41 #264215 by SertanATL
I tried it but unfortunately didn't work. The problem may be that I am not the user for that drive.

Please Log in or Create an account to join the conversation.

More
15 Feb 2023 11:12 #264555 by SertanATL
Problem Solved!

So, I ended up plugging the boot drive to a windows pc. In windows, in order to read and write linux partition files you need Linux File Systems for Windows by Paragon Software. After installing the software I edited the file. Unfortunately after editing boot drive didn't boot. I started recovery from a usb drive and reinstalled Grub loader and it worked!

Thanks for advice!

Please Log in or Create an account to join the conversation.

More
24 Feb 2023 12:39 #265231 by tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum