bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some queries on parted


From: Chiu, PCM (Peter)
Subject: Some queries on parted
Date: Tue, 29 Apr 2003 14:52:26 +0100

Hi
 
I would like to resize the root partiton on a RedHat 7 system
and wonder if anyone can comment on what I intend to do to be okay.
 
I have 2 disks /dev/hda1 (50GB) for / and /dev/hdb1 (50GB) for home.
 
I want to shrink hda1 into 20GB and to create hda2 (30GB) for /data.
 
To do that, I plan to
    parted /dev/hda
    print (to show current settings)
    Minor  Start        End           Type     Filesystem Flags
    1         0.031      56596.179  primary  ext3          boot
    2       56596.179 58641.525  primary  linux-swap
 
    resize  1  0.031  20000.000
    mkpartfs  primary ext3 20001.000 56596.179 
 
    set 1 flag boot 
 
Questions:
a. Will this work?
 
b. will the resized partition 1 (hda1) still bootable?
 
c. Currently partition 1 has used 2GB, but will the resize also move any files
   outside the new boundary back into the shrunk partition?
 
d. do I still need to mke2fs /dev/hda2?
 
Many thanks for your comments in advance.  
PS. Please reply directly to me to address@hidden
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]