LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2007, 01:23 PM   #1
hammerham
LQ Newbie
 
Registered: Feb 2004
Location: Florida
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
cfdisk


hello all I have a compaq K6II500 pesario that I am trying to get slackware 9.0 on after my other machine got bit by lighting.
I am using the sbootmgr.dsk to boot from CD since my machine does not support Cd boot. it does boot to the cd.
Problem is that when I run CFDISK to do the drive it says you do not have permission even though I am logged in as root.
Any Ideas? Its been about 4-5 ys since I have messed with this
Machine is
K6II-500
128m Ram
7gig drive w/ win98
Thanks
David
 
Old 10-16-2007, 01:51 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
Quote:
Problem is that when I run CFDISK to do the drive it says you do not have permission even though I am logged in as root.
Are you selecting the hard disk and not the CD? The hard disk is probably an IDE, so cfdisk /dev/hda would be the first IDE drive, hdc I suspect is the CD. Are you trying that and getting the permission denied?
 
Old 10-16-2007, 02:01 PM   #3
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
related?

http://freshmeat.net/projects/lilo/

LILO can't acces /dev/fd0
by Joel Kaasinen - Nov 16th 2003 03:39:10

Im working on a linux-on-a-disk-thingie, and ive got evrything ready, boot.b, the kernel and etc/lilo.conf (BTW boot=/dev/fd0 and root=/dev/fd0) in their places, but when i try to install lilo unto the disk with
"lilo -v -r /mnt/floppy"
lilo says: "cant acces dev/fd0: permission defined"

As im doing this as root, the file permissions of /dev/fd0 shouldn't be the cause

It would be nice, if someone could help...

--
cheers, J

[reply] [top]

[] Re: LILO can't acces /dev/fd0
by John Coffman - Nov 16th 2003 11:53:09

This is a well known gotcha when using "-r". It is expected that you have a full Linux installation at the point you are 'chroot'ing to. Specifically, you need a /dev directory, with all device permissions set correctly. Sounds like you have omitted this step in creating your floppy image. You might check the method used by the LILO utility "mkrescue", a shell script, and adopt its methods of avoiding the need for a 'chroot'.

[reply] [top]

[] Re: LILO can't acces /dev/fd0
by Joel Kaasinen - Nov 16th 2003 22:56:25

I have a dev directory with fd0, console and null in it. I got lilo to eork by first mounting fd0 with:

mount -o dev /dev/fd0

I heard this from someone on the net, and I would like to know exactly why did it work. The documentation for the dev option is quite cryptic:

dev Interpret character or block special devices
on the file system.

thx in advance
J

--
cheers, J

[reply] [top]

[] Re: LILO can't acces /dev/fd0
by Kari Hurtta - Nov 29th 2003 12:01:35


> I have a dev directory with fd0, console
> and null in it. I got lilo to eork by
> first mounting fd0 with:
> mount -o dev /dev/fd0
> I heard this from someone on the net,
> and I would like to know exactly why did
> it work. The documentation for the dev
> option is quite cryptic:
>
> dev Interpret character or block
> special devices
> on the file system.

'nodev' tradiotionally prevents doing 'character' or 'block' special files to filesystem. So 'dev' is just opposite.

crw-rw-rw- 1 root root 5, 0 Nov 29 21:06 /dev/tty

That 'c' indicates that this is character special file.

brw-rw---- 1 root disk 3, 0 Apr 7 2003 /dev/hda

That 'b' indicates that this is block special file.
 
Old 10-16-2007, 08:18 PM   #4
larkl
Member
 
Registered: Sep 2007
Distribution: Puppy 5.2.8
Posts: 69

Rep: Reputation: 15
Have you looked on the Compaq (HP) website to see if they have a BIOS update for this PC? Maybe the update allows CD booting.
 
Old 10-16-2007, 08:33 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
"fdisk -l" to ensure you have the correct device.
 
Old 10-17-2007, 02:12 PM   #6
hammerham
LQ Newbie
 
Registered: Feb 2004
Location: Florida
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
RE cfdisk

I have solved the problem.
I did not realize that when I used the boot loader to boot the cd that it saw the cd as the /dev/hda so I did
cfdisk /dev/hdc and boom it started working got all my partitions made and my Slackware 9.0 installed. Thanks for all the help. And to the poster about Compaqs website for updates I have not tried that yet but will
Thanks
David
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cfdisk noonmid27 Linux - Newbie 4 01-21-2007 08:45 PM
cfdisk Infernolinux Linux - Newbie 1 12-20-2005 11:05 PM
cfdisk hansi umayangan Red Hat 3 04-04-2005 02:49 AM
help with cfdisk comprookie2000 Linux - Newbie 1 02-19-2004 01:25 AM
regarding cfdisk rahul_jain_9684 Linux - Software 2 07-25-2003 06:15 AM


All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration