You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/azure/virtual-machines/linux/linux-virtual-machine-cannot-start-fstab-errors.md
+6-21Lines changed: 6 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,32 +95,17 @@ If the VM serial console access is not available, an alternative solution is to
95
95
96
96
#### Use Azure Linux Auto Repair (ALAR)
97
97
98
-
Azure Linux Auto Repair (ALAR) scripts is a part of VM repair extension described in [Repair a Linux VM by using the Azure Virtual Machine repair commands](./repair-linux-vm-using-azure-virtual-machine-repair-commands.md). ALAR covers automation of multiple repair scenarios including `/etc/fstab` issues.
98
+
Azure Linux Auto Repair (ALAR) scripts is a part of VM repair extension described in [Use Azure Linux Auto Repair (ALAR) to fix a Linux VM](./repair-linux-vm-using-alar.md). ALAR covers automation of multiple repair scenarios including `/etc/fstab` issues.
99
99
100
-
The ALAR scripts use the repair extension `run` command and its `--run-id` option. The script-id for the automated recovery is: **linux-alar2**. Implement the following steps to automate fstab errors via offline ALAR approach:
100
+
The ALAR scripts use the repair extension `repair-button` to fix fstab issues by specifying `--button-command fstab`. This parameter triggers the automated recovery. Implement the following steps to automate fstab errors via the offline ALAR approach:
101
101
102
102
```azurecli-interactive
103
-
az vm repair create --verbose -g centos7 -n cent7 --repair-username rescue --repair-password 'password!234' --copy-disk-name repairdiskcopy
104
-
```
105
-
106
-
```azurecli-interactive
107
-
az vm repair run --verbose -g centos7 -n cent7 --run-id linux-alar2 --parameters fstab --run-on-repair
108
-
```
109
-
110
-
```azurecli-interactive
111
-
az vm repair restore --verbose -g centos7 -n cent7
112
-
```
103
+
az vm repair repair-button --button-command fstab --verbose rgtest --name vmtest
104
+
```
113
105
114
106
> [!Note]
115
-
>The resource group name "centos7, vm name "cent7", and --copy-disk-name "repairdiskcopy" are examples and the values need to change accordingly.
116
-
117
-
>The fstab repair script will take a backup of the original file and strip off any lines in the /etc/fstab file which are not needed to boot a system. After successful start of the OS, edit the fstab again and correct any errors which didn’t allow a reboot of the system before.
118
-
119
-
Alternatively, once a repair vm is created, the changes can also be implemented by manually logging into the repair vm, mounting the attached copy of OS disk and making changes to its fstab file. Follow the steps here:
120
-
* Create a repair VM using the `az vm repair create` command.
121
-
* In order to mount and chroot to the filesystems of the attached OS disk in a rescue VM, follow the detailed [chroot instructions](./chroot-environment-linux.md).
122
-
* Next, follow the same [fstab troubleshooting steps](#fstab-troubleshooting-steps) as above.
123
-
* Once the changes are applied, `az vm repair restore` command can be used to perform automatic OS disk swap with the original VM.
107
+
>The resource group name "rgtest and vm name "vmtest", are examples and the values need to change accordingly.
108
+
>The fstab repair script will take a backup of the original file and strip off any lines in the /etc/fstab file which are not needed to boot a system. After successful start of the OS, edit the fstab again and correct any errors which didn’t allow a reboot of the system before.
0 commit comments