mount command in Ubuntu

Link to this post 06 Jan 12


I wanna mount my volumes in bash, since there's been some challenge with my Ubuntu GUI. I struggled with the "mount" command also it's man page, but I didn't succeed in the end.

my volume is /dev/sda10, with name "tmp_ext4". Would you please tell me bash command to do this? And then how to UNmount?

Thank you!

Link to this post 07 Jan 12

sudo mount -t auto /dev/sda10  /path/to/mount/point

Link to this post 07 Jan 12

thanks marc, it works. Looks like I've gotta study the role of mtab and fstab in a deeper way, since I wasn't using the "-a".
Thanks anyway ;-)

Link to this post 08 Jan 12

To unmount,
umount /dev/sda10
as root user

you can make that mount entry in fstab, to mount automatically whenever you boot the distro

Link to this post 08 Jan 12

thank you very much! :-)

Link to this post 09 Jan 12

oops! When I execute:

sudo mount /dev/sda10 /media/tmp_ext4

I get:
mount: mount point /media/tmp_ext4 does not exist

No matter what other parameters I use besides (-t, auto, ...), I always get this same message. What should I do?

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board