You are not logged in.
Pages: 1
[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
[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
Update:
[root@Catalyst jotunn]# mount -t /dev/nvme1n1p1/
[root@Catalyst jotunn]# cd /dev/nvme1n1p1/
bash: cd: /dev/nvme1n1p1/: Not a directoryI 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
Update:
[root@Catalyst jotunn]# mount -t /dev/nvme1n1p1/ [root@Catalyst jotunn]# cd /dev/nvme1n1p1/ bash: cd: /dev/nvme1n1p1/: Not a directoryI 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 /bootSo nvme0n1p1is mounted in /boot
Last edited by 860lacov (2023-04-30 00:03:14)
Offline
-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
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 /bootSo 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
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 /bootSo 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
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
Show an output of blkid /dev/nvme1n1p1
Offline
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
Show an output of blkid /dev/nvme1n1p1
[root@Catalyst jotunn]# blkid /dev/nvme1n1p1
/dev/nvme1n1p1: PARTUUID="ed23cfbc-9356-0e4b-9829-2077fcc357a2"Offline
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?
Offline
# mkfs.ext4 /dev/nvme1n1recreated 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
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
First you create the partition
Second you create file system
Third mout the pertition
Offline
# 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 /mntSUCCESS!
Thank you!
Offline
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
Pages: 1