![]() |
partition laptop disk
Yet Another [set of] Linux Partition Question[s]
You buy a new laptop and find the built-in HDD has two partitions: (1) Windows-something C:, and (2) vendor diagnostics and utilities. The utilities partition is usually quite small and is hidden from normal windows access -- sometimes even needing special BIOS interaction to boot. The rest of the drive is windows. QUESTION: Is it true that Windows requires a primary partition to boot? If this is accurate, that uses two of the primaries possible.
QUESTION: Are there any requirements for the order that these primary partitions are placed on the drive? QUESTION: Do I use the remaining primary for the root '/' partition or for the /boot file system? QUESTION: What is an effective size for each? /boot can be small in the 500MB to 1GB range. On the other hand, '/' size depends on the contents -- both files and folder-trees. The extended partition might be at least 50% of the drive size ... more for really large (over 250 GB) drives. QUESTION: What file systems make the most sense inside the Extended partition?
QUESTION: Does it make sense to use virtual file system volumes for anything except /home and any other file system you want readable from windows? IFS-Drive cannot reach inside of logical volumes QUESTION: What happens to partition plan when I add W_I_N_E to the mix? QUESTION: What happens to partition plan when I add Virtual Box or similar to the mix? QUESTION: :twocents: Why isn't there a definitive laptop or single-drive partition HOWTO? :study: Cheers, ~~~ 0;-Dan Code:
My laptop is an Emperor Linux Raven Tablet (Lenovo Thinkpad X61 Tablet) running Ubuntu Hardy (v8.04.3 LTS) with Windows-XP/Pro Tablet Edition. The original drie is 160 GB. I want to install a 320 GB drive as upgrade. |
- yes
- no - Linux has no requirement that any partition be a primary - /boot is probably unnecessary but 200Meg is plenty usually. - see (3) - those are not filesystems BTW - VFS is a layer in the architecture to allow a generic framework to all devices; it's there all the time - probably nothing, but I've never used it - nothing at all, and the guest will probably just have a single VDI for the lot - "there's more than one way to do it" |
Quote:
That said, you did remind me that I could have the windows c: primary and the rest-of-the-volume could be a huge extended partition. Quote:
Quote:
Quote:
Quote:
VFS would enable easier resize of space among /var, /tmp, /opt, /usr/local, and so on. The disadvantage being that content would need separate export and import as one moves from linux boot to windows boot and returns. Quote:
Quote:
Thanks for the reply, ~~~ 0;-Dan |
Re: WINE: It simply puts a folder inside of your root folder and (sort of) treats it like your windows drive. It doesn't need any filesystems or changes to the HD.
Re: VirtualBox: You CAN use a physical drive as a disk, and you can even use a partition and have VBox treat it as a whole partitioned disk (the only reason one would do this is to use a RAW RAID partition emulated as a whole disk) search the VBox documentation for RAWVMDK for more information. That said, there is no reason you would want to do that. Just do as sgy00 said and create a .vdi file on your local filesystem (as VBox does by default) and use that. It may take a *slight* performance hit, but if you really want to be using raw disks in VBox, you should use a separate hard drive that is not mounted by any other active OSes, because accidentally booting into the same OS in VBox that you are physically in can have catastrophic results. A VDI is just a file that has a small amount of descriptor data and then a huge amount of "raw" space that acts as a hard drive (which is, in fact, just a large array of empty bits, of course). If you want to use the same VDI file in both of your physical operating environments, then you may want to put the .vdi files on a "neutral" filesystem that can be read and written by both Linux and WinXP easily. e.g FAT32. Just make sure that the specified size of a dynamically growing VDI file isn't greater than the size of the partition, or else you may (later rather than sooner) discover an "out of space" condition that you can't easily resolve and your virtual machine will pause until it is resolved. As sgy00 also said, "there's (my add: MANY) more than one way to do it". Hope I haven't bored you, but the short VBox answer is no, you don't need to do anything partition-wise. --mobrien118 |
Quote:
Quote:
|
Quote:
I don't use LVM as I use a significant number of different distros - partitions come and go, and get moved around. I can see it's benefits in a different environment, but for me it is too much trouble. |
Quote:
Yes, I am talking about Logical Volume Management (LVM). They are really useful for the /var /tmp /opt /use/local and similar system spaces whose size varies up and down based on what's happening now. When I'm coding, TMPDIR is very busy so /tmp gets larger. Since the workstation web pages are on /var/www, when I've loads of content, /var grows and other things shrink ... and so on. Sadly, there is no way to reach into LVM from winXX. |
| All times are GMT -5. The time now is 12:36 PM. |