LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount hdb to /root/example ?! (https://www.linuxquestions.org/questions/linux-newbie-8/mount-hdb-to-root-example-397908/)

AmigaSpirit 12-30-2005 12:40 PM

Mount hdb to /root/example ?!
 
I use slackware 10.1 and kinda needs to mount a HD to /root/example is it possible and how do i do it ??

microsoft/linux 12-30-2005 12:51 PM

yes it's possible.
Code:

# mkdir /root/example

# mount -t <filesystem type> /dev/hdb1 /root/example

That should do it, are you certain you want it mounted on /root though? that will be a directory called root under /(or the root directory, similar to the C drive in windows)

pixellany 12-30-2005 01:43 PM

Quote:

Originally Posted by AmigaSpirit
I use slackware 10.1 and kinda needs to mount a HD to /root/example is it possible and how do i do it ??

KINDA needs???? Either you NEED TO or you don't.......;)

You can mount any drive at any point on the file system---more correctly at any **directory**.

Note a subtle point. If you mount to a directory that is not empty, you will hide what was there---thus new drives (partitions) are typically mounted to empty directories.

Look at the man pages for mkdir, mount, mtab, etc. If you want it to mount at bootup, you need an entry in fstab. Look at man fstab for the details)

AmigaSpirit 12-31-2005 03:49 PM

thx
 
Hey thx, i got it working.... :P now its time for next project :P


All times are GMT -5. The time now is 05:06 PM.