Access to an HDD on Linux Mint 20.0--SOLVED

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
I have a new HP ProDesk G1 PC with a 256Gb SSD and a 1Tb HDD.
Mint is on the SSD where it belongs, but I cannot seem to get any 'pics' or 'docs' to reside on the HDD; they are also sitting on my SSD
D and I don't want that.
I am sure there has to be some command I didn't run or box I didn't check.
Can anyone provide me the 'silver bullet' to unlock access to my HDD?
Thank you!
 
Last edited:


kc1di

Well-Known Member
Joined
May 14, 2021
Messages
898
Reaction score
759
Credits
6,396
how did partition the HDD? You have to tell the system to store you Data to that partition. or move them there manually.
If it were me I would may the HDD my /home partition. that way all downloads Pictures etc would be automatically store there.
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
Thanks for the quick reply.
1. I didn't know I had to partition the HDD; I didn't do anything to the SSD so I thought that the HDD also came 'set up'.
2. How do I make the HDD my 'home partition'?
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
I went into GParted and the SSD looks like it was formatted and it's working fine.
The HDD is 'invisible' showing the entire 951GB drive in a single block of 'gray' without any partitions of any kind.
I can only even see it via GParted.
I am, at best, an intermediate Linux user.
What I am trying to accomplish is to 'see' and then 'use' the HDD as the repository for my docs and pics, that's it.
How do I proceed to accomplish that, please?
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
Thank you!
I will try that and hope for the best.
At least I didn't have any files/data on the HDD yet!
And Mint is running well on the SSD!
I appreciate your help.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,318
Reaction score
948
Credits
7,826
I don't use Mint, so I don't know if it auto-mounts the "other" hard drive ( non-OS drive ) automatically or not.

How to fix.
Open a terminal.

sudo fdisk -l

This will show you this disks you have. Likely /dev/sda and /dev/sdb is my guess.
It will show you the sizes of them. Probably the HDD drive is sdb.

Assuming this drive is sdb...
fdisk /dev/sdb
press "g" to create a gpt partition table.
press "w" to write this partition to the disk.
This will end fdisk.

fdisk /dev/sdb ( again )
press "n" to create a new partition.
Just press enter to accept the default values a few times.
Once the partition is created,
press "w" to write this partition to the disk.

This new partition will be called /dev/sdb1 ( the first partition on drive /dev/sdb )
This will probably kick you out of fdisk again, if not, press "q" to quit.

You can format this disk now.
mkfs.xfs or mkfs.ext4 or whatever filesystem you like. Likely ext4 is what Mint uses by default.
The syntax for this is...

mkfs.ext4 /dev/sdb1 ( don't forget the 1 )

When this is done.

blkid /dev/sdb1

You will see something like...

/dev/sdb1: UUID="a48485c1-57ae-49be-9b84-e89f8d9a34dd" BLOCK_SIZE="4096" TYPE="ext4"

Obviously the UUID string will be different.

edit your /etc/fstab file

add this line at the bottom

UUID=a48485c1-57ae-49be-9b84-e89f8d9a34dd /home ext4 defaults 0 0

(use your UUID, not the one I put here as an example )
When done editing this.

mount /home

df -h

You should now see /home as your 900GB partition.
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
LINK There's a link to a youtube video that should be able to help you the YouTuber is using mint like you so it should be a good tutorial.
I watched the youtube video and I followed it exactly and it worked exactly as was shown; so, thank you!
But, I am not able to either 'copy & paste' or 'move' any docs from the SSD to the newly accessible HDD.
Any ideas as to why not?
What do I need to do now?
Again, thank you in advance.
(Sorry to be such a PITA.)
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
BTW, under 'permissions' it says that I am not the 'owner' (?!) and that I cannot change the permissions to write; huh?
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
I am afraid that you are LEAGUES ahead of me.
How do I become the owner?
Or, if it is easier (for someone like ME) how would I change the mount position?
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,318
Reaction score
948
Credits
7,826
what is your user name? I will use elvisp as an example.

sudo chown -R elvisp:elvisp /home
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
Thank you, entered that (w/MY user name) but nothing changed; sorry.
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,500
Reaction score
974
Credits
11,126
If you are just trying to format your HDD to use it as storage - Mint has Disks installed by default - (AKA) gnome disk utility - here is step by step to format your drive using it - in this example I used a thumb drive but it works the same on any drive just highlight the drive you want to format first


2.png

3.png

4.png

5.png

6.png

7.png
 
OP
M

MAK47

New Member
Joined
Dec 1, 2021
Messages
18
Reaction score
3
Credits
129
HDD is now back to being there in GParted but INVISIBLE in 'Home.
 

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
898
Reaction score
759
Credits
6,396
HDD is now back to being there in GParted but INVISIBLE in 'Home.
Most likely it's mounted at /media or /mnt Not in home.
 

Brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
2,361
Reaction score
1,583
Credits
17,722
I you run in a terminal inxi -D it will tell you what drives you have and where they are mounted [but not partitions]
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Latest posts

Top