PDA

Bekijk de volledige versie : about fdisk and format problem



alan168hk
08-11-2006, 19:14
i follow the wl-500gp turorials step by step
but i get a problem
my stuff is
wl500gp + usb2.0 external case + sega 320g sata2 hhd
i already fdisk like that

Command (m for help): p

Disk /dev/discs/disc0/disc: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/discs/disc0/part1 1 38740 311179018+ 83 Linux
/dev/discs/disc0/part2 38741 38913 1389622+ 82 Linux swap

Command (m for help):

is that correct??

but i use command mkswap /dev/discs/disc0/part2
so that

[admin@(none) root]$ mkswap /dev/discs/disc0/part2
mkswap: warning: truncating swap area to 524284kB
Setting up swapspace version 1, size = 536862720 bytes
[admin@(none) root]$



vi /usr/local/sbin/post-boot#!/bin/sh
#Wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done

# Activate swap
swapon /dev/discs/disc0/part2

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung



- /usr/local/sbin/post-boot 1/40 2%


any problem????


but i find that i can make dir

[admin@(none) root]$ mkdir /opt/tmp
mkdir: Cannot create directory `/opt/tmp': Read-only file system
[admin@(none) root]$ mkdir /opt/tmp/ipkg
mkdir: Cannot create directory `/opt/tmp/ipkg': No such file or directory
[admin@(none) root]$ ipkg.sh update
mkdir: Cannot create directory `//opt/tmp/': Read-only file system
[admin@(none) root]$ ipkg.sh install ipkg
mkdir: Cannot create directory `//opt/tmp/': Read-only file system
[admin@(none) root]$ ipkg update

what is my matter
can someone help me
THX