Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to set up my Disks

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Udaba
Posts: 80
Joined: 2019-03-18 00:35
Has thanked: 4 times

How to set up my Disks

#1 Post by Udaba »

Hello there im trying to set up my disks(1 m2 , 1 ssd , 1 hdd)
All im trying to do is to set it up to always mount at the start of the system.
Every time i have to go to "Disks" app and start it from there . Both are Ext4 .
I also want to make sure trim is running on SSDs and defragment on HDD .
Thanks in advance.

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 597
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: How to set up my Disks

#2 Post by NFT5 »

/etc/fstab

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: How to set up my Disks

#3 Post by cds60601 »

man fstab
man mount
Supercalifragilisticexpialidocious

Udaba
Posts: 80
Joined: 2019-03-18 00:35
Has thanked: 4 times

Re: How to set up my Disks

#4 Post by Udaba »

NFT5 wrote: 2022-01-17 23:45/etc/fstab
Thanks for this . How i should add them?

User avatar
canci
Global Moderator
Global Moderator
Posts: 2502
Joined: 2006-09-24 11:28
Has thanked: 136 times
Been thanked: 136 times

Re: How to set up my Disks

#5 Post by canci »

Udaba wrote: 2022-01-18 02:11 How i should add them?
https://wiki.debian.org/fstab
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

Udaba
Posts: 80
Joined: 2019-03-18 00:35
Has thanked: 4 times

Re: How to set up my Disks

#6 Post by Udaba »

I think i missed something and now my HDD is read only?Im not really sure.

It was something like this UUID=******* / ext4 defaults 1 1

Also should i add something to enable defragment?
Also at the SSD should i enable anything for trim and autostart?

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 597
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: How to set up my Disks

#7 Post by NFT5 »

I'd guess that your formatting is wrong.

Here's a fairly simple one on this single HDD notepad that I'm using at the moment:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=e0f7fe0b-2778-4bc3-8056-53d7f7893f70 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=0947-AD67  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda3 during installation
UUID=b41fae8e-5fb8-4650-ae3b-8d18f7dc7e78 /home           ext4    defaults        0       2
# Automount DATA
UUID=4efb3a9c-03d9-4a9a-98bf-5266cc2a9621	/home/chris/DATA	ext4	defaults	0	0
# Automount SWAP
UUID=4acbe646-34d2-43c8-8887-a02cc681a6ec	none	swap	sw	0	0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
When you give examples, copy from the original file and paste using the code tags. Then we can see what you actually have, not something that you've typed.
Note that the spaces should be Tabs and that mount points need the full address, including the leading "/". Mounting just to /, if that's what you've done, is not a good idea. Use your /home folder so you can see the drive or partition in your file manager.

IMHO, modern SSDs don't need trim and, using Ext4 you don't need to defragment which is a hangover from Windows.

Udaba
Posts: 80
Joined: 2019-03-18 00:35
Has thanked: 4 times

Re: How to set up my Disks

#8 Post by Udaba »

Still i get Could not paste files .
Permissions do not allow pasting files in thiss directory on my HDD ext4 backup .
What i should do?

Udaba
Posts: 80
Joined: 2019-03-18 00:35
Has thanked: 4 times

Re: How to set up my Disks

#9 Post by Udaba »

I got help from IRC members .
https://epistel.no/fstab/
There is this line fstab generator that guide me .
its fixed.

Post Reply