Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
add swap - permission denied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
snl
n00b
n00b


Joined: 16 Apr 2005
Posts: 62

PostPosted: Sat Apr 16, 2005 7:59 pm    Post subject: add swap - permission denied Reply with quote

I have installed Gentoo using coLinux on Windows XP. I tried to add swap following to guide at http://wiki.colinux.org/cgi-bin/AddSwapPartition. I login as root but when I try to add an entry with

/dev/cobd/1 swap swap defaults 0 0

I got a permission denied message.

What should I do, please help.

Thanks.
Back to top
View user's profile Send private message
alexlm78
Veteran
Veteran


Joined: 08 Dec 2003
Posts: 1265
Location: Guatemala,Guatemala

PostPosted: Sat Apr 16, 2005 9:08 pm    Post subject: Reply with quote

Sorry for my unknowing but, What is CoLinux?????????

:?: :?: :?: :?: :?: :?: :?: :?: :?: :?:
_________________
"This is a different kind of world, you need a different kind of software"

Linux User# 315201
100% Chapin hecho en Guatemala
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Sat Apr 16, 2005 9:49 pm    Post subject: Reply with quote

alexlm78 wrote:
Sorry for my unknowing but, What is CoLinux?????????

Next time try www.google.com

snl wrote:
...

snl, do you get the error when trying to add that line to /etc/fstab or when you try the mkswap line?
_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
snl
n00b
n00b


Joined: 16 Apr 2005
Posts: 62

PostPosted: Sat Apr 16, 2005 10:12 pm    Post subject: Reply with quote

I now managed to add the line to /etc/fstab manually using vi /etc/fstab. But when I tried

mkswap /dev/cobd1

then I got the error message saying that there is "no such device".
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Sat Apr 16, 2005 10:32 pm    Post subject: Reply with quote

snl wrote:
I now managed to add the line to /etc/fstab manually using vi /etc/fstab
How were you trying to add it before? The only way to change config files in gentoo is to edit them. (unless you want to just append something to it you can do "echo "some text here" >> /etc/fstab" -- but editing the files is better)

snl wrote:
then I got the error message saying that there is "no such device".

Did you do this step?
Quote:
4 - Type

ls /dev/cobd1

at the command prompt. If you get a ls: /dev/cobd1: No such file or directory error message, try ls /dev/cobd/1 instead. Whichever one succeeds should be used in the next two steps.


Now, I'm not sure if you'll find a /dev/codb/1 either, as I don't have one (I'm not using colinux though). But it's worth a try.


If not you don't have it, you may have to create it.


Or maybe this stuff will help you :?: But according to it, /dev/codb1 should work.


One last thing, what is the output of
Code:
ls /dev/codb*

_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
snl
n00b
n00b


Joined: 16 Apr 2005
Posts: 62

PostPosted: Sun Apr 17, 2005 8:57 am    Post subject: Reply with quote

Given M. Sur wrote:
Did you do this step?
Quote:
4 - Type

ls /dev/cobd1

at the command prompt. If you get a ls: /dev/cobd1: No such file or directory error message, try ls /dev/cobd/1 instead. Whichever one succeeds should be used in the next two steps.


Yes, I did do this step and I do have /dev/cobd1 but when I tried to do
Code:
mkswap /dev/cobd1
it said "No such device".

I am new to linux, what is the difference between

/dev/cobd1 swap swap defaults 0 0

and

dev/cobd1 none swap sw 0 0

Which one should I use?

Thanks.
Back to top
View user's profile Send private message
arma
Apprentice
Apprentice


Joined: 07 Nov 2004
Posts: 198
Location: Belgium

PostPosted: Sun Apr 17, 2005 10:07 am    Post subject: Reply with quote

first is the device (the "hardware" associated)
second the mount point (where you can find this hardware after mounting)
third is the type of the "filesystem" (ext3, ntfs, swap, vfat ,.... )
tourth are options (like, allow users to mount a drive, read only, ....)
fifth, I'm not quite sure.

in your first example you try to "attach" a device called /dev/cobd1 to a mount point called 'swap', it's type is swap and the mounts options are defaults.
I don't think the mount point called 'swap' exist anyway... maybe you can have a problem here but it doesn't explain the 'no such device' error

in the second example, un try to attach a device called /dev/cobd1 to a mount point that not exist (you never want to know what is in the swap device ; and surely not, editing it :) ); the type is still 'swap' but the mounting options are 'sw' (lets say it is a collection of options specialy dedicated to swap partitions)

So i think the second example is better because you don't have the problem whith the unexistant directory and that you use correct options

Hope my english wasn't so bad and that it will help you
_________________
l'alcool est un ennemi...
et en quelque sorte,...
fuir l'ennemi, c'est lâche
Back to top
View user's profile Send private message
snl
n00b
n00b


Joined: 16 Apr 2005
Posts: 62

PostPosted: Sun Apr 17, 2005 12:02 pm    Post subject: Reply with quote

Before I added anything to /etc/fstab, there was already a line

/dev/SWAP none swap sw 0 0.

Do I still need to add the line

/dev/cobd/1 none swap sw 0 0?


I have tried both with and without the line /dev/cobd/1 none swap sw 0 0 but still got "No such device" error when I tried to do
Code:
mkswap /dev/cobd/1


Thanks.
Back to top
View user's profile Send private message
arma
Apprentice
Apprentice


Joined: 07 Nov 2004
Posts: 198
Location: Belgium

PostPosted: Sun Apr 17, 2005 12:32 pm    Post subject: Reply with quote

i don't know how to work with CoLinux ... but usually we use an indepandant partition for a swap; so maybe you'll have more luck if you make a litle partition (512mo should work fine), then open fdisk (if you created the partion under windows) and check the label of this partition (for exemple say it is /dev/hda5)

then replace /dev/SWAP none swap sw 0 0.
with /dev/hda5 none swap sw 0 0.

once agin, i never worked with colinux, but this is the most common way to deal with swap under linux
the last thing we did'nt think for your problem is :
since your /dev/cobd1 is attached to an real file under your Windows (if i understood well path="\DosDevices\c:\coLinux\swap-file"), maybe you have a permission issue on the windows side... i'll explain: your system (colinux) must surely use an generic username (on windows side) to access the dummy file... maybe this generic user doesn't have write permission on the file ...

again...i'm not quite sure it will work
_________________
l'alcool est un ennemi...
et en quelque sorte,...
fuir l'ennemi, c'est lâche
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum