General :: How To Manage / Create Partitions For Multiple OS
Aug 3, 2011
How do I divide my hard drive into multiple OS'es/partitions for my test machine? For example:
Win XP
Win 7
Gentoo
Ubuntu
Storage
Can Linux'es share swap area? I was told to leave the first primary for the grub and linux cores.
I have 84GB free space on this hard drive and want to install another distro. Will I be able to create another / and /home partitions for the new distro?
Say I have this computer and this computer has a 1TB hard disk. I install Fedora 13 on this disk and let the installer do as it wishes with this 1TB of space. I'm going to end up with the LVM thingy. (Can you tell yet that I know nothing about LVM?). Can I, at a later date, use some of the available space to create another partition to install another OS on. Can I create multiple partitions to install several other OS's on?
I'm trying to connect one computer to two others in an ad-hoc infrastructure.
[computer 1] ---- [computer 2] ---- [computer 3]
computer 2 is running Linux and has a single NIC wlan0. I want to it to connect to both computer 1 and computer 3 so each computer can talk to the other. No switch is available so it needs to be an ad-hoc setup.
I'm running Ubuntu 9.10 together with Windows 7 and when I launch Nautilus I have a list of all my (Windows) partitions in the navigation bar on the left. However I don't want to see all those partitions in Ubuntu (eg. the Windows system partition or the partition reserved for the Win boot loader. Is there a way I can control which partitions will be detected and listed for mount in Nautilus?
On my desktop computer (now running the very impressive Slackware64 13.37 and generic kernel), I've got what Alsa considers 4 different sound devices:
Logitech USB headset Logitech QuickCam Pro 9000 with built-in microphone ATI HD48x0 audio (which uses the HDA-Intel driver) on my graphics card Intel 82801JI audio (also using HDA-Intel driver) on my motherboard
When I run alsaconf, it picks up the ATI audio only (which is fine). Later running alsamixer (or any other mixer) all 4 are visible. The issue is that I really would like the ATI audo to be in position 0. Previous to Slackware 13.37, setting up the device positions in /etc/modprobe.d/sound usually did the trick. However, that is now being ignored and one the USB devices are being put in position 0 regardless of what is in sound.conf. This is driving me nuts as a lot of software simply use the default audio device, which I would like to be my speakers, but is now my USB headset.
All of the googling I've done points towards messing with the /etc/modprobe.d/sound.conf file, but as I said, that is being ignored. Is there a more 13.37 way to have ALSA order the audio devices the way I want?
OK, trying to install Slackware version 10 on the Athlon XP Shuttle PC and been hit back hard at the very first hurdle.In short I can't create a partition in Linux.At all!CD boots up OK. Loading in basic kernal.I try and create a partition using either fdisk or cfdisk.BOTH apps reports that the partition table cannot be written to! Both apps run read only mode.So I am unable to create any partitions in Linux.
I booted up a Windows 98 floppy and checked the partition table.Two x30GB partitions.I deleted both of them in case Linux did not like a Fat32 DOS/XP partition table.Tried again. Same read only messages.Attempt to use 'w' in fdisk reports the partition table cannot be written to.Viewing the partion table returns nothing, no matter how I set it up in DOS/Windows.
Only clue is that to my surprise, the DVD RW drive is the Primary master and the 60GB HD is the secondary master. I must have slipped up installing the drives years ago and Windows didn't care. Would Linux? Other than that, nothing in the BIOS that gives a clue. I turned off ACPI support in case. I also tried the ACPI kernal. No joy there either. But DOS/Windows quite happy to build partitions.Cfdisk states that no partition tables exist even after Windows has just created one.So I am at a loss.Any clues? This is a Shuttle PC so the tech is a bit propritory but nothing that various renderings of Windows have not handled.
i have server and there is no option from my control panel on data center to make os reload with partitions i need for Openvz , so how can create partitions ? the server have 2 hard.
I'm running ubuntu lucid and i was thinking in purchasing one or more extra wifi cards to try to configure my computer to manage different conections at the same time, with different isp's. The thing is that I'm not quite sure if what i want to do is actually possible.
The easiest way that crossed my mind was to try to configure a / multiple virtual machines that are redirected threw proxies to ubuntu and try to configure that each proxie port goes threw a different internet gateaway. This way i might be able to divide threw different sessions of JDownloader, installed on each virtual machine, the things i want to download. The negative aspect of this idea is having multiple jdownloader sessions will make my laptop work to almost 100% for sure...
Another thought i have was to make JDownloader manage its downloads in only one session redirecting them to my internet conections; the negative thing is that i think i will have to try to modify its source and learn java...
And well my last possible configuration i had in mind was to try to make ubuntu directly add up all my internet conections manage as if it was one. the negative thing here is that i might not be able to get multiple downloads from some sites
Well, all this where just thoughts, im struggling whether to buy another card or not to try to setup any of this configurations but im not really sure if any of them are actually possible. Is there an easy way to manage this?
I just want to take the most out of my internet conections... if i'm at college i have to options that are quite slow, adding them up with two cards would be great, i might also be able to add a third and a fourth conection. Also if i'm on a coffe and i need some bandwith i could try to make it go with an open network arround, etc.
Does anyone use flashgot and a download manager to download media, like ..... clips? I've never been able to get this to work with anything other than the built-in downloader and wget. I'd like to get a download manager working so I can schedule and manage multiple downloads. My ISP gives me a mere 250mb a day, but I get free bandwidth between 2am-7am
I have three hard drives in my computer That I want to make RAID 0. All of them already have partitions and data on them. What I want to know is if I can, without losing data, add the disks to RAID and then merge the partitions? All the partitions are of the same type. Or would it easier/better/possible to do this with LVM? Even if I'd have to shrink partitions and copy data to a new LVM one to get it set up properly, would it be better than RAID 0?
Is there a possibility in openldap to allow a user to only create/manage specific LDAP users?For example user "mailadmin" may only create/manage mail accounts in LDAP that are named like "m1342895"? Or a specific list of user accounts that are in a specific group?
Iv got an assignment to complete and I'm stuck at the basic level.
A part of the assigned problem is :
The main process will read the file, and will create N number of child processes (Where N is taken as input) as early as possible before all the children starts its execution. Before creation of each child, the main process should read the file to store all the required data in then corresponding data structure. Child processes should not read the file for getting their information.
As far as my knowledge about this , the child executes before the parent. How do I make the parent not pass the control to it's children before it finishes creating all the children?
I have an unencrypted DVD that is one big title, ie you cannot skip next / prev. What I want to do is reauthor the DVD with title at certain points, so that I can skip next / prev when watching it.
I want to make symbolic links for all them to my current directory /test2
I tried
But it failed. It seems like I can't make symbolic links for all the 5 files simultaneously.
Often times I need make symbolic links for multiple files with some common pattern (just like ".txt" here). I really hope to avoid making symbolic link for each of them one by one...
First post from a very new Linux user....I am trying to create a BASH script that will allow user to provide multiple directory names, Checks if the directory exists and if not create the directory.
I am using the following code:
Which works fine as long as the user enters a single directory name. How can I modify this so it will process all directory names user enters on the read response?
I need to create a single line of output from multiple and variable lines of input in a Linux bash shell script.
My input file looks like this:
Where there may be any number of umsecondaryphonenumber lines; if there is not a umsecondaryphonenumber line for a telephonenumber, I don't want to write any output.
So, the output file should look like:
The script I have so far is:
My question is - how do print each of the elements of an array in one record - i.e. what do I put in place of howdoiprintarray?
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a seperate code which is stored in text file and create XYZ_222_999_YYYYMMDD_1.TXT . and add date in the contents next to series of numbers .Like this
After installing Fedora 14 and opting to overwrite the whole drive with the new operating system I think I see multiple partitions that I did not create. fdisk -l shows:
For two of my partitions on sda (they are NTFS parts) I have configured them via the NTFS Configuration Tool to mount at boot. This is OK - I can see them in Places, Computer; they are listed together with the mounted icon to the right. However, there is also two other partitions listed - that are not shown as mounted - with the same label name. (I can also see these duplicate parts listed if I click on Places ad look down at the various devices attached under Computer). If I right click on these unmounted parts I see there is a greyed out option to Remove. How do I remove these duplicate partitions?
I searched through with several different terms and couldn't find it.I recently got a DELL Inspiron B120 laptop that had Windows 2000 on it as its sole OS. I'm refurbishing it to some degree. It needs a new LCD Screen and a Wireless Lan card; but that's not important here, I don't think.I'm running it headless and connecting to my desktop through X11VNC.
I decided to put the live disk Ubuntu 10.04 on it and see if I liked it. I decided yes, and went for the install. Before it installed, it asked me how I wanted to partition the drive. It showed me examples, and I decided to keep the Windows 2000 on there, along with the little DELL diagnostics, etc. part and divide the 40GB drive up into pieces: 18GB for Win2k, 4GB for Dell, and 18GB for Ubuntu 10.04.Once installed I wanted to change the timeout for the GRUB to longer than 3 seconds before it boots the top choice (which is Ubuntu).
I noticed when I could catch it; that it was titled GNU Grub 1.98. I'm not really familiar with multiple GRUBs, so I didn't think about it. Then after a few days, I started getting updates for Ubuntu. The first one was the Ubuntu 10.04.2 LTS, kernel 2.6.32-28-generic from the original kernel 2.6.32-24-generic. Then it went to kernel 2.6.32-29-generic, and yesterday to kernel 2.6.32-30-generic.
That's fine; but the GRUB list is still saying 2.6.32-28-generic as the most recent. Also, the last update asked me if I wanted to create a menu.lst file.I thought I had a GRUB.cfg file that had the list of boots...But I answered yes anyway, and installed the GRUB menu.lst. I changed the timeout to 15 seconds in menu.lst; but the list is still showing as the GNU Grub 1.98 and the list of boots is still topped with 2.6.32-28-generic.I have no idea what's going on now; nor how to update it so that I use the GRUB with the menu.lst and delete or suspend the GNU Grub 1.98.
Say I have an image of a file system. I made it with dd by copying it off my USB stick. e.g. "sudo dd if=/dev/sdb1 of=./image.ext2" I can mount said image with the command: "sudo mount -t ext2 -o loop ./image.ext2 /mnt/" Now, say instead of copying a partition with dd, I copy a whole drive. e.g. "sudo dd if=/dev/sdb of=./image.img". sdb had 2 partitions on it. How can I mount those separate partitions without copying that image back onto the USB drive?
Regularly I find myself cloning a machine using rsync. I find it understandable, reliable and fast, faster than dd, and I don't have to worry about different partition sizes etc. However, usually I partition my hard disk in a number of partitions:
Code: / /home /usr /var
When I start with a new, empty machine, I start up with a USB stick or live CD, and my new, empty hard disk becomes /dev/sdb. After creating the 4 partitions I have /dev/sdb1, /dev/sdb2... etc. My root directory is on the disk I used for booting, usually /dev/sda. So, in order to access my newly created partitions, I mount them on the /mnt/directory of my root:
Code: mounted now later /mnt/sdb1 / /mnt/sdb2 /home /mnt/sdb3 /usr /mnt/sdb4 /var
In other words, I mount now /dev/sdb1 on /mnt/sdb1, while after copying /dev/sdb1 will become my root directory, /dev/sdb2 become my /home directory, etc. When I start the resync process to copy the image from a remote machine, I have to copy all 4 partitions separately. First the root directory, excluding /home, /usr, /var, then /home, then /usr, /var, like this:
That is a lot of typing and waiting. Sometimes I have a different partition scheme so it is not really feasible to write a script to use always. Now the Question: is there a smarter way of mounting the newly formatted disk (/dev/sdb1, /dev/sdb2... etc) in my root tree so I can perform the rsync copy in just one time, without all the excludes, but assuring that the correct source partitions end up on the correct destination partitions?
I need to set up a RAID 1 array on Squeeze. I have 3 partitions: sda1 is root, sda5 is home, and sda6 is swap. (sda2 is the extended partition containing home and swap. This was a clean installation, so I don't know what happened to sda3 and sda4...)
All the information that I've been able to find recommends doing something like this: