General :: Change A Primary Partition Into Secondary In Ubuntu 10.04?
Nov 3, 2010
linux newbie and i made a mistake while installing windows and linuxI made 4 primary partitions for my HD as i didnt know that only maximum 4 primary partitions are allowed.Now 25 GB of my HD is wasted. It is shown as unusable.CAN ANYONE PLEASE TELL ME IF I CAN CONVERT MY WASTED 25GB INTO SECONDARY AND USE IT WITHOUT FORMATTING AND RE PARTITIONING MY ENTIRE HD ???
i want secondary users can able to change the files permissions of primary group?user MAC is having www as a primary and httpd as secondary group. But he want to change the file permissions (chmod) httpd group files. Is it possible or not? I think its not possible. If it`s possible then let me know how?
I have an Ubuntu 9.10 machine with three ethernet interfaces, eth0, eth1 and eth2. eth2 is connected to a private network. eth0 and eth2 are connected to two different LANs. Either one will provide access to the internet. All three networks have DHCP servers. Using Ubuntu's the default settings (And Gnome), when I boot up all the interfaces are active and my system gets three IP addresses. However any attempt to access the internet results in connection timeouts and other weirdness.
I suspect that traffic is going out on one NIC (like eth0) and coming back in on another (like eth1). I'm not sure what's going on. The only way I can access the internet at the moment is to bring two of the devices down with ifdown. How can I configure eth0 as my primary interface so all trafic goes out by default on that interface, while keeping the other two active? Also, I want to make sure Avahi broadcasts properly on all three IPs so that the computers on the LAN of eth1 can still connect to myHostname.local...
Here's my routing table: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.151.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 172.16.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.1.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 0.0.0.0 172.16.30.2 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 10.1.0.1 0.0.0.0 UG 0 0 0 eth1
I want the 172.16.30.2 network to be the primary one and the 10.1.0.0 network to be the secondary one. My nameservers are also incorrect. It seems like Ubuntu is bringing the networks up in order, eth0, then 1, then 2, and the DHCP information from eth1 is overriding eth0, and eth2 is overriding eth1. How can I reverse this so the DHCP information from eth0 is the "master"? This seems to be an issue with Gnome's NetworkManager.
I'm pensioning off my 10-years-old home server and replacing it with an Ubuntu 10.04 box. The two storage devices are a Western Digital Caviar Green 2.0TB HD and an Intel X25-M 34nm Gen 2 80GB SATA II 2.5inch SSD (the box has 8GB RAM and an i5 750, if it matters).
I don't care much about boot times (since I don't plan to reboot all that often;-); the main frequent, performance-demanding task will be (re)building large open source C or C++ software packages from sources (as an open source contributor, I do that often).
So, I thought I'd keep the SSD as the secondary drive and the HD as the primary one, using the SSD mostly for the files that can otherwise demand a lot of seeking (esp. in a parallel make).
However, the friendly vendor (perhaps more experienced in Windows systems than in Linux ones) thinks the "normal" way to configure the machine would be with the SSD as the primary drive. I'm pretty rusty on configuring and tuning systems, so, I thought I'd better double check on SuperUser.
My question is that simple, how can I find out what is my primary and secondary DNS? I've tried commands: $ cat /etc/resolvconf and less /etc/resolv.conf but they didn't work. Also, when I open the resolv.conf file, it only says code...
Currently I am running Ubuntu 9.10 on an older P4 system with EIDE harddrives. My primary HD has a WinXP installation and GRUB. Ubuntu is installed on the secondary HD.
I am happy enough running Ubuntu that I would like to remove my WinXP disk, move the disk with Ubuntu on it to be the primary boot drive, and then install a new drive as the secondary.
However when I tried to simply move the drive with Ubuntu on it from the secondary to the primary EIDE position the system would not boot. I assume that this is because there is no boot loader currently on that drive.
how do I put GRUB on the Ubuntu drive so that it can become the boot drive? Or is there some other way to accomplish what I am after without having to reinstall Ubuntu?
How do you swap between primary and secondary languages for the keyboard (using GUI not terminal codes since this is for someone else who is a beginner at computing)? I installed the secondary language in the "language" section of yast, but can't see any options for swapping on the fly. Lets say they do 99% of stuff in english, but get an email they want to respond to in the secondary language or want to write a text document using the secondary language, is there a way to switch back and forth on the fly?
I have openSUSE 11.2 KDE with NVIDIA drivers. I have a TV on the left and a monitor on the right. In the Nvidia drivers this has also been setup as stated. The TV is on position 0:0 and the monitor is in position 1920:0. The monitor has been ticked in the drivers as the primary screen.
My problem is that all application open on the secondary screen and not the primary screen (monitor) as I expect. How to the OS/drivers that will ensure that application always open on the monitor situated on the right are welcome.
I am learning software raid 1 with centos 5.5. I created the raid with out any problems and removed the first drive to check there was no problems and it booted. I have installed the old drive back in the system as hdc and need to resync the drives (used old drive as partitions correct) I thought I could use raidhotadd but id does not seem to exist anymore. how I resync the drives in the array hda primary and hdc secondary using mdadm
I'm installing the ubuntu on my new computer with 1 TB hard drive (and core i7 870 with 4G RAM), for the purpose of scientific computing. I have two questions:
1. Since I am not absolutely certain that the simulation won't use larger swap space than usual (say 3x4G = 12G), I intend to set it initially as 12G keeping in mind that I might have to extend it later. So one might suggest putting it on lvm partition. But then I read that I can maximize the speed if I put the swap at the outer track. If I mix it with the other logical volumes in the same volume group, then I don't know where my swap space is across my hard drive, isn't it? So this might suggest I make it as a primary partition. I'm stuck..
2. My current planned partition map is / 1G /tmp 10G /usr 20G /var 5G /home the rest
taking into account I will install MATLAB and maybe other visualization software. What do you think of this scheme?
I'm currently dual booting Windows 7 64bit and Ubuntu 10.10 each on primary partitions. Then on the other 2 partitions I have the manufacturer recovery partition (which I am not sure I should remove...), and then a partition for storage and files. Now I want an Arch Linux installation on the hard drive, but obviously I cannot create a new primary partition because I already have 4. I found out that linux can run from a logical partition (which you can have multiple of)..However I do not want to format my Ubuntu partition and I'd prefer to keep the data on there all intact. Is there a way to move my Ubuntu installation (on the primary partition) to an extended partition where I could put multiple logical partitions for multiple linux installations?
The good news is I was able to shrink one of my partitions to create some unallocated space. The bad news is the unallocated space is on my primary partition, so gparted is not allowing me to use that space to create another partition since I already have two primaries and an extended. Any tricks to do that?
On a certain computer, I had four primary partitions. The person who installed the Windows 7 on the computer made two partitions for the Windows (sda1 and sda2). Then I made another two primary partitions (sda3 and sda4). sda3 was empty. sda4 is an extended partition that contained the /swap, and /.According to someone else, some viruses get in on the Windows partitions and can then get over to the Linux partitions if they are primary and right after the Windows partitions, or something like that. This person suggested that I create sda3 when I install Linux(SLES 10), but to install Linux on sda4. Then later I can change sda3 to secondary.So I tried this, and the Linux installation went fine.
I decided to change sda3 before I load the application software onto the computer.So I put the GParted CD in, but to my surprise I realised that the harddisk was actually 1 TB, and not 500 GB as I thought. So I had extra space to the right of sda4. I wasn't quite sure what to do with sda3. I thought that perhaps it would be better to unallocate sda3, move the current sda4 to the left, and then make another primary partition on the right of sda4, or just stretch sda4 both ways.Anycase, I unallocated sda3, and just left sda4 as it was.Hm, perhaps you can anticipate the end of the story. I removed the GParted CD, and restarted the computer, but now the computer doesn't let me choose whether I want to boot into Linux or Windows. Um, it doesn't boot at all from the harddisk.
I know it's dangerous to play with partitions, but sometimes the job won't be done if you are too afraid of doing anything, and I dare say you won't learn anything either. There was nothing on sda3, so I didn't think it would have nasty after effects. There isn't any important data on this computer yet, it was two new installations of Windows and Linux. So I guess I could format the harddisk and just reinstall everything, but I would like to learn what goes on underneath the surface.
So I tried adding a new, 2nd hard drive to my Ubuntu 9.04 desktop for some additional storage and only managed to kill my system so that it won't boot up anymore (I just get a blinking cursor after the BIOS does its thing).I could sure use a little help getting back to a functioning system, and then adding the second drive. I tried following the instructions from this link to add the 2nd drive:
(So the forum rules won't let me post the link, neato. Here it is with spaces added): h t t p s : / / h e l p . u b u n t u . c o m / c o m m u n i t y / I n s t a l l i n g A N e w H a r d D r i v e
Around 2008 i seem to remember PartEd on the command-line was able to rescue deleted partitions and gave a choice of whether to recover the partition as a Primary or Logical Partition. I have tried testdisk but didn't really grok what i was doing. I successfully moved a "Windows Recovery" partition to the end of my hard-drive, immediately after the drive's Extended Partition.
I have a second 8GB partition but for some reason I cant write in it at all. I formated it but still doesn't let me write in it. I tried doing this:Quote:sudo chown -R username:username /media/BTBut this is what I get:Quote:
chown: changing ownership of `/media/sda2/FOUND.000/FILE0000.CHK': Operation not permitted chown: changing ownership of `/media/sda2/FOUND.000': Operation not permitted chown: changing ownership of `/media/sda2': Operation not permitted
I'm using rsync and crontab to do automatic backups from my /home partition on /dev/sda to my backup drive /dev/sdb3. The backup partition is ext4.
But the backup partition (sdb3) is obviously on a secondary drive, and I want to automount it when I log in. I read that you have to edit /etc/fstab to do this, but I'm not familiar with the process and can't find clear enough instructions, so I was wondering if someone could give me the command I need and maybe explain how it works?
I somehow messed up my filesystem. I installed Ubuntu directly with LVM. This created an extended partition including a logical one. When I run out of space, I just increased my space (through VMware) and then added a new PRIMARY partition.
Then I added this one to the volumegroup and increased the logical volume. After I did this a few times, there were no longer any primary partitions allowed (only 4). Then I resized the FS, resized the logical volume, resized the volume group, and removed the physical volume. Now I'm no longer able to create an extended volume (only one) but it's not at the end (there are other primary partitions behind this one at the disk), so I'm not able to create some logical volumes.
What is the best possibility to add some space to the LVM and being able to do this a few times in the future again?
fdisk -l for sda:
There was a /dev/sda3 at the end of the disk. I already deleted this partition.
So the order on the disk is: sda1 | sda2 (extended) | sda5 (logical referred in sda2) | sda4 | free space
Does it matter that there is type "Linux" for sda4 or can I without damaging the lvm just change it (with cfdisk) to "Linux LVM"?