Is /home directory in root partition mapped to /home partitionCan I create a new partition from the free space inside my reiserfs-formatted /home partition?Mounting a multi-partition (GPT/HFS+) USB 2.0 harddrive on DebianHDD no longer able to mount after editing /etc/fstabCopy BTRFS partition to external harddisk BTRFS partition including snapshotsIs it safe to move partitions like that?Encrypted (luks) + LVM Ubuntu installation where /home is encrypted as well (ecryptfs): How to make a new partition for /home?“Why does ”/home“ have ” / “ at the beginning if for example the ” / " is on a different partition?Not able to access hard disk partition created in windows in a dual boot systemMounting GPT partition table in linuxHow do I elegantly repartition my hard drive?
Story about a toddler with god-like powers, dangerous tantrums
What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?
Filling region bounded by multiple paths
Is it possible to kill all life on Earth?
Unorthodox way of solving Einstein field equations
Creating Fictional Slavic Place Names
Opposite of "Squeaky wheel gets the grease"
Can a class take a different class's spell in their ritual book?
Please help me identify this plane
PhD student with mental health issues and bad performance
Working in the USA for living expenses only; allowed on VWP?
How can I make 20-200 ohm variable resistor look like a 20-240 ohm resistor?
Why is Colorado so different politically from nearby states?
If Sweden was to magically float away, at what altitude would it be visible from the southern hemisphere?
Could a guilty Boris Johnson be used to cancel Brexit?
Is American Express widely accepted in France?
Restoring order in a deck of playing cards (II)
Applicants clearly not having the skills they advertise
What if you don't bring your credit card or debit for incidentals?
Is there a rule that prohibits us from using 2 possessives in a row?
Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?
Is it grammatical to use "car" like this?
Why were the Night's Watch required to be celibate?
Does any lore text explain why the planes of Acheron, Gehenna, and Carceri are the alignment they are?
Is /home directory in root partition mapped to /home partition
Can I create a new partition from the free space inside my reiserfs-formatted /home partition?Mounting a multi-partition (GPT/HFS+) USB 2.0 harddrive on DebianHDD no longer able to mount after editing /etc/fstabCopy BTRFS partition to external harddisk BTRFS partition including snapshotsIs it safe to move partitions like that?Encrypted (luks) + LVM Ubuntu installation where /home is encrypted as well (ecryptfs): How to make a new partition for /home?“Why does ”/home“ have ” / “ at the beginning if for example the ” / " is on a different partition?Not able to access hard disk partition created in windows in a dual boot systemMounting GPT partition table in linuxHow do I elegantly repartition my hard drive?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
My /home partition is on /dev/sda1. My / partition is on /dev/sda2.
Whenever I make a file in /home partition it shows up in / partition under the /home directory.
The Windows equivalent is to make a file on the D drive and the file is also visible on C drive.
How is this possible ?
filesystems
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
My /home partition is on /dev/sda1. My / partition is on /dev/sda2.
Whenever I make a file in /home partition it shows up in / partition under the /home directory.
The Windows equivalent is to make a file on the D drive and the file is also visible on C drive.
How is this possible ?
filesystems
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
This is the philosophy of UNIX/Linux filesystems. And even in Windows you can mount disk D to appear as directory to disc C
– Romeo Ninov
8 hours ago
Kernel will record all the mounts, when you access some path, it will calculate which filesystem you're accessing and do operation on it. See /proc/self/mountinfo
– 炸鱼薯条德里克
1 hour ago
Windows Also use similar structure, except Win32 doesn't expose the same API
– 炸鱼薯条德里克
1 hour ago
add a comment |
My /home partition is on /dev/sda1. My / partition is on /dev/sda2.
Whenever I make a file in /home partition it shows up in / partition under the /home directory.
The Windows equivalent is to make a file on the D drive and the file is also visible on C drive.
How is this possible ?
filesystems
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
My /home partition is on /dev/sda1. My / partition is on /dev/sda2.
Whenever I make a file in /home partition it shows up in / partition under the /home directory.
The Windows equivalent is to make a file on the D drive and the file is also visible on C drive.
How is this possible ?
filesystems
filesystems
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 8 hours ago
roaima
47k762129
47k762129
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 8 hours ago
Rebecca Rebecca
111
111
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Rebecca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
This is the philosophy of UNIX/Linux filesystems. And even in Windows you can mount disk D to appear as directory to disc C
– Romeo Ninov
8 hours ago
Kernel will record all the mounts, when you access some path, it will calculate which filesystem you're accessing and do operation on it. See /proc/self/mountinfo
– 炸鱼薯条德里克
1 hour ago
Windows Also use similar structure, except Win32 doesn't expose the same API
– 炸鱼薯条德里克
1 hour ago
add a comment |
1
This is the philosophy of UNIX/Linux filesystems. And even in Windows you can mount disk D to appear as directory to disc C
– Romeo Ninov
8 hours ago
Kernel will record all the mounts, when you access some path, it will calculate which filesystem you're accessing and do operation on it. See /proc/self/mountinfo
– 炸鱼薯条德里克
1 hour ago
Windows Also use similar structure, except Win32 doesn't expose the same API
– 炸鱼薯条德里克
1 hour ago
1
1
This is the philosophy of UNIX/Linux filesystems. And even in Windows you can mount disk D to appear as directory to disc C
– Romeo Ninov
8 hours ago
This is the philosophy of UNIX/Linux filesystems. And even in Windows you can mount disk D to appear as directory to disc C
– Romeo Ninov
8 hours ago
Kernel will record all the mounts, when you access some path, it will calculate which filesystem you're accessing and do operation on it. See /proc/self/mountinfo
– 炸鱼薯条德里克
1 hour ago
Kernel will record all the mounts, when you access some path, it will calculate which filesystem you're accessing and do operation on it. See /proc/self/mountinfo
– 炸鱼薯条德里克
1 hour ago
Windows Also use similar structure, except Win32 doesn't expose the same API
– 炸鱼薯条德里克
1 hour ago
Windows Also use similar structure, except Win32 doesn't expose the same API
– 炸鱼薯条德里克
1 hour ago
add a comment |
3 Answers
3
active
oldest
votes
If your filesystem experience today is based in Windows, or single disk/partition systems, then you may not be used to the concept of mountpoints. (though Windows now supports mounting disks at a mount path now, too, it's not as common there as in Linux/Unix)
Your filesystem in Linux/Unix is a nested hierarchy of files. (folders are files, too..)
You start with /. The root of everything. In your case, this is on partition /dev/sda2. With /home on /dev/sda1, you end up with
/dev/pts/- (stuff)
sys/home/rebecca/txtfile.txt
bob/
etc. (there are a lot more directories, this is just an example)
So, the path from / -> /home/rebecca/textfile.txt is intended to be as transparent as possible. So, while it appears that textfile.txt is in the / partition, it's actually not. It's in the /home/ partition. It's just that that partition is mounted in the / directory as /home.
Try these three commands:
df /df /home/df /home/rebecca/textfile.txt<-- use a real path to a file
The df command will show you all your filesystems, real and virtual, that are mounted on your system at the time you run the command. Using df as I have in the examples above serves to filter the output to allow you to examine fewer things at a time.
TL;DR - it's how Unix and Linux mountpoints work to make all your various disks appear together to be a single cohesive file and directory tree.
add a comment |
In a POSIX filesystem, everything exists somewhere inside of the root of the filesystem, located at /. On your root partition, which you have mounted at /, you have a directory, /home. This directory is (presumably) being used as a mount point (i. e. the location at which a mounted filesystem such as a partition resides) for the home partition. Files created there are being created in the home partition, the contents of which are visible at that partition's mount point.
Notwithstanding the issues caused by making the contents of /home disappear, if you were to:
# umount /home; mount /dev/sda1 /mnt; ls /mnt
You would see the contents of what had been in /home, now visible at /mnt.
Don't actually do this; this is a demonstrative thought-experiment.
You can see a list of which filesystems are mounted at which mount points by observing the output of the mount command when given no parameters.
add a comment |
The filesystem (partition) containing your own files can be placed anywhere in the filesystem tree, which starts as /. Typically it's placed at /home and you have a directory in it that is named as your username. For example, you might have /home/rebecca.
UNIX-based systems (including Linux-based ones) use a single rooted filesystem (/). Windows systems use a multi-rooted filesystem (C:, D:, etc.).
When you write a file to a location you usually don't need to worry about which partition it's being written to, as long as there is enough disk space to hold the file's content.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Rebecca is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521985%2fis-home-directory-in-root-partition-mapped-to-home-partition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
If your filesystem experience today is based in Windows, or single disk/partition systems, then you may not be used to the concept of mountpoints. (though Windows now supports mounting disks at a mount path now, too, it's not as common there as in Linux/Unix)
Your filesystem in Linux/Unix is a nested hierarchy of files. (folders are files, too..)
You start with /. The root of everything. In your case, this is on partition /dev/sda2. With /home on /dev/sda1, you end up with
/dev/pts/- (stuff)
sys/home/rebecca/txtfile.txt
bob/
etc. (there are a lot more directories, this is just an example)
So, the path from / -> /home/rebecca/textfile.txt is intended to be as transparent as possible. So, while it appears that textfile.txt is in the / partition, it's actually not. It's in the /home/ partition. It's just that that partition is mounted in the / directory as /home.
Try these three commands:
df /df /home/df /home/rebecca/textfile.txt<-- use a real path to a file
The df command will show you all your filesystems, real and virtual, that are mounted on your system at the time you run the command. Using df as I have in the examples above serves to filter the output to allow you to examine fewer things at a time.
TL;DR - it's how Unix and Linux mountpoints work to make all your various disks appear together to be a single cohesive file and directory tree.
add a comment |
If your filesystem experience today is based in Windows, or single disk/partition systems, then you may not be used to the concept of mountpoints. (though Windows now supports mounting disks at a mount path now, too, it's not as common there as in Linux/Unix)
Your filesystem in Linux/Unix is a nested hierarchy of files. (folders are files, too..)
You start with /. The root of everything. In your case, this is on partition /dev/sda2. With /home on /dev/sda1, you end up with
/dev/pts/- (stuff)
sys/home/rebecca/txtfile.txt
bob/
etc. (there are a lot more directories, this is just an example)
So, the path from / -> /home/rebecca/textfile.txt is intended to be as transparent as possible. So, while it appears that textfile.txt is in the / partition, it's actually not. It's in the /home/ partition. It's just that that partition is mounted in the / directory as /home.
Try these three commands:
df /df /home/df /home/rebecca/textfile.txt<-- use a real path to a file
The df command will show you all your filesystems, real and virtual, that are mounted on your system at the time you run the command. Using df as I have in the examples above serves to filter the output to allow you to examine fewer things at a time.
TL;DR - it's how Unix and Linux mountpoints work to make all your various disks appear together to be a single cohesive file and directory tree.
add a comment |
If your filesystem experience today is based in Windows, or single disk/partition systems, then you may not be used to the concept of mountpoints. (though Windows now supports mounting disks at a mount path now, too, it's not as common there as in Linux/Unix)
Your filesystem in Linux/Unix is a nested hierarchy of files. (folders are files, too..)
You start with /. The root of everything. In your case, this is on partition /dev/sda2. With /home on /dev/sda1, you end up with
/dev/pts/- (stuff)
sys/home/rebecca/txtfile.txt
bob/
etc. (there are a lot more directories, this is just an example)
So, the path from / -> /home/rebecca/textfile.txt is intended to be as transparent as possible. So, while it appears that textfile.txt is in the / partition, it's actually not. It's in the /home/ partition. It's just that that partition is mounted in the / directory as /home.
Try these three commands:
df /df /home/df /home/rebecca/textfile.txt<-- use a real path to a file
The df command will show you all your filesystems, real and virtual, that are mounted on your system at the time you run the command. Using df as I have in the examples above serves to filter the output to allow you to examine fewer things at a time.
TL;DR - it's how Unix and Linux mountpoints work to make all your various disks appear together to be a single cohesive file and directory tree.
If your filesystem experience today is based in Windows, or single disk/partition systems, then you may not be used to the concept of mountpoints. (though Windows now supports mounting disks at a mount path now, too, it's not as common there as in Linux/Unix)
Your filesystem in Linux/Unix is a nested hierarchy of files. (folders are files, too..)
You start with /. The root of everything. In your case, this is on partition /dev/sda2. With /home on /dev/sda1, you end up with
/dev/pts/- (stuff)
sys/home/rebecca/txtfile.txt
bob/
etc. (there are a lot more directories, this is just an example)
So, the path from / -> /home/rebecca/textfile.txt is intended to be as transparent as possible. So, while it appears that textfile.txt is in the / partition, it's actually not. It's in the /home/ partition. It's just that that partition is mounted in the / directory as /home.
Try these three commands:
df /df /home/df /home/rebecca/textfile.txt<-- use a real path to a file
The df command will show you all your filesystems, real and virtual, that are mounted on your system at the time you run the command. Using df as I have in the examples above serves to filter the output to allow you to examine fewer things at a time.
TL;DR - it's how Unix and Linux mountpoints work to make all your various disks appear together to be a single cohesive file and directory tree.
answered 7 hours ago
Tim KennedyTim Kennedy
14.9k23152
14.9k23152
add a comment |
add a comment |
In a POSIX filesystem, everything exists somewhere inside of the root of the filesystem, located at /. On your root partition, which you have mounted at /, you have a directory, /home. This directory is (presumably) being used as a mount point (i. e. the location at which a mounted filesystem such as a partition resides) for the home partition. Files created there are being created in the home partition, the contents of which are visible at that partition's mount point.
Notwithstanding the issues caused by making the contents of /home disappear, if you were to:
# umount /home; mount /dev/sda1 /mnt; ls /mnt
You would see the contents of what had been in /home, now visible at /mnt.
Don't actually do this; this is a demonstrative thought-experiment.
You can see a list of which filesystems are mounted at which mount points by observing the output of the mount command when given no parameters.
add a comment |
In a POSIX filesystem, everything exists somewhere inside of the root of the filesystem, located at /. On your root partition, which you have mounted at /, you have a directory, /home. This directory is (presumably) being used as a mount point (i. e. the location at which a mounted filesystem such as a partition resides) for the home partition. Files created there are being created in the home partition, the contents of which are visible at that partition's mount point.
Notwithstanding the issues caused by making the contents of /home disappear, if you were to:
# umount /home; mount /dev/sda1 /mnt; ls /mnt
You would see the contents of what had been in /home, now visible at /mnt.
Don't actually do this; this is a demonstrative thought-experiment.
You can see a list of which filesystems are mounted at which mount points by observing the output of the mount command when given no parameters.
add a comment |
In a POSIX filesystem, everything exists somewhere inside of the root of the filesystem, located at /. On your root partition, which you have mounted at /, you have a directory, /home. This directory is (presumably) being used as a mount point (i. e. the location at which a mounted filesystem such as a partition resides) for the home partition. Files created there are being created in the home partition, the contents of which are visible at that partition's mount point.
Notwithstanding the issues caused by making the contents of /home disappear, if you were to:
# umount /home; mount /dev/sda1 /mnt; ls /mnt
You would see the contents of what had been in /home, now visible at /mnt.
Don't actually do this; this is a demonstrative thought-experiment.
You can see a list of which filesystems are mounted at which mount points by observing the output of the mount command when given no parameters.
In a POSIX filesystem, everything exists somewhere inside of the root of the filesystem, located at /. On your root partition, which you have mounted at /, you have a directory, /home. This directory is (presumably) being used as a mount point (i. e. the location at which a mounted filesystem such as a partition resides) for the home partition. Files created there are being created in the home partition, the contents of which are visible at that partition's mount point.
Notwithstanding the issues caused by making the contents of /home disappear, if you were to:
# umount /home; mount /dev/sda1 /mnt; ls /mnt
You would see the contents of what had been in /home, now visible at /mnt.
Don't actually do this; this is a demonstrative thought-experiment.
You can see a list of which filesystems are mounted at which mount points by observing the output of the mount command when given no parameters.
edited 1 hour ago
answered 7 hours ago
DopeGhotiDopeGhoti
48k56197
48k56197
add a comment |
add a comment |
The filesystem (partition) containing your own files can be placed anywhere in the filesystem tree, which starts as /. Typically it's placed at /home and you have a directory in it that is named as your username. For example, you might have /home/rebecca.
UNIX-based systems (including Linux-based ones) use a single rooted filesystem (/). Windows systems use a multi-rooted filesystem (C:, D:, etc.).
When you write a file to a location you usually don't need to worry about which partition it's being written to, as long as there is enough disk space to hold the file's content.
add a comment |
The filesystem (partition) containing your own files can be placed anywhere in the filesystem tree, which starts as /. Typically it's placed at /home and you have a directory in it that is named as your username. For example, you might have /home/rebecca.
UNIX-based systems (including Linux-based ones) use a single rooted filesystem (/). Windows systems use a multi-rooted filesystem (C:, D:, etc.).
When you write a file to a location you usually don't need to worry about which partition it's being written to, as long as there is enough disk space to hold the file's content.
add a comment |
The filesystem (partition) containing your own files can be placed anywhere in the filesystem tree, which starts as /. Typically it's placed at /home and you have a directory in it that is named as your username. For example, you might have /home/rebecca.
UNIX-based systems (including Linux-based ones) use a single rooted filesystem (/). Windows systems use a multi-rooted filesystem (C:, D:, etc.).
When you write a file to a location you usually don't need to worry about which partition it's being written to, as long as there is enough disk space to hold the file's content.
The filesystem (partition) containing your own files can be placed anywhere in the filesystem tree, which starts as /. Typically it's placed at /home and you have a directory in it that is named as your username. For example, you might have /home/rebecca.
UNIX-based systems (including Linux-based ones) use a single rooted filesystem (/). Windows systems use a multi-rooted filesystem (C:, D:, etc.).
When you write a file to a location you usually don't need to worry about which partition it's being written to, as long as there is enough disk space to hold the file's content.
answered 7 hours ago
roaimaroaima
47k762129
47k762129
add a comment |
add a comment |
Rebecca is a new contributor. Be nice, and check out our Code of Conduct.
Rebecca is a new contributor. Be nice, and check out our Code of Conduct.
Rebecca is a new contributor. Be nice, and check out our Code of Conduct.
Rebecca is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521985%2fis-home-directory-in-root-partition-mapped-to-home-partition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This is the philosophy of UNIX/Linux filesystems. And even in Windows you can mount disk D to appear as directory to disc C
– Romeo Ninov
8 hours ago
Kernel will record all the mounts, when you access some path, it will calculate which filesystem you're accessing and do operation on it. See /proc/self/mountinfo
– 炸鱼薯条德里克
1 hour ago
Windows Also use similar structure, except Win32 doesn't expose the same API
– 炸鱼薯条德里克
1 hour ago