[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
right syntax?
From: |
Erick Calder |
Subject: |
right syntax? |
Date: |
Wed, 5 Sep 2001 19:34:20 -0700 |
I've installed parted-1.2.8-2 on my RH7.0 system and need a little advice.
I have my /boot partition on /dev/hda1 and my root (/) on /dev/hdc6... (see
configuration information below). there's also a swap partition on
/dev/hdc7. what I want to do is free up hdc by moving the / and swap
partitions to hda..
I'm a bit worried as I haven't done this before and this is, after all, the
root. here's what I think I need to do:
1. # parted /dev/hdc
(parted) cp 6 /dev/hda 2
(parted) cp 7 /dev/hda 3
2. modify the lilo.conf to have:
root=/dev/hda2
instead of:
root=/dev/hdc6
3. run lilo -v
4. reboot and pray
can anyone tell me whether I'm missing anything?
1k thx - erick
btw, the docs at:
http://www.gnu.org/software/parted/USER
need refreshing... the syntax for cp stated there is:
cp [FROM-DEVICE] FROM-MINOR TO-MINOR
but this is no longer right.
Also, I can't figure out how to create a new partition... what's wrong with
my statement below?
# parted /dev/had
(parted) mkpart "primary" 271.7 523.7
mkpart PART-TYPE [FS-TYPE] START END make a partition
PART-TYPE is one of: primary, logical, extended
FS-TYPE is one of: FAT, ext2, linux-swap
START and END are in megabytes
mkpart makes a partition without creating a new file system on the
partition. FS-TYPE must be specified for data partitions (as
opposed to
extended partitions). This command is useful if you accidently
deleted
a partition.
--- system
configuration --------------------------------------------------------------
-----------------
# fdisk /dev/hda
Disk /dev/hda: 128 heads, 63 sectors, 589 cylinders
Units = cylinders of 8064 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5 20128+ 83 Linux
/dev/hda2 6 69 258048 83 Linux
# fdisk /dev/hdc
Disk /dev/hdc: 16 heads, 63 sectors, 39870 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 18266 9206032+ 83 Linux
/dev/hdc2 18267 39870 10888416 5 Extended
/dev/hdc5 18267 18787 262552+ 83 Linux
/dev/hdc6 18788 19308 262552+ 83 Linux
/dev/hdc7 19309 19829 262552+ 82 Linux swap
/dev/hdc8 19830 39870 10100632+ 8e Linux LVM
and:
# cat /etc/lilo.conf
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux
image=/boot/vmlinuz-2.4.9
label=linux
read-only
root=/dev/hdc6
image=/boot/vmlinuz-2.2.16-22
label=RH-2.2.16-22
read-only
root=/dev/hdc6
- right syntax?,
Erick Calder <=