General :: How To Resize A Partition From Command Line

Aug 21, 2010

I'm trying to resize a partition from a command line using the instructions on this page:

[URL]

The line below is the one I can't get to work right.

Quote:

Now, using fdisk, we must resize hda1 to 6000M, and create a new partition. Command: "fdisk /dev/had".In our case, the fdisk commands are "p d n p 1 1 +6000M t 7 a 1 n p 2 enter enter w", resulting in this "fdisk -l /dev/had" output :

I've made this work before but I cheated by using Acronis to create the partitions. I really want to get it to work from command line.

View 2 Replies


ADVERTISEMENT

General :: Mount A Partition In Command Line?

Nov 29, 2010

I use a ext4 partition to store my data, to mount and open that partition I open Nautilus file manager, then click on the partition icon and label on the left side.
So if I don't have a desktop environment, how can I mount a partition in terminal?

View 1 Replies View Related

General :: Create An Ext2 Partition From Command Line Which Is Writable From Every User

Nov 3, 2009

I work with a Debian Squeeze on my laptop and I have a 160GB external hard disk. My hard disk was formatted FAT32, but I decided to format it using ext2. I formatted it using fdisk from command line and everything went well. Unfortunately, when I mount my hard drive(which is auto-mounted from Debian) it has got root both as owner and group. Then I can't write to it because I have no permission to do that. Is there a setting to create an ext2 partition which has as owner the logged system user in order to have right permission every time.

View 7 Replies View Related

Ubuntu :: Command Line Partition Editor?

Feb 19, 2011

I have a 500G HD with several partitions. I have just added another exact 500G HD and would like to copy the partition table from the first HD to the new HD.What is a good command line partition editor to get the job done? All of my partitions are ext4. I have looked at parted but the man pages says it does not support ext3, so I guess it will not work with ext4 either.What I am ultimately going to do is to set these two HD in a RAID0 configuration without having to re-install Karmic.

View 5 Replies View Related

General :: Resize Partition With Parted

Dec 14, 2010

I have a partition, which is 32GB and is mounted to / of the archlinux distribution.I want to create another partition, I need about 5GB and I want to take them from this partition.If I use parted to resize the partition will I lose any files?

View 5 Replies View Related

Software :: Command Line Disk Partition Utility ?

Jan 10, 2011

Before I go off and write a new one, does anyone know of a good command line disk partition utility that works better than "parted"?

View 5 Replies View Related

General :: Resize A NTFS Partition In A Disk?

Feb 1, 2010

I need to resize a NTFS partition in a disk for which I have an image (dumped with dd).

I mounted it through the loop device on linux:

# losetup -o 32256 /dev/loop0 disk.img # I got the offset from looking at fdisk's output
# mount /tmp/t /dev/loop0
# ls /tmp/t
[content of NTFS partition shows correctly]
# umount /tmp/t
# gparted /dev/loop0

gparted shows me the disk correctly; it just contains one large NTFS partition I want to shrink.

I have it had it running for one hour now.

Question: will this work? There is lots of disk access but the timestamp and size of the underlying file disk.img remain unchanged.

View 1 Replies View Related

General :: Unable To Resize (enlarge) Partition?

Jul 2, 2011

I want to increase the size of my Linux partition (yellow and highlighted in image), which is situated in an extended partition, along with my biggest partition.

When I try to select the options from any partitioning software (EASUS, Paragon, Gparted) the option to resize is not available (or can't enlarge).

For example in the Paragon Hard Disk Manager, I can't add free space before the partition, even if I first shrink the "G:" partition, then try to enlarge the one with Linux.

Do you know what's happening here? Why am I not allowed to resize the partition?

View 2 Replies View Related

General :: Resize Partition On External Drive

Mar 21, 2009

Computer hardware is not my bag. I accidentally installed ubuntu on external F drive, thinking it was C drive, unaware that ubuntu installs on drive with most available space. Installation involved partitioning the drive in about half. So, before I install it on C drive, I want to restore my F drive. I deleted partition using XP Disk Management tool and tried to use gParted on Parted Magic live boot cd to resize remaining partition that contains my data. But it doesn't seem able to expand the good partition to reclaim the 'unallocated' space. How do I accomplish this? Must I backup and reformat?

View 9 Replies View Related

General :: Disk Management - Resize The Partition

Mar 30, 2010

OS: LINUX RHEL5

I want to resize the partition

for example..
my
/u01 is 50 gb.
/u02 is 30 gb.

i need to risize /u02 to 100gb( i have space left of around 60 gb and I need to take 10gb from /u01)

View 1 Replies View Related

General :: Resize Root Partition & Add Space To Home?

Aug 8, 2010

l my root (/) partition has 11G free space and my /home is only left with 5g around and /usr has around 8g in my fedora 13 .So is there any possibility to "resize" the root partition and add it to home partition bcoz i see the opposite in the threads(resize home to add space to root).My home has nothin more than a movie which is 700MB and i've installed some new application yesterday. But it shows half of the space is almost used!!!

/dev/sda7 12G 925M 11G 9% /
tmpfs 497M 2.6M 495M 1% /dev/shm
/dev/sda9 12G 5.0G 6.0G 46% /home
/dev/sda8 12G 4.1G 7.3G 36% /usr

View 6 Replies View Related

General :: Unable To Resize Fedora 12 Lvm Partition With Gparted

Jan 14, 2011

Unable to resize fedora 12 lvm parition with gparted. Need to resize to make room for ubuntu linux on same drive. When the fedora lvm parition is selected gparted says "No lvm support at this time". I am using gparted through the pmagic (partedmagic) linux boot disk. I have almost the lastest pmagic (5.7) there is a pmagic 5.8 on source forge.

View 2 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Printing Command Line History Without Line Numbers?

Aug 22, 2011

How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt

View 1 Replies View Related

General :: Ubuntu - Resize Root Partition From A Flash Drive?

Aug 2, 2010

I need to make my root partition bigger to add more free space. Is there a Linux version that will fit on a small usb flash drive that has the tools I need? I plan to boot a Linux distro from a flash drive in order to resize the partition.

View 1 Replies View Related

General :: Recovering Files From A Failed Ext4 Partition Resize?

May 6, 2011

I didn't know a resize operation on a 750 GB disk was going to take 40+ hours, and I was biting my nails the whole time, until the power went out when "only" 8 hours where left.I can still mount the partition, and many of the files are still there, but some files show as '? ? ? ? ? filename.ext' with ls -l.If I try to go inside such a directory: Input/output error.

View 1 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Ubuntu :: Partition Manager: Unable To Resize Partition To Use Free Space BEFORE Partitio?

May 29, 2011

I have around 30gb of free space in my partition table immediately before the Linux partition. I want to resize my linux partition to take up this space.

I tried booting with live cd, sucessfully umounted the hard drive but found I could not resize the partition. On clicking the 'edit size' button, partition manager recognised the free space before the partition but when i reduced this, the 'ok' button was greyed out. (it was not greyed out for the windows partition so I could, in theory, increase the windows partition to take up the free space but this is not what i wanted to do).

I am pretty sure that I had managed to unmount the drive correctly as the padlock symbol had dissapeared (I took the attached screenshot, which does show the lock symbol, after rebooting into my normal system).

Anyone got any ideas as to why it wont allow this? There is no reason why i can resize the partition to take up the free space BEFORE it is there?

View 9 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

General :: Write <Esc> In The Vim Command Line (:vim Command)?

Jun 24, 2011

how do you write the ASCII character #27 in the vim command line?

View 6 Replies View Related

Fedora :: Resize A Partition Used By LVM?

Aug 8, 2010

I installed Fedora 13, but did not expect it would set up a LVM on the entire remaining unpartitioned space.
So I'm now trying to resize the partition the LVM is on. I already resized lv_home using system-config-lvm... however now lv_swap resides at the end of the physical volume. If I assume correctly that this also means that it resides at the end of the sda6 partition, I need to move it in order to resize the partition.

It now looks like this: [URL]

How would I go about moving lv_swap right next to lv_home? And how can I actually resize the partition? gparted doesn't seem to be able to resize lvm2 partitions.

View 1 Replies View Related

Ubuntu :: How To Resize A Partition

Sep 30, 2010

Ubuntu 10.04 64-bit (installed on installer)

What will be an easy and safe way to resize partition? Boot up the LiveCD? Or can I run resize2fs on Ubuntu while the latter is running?

Code:

This is a newly installed box without files on /kvm. Now I want to resize /home taking up the complete capacity of /kvm which will be removed/deleted.

View 5 Replies View Related

Fedora :: How To Resize Partition

Dec 21, 2010

I'm running Fedora Core 14 on my server and in copying over all the stuff I had backed up before the install, i recived the message that one of my volumes was nearly out of space. Since this is just a partition on my hard drive, I could resize it to make it larger, but I don't know how. It's a ext4 partition on my 2nd hard drive.

View 10 Replies View Related

Server :: Partition Resize For LVM?

Jun 6, 2010

On recomendation from the team installing the DB on our new server, all the partitions etc on our VM were created as LVM's. The setup for this is like this:

Disk 1
-> /boot
-> /swap
-> LVMpartition1

[Code]....

View 9 Replies View Related

CentOS 5 :: How To Resize LVM Partition

Feb 25, 2011

I have a default centos 5.x install on an 8GB hard disk. (This means the volumegroup is mounted to / ). I've increased the size of that hard disk to 12GB. (so yes, fdisk says my disk is 12GB)
I now need to increase the LVM to use the 12GB instead of the 8GB. Every single article I've come across says:
"run lvextend on your vg you want to increase, then unmount, reboot, run live cd or whatever and then run resize2fs".
But of course lvextend +anyG returns an error saying not enough free extents
lvextend +100%FREE returns saying the extents matches extents
How can every the google result be wrong? How can I simply tell this LVM that it's now a few gb larger?

View 3 Replies View Related

General :: Cannot Log In From Command Line

Apr 1, 2010

trying to install the latest NVIDIA drivers:

I need to disable the X server to install it, which brings me to a blank screen prompting for a login before continuing. it reads thusly:

Ubuntu 9.10 chris-linux

chris-linux login: [i would assume i put in chris here...]

Password:[i type the password i use to login from the normal GUI screen, however i see no indication that im typing anything..]

Login incorrect

View 4 Replies View Related

General :: How To Tell Which OS With Command Line

Jan 21, 2010

Just want to know what OS is, Fedora/RH/... Tried the following on a redhat machine:
uname -o : GNU/Linux
less /proc/version:
Linux version 2.6.18-164.el5 (mockbuild@x86-002.build.bos.redhat.com)
(gcc version 4.1.2 20080704) (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:54 EDT 2009
What is the right command to do it?

View 9 Replies View Related

Debian :: Resize LUKS Partition Without LVM

Aug 20, 2011

I need to resize (increase) LUKS partition. I have found a lot of manuals, but they are just for LVM volumes(I dont use LVM and I dont plan to use it). I have HDD splited to the 4 parts:

sda1(/)
sda2(LUKS)
unalocated
swap

I want to increase LUKS partition, by using the part of unalocated space.

BUT I dont want to do the following:
Backup data from LUKS partition
Delete LUKS partition
Create new bigger LUKS partition
Restore data to the LUKS partition

View 1 Replies View Related

Fedora :: Resize Boot Partition With LVM After

Feb 10, 2010

I've been upgrading a Fedora server over the years. Once it was Fedora Core 2 now it is Fedora 10. Now I want to continue the upgrade process and upgrade the server to Fedora 11. The problem is that the boot partition is 100MB but Fedora 11 wants a 200MB boot partition. Looking at Fedora 13 it seems a boot partition of 500MB is gonna be the norm. I would just resize the boot partition but there is a LVM directly after it taking up the rest of the drive.

How do I resize my boot partition in this scenario?

My current line of thought is to use G4L to backup both partitions, then restore the boot partition to a large drive, increase the size with parted then restore the LVM backup after it.

So far G4L has been reluctant to backup the boot partition of Fedora on a test rig to an NTFS drive. Not sure if I should be backing up the image to a ext3 drive.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved