MS insists on calling partitions drives which causes a great amount of confusion. Thing is that this is the way Windows sees them really. When it was just running word processors MSDos worked on floppies. There were snazzy boxes that had more than one floppy drive. Why is the first one C? Beats hell out of me.
A partition has contains file systems. Think of a building used for data storage in filing cabinets. There are rooms for old files for referrence, rooms for current documents, rooms for current spread sheets and so forth. Those rooms are separated by partitions just like your drive. The individual cabinettes represent directories.
One good solution would be to get an inexpensive external drive. You know it will boot from an usb port so that is not a problem. To be really safe you could even pull the hdd out of your box or, at least disconnect it although I don't think you can do that last in any laptop.
You could, with an external install the thing and boot from the external leaving your entire hdd untouched. I recommend removing the drive for the installation process because you could make a mistake.
One thing that WILL happen if you install on an external and don't know what you are doing is that grub will be installed on sda, your internal. While this is fine as long as the external is connected and turned on every time you boot, if it is not you will not be able to boot to just XP because the mbr will be looking for the grub files on the non existent, in this case, external. Grub will boot XP fine but only if the external is there to supply the files.
This would be the same situation as if you installed on the hdd but every time you boot that hdd is all there so the files needed to boot what ever is on the drive will always be there.
With the external, installed with the hdd removed, you will boot from which ever drive you choose in the bios boot menu just like with the usb stick.
Your D drive is probably mainly empty. You can shrink the recovery partition down to very little free space quite safely. You could shrink C from right to left and then shrink and move D from right to left. That should leave both fully functional and leave room for at least a small install.
Quote:
I understand all these can be in a single partition /home.
|
You misunderstand. They cannot be on /home. You can install on just a / partition which will include /home as a directory. You cannot have any of your other directories within /home. /home, in the simplest of installs, is just another directory. Like any directory that has some thing following the /.
/, by itself, indicates your entire file system for the install. ALL files are under that. There is no way that / can be under /home because as far as the system knows (because /home on a different partition is mounted at boot due to being listed with its mount point in /etc/fstab) /home is completely connected to the rest of the files in the accustomed place. And it is. Its possition is simply defined by a different /dev/sd?, or more commonly now by a different uuid than / root is defined by.
You can have any number of partitions with different sub directories of / that you want. If you only have a one partition install it will only have / mounted. That is the only way it works because / is the file system. /home is not.
/home, like all other sub directories of /, has its uses but only as part of /.
As an example, I run my package update/upgrades for my other installs in a chroot environment. When I set that up I mount those systems in their own directory with in my /mnt (short for MouNT). They are all installed on 2 partitions. So when I mount their / partition, the only one I need to do those chores, I can see, for instance in /mnt/VictimR, the entire file system for VictimR. This includes a /home.
If I open that /mnt/VictimR/home it will have nothing in it. Why not? Because it is actually on a different partition than the / for VictimR is. If I open it from my file manager, giving my root password here under Debian as only Root can mount partitions, it shows up, fully populated as /media/sam/VictimH.
VictimR / is in sda12 while VictimH is in sdb8. sda8 includes the /home directories for Victims O, R, T and Crunch (a CrunchBang install) O is Debian testing with OpenBox, T is testing with Xfce, R is sid with Xfce and CrunchBang is, of course OpenBox and upgraded to Sid as Crunch is based on Debian (kind of mixed repos in its original form).
The /home in my /mnt/VictimR is not populated because the OS is not running and therefore has not mounted all the things in its /etc/fstab file which includes the lines;
Code:
# / was on /dev/sdf11 during installation
UUID=4295f4e0-5f90-4db4-bab8-18dd486264cd / ext4 errors=remount-ro 0 1
# /home was on /dev/sdg6 during installation
UUID=aa15d094-5703-474b-b6cd-d7975194cece /home ext4 defaults 0 2
When you boot your bios looks in the MBR for a bootable system. It is directed to, in my case to /dev/sda10/boot. It is directed there because the install I am on now is handling the grub chores for my box. If I boot to VictimR the info comes from here.
If you install on you hdd grub will boot to Windows by looking at the /boot directory in your Linux install for instructions on what to boot, your /boot/grub/grub.cfg file will have the menu entry for XP as generated by the /etc/grub.d/00_headers and 30_os-prober scripts that shows up on your menu screen. From that entry it will boot to XP.
Currently your bios finds instruction to look for the MS boot sector.
The Grub entry will boot through there too but it will be running the hardware through the bios rather than the bios looking directly for the boot sector to get the menu entry for booting XP. The directions for creating that Win menu entry starts at about line 157 (Debian Sid implementation of Grub) in the /etc/grub.d/30_os-prober file. This will be somewhat different in non Debian distros as Debian has to include scripted instruction for the Ubuntu "wubi" installs that may be running grub.
Windows doesn't have a "kernel" as do most other OS's. It has a jumped up word processor OS that was capable of running Word Perfect and Lotus 123 that is now built out of patches to give it more functionality. If you look at the file manager in Windows you will see that what is occuring there is that when you call for an application the application takes over the work.
This is not how it works anywhere else. You open an application by calling on the OS to activate that application.
This is a considerable change from the application looking for what it needs in the OS. For one thing it makes actual security possible as the OS, not the application, is in charge of the process. This is a hard change to make in your thinking even if you never really thought about it while running MSDos or any of the Windows versions.
All of that is just an example of why the Linux file system is set up as it is and the imposiblily of maintaining any sort of sane (usable) paths to files if you try putting / in /home. Just will not work. /home is in / and there it HAS to stay no matter what partition it is physically located in.
Try putting directories (folders) from a Win install on different partitions and you will have a broken system because the OS isn't really in charge of the use of that file system. There the inmates run the asylum and they MUST, therefore, all be keep in a common holding pen (partition) called C. This is actually a very logical and great system. For something booted from a single floppy and not facing the internet.
The system will look for ALL user configuration files, no matter the number of users, in user land which is pretty much just the directory /home. That is why a separate /home will work as a nice way to keep those files separate in a reinstall situation for the new install to use.
Data partitions are set up for the convenience of the sys admin (you) and you can have as many as you want. I have 4 drives, sda has / partitions for my installs and a data partition. Sdb has /home partitions and a data partition. Sdc and sdd are single partition data drives.
All my installs have this in their /etc/fstab file;
Code:
# /media/FontOFiles was on /dev/sdi6 during installation
UUID=b058bf03-48e2-42da-84d0-62cf4dbc7ef4 /media/FontOFiles ext4 defaults 0 2
# /media/InfoSpring was on /dev/sdg10 during installation
UUID=4e351ba0-bd83-44b7-aa73-52e0550e1a77 /media/InfoSpring ext4 defaults 0 2
# /media/LinuxInfo was on /dev/sdf14 during installation
UUID=d9fa27f0-4985-4b44-93e7-843df728f377 /media/LinuxInfo ext4 defaults 0 2
# /media/Store was on /dev/sdh6 during installation
UUID=3cabe959-aeb8-4530-b73a-81e1811456a7 /media/Store ext4 defaults 0 2
Note 2 things;
A>the /dev/sd? doesn't match what I said the drives are. These drives were set up in external enclosures. The lines with the /dev/sd? designation is commented out and ignored by the system (# at the beginning of the line). The uuid is the same as it is built into the file system of the partition.
B>With this set up all my installs have the exact same path to files in those data partitions. That way I can simply transplant pertinent ~/.foo files to any of my installs that have that same applications and those directions to files will work fine. This is particularly of importance to me as I have a 20gig music collection (so far) and setting up play lists for any new install would be, to say the least, time consuming. As is I can simply retransplant any changes made from here to my other installs as needed. This also includes added menu entries in my file manager (Thunar) so that any shortcuts added to get to particular directories in any of the data partitions are also going to follow identical paths.
I can also use the same /etc/fstab entries for all data partitions as long as I remember to create the correct mount point in each installs /media directory. They could all be different but then the path would not be the same for all installs and the advantage of being able to transplant ~/.foo files would be lost.
Don't confuse / and /home as to where the system opperates from. It opperates from / and only /
Shared /home partition;
When your system boots it is looking for the /home/<user name> directory of the user logging in. This is where it will get the default DE, all application user configurations, the wallpaper to use, the system fonts to use, the individual default fonts for different applications, the settings for your terminal emulator(s) and so on and so forth.
This means that each install has to have a user with a unique user name. This is true if you have one install with many users. All have to have a unique user name so that they are using unique /home/<user name> files.
My VictimH which is currently /home to 4 installs has this in the /home directory;
Code:
sam@lounge:~$ ls /media/sam/VictimH
hed lost+found obie thom tom
lost+found is a file where fragments of information are stored if you ever do a file system repair just ignore it, it is in all partitions.
The names may look strange. They make sense to me so I can remember them easier. hed has the full name of Head Banger (CrunchBang). obie is Obie Jaun Younome for my Debian Testing OB install (and because I am a smartass that considers Star Wars as Comedy).
I could install one install of say, Sid, and have Xfce, OB and Mate installed. Have 3 users with different names, one for each of those DEs. This shared /home with the (currently) 4 installs means I can have different distros and/or versions of those distros. So there are 2 Debian testing based installs and 2 Sid based installs one of which is actually an upgraded respin of Debian: CrunchBang.
Manjaro, based on Arch, will be added soon (user man - Manny Moore).
This is NOT a common /home file. It is a common /home directory with separate and unique, non shared /home/<user name> sub directories. This is how all users on the multi user Unix decended OSs like Linux, BSD and Mac (actually BSD decended) all work with different users in a secure manner. In a shared partition you are simply taking advantage of that functionality to share a /home partition. That partition IS common and the /home directory IS common. The user files are not in the least common and can be set up to be invisible to all other users which would not in the case of your setup or mine to be convenient but would if you shared one of your installs or more with one or more other actual individual beings.
OS knowledge of what goes where;
The file system is defined by directories. Partitions that you make for separate directories are mounted in the /etc/fstab file. Therefore they are all known to the system as a whole.
When new packages are installed, by what ever method, the files included with them are either automagically installed where they belong by following the install script for the package included in .deb, .rpm or whatever other suffix is used by the package manager, by the compile build system or in the case of some packages, such as Seamonkey (Netscape type web browser/email client/website builder) by unpacking the compressed file in the desired directory (traditionally /opt (OPTional) and then one linked in /usr/local/bin/seamonkey so that you can actually launch the bugger from terminal, menu or other launcher such as a Xfce panel launcher in user land.
Wifi package for debian;
Get package and simply put it somewhere Debian can get to it like in your /home/<user> file for debian. Or /home/<user>/Downloads. On the desktop, where ever you want in user land. Install gdebi if it is not installed. Right click on the package and use the Gdebi option. You can also use "dpkg -i <package name>" I believe but am too tired to check man dpkg or my cheat sheet to make sure. At this time of night Gdebi seems the sensible and easy solution.
Swap format;
Open Gparted cursor over a partition and right click. That will bring up and menu>Format To and look at the options. One will be Linux-swap.
That is what the installer will look for and will format again on every install. You only need one no matter the number of installs. You only use one OS at a time so they can share that easily. As with any thing else used by the system it will be included in the /etc/fstab file.
swap is more related to /tmp in that the files are temporary. It is not even really mounted but used when your ram is over loaded. You can even change the definition of when the system uses swap by changing the swapage setting. The default setting should work fine on your box. Many people don't use a /swap at all. I do and recommend its use. I have, on this box with a mere 8gigs of ram, had some swap used when working many images in Gimp at once. Besides the system expects there to be /swap available and some installers will not install without one although you could remove it and the entry for it in /etc/fstab later. You will probably use it as that is a XP box and ram was not near as big as it is now.
By the way, nothing of real value should be stored on NTFS. It is not really a very reliable file system. Have done a lot of recovery from NTFS because it broke down. Have been able to recover all Linux fs types I have encountered to a level where you could, in a normal manner, simply copy the data to a clean system.