cannot mount through fstab
Dear linux community,
I am trying to mount a ceph rbd device into a linux machine. Code:
nid001402:~ # parted -l Code:
# Added by Shasta dracut module Code:
nid001402:~ # mount -t ext4 /dev/rbd0 /scratch/local Code:
nid001402:~ # umount /scratch/local thank you very much |
I don't think you need to add the '-t ext4' to the mount -a command, since you are already specifying the filesystem in the /etc/fstab. Can you try it without it?
|
also fails without the fs type
Code:
nid001402:~ # mount -a |
Hmm... What do the logs say? Check the dmesg log after running the Mount command
|
What does
Code:
fdisk -l |
ok, tried strace and found this
Code:
access("/run/mount", R_OK|W_OK) = 0 Code:
/dev/rbd0 /scratch/local ext4 noauto 0 0 not sure the difference between nauto and default ... |
The correct syntax is defaults not default. From man mount:
Quote:
|
I think all that's missing is that you didn't format the filesystem before you tried to mount it.
#> mkfs.ext4 /dev/rdb0 #> mkdir /scratch/local -- you probably already did this -- ALSO change the word in fstab that says "default" to "defaults". then you should be able to mount it. #> mount -a |
All times are GMT -5. The time now is 04:55 AM. |