[SOLVED] how to add a drive for storage

Message
Author
jarp53
Posts: 104
Joined: Mon Nov 25, 2019 3:37 pm

[SOLVED] how to add a drive for storage

#1 Post by jarp53 »

Code: Select all

Snapshot created on: 20220515_1225
System:    Kernel: 5.10.0-17-amd64 [5.10.136-1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-17-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.1_x64 Wildflower April 9  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: Gigabyte product: Z68X-UD3H-B3 v: N/A serial: <filter> Chassis: 
           type: 3 serial: <filter> 
           Mobo: Gigabyte model: Z68X-UD3H-B3 serial: <filter> BIOS: Award v: F12 date: 03/20/2012 
Battery:   Device-1: hidpp_battery_0 model: Logitech Illuminated Living-Room Keyboard K830 
           serial: <filter> charge: 100% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Info: Quad Core model: Intel Core i7-2600K bits: 64 type: MT MCP arch: Sandy Bridge 
           family: 6 model-id: 2A (42) stepping: 7 microcode: 2F cache: L2: 8 MiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 54562 
           Speed: 1701 MHz min/max: 1600/3400 MHz Core speeds (MHz): 1: 1701 2: 1727 3: 1822 
           4: 1881 5: 1686 6: 1733 7: 1719 8: 1839 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: 
           conditional, RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
           vendor: Gigabyte driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0122 
           class-ID: 0380 
           Device-2: NVIDIA GK104 [GeForce GTX 770] vendor: Gigabyte driver: nvidia v: 470.129.06 
           bus-ID: 01:00.0 chip-ID: 10de:1184 class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa alternate: nv display-ID: :0.0 
           screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") 
           s-diag: 583mm (23") 
           Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 55 size: 890x500mm (35.0x19.7") 
           diag: 1021mm (40.2") 
           OpenGL: renderer: NVIDIA GeForce GTX 770/PCIe/SSE2 v: 4.6.0 NVIDIA 470.129.06 
           direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Gigabyte 
           driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403 
           Device-2: NVIDIA GK104 HDMI Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus-ID: 01:00.1 chip-ID: 10de:0e0a class-ID: 0403 
           Sound Server-1: ALSA v: k5.10.0-17-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Qualcomm Atheros AR93xx Wireless Network Adapter driver: ath9k v: kernel 
           modules: wl port: bf00 bus-ID: 02:00.0 chip-ID: 168c:0030 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte 
           driver: r8169 v: kernel port: de00 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Drives:    Local Storage: total: 171.43 GiB used: 53.67 GiB (31.3%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Drevo model: X1 SSD size: 55.9 GiB block-size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0529 
           scheme: MBR 
           ID-2: /dev/sdb maj-min: 8:16 vendor: Silicon Power model: SPCC Solid State Disk 
           size: 59.63 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD 
           serial: <filter> rev: V3.7 scheme: MBR 
           ID-3: /dev/sdc maj-min: 8:32 vendor: KingDian model: S200 60GB size: 55.9 GiB 
           block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 7F1 scheme: MBR 
Partition: ID-1: / raw-size: 56.62 GiB size: 55.43 GiB (97.90%) used: 14.95 GiB (27.0%) fs: ext4 
           dev: /dev/sdb1 maj-min: 8:17 
Swap:      Alert: No swap data was found. 
Sensors:   System Temperatures: cpu: 34.0 C mobo: N/A gpu: nvidia temp: 42 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 18% 
Repos:     Packages: note: see --pkg apt: 2264 lib: 1212 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://www.gtlib.gatech.edu/pub/MX-Linux/workspace/mx/repo/ bullseye main non-free
           Active apt repos in: /etc/apt/sources.list.d/softmaker.list 
           1: deb http://shop.softmaker.com/repo/apt stable non-free
Info:      Processes: 287 Uptime: 4h 8m wakeups: 27 Memory: 15.55 GiB used: 1.84 GiB (11.8%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

I used this guide but it did not work [url]https://www.simplified.guide/linux/disk-mount[/url]  all it end that doing was creating a " disk" folder in /home/jr directory ; so I split sda in two and used sda1 for timeshift and would like to use sda2 for storage , time shift back up looks like is ok but I can not paste any thing on sda2 ; any help would be appreciated
Last edited by jarp53 on Thu Aug 25, 2022 4:17 pm, edited 1 time in total.

User avatar
Mauser
Posts: 1500
Joined: Mon Jun 27, 2016 7:32 pm

Re: how to add a drive for storage

#2 Post by Mauser »

Get another drive and install it in your computer. Boot the computer and run Gparted. Make sure you pick the correct drive and format it to Ext4.
I am command line illiterate. :confused: I copy & paste to the terminal. Liars, Wiseguys, Trolls, and those without manners will be added to my ignore list. :mad:

jarp53
Posts: 104
Joined: Mon Nov 25, 2019 3:37 pm

Re: how to add a drive for storage

#3 Post by jarp53 »

jr@mx:~
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 1.0 timeshift 2c7987ca-bc70-4f97-bfdf-fcbf8a4c99f3 2G 87% /run/timeshift/backup
└─sda2 ext4 1.0 storage 703a062d-748e-40f3-ab70-fb8e94df6966 28.3G 0% /media/jr/storage
sdb
├─sdb1 ext4 1.0 rootMX21 a130a7da-4e6b-4489-aa9a-a06281c8992e 37.5G 27% /
└─sdb2 swap 1 9609f220-9e1f-4c43-8545-6f897c6aed52
sdc
├─sdc1 vfat FAT32 BD91-86B7
├─sdc2
└─sdc5 ext4 1.0 MINT 836b6d4b-39ac-4b3b-a1b3-24c047a0ae54 34.1G 32% /media/jr/MINT
jr@mx:~
$
as you see sda2 is ext4 and is mounted, why can I not paste folders in it

User avatar
wdscharff
Posts: 1128
Joined: Mon Feb 24, 2020 1:07 am

Re: how to add a drive for storage

#4 Post by wdscharff »

jarp53 wrote: Thu Aug 25, 2022 3:16 am as you see sda2 is ext4 and is mounted, why can I not paste folders in it
mounted still says nothing about the write rights.
These have after formatting often only the admin account with which the partitioner was started.
First of all I would check the rights assignment
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

Huckleberry Finn

Re: how to add a drive for storage

#5 Post by Huckleberry Finn »

Because GParted gives the ownership to root by default. (Therefore it doesn't let the user write )

"MX Tweak" from menu: "Other" tab: "Enable mounting of internal drives ... "

Or (if still not):

Code: Select all

sudo chown -R jr:jr /media/jr/storage

If you like only (while you're at it) you can also mount them all first, then:

Code: Select all

sudo chown -R jr:jr /media/jr/*
(to do it for all what you have)

jarp53
Posts: 104
Joined: Mon Nov 25, 2019 3:37 pm

Re: how to add a drive for storage

#6 Post by jarp53 »

thanks Huckleberry that was exactly what I needed to do

Post Reply

Return to “Hardware /Configuration”