Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| engineering:computer_science:linux:linux_mount_drive [2024/08/16 13:56] – removed - external edit (Unknown date) 127.0.0.1 | engineering:computer_science:linux:linux_mount_drive [2024/08/16 13:56] (current) – ↷ Page moved from refractor_computer_science:linux:linux_mount_drive to engineering:computer_science:linux:linux_mount_drive carlossousa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Mounting a Drive in Linux ====== | ||
| + | |||
| + | Make a folder to mount the drive to: | ||
| + | |||
| + | <code bash> | ||
| + | mkdir -p /mnt/data | ||
| + | |||
| + | </ | ||
| + | |||
| + | Edit the fstab file | ||
| + | |||
| + | <code bash> | ||
| + | nano /etc/fstab | ||
| + | |||
| + | </ | ||
| + | |||
| + | With your information | ||
| + | |||
| + | <code bash> | ||
| + | LABEL=storageprox /mnt/data ext4 defaults 0 2 | ||
| + | |||
| + | </ | ||
| + | |||
| + | Mount the new drive. If you get an error, comment out (#) the fstab entry | ||
| + | |||
| + | <code bash> | ||
| + | mount -a | ||
| + | |||
| + | </ | ||