Hi,
On the system i originally have:
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 141G 2.2G 132G 2% /
tmpfs 2.0G 0 2.0G 0% /dev/sh
my ultimate goal is to have a partition encrypted (LUKS), whilst leaving the boot the same. So what i wanted to do was have the unencrypted partition pointing to / and the encrypted partition pointing to /home.
So first i did fdisk and made the partitions and such:
Code:
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-18946, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-18946, default 18946): +10000M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1218-18946, default 1218):
Using default value 1218
Last cylinder or +size or +sizeM or +sizeK (1218-18946, default 18946):
Using default value 18946
Next i made the first partition the bootable partition, so finally fdisk showed the following:
Code:
Command (m for help): p
Disk /dev/sda1: 155.8 GB, 155844347904 bytes
255 heads, 63 sectors/track, 18946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1p1 * 1 1217 9775521 83 Linux
/dev/sda1p2 1218 18946 142408192+ 83 Linux
Command (m for help): w
The partition table has been altered!
I then rebooted the server.
Now when the server came back up, df -h still showed:
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 141G 2.2G 132G 2% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
and fdisk still showed the two partitions.
Now i tried to mount /dev/sda1p2 but got an error:
Code:
mount /dev/sda1p2 /test
mount: special device /dev/sda1p2 does not exist
Next i tried making a fs on it:
Code:
# mkfs.ext3 /dev/sda1p2
mke2fs 1.39 (29-May-2006)
Could not stat /dev/sda1p2 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
any assistance would be greatly appreciated.
Thankyou.