Sponsored Content
Operating Systems Linux Ubuntu [SOLVED] Dual boot Windows 7 and Ubuntu on USB Post 302740173 by bakunin on Wednesday 5th of December 2012 04:50:55 PM
Old 12-05-2012
Notice that Linux usually uses not one but several partitions (=filesystems). Installing all in one partition is possible but in the long run not a very good idea, IMHO.

The partition layout i found most satisfying over time is like the following, but i have to admit i don't have any Windoze-partitions on any of my systems.

Code:
/boot    128MB
/        10G
/home    5G
swap     =RAM

I usually put the "/home", "/" and "swap" in a LVM volume group leaving the remainder of the disk free, so that i can add space to any filesystem which might need it later.

"/" only contains system files and usually 10G is sufficient. Most of my installations take initially about 2GB, which will grow later as updates run in, but 10G should work for some time.

"/boot" only holds the kernel image and some GRUB-configuration files. 128M will be all you ever need. Habitually i put this partition at the beginning of my disks, because many years ago Linux was not able to boot from a disk cylinder >=1024. These times are long gone, but habits die hard. It needs to be on a separate partition because Linux cannot boot from an LVM partition.

"swap" equal the size of your RAM is a good starting point. If the usage pattern of your system is not completely far out of the normal average it will be OK. Once your system starts paging heavily on a regular basis you should consider upgrading your RAM anyway.

How much you need in "/home" depends on you. You will probably have to fine-tune this. If you use an LVM you can dynamically make the FS bigger. I have usually several Linux/Unix-distributions on my laptop, so i share the LVM partitions and make sure every distro uses the same UID for my user. This way i can share my HOME directory in different distributions.

When installing several distributions in a multi-boot system i give every distribution its own "/" filesystem, but they share the swap and the "/home". They all start from the same "/boot".

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Loading windows on a dual boot

I want to dual-boot Windows 98 and Redhat 7. My scheme for doing this is to partition into: A FAT32 partition for windows A Linux partition for root A swap partition A boot partition My question is: At what point do I setup windows on the FAT partition? Would I do it from the command line... (5 Replies)
Discussion started by: Furtoes00
5 Replies

2. UNIX for Dummies Questions & Answers

Dual boot Redhat with Windows 2k or XP

I know this is a common question, but.... I am working on 2 seperate computers. Each machine has one hdd. I want to Install Redhat with Win2k on one machine, and Redhat with Xp on the other. I know there are some issues with the install sequence to get Grub to work with both, but I am a little... (4 Replies)
Discussion started by: jeremiebarber
4 Replies

3. UNIX for Advanced & Expert Users

windows -linux dual boot............

I am trying to implement a dual boot on my laptop ... using a small xp partition and fedora core 269.1-fc2 i686 linux kernel.. so far I have had to log off and reboot to enter the other partition... but this is getting frustrating.. windows is on /dev/hda1 and 1-5 is on the linux partition. I have... (8 Replies)
Discussion started by: moxxx68
8 Replies

4. UNIX for Dummies Questions & Answers

Dual Boot between UNIX and Windows

I am planning to install UNIX (SunOS) on my computer which has two hard disks C: and D: C drive already have operating system which has windows installed on it and I use it on daily basis. D drive is empty and has like 40GB space, I want to partition D: by half half and want install UNIX on... (1 Reply)
Discussion started by: DataSheet
1 Replies

5. UNIX for Dummies Questions & Answers

Windows And Unix, Dual Boot

Hello! I must find a way to use unix in my PC. I have a Dell Intel Pentium 4 CPU 3.2GHz, 1Gb RAM.It came with windows xp but in order to get some software running I have to be able to work on unix! Is it posible to set up a unix and Windows dual boot configuration? I was sure it was posible but... (2 Replies)
Discussion started by: isidora10
2 Replies

6. Ubuntu

Urgent Help Needed: Installing Dual Boot Ubuntu

Hi, I have installed Ubuntu 5.04 on my second Hard Drive. My first HD contains windows. When i make my 2nd HD as boot device, i see GRUB Menu (i.e. stage 2). On trying to boot Ubuntu, I get an Error 15: File missing problem. The FS shown was FAT. On trying to boot Windows, I am presented... (5 Replies)
Discussion started by: karthikb23
5 Replies

7. Ubuntu

Fedora Windows XP Prof dual boot

Faced with a "learn the new platform at your own expense or lose your job" ultimatum, I bought a Maxtor internal HD and added it to my older HP desktop which had been upgraded from Windows to Windows Professional. I installed Fedora on the new 500 GB HD and tried putting the Fedora boot partition... (5 Replies)
Discussion started by: dba18
5 Replies

8. UNIX for Dummies Questions & Answers

installing centos dual boot with ubuntu

I have installed ubuntu desktop on my hard drive and I gave it all the hard drive. Now I want to repatriate the hard disk and give half of it to anther ext4. How do I do that? Can I do it fron with in the ubuntu? Second when I install the centos, how can I make to recognize the ubuntu and... (0 Replies)
Discussion started by: programAngel
0 Replies

9. Android

Android x86 version dual boot with ubuntu

Hi, i came across this android x86 OS Link. there is a live cd and HD installation. i try the live cd and HD installation in the virtualbox and its working fine. im interested with this x86 platform. since i had a viewsonic viewpad 7 android 2.2.Does anyone try to dual boot this Android x86 OS... (0 Replies)
Discussion started by: jao_madn
0 Replies

10. Ubuntu

Copy existing Ubuntu to boot from USB

Hello all, I am looking for a way to copy the existing Ubuntu server 12.04 to a USB (with all the packages and such) and make it boot from the USB. I have seen other threads about copying the CD image to the USB, which is not exactly I am looking for. Before I start diving into anything I... (4 Replies)
Discussion started by: br1an
4 Replies
MKSWAP(8)						       System Administration							 MKSWAP(8)

NAME
mkswap - set up a Linux swap area SYNOPSIS
mkswap [options] device [size] DESCRIPTION
mkswap sets up a Linux swap area on a device or in a file. The device argument will usually be a disk partition (something like /dev/sdb7) but can also be a file. The Linux kernel does not look at partition IDs, but many installation scripts will assume that partitions of hex type 82 (LINUX_SWAP) are meant to be swap partitions. (Warning: Solaris also uses this type. Be careful not to kill your Solaris partitions.) The size parameter is superfluous but retained for backwards compatibility. (It specifies the desired size of the swap area in 1024-byte blocks. mkswap will use the entire partition or file if it is omitted. Specifying it is unwise - a typo may destroy your disk.) After creating the swap area, you need the swapon command to start using it. Usually swap areas are listed in /etc/fstab so that they can be taken into use at boot time by a swapon -a command in some boot script. WARNING
The swap header does not touch the first block. A boot loader or disk label can be there, but it is not a recommended setup. The recom- mended setup is to use a separate partition for a Linux swap area. mkswap, like many others mkfs-like utils, erases the first partition block to make any previous filesystem invisible. However, mkswap refuses to erase the first block on a device with a disk label (SUN, BSD, ...). OPTIONS
-c, --check Check the device (if it is a block device) for bad blocks before creating the swap area. If any bad blocks are found, the count is printed. -f, --force Go ahead even if the command is stupid. This allows the creation of a swap area larger than the file or partition it resides on. Also, without this option, mkswap will refuse to erase the first block on a device with a partition table. -L, --label label Specify a label for the device, to allow swapon by label. -p, --pagesize size Specify the page size (in bytes) to use. This option is usually unnecessary; mkswap reads the size from the kernel. -U, --uuid UUID Specify the UUID to use. The default is to generate a UUID. -v, --swapversion 1 Specify the swap-space version. (This option is currently pointless, as the old -v 0 option has become obsolete and now only -v 1 is supported. The kernel has not supported v0 swap-space format since 2.5.22 (June 2002). The new version v1 is supported since 2.1.117 (August 1998).) -h, --help Display help text and exit. -V, --version Display version information and exit. NOTES
The maximum useful size of a swap area depends on the architecture and the kernel version. The maximum number of the pages that is possible to address by swap area header is 4294967295 (UINT_MAX). The remaining space on the swap device is ignored. Presently, Linux allows 32 swap areas. The areas in use can be seen in the file /proc/swaps mkswap refuses areas smaller than 10 pages. If you don't know the page size that your machine uses, you may be able to look it up with "cat /proc/cpuinfo" (or you may not - the con- tents of this file depend on architecture and kernel version). To set up a swap file, it is necessary to create that file before initializing it with mkswap, e.g. using a command like # fallocate --length 8GiB swapfile Note that a swap file must not contain any holes. Using cp(1) to create the file is not acceptable. Neither is use of fallocate(1) on file systems that support preallocated files, such as XFS or ext4, or on copy-on-write filesystems like btrfs. It is recommended to use dd(1) and /dev/zero in these cases. Please read notes from swapon(8) before adding a swap file to copy-on-write filesystems. ENVIRONMENT
LIBBLKID_DEBUG=all enables libblkid debug output. SEE ALSO
fdisk(8), swapon(8) AVAILABILITY
The mkswap command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux March 2009 MKSWAP(8)
All times are GMT -4. The time now is 10:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy