djmoore
February 28th, 2009, 10:02 AM
From both a command line and in GNOME, how do I determine what partition a given file or folder is on?
I have Ubuntu Ibex on the hard drive and am currently booting from a Heron LiveCD.
The LiveCD complicates things, because it creates its own file system parallel to the "real" FS on the hard drive.
Another way of asking this: I boot off a LiveCD, and find the several hard drives in the system have been divided up into numerous partitions. Since I booted from the LiveCD, of course, the usual mount points have been hijacked.
How can I browse through the partitions to see what folders and files are in each one?
I really want this answered both ways:
Grab a file, see what partition it lives on.
Grab a partition, see what files it contains.
===
Related:
I have a partition, /dev/sda2, which the LiveCD mounts as a subfolder of /home -- not the /home that the LiveCD creates, mind, but the "real" /home on the hard drive. (The LiveCD path is /media/home/public.)
I've manually mounted that same partition as the folder /DATA. The browser reports /DATA to be empty except for lost+found. /media/home/public has my data in it.
Why is /DATA empty?
I have Ubuntu Ibex on the hard drive and am currently booting from a Heron LiveCD.
The LiveCD complicates things, because it creates its own file system parallel to the "real" FS on the hard drive.
Another way of asking this: I boot off a LiveCD, and find the several hard drives in the system have been divided up into numerous partitions. Since I booted from the LiveCD, of course, the usual mount points have been hijacked.
How can I browse through the partitions to see what folders and files are in each one?
I really want this answered both ways:
Grab a file, see what partition it lives on.
Grab a partition, see what files it contains.
===
Related:
I have a partition, /dev/sda2, which the LiveCD mounts as a subfolder of /home -- not the /home that the LiveCD creates, mind, but the "real" /home on the hard drive. (The LiveCD path is /media/home/public.)
I've manually mounted that same partition as the folder /DATA. The browser reports /DATA to be empty except for lost+found. /media/home/public has my data in it.
Why is /DATA empty?