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

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #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. 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #264213 by tommylight
Open a terminal and type
sudo thunar
That opens a file explorer as admin.

Please Log in to join the conversation.

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #265231 by tommylight

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum