Switch to Different Filesystem

I am relatively new to linux, but am working on a remote server. It says i have a quota, and shows the following

 Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
  /dev/sda7 4756320* 4194304 5242880   02:51   72897       0       0
  /dev/sda8      48  41943040 52428800              88       0       0

This seems to me that sda7 is full, but sda8 is not. How can i switch to sda8? I tried cd /dev/sda8, but it says: Not a directory.

3

1 Answer

First check if you already have a mount created for this by running df -h. If not then continue

You cannot change directories because it is not a directory. /dev/sd* is simply the representation of SCSI partitions on your storage device.

Before you can use this you need to do the following if this partition has not had a filesystem created for it. This assumes you are wanting to access this partition to store other data on rather than resizing current partition

mkfs.ext4 -L /dev/sda8
mkdir /mnt/*directory*
mount /dev/sda8 /mnt/*directory*

This makes your partition usable by creating a filesystem for it and then mounting it so you are now able to cd into the /mnt directory you created.

If you want to reallocate your system partition that will need to be done on a live USB or CD as you should not modify the partition you are currently running on.

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest