CentOS 5 Hardware :: Creating Partition Using Terminal
Feb 5, 2010
I had configured raid 5 in centos on my testing PC. Recently one of its harddrive fails. So I decided to insert a new in replacement of it.Secondly i would like to know how to create manual partition using terminal. I thought using fdisk /dev/hdb is thw way but it confise me because in this i have to give block size or start and end cylinders which is very confiusing, Any idea how to make fixed size partition like 10GB or more.
I remember, long ago when I used Linux, that I was able to launch a terminal, or any other program at that and have the ability to pass exactly where on my desktop I want it to appear. I would do this by placing some arguments in the applications launcher like --title=TITLE Does anyone know how to do this, I'd like to be able to launch a few different terminals, with different profiles and have them default to certain locations on my desktop/work area.
I am wanting to try creating a simple program through Terminal. Anything will do. A window or button, etc. I haven't found anything simple enough online yet, but I'm sure they're out there. I just want to expand my knowledge of gtk type stuff. Sorry if this is not the correct category to ask this. I was going to put this on the Community Cafe forum, but chose General Help instead. I am running Ubuntu Lucid. **Edit note: I did try the procedure described at the url (below), but I got all kinds of errors in terminal. [URL]
I am looking into creating my own terminal command from scratch. I researched online for some information on this subject was only able to view stuff related to OS X. I understand that they are both Unix based, are they both similar in creating these commands? Basically all I would like is for someone to point me towards the right direction to start or complete this task.
Trying to COPY some of my DVDs, I've had tons of problems with the various applications such as K3B and Brasero (not putting them down though, just my experience). Recently I found the commands to use dvdbackup, and it worked perfectly. I can copy my DVDs easily and flawlessly. Really happy about that. Is there a command-line way of creating DVDs? I've got to say that using the terminal has been the most reliable and robust for me. Is there a way to create DVDs via the terminal? I'm running Ubuntu 8.1 on a Dell laptop.
I did something stupid; I think while creating some new short+keys for the terminal, I must have enabled an unknown feature to me. The keypad now acts like a mouse. For example; With NumLock on, I press 7 the mouse goes north+west. I press 6 the mouse pointer goes east.
Just got a problem that I've spent a few days trying to get around. Basically, what I am trying to do is create launchers/shortcuts on my desktop that will a) Launch a terminal with root or sudo access b) Launch an application. For example, an application I might ordinarily use as a super user or root user is 'hping3.'
Basically, I want to be able to click on the launcher, and have it open up a terminal with sudo access and launch the hping3 application. I've tried messing around with the 'create launcher' function, and entering in a command to be launched in a terminal window, but to no avail (e.g. something like "sudo hping3" or "su && hping3"). How to write up a simple script to launch a terminal with su access and launch a given application?
Terminal will not open Error message: There was an error creating the child process for this terminal Got this after doing a update to testing repo; to try to fix another issue with my media player sound not working.
Solved The_Source_HIM Just add yourself to 'tty' group and relogin
I am installing a cluster which is hidden from the rest of the world and there is no router either froma general login node. I would therefore require a local repository of the updates to CentOS5.4. When I checked I only found instructions for a full mirror. As I have no room and neither the human resources to setup and maintain a full-blown mirror, this is not a solution. However if I try to find updates for 5.4 to download in a repository-type of way I fail to find a solution. Maybe I am just not looking in the right places.
I have a brand new thinkpad X301 with 4GB of RAM and thinking of getting fedora 11 on it. The plan is to have it triple boot with vista/seven and hopefully OSx86. I am aware of the 4 primary partitions limit on an MBR disk. I was thinking of having a swap file instead of swap partition and not creating a boot partition as well. If I install the boot loader(GRUB?) on the root partition will I be able to boot it without any problems by using vista's boot loader?
Or Maybe I should install GRUB on the MBR and add all the other operating systems on it? Does anyone have any objections for not creating a swap partition or a boot partition? When comes to desktop environment I've been using KDE in the past, is there any major advantage of using Gnome over it? KDE seems to look really nice on fedora where Gnome is maybe more stable?
I run a program by executing this command in a terminal screen.Code:coco@coco-desktop:~/Escritorio/MO_1.10/MagnumOpus$ java -jar MagnumOpus.jarSince it is a bit tedious, I tried to create a launcher. I copied the above code into the Command box. The launcher is created, but fails to run the program. Instead I get an error message.
I am looking to create a user to be able to do WinSCP or SSH into the system and only be able to see /var/www/html/joomla/ and that is it. I don't want them to be able to start or stop service but be able to upload and download files to the specific directory or change privileges of the mentioned directory. Is that possible? what commands should I run.
Every time I boot up ubuntu I usually open 3 terminal windows and ssh into the same server. I would like to either click a shortcut, or run a single terminal command that will do the equivalent.
I came across the "gnome-terminal" command, but I was unable to get it to trigger an ssh command.
Ideally I would like to have a script that I pass in the number of windows I want to open and the server I would like to ssh into for each window.
I'm trying to create an iso file in a terminal with the following command: $cat /dev/sr0 > nameofdisk.iso I get the following error cat: /dev/sr0: Input/output error I already checked and my optical drive is indeed /dev/sr0. I've hunted google a few hours trying to figure it out. Does anyone know why I'd be getting this error?
I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.
Currently my system runs on two disks, sda 30GB and sdc 1GB. sdb is my data disk. I have set the partitions as sda1 /boot, sda2 /(root) and sdc1 /(swap).
Thinking that sdc was udma33 i used the disk for a swap area. Later i found out that it is pio4 and i want to relocate my swap area to sda.
Using GParted Live i am planning to create a swap partition to sda. Will fixing the entry in fstab be enough to correct this or do i need to do something more?
I could also use some advice on which live debian image i can install in sdc, to use for rescuing purposes. The capacity of the disk is 1080MB.
As a side note, the images i find for usd-hdd are direct download. Are there any torrent files for these?
I'm trying to create an extended partition. In GParted, I shrunk the size of the existing partition and now want to create a new EXTENDED partition in the free, unallocated space. GParted only lets me create a PRIMARY partition. What am I doing wrong here?
Here's what I've got right now:
You can actually ignore the flag for the swap as "boot." That was me just messing around trying to get it to work. I've removed that flag. Not sure how the question of boot affects all of this...maybe it factors in somehow.
To install ubuntu 10.04, I've tried to create partitions on my hard drive, and an external hard drive. Both have failed. I have apparently exceeded the max number of partitions on my hard drive (came with 4 on it. Recovery, OS, and 2 others I don't want to mess with.), and the external hard drive won't let me shrink the NTFS volume to create space for a new partition. Can I get steps to create a new partition, preferably on the external drive (it has more space). My computer is a dell inspiron 1525 with a 225 Gb hard drive, And my external drive is a windows system Seagate 1 Tb Hard drive (I've checked, external drive works with ubuntu).
I have been using Ubuntu 10.04 for awhile now, and I wish to create a partition for Windows 7 so that I can dual-boot. I know you all are cursing me right now, but I have no choice. I run too much high-end software for business purposes that I need to.
I have dual-booted before, but that was when I had windows xp on a primary partition, and I seem to recall that was necessary. I dual-booted ubuntu afterwards as a trial basis, and then I completely switched to Ubuntu 100% for the last couple years. Unfortunately I need to go back. Is it possible to create a file partition for windows as a secondary partition without wiping all my data?
I'm trying to install XP Sp 3 on my comp which is running Ubuntu atm. But when I tried to create a partition after I clicked "Apply" I get this error :
GParted 0.6.2 Libparted 2.3 Create Primary Partition #1 (ntfs, 74.50 GiB) on /dev/sda 00:00:01( ERROR ) create empty partition 00:00:01( ERROR )libparted messages( INFO ) Partition(s) 1, 5 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
I was doing an exam the other day and they wanted me to create a partition /dev/hdd5 so I saw there was a /dev/hdd so when I created the partition it obviously named it /dev/hdd1. How do I get it to be hdd5?
I am a newbie to Linux. I am currently running Windows 7 and looking to have a dual boot system. I started by going through the Windows Control Panel to shrink the current partition. This left me with a 7.75 GB recovery partition, a 100 MB system partition, a 160 GB partition for Windows and 130 GB unallocated.
My question is (1) do I need to do anything with that 130 GB partition that is unallocated and (2) when I run the OpenSuse CD to install, how do I make sure it installs to that 130 GB partition?
I am a newbie to Linux and I am using CentOs. I am trying to create a new partion on my CentOs VM. I create a new primary partition using fdisk (I use the command fdisk /dev/hda). After I create the partition and use partprobe to write the partition to disk, I try to give the new partition a label. So, I use the command e2label /dev/hda LABEL=test
However, when I enter the command e2label /dev/hda3 , it doesn't display the label for the newly created partition. Am I doing something wrong here? Is the syntax of the e2label command wrong when creating the label for the new partition? Did I miss a step after writing the new partition to disk.
I am using NFS to mount large LUNs from my SAN.I have one already setup and configured. I am adding an additional partition from the same SAN but I am confused on the setup. I know the LUN is connecting to my NFS server correctly because I see it listed in my /proc/scsi/scsi as an additional LUN. What I don't see is the drive being displayed in fdisk -l. I did notice one thing though, when I disable the host mapping from the SAN, my disk information changes from /dev/sdb TO /dev/sdc (see changes below)
Without host mapping to SAN:
Disk /dev/sda: 13999.0 GB, 13999026470912 bytes 255 heads, 63 sectors/track, 1701951 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
I installed CentOS on a IBM server. The server has 4 HDD of 537 GB each. On one HDD, OS is installed and i am creating a partition of 500GB on other HDD. The partition is created but whenever i am going to format it by using: mke2fs -j /dev/sdd or mounting it by using:mount -a Then, it returns an error "/dev/sdd is already mounted or busy".
i already reserved the space for the partition, from what i have read so far, it has to be FAT32 or NTFS. also my major question is how i would be able to point both OS to save my files to the 3rd partition i am creating for sharing. cos in my experience, windows likes to store files in its home partition without even giving u an option to see other partitions in ur system, ubuntu at leastb allows me see the other partitions on the drive.
Ive decided to create a new thread because my old one had become rather complicated and now had a misleading title.
I have a laptop with Windows XP and because of a few programs I want to keep it on and dual boot with Ubuntu. I have created a boot partition at the beginning of the harddisk because I had broken the 137gb and cant keep Ubuntu at the end and still make it bootable.
The separate boot partition is at the beginning of the disk and mounted as /boot in the installation.
The system still cant boot into Ubuntu, but at least grub shows up with a decent menu and I can choose Windows. When I try to choose Ubuntu it says that it cant find the specific drive. The UUID is the same as the boot partition
So what should I do now ? Should I change fstab and move some files to the boot partition ? Id rather not move the entire Ubuntu partition to the front.