Help needed with mounting weirdness....

khedger

Member
Credits
539
Hi all,
I don't have a lot of experience playing with filesystems and such and I'm stuck.
Here's what I have:
I have a server with three SDDs installed. One is being used for the linux install or system. I'm using Ubuntu 20 and it's up and running fine.
I used fdisk to make a full-disk partition on another SDD at /dev/sdb. This seemed to work fine and I get this from the print command in fdisk:
Code:
Command (m for help): p
Disk /dev/sdb: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk model: ADATA SU635     
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: dos
Disk identifier: 0xa3b8828a

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 937703087 937701040 447.1G 83 Linux
I then created a mountpoint /mars:
Code:
drwxrwxrwx   2 root root       4096 Jul  1 22:04 mars
(notice that the date is current and permissions are wide open -- this is on my private LAN)
I then do mount /dev/sdb1 /mars
df shows it mounted:
Code:
.
.
.
/dev/loop8         63616    63616         0 100% /snap/gtk-common-themes/1506
/dev/sda1         523248        4    523244   1% /boot/efi
tmpfs             805924       32    805892   1% /run/user/1000
/dev/sdb1         523248        4    523244   1% /mars
But now when I do an ls on the filesystem, the date is munged back to the beginning of the epoch
and the permissions are changed:
Code:
drwxr-xr-x   2 root root       4096 Dec 31  1969 mars
So I need help trying to understand what's happening here and how to fix it.
Any thoughts?

Thanks in advance,

keith
 


CptCharis

Well-Known Member
Credits
331
I can't see something wrong from your screenshots. The only I can think is: did you make a filesystem with mkfs.ext4 (example) in your partition?
 

khedger

Member
Credits
539
I'm sorry, I don't fully understand your question, but you might have just
pointed me in the right direction.
So I partitioned the disk, then I dis 'sudo mkdir /mars'.
Should I have done 'sudo mkfs' instead, to create the mountpoint?

keith
 

khedger

Member
Credits
539
thanks for all of your help. Dummy me....I forgot that I actually have to MAKE a filesystem! DUH!
It's been a few years since I've mucked with this stuff....anyway, with your kind help I've made the filesystems, mounted them, unmounted them, edited /etc/fstab, done mount -a and everything now works. Thanks again for the help.

keith
 

CptCharis

Well-Known Member
Credits
331
thanks for all of your help. Dummy me....I forgot that I actually have to MAKE a filesystem! DUH!
It's been a few years since I've mucked with this stuff....anyway, with your kind help I've made the filesystems, mounted them, unmounted them, edited /etc/fstab, done mount -a and everything now works. Thanks again for the help.

keith
I am glad that I help
 



Top