Re: initializing linux partitions after installation
on Thu, Jan 02, 2003 at 02:24:40AM -0500, Nori Heikkinen (firstname.lastname@example.org) wrote:
> so, i did it! i installed debian from scratch, woo-hoo! it's now
> installed, but not configured, so i still have half the work ahead of
> me ... but thanks to y'all and to debian, it was much easier than i'd
> expected it to be.
> now my question is: during setup and installation, i partitioned off
> my hard drive into a swap partition /, /usr, /var, /tmp, and /home. i
> initialized the swap and the first three of the others, but then i
> stopped, and moved on to the rest of the installation. now i don't
> have /tmp or /home initialized or mounted. how do i go back and do
1. Create the partition (you've done this apparently).
2. Create a filesystem on it. E.g.: if /dev/hda6 is /home:
3. Add an entry to /etc/fstab.
4. Mount the filesystem.
> what's weirding me out is, having created a user account for myself
> and logging in, `pwd` says i'm in /home/nori. how can this be, if i
> didn't initialize a /home partition?
You don't need to create a partition for given mountpoints, you *can* do
so if you like. /home/nori is probably on your root partition (/). You
can check this with:
$ cd /home/nori; df .
> where on the disk am i? is this bad?
No, but it means you're going to want to move the directory and copy its
contents to the new mountpoint once you've created it:
$ sudo bash
# cd /
# mv home home-bak
# mount /home
# cp -pdR home-bak/* /home
> i mean, i'm going to go back and initialize it and /tmp just as soon
> as i figure out how, but i'm kind of confused.
You're doing fine. The confusion is permanent, its focus shifts with
Karsten M. Self <email@example.com> http://kmself.home.netcom.com/
What Part of "Gestalt" don't you understand?
zIWETHEY: Provocative, super smart, and oh yeah, just a little sexy.