You are not logged in.

#1 2023-04-29 23:47:03

Jotunn
Member
Registered: 2023-04-29
Posts: 69

[SOLVED] Trouble mounting a 2nd drive

[root@Catalyst jotunn]# fdisk -l
Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Corsair MP600 PRO NH                    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BD2C145C-6C8D-40D4-BA1B-232B0BD2A9EE

Device            Start       End   Sectors   Size Type
/dev/nvme0n1p1     2048   1048575   1046528   511M EFI System
/dev/nvme0n1p2  1050624  41943039  40892416  19.5G Linux filesystem
/dev/nvme0n1p3 41943040 976773119 934830080 445.8G Linux filesystem


Disk /dev/nvme1n1: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: Corsair MP600 PRO NH                    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FF7F701C-8794-BC49-986F-B9CF4F8B43BE

Device         Start        End    Sectors  Size Type
/dev/nvme1n1p1  2048 7814035455 7814033408  3.6T Linux filesystem


Disk /dev/zram0: 4 GiB, 4294967296 bytes, 1048576 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/ainstnvme0n1p3: 445.75 GiB, 478616223744 bytes, 934797312 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@Catalyst jotunn]# mount -t gpt /dev/nvme1n1/
mount: /dev/nvme1n1/: can't find in /etc/fstab.

I know I am missing something fundamental about how the mount command works but I am not having any luck googling my way through it.

Last edited by Jotunn (2023-05-01 18:49:38)

Offline

#2 2023-04-29 23:55:41

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Trouble mounting a 2nd drive

Jotunn wrote:
[root@Catalyst jotunn]# fdisk -l
Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Corsair MP600 PRO NH                    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BD2C145C-6C8D-40D4-BA1B-232B0BD2A9EE

Device            Start       End   Sectors   Size Type
/dev/nvme0n1p1     2048   1048575   1046528   511M EFI System
/dev/nvme0n1p2  1050624  41943039  40892416  19.5G Linux filesystem
/dev/nvme0n1p3 41943040 976773119 934830080 445.8G Linux filesystem


Disk /dev/nvme1n1: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: Corsair MP600 PRO NH                    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FF7F701C-8794-BC49-986F-B9CF4F8B43BE

Device         Start        End    Sectors  Size Type
/dev/nvme1n1p1  2048 7814035455 7814033408  3.6T Linux filesystem


Disk /dev/zram0: 4 GiB, 4294967296 bytes, 1048576 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/ainstnvme0n1p3: 445.75 GiB, 478616223744 bytes, 934797312 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@Catalyst jotunn]# mount -t gpt /dev/nvme1n1/
mount: /dev/nvme1n1/: can't find in /etc/fstab.

I know I am missing something fundamental about how the mount command works but I am not having any luck googling my way through it.

-t in mount is for file system. GPT is not a file system.
Try just mount /dev/nvme1n1p1 /mnt

Offline

#3 2023-04-29 23:59:32

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

Update:

[root@Catalyst jotunn]# mount -t /dev/nvme1n1p1/
[root@Catalyst jotunn]# cd /dev/nvme1n1p1/
bash: cd: /dev/nvme1n1p1/: Not a directory

I have successfully mounted the partition. (I think)
Now I need to put things in there, but am not able to go to the location.

Offline

#4 2023-04-30 00:02:29

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Trouble mounting a 2nd drive

Jotunn wrote:

Update:

[root@Catalyst jotunn]# mount -t /dev/nvme1n1p1/
[root@Catalyst jotunn]# cd /dev/nvme1n1p1/
bash: cd: /dev/nvme1n1p1/: Not a directory

I have successfully mounted the partition. (I think)
Now I need to put things in there, but am not able to go to the location.

lsblk will show you where your device is mounted
my lsblk as an example:

lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1       259:0    0 931,5G  0 disk  
├─nvme0n1p1   259:1    0   500M  0 part  /boot

So nvme0n1p1is mounted in /boot

Last edited by 860lacov (2023-04-30 00:03:14)

Offline

#5 2023-04-30 00:04:08

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

-t in mount is for file system. GPT is not a file system.
Try just mount /dev/nvme1n1p1 /mnt

May be because I had just run the same command without /mnt at the end but this is what it told me:

[root@Catalyst jotunn]# mount -t /dev/nvme1n1p1 /mnt
mount: /mnt: can't find in /etc/fstab.

Offline

#6 2023-04-30 00:08:32

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

lsblk will show you where your device is mounted
my lsblk as an example:

lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1       259:0    0 931,5G  0 disk  
├─nvme0n1p1   259:1    0   500M  0 part  /boot

So nvme0n1p1is mounted in /boot

Based on this it seems the 2nd drive is still not mounted after all:

[root@Catalyst jotunn]# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
zram0              253:0    0     4G  0 disk  [SWAP]
nvme0n1            259:0    0 465.8G  0 disk  
├─nvme0n1p1        259:2    0   511M  0 part  /boot
├─nvme0n1p2        259:3    0  19.5G  0 part  /
└─nvme0n1p3        259:4    0 445.8G  0 part  
  └─ainstnvme0n1p3 254:0    0 445.7G  0 crypt /home
nvme1n1            259:1    0   3.6T  0 disk  
└─nvme1n1p1        259:6    0   3.6T  0 part  

Offline

#7 2023-04-30 00:12:47

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Trouble mounting a 2nd drive

Jotunn wrote:

lsblk will show you where your device is mounted
my lsblk as an example:

lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1       259:0    0 931,5G  0 disk  
├─nvme0n1p1   259:1    0   500M  0 part  /boot

So nvme0n1p1is mounted in /boot

Based on this it seems the 2nd drive is still not mounted after all:

[root@Catalyst jotunn]# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
zram0              253:0    0     4G  0 disk  [SWAP]
nvme0n1            259:0    0 465.8G  0 disk  
├─nvme0n1p1        259:2    0   511M  0 part  /boot
├─nvme0n1p2        259:3    0  19.5G  0 part  /
└─nvme0n1p3        259:4    0 445.8G  0 part  
  └─ainstnvme0n1p3 254:0    0 445.7G  0 crypt /home
nvme1n1            259:1    0   3.6T  0 disk  
└─nvme1n1p1        259:6    0   3.6T  0 part  

so try
mount  /dev/nvme1n1p1 /mnt
Without -t
/mnt is an example. You can mount it wherever you want.
If you want to use -t than
mount -t <filesystem-type> /dev/nvme1n1p1 /mnt
where <filesystem-type> is for example ext4

Offline

#8 2023-04-30 00:13:18

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

I realized a mistake I had made by including the -t arg
without -t I get the following:

[root@Catalyst jotunn]# mount /dev/nvme1n1p1 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme1n1p1, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

Offline

#9 2023-04-30 00:16:49

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Trouble mounting a 2nd drive

Show an output of blkid /dev/nvme1n1p1

Offline

#10 2023-04-30 00:17:57

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

When I created the partition in cfdisk it never prompted me to pick a file system like ext4
Is it possible that I skipped a step in preparing the device which is now preventing the device from being mountable?

Last edited by Jotunn (2023-04-30 00:19:57)

Offline

#11 2023-04-30 00:19:17

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

860lacov wrote:

Show an output of blkid /dev/nvme1n1p1

[root@Catalyst jotunn]# blkid /dev/nvme1n1p1
/dev/nvme1n1p1: PARTUUID="ed23cfbc-9356-0e4b-9829-2077fcc357a2"

Offline

#12 2023-04-30 00:19:55

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Trouble mounting a 2nd drive

Jotunn wrote:

when I created the partition in cfdisk it never prompted me to pick a file system like ext4
Is it possible that I skipped a stem in preparing the device which is now preventing the device from being mountable?

Create a file system

Offline

#13 2023-04-30 00:25:14

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

# mkfs.ext4 /dev/nvme1n1

recreated the partition with cfdisk

# mount /dev/nvme1n1p1 /mnt
mount: /mnt: special device /dev/nvme1n1p1 does not exist.
       dmesg(1) may have more information after failed mount system call.

Offline

#14 2023-04-30 00:28:43

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

Caught another mistake: I exited cfdisk without writing the changes.
I went back and corrected that and am not back here:

# mount /dev/nvme1n1p1 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme1n1p1, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

Offline

#15 2023-04-30 00:32:53

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Trouble mounting a 2nd drive

First you create the partition
Second you create file system
Third mout the pertition

Offline

#16 2023-04-30 00:36:22

Jotunn
Member
Registered: 2023-04-29
Posts: 69

Re: [SOLVED] Trouble mounting a 2nd drive

# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
zram0              253:0    0     4G  0 disk  [SWAP]
nvme0n1            259:0    0 465.8G  0 disk  
├─nvme0n1p1        259:2    0   511M  0 part  /boot
├─nvme0n1p2        259:3    0  19.5G  0 part  /
└─nvme0n1p3        259:4    0 445.8G  0 part  
  └─ainstnvme0n1p3 254:0    0 445.7G  0 crypt /home
nvme1n1            259:1    0   3.6T  0 disk  
└─nvme1n1p1        259:6    0   3.6T  0 part  /mnt

SUCCESS!
Thank you!

Offline

#17 2023-04-30 06:24:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: [SOLVED] Trouble mounting a 2nd drive

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB