Skip to content

Commit

Permalink
fix: change init script for ext4
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoaldamav committed Oct 31, 2023
1 parent c445800 commit 429b692
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions scripts/linux-ext4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,11 @@

# Prepare Disk
echo "::group::Prepare Disk"

# Unmount the disk if it's mounted
sudo umount /dev/sdb1 2>/dev/null || true

# Create a new ext4 filesystem on the drive
sudo mkfs.ext4 /dev/sdb1

# Create a directory to serve as the mount point
sudo mkdir -p /mnt/ext4

# Mount the drive
sudo mount /dev/sdb1 /mnt/ext4

sudo mkfs.ext4 /dev/sdb
sudo mount /dev/sdb /mnt/ext4
echo "::endgroup::"

# Create a "code" directory in the ext4 volume
sudo mkdir -p /mnt/ext4/code

# Give ownership to the current user
sudo chown -R $USER:$USER /mnt/ext4/code

# Give full permissions to the current user
sudo chmod -R 777 /mnt/ext4/code

0 comments on commit 429b692

Please sign in to comment.