LinHES Forums
http://forums.linhes.org/

Installing knoppmyth on SATA
http://forums.linhes.org/viewtopic.php?f=1&t=4855
Page 1 of 2

Author:  dhoyos [ Thu Jun 09, 2005 2:14 pm ]
Post subject:  Installing knoppmyth on SATA

Hello everone,
I have been searching the forums but have been unable to find an answer. I have a sata hard drive and I am trying to install knoppmyth. I can go into csfdisk and create the partitions. Once thay have been created, however, I go back to the manual install menu the partition disk option is the only option available other that quit (No load config). I'm not sure what I'm doing wrong but I would appreciate some help. Thanks,
Daniel Hoyos

P.S. Motherboard doesn't have PATA

Author:  cesman [ Thu Jun 09, 2005 4:53 pm ]
Post subject: 

Have you read the installation instructions? All you need to know about a manual install is in there.

Author:  dhoyos [ Thu Jun 09, 2005 7:53 pm ]
Post subject: 

I have followed the instructions carefully creating the 4 partitons with csfdisk. Then executing the mkswap && swapon commands. When I execute
# mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/sda3
# mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/sda4
I end up getting a the 7 token error. I then need to use fdisk to erase the partitions and start again since csfdisk will not run due to the error. Any help would be appreciated. Thanks

Author:  mitkid [ Sun Jun 19, 2005 12:59 am ]
Post subject:  Installing KnoppMyth on SATA Hard Drive

Quote:
I have followed the instructions carefully creating the 4 partitons with csfdisk. Then executing the mkswap && swapon commands. When I execute
# mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/sda3
# mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/sda4
I end up getting a the 7 token error. I then need to use fdisk to erase the partitions and start again since csfdisk will not run due to the error. Any help would be appreciated. Thanks


I have this same problem using my 300 GB WD SATA Hard drive. I followed the instructions on the 'pamphlet' - used CFDISK to create 4 primary (is this ocrrect?) partitions of sizes 2.5GB, 768MB, 6GB, & the rest in the last partition. I write the partition table, Then I press Ctrl+Alt+F2, type:
mkswap /dev/sda2 && swapon /dev/sda2
Then the 2 commands above:
mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/sda3
mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/sda4
I press Ctrl+Alt+F1 to return, and when I quit the partitioning program I get the '7 tokens needed' error.

I am a newbie to Linux, so may have missed something very simple. Do I need to format the '/' partition? If so, what fs should I use, and how do I do this? What about the swap partition? If I load CFDISK again, it tells me that the fs type of sda3 is 'linux ext2' and sda4 is 'linux ext3', and says they are called cache and myth, but does not give labels for the other partitions, and simply says the type is 'linux'. Is my swap partition supposed to be a different filesystem?
If anyone can help, I would really appreciate it - I have found this problem in a handful of posts, but nobody appears to have solved it.

Author:  tjc [ Sun Jun 19, 2005 12:30 pm ]
Post subject: 

A vague memory from the back of my skull tells me that the message means that a test to get a parttion size failed because the drive wasn't where it expected it to be... Hang on... Hmmm... not finding it right off the bat...

You did use the four standard mount point names for the partitions with the same case right?

Author:  mitkid [ Sun Jun 19, 2005 3:48 pm ]
Post subject: 

The only time I entered the labels for the partitions were in these lines:
Quote:
mkswap /dev/sda2 && swapon /dev/sda2
mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/sda3
mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/sda4

I typed these lines as written above (same case). Do I have to label partition 1 and 2 somehow? Is it expecting the partitions in /xda rather than /sda as in the pamphlet?

Author:  tjc [ Sun Jun 19, 2005 5:41 pm ]
Post subject: 

Volume labels don't really matter. Did you make a filesystem on the root parttion?

Author:  mitkid [ Sun Jun 19, 2005 6:14 pm ]
Post subject: 

No - How do I do this? What type of filesystem do I need?

Author:  tjc [ Sun Jun 19, 2005 6:40 pm ]
Post subject: 

Looks like ext3...
Code:
root@black2:~# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
none on /proc type proc (rw,nodiratime)
/dev/hda3 on /cache type ext2 (rw)
/dev/vg/myth on /myth type ext3 (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)

Although you probably don't want a sparse super block or the other "large files" mode stuff.

Author:  mitkid [ Sun Jun 19, 2005 9:37 pm ]
Post subject: 

OK, I typed:
mke2fs -j -M / /dev/sda1
to format the boot partition in ext3. I can load cfdisk and it says that it is linux ext3. But I still get the same error when returning to the KnoppMyth install:
"Expected at least 7 tokens for --checklist, have 4"
Do I have to also mount the swap partition or specify a different filesystem type?

Author:  tjc [ Sun Jun 19, 2005 11:14 pm ]
Post subject: 

mitkid wrote:
Do I have to also mount the swap partition or specify a different filesystem type?

No. Swap is different. That's what the mkswap is for.

Author:  tjc [ Sun Jun 19, 2005 11:32 pm ]
Post subject: 

OBTW - The error message you're getting means that the "checklist" function in KnoppMyth-auto is getting called without enough parameters... It looks like this IS related to your swap partition somehow, but probably because it doesn't see it...

When you created that parttion did you mark it as linux swap? What does running "fdisk -l" show (before you would normally swap back to the menu hoping for 6 items)?

BTW - Are you up to editing with vi? This may involve hacking one of the scripts...

Actually you may want to try booting with "noswap" too...

Author:  mitkid [ Mon Jun 20, 2005 6:30 pm ]
Post subject: 

fdisk -l shows:
device Boot Start End Blocks Id Systen
/dev/sda1 * 1 304 2441848+ 83 Linux
/dev/sda2 305 397 747022+ 83 Linux
/dev/sda3 398 1144 6000277+ 83 Linux
/dev/sda4 1145 38913 303379492+ 83 Linux

mount shows:
/dev/root on / type ext2 (rw)
/dev/hdb on /cdrom ....
/dev/cloop on /KNOPPIX...
/ramdisk on /ramdisk... (ro)
automount(pid3435) on /mnt/auto type autofs (rw,....)

Author:  mitkid [ Mon Jun 20, 2005 6:43 pm ]
Post subject: 

I just changed the file system type of /dev/sda2 to 82 Linux swap / solaris
then I re-ran the mkswap command - this now gives me the 6 menu options!

Thanks very much for your help! Really appreciated!

Author:  tjc [ Mon Jun 20, 2005 8:22 pm ]
Post subject: 

OK, in the spirit of "watch one, do one, teach one" you're now in charge of helping the next newbie to show up with this problem. ;-)

Hope everything else goes smoothly for you...

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/