How to add a new hard drive in opensuse?

I’ve never installed an extra hard drive on linux before.

I want to configure a specific folder to contain the contents of that drive.

How can I do that?

You don’t say if the drive already has something on it. I assume you really mean new as in blank.

In that case connect it up, use the YaST disk partitioner to create a partition on it for use by Linux.

As for mounting on a particular directory, if that directory already exists mounting on it will cause its former contents to be hidden, so you need to rename it first.

E.g. your old directory is /home/music. You have to rename it to /home/music.old and then create a mountpoint in /home/music and mount the partitioner using the partitioner. Then you copy the old contents to the new directory and when you are satisfied everything is there you can delete the old directory to recover the space.

This is just an outline. Which tools you use depend on how comfortable you are with GUI or CLI tools.

Hey Ken. Do I create a primary or extended partition? I’m not sure what these words mean in the linux world.

you can only have 4 primary partitions (due to some restrictions)

but if you have an extended one, you can create many more partitions inside it. An extended is basically a primary one which contains secondary partitions (note: a HDD may contain only one extended partition). Secondary partitions you create inside the extended one are called logical ones

if you just need 1 partition on this drive, then choose primary

Yeah…as soon as i posted that reply, I rememebered what primary and extended meant from back in the DOS days…lol.

But thanks microchip8!

I did not know that I could only have 4 primaries. That is useful info.

Just in case, it’d four primaries for each disk unit. I remember someone once thinking it was per system.