*SOLVED* CDWriter at a VPS? [message #2369] |
Fri, 31 March 2006 09:16 |
slg2001
Messages: 20 Registered: March 2006 Location: Germany
|
Junior Member |
|
|
Hallo,
is it possible to add a hardware-cd-writer to a VPS as an normal device /dev/hdX ?
Because i want to use this VPS in a DMZ as an cd-burn-server over LAN.
Thanks.
slg2001
To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
[Updated on: Wed, 05 April 2006 14:46] Report message to a moderator
|
|
|
|
Re: CDWriter at a VPS? [message #2372 is a reply to message #2369] |
Fri, 31 March 2006 11:49 |
slg2001
Messages: 20 Registered: March 2006 Location: Germany
|
Junior Member |
|
|
Hi kir,
thanks for your support, but it doesn't work! If i mount a cd at the vps, i get the following messages.
#################### code #######################
[root@vps-burn ~]# mount /dev/hdh /media/cdrecorder
mount: unknown filesystem type 'iso9660'
[root@vps-burn ~]# mount /dev/hdh /media/cdrecorder -t iso9660
mount: unknown filesystem type 'iso9660'
[root@vps-burn ~]# ls -sla /dev/hd*
0 brw-r----- 1 root root 34, 0 Mar 31 15:23 /dev/hdg
0 brw-r----- 1 root root 34, 64 Mar 31 15:23 /dev/hdh
[root@vps-burn ~]
#################### code #######################
Some rpm package missing?
thanks
slg2001
To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
|
|
|
|
Re: CDWriter at a VPS? [message #2429 is a reply to message #2372] |
Tue, 04 April 2006 11:35 |
dev
Messages: 1693 Registered: September 2005 Location: Moscow
|
Senior Member |
|
|
Oh, sorry forgot, that isofs is not allowed in VSP by default.
Can you simply apply the following patch please?
--- ./fs/isofs/inode.c.isofs 2006-03-20 18:29:32.000000000 +0300
+++ ./fs/isofs/inode.c 2006-04-04 15:39:52.000000000 +0400
@@ -1459,7 +1459,7 @@ static struct file_system_type iso9660_f
.name = "iso9660",
.get_sb = isofs_get_sb,
.kill_sb = kill_block_super,
- .fs_flags = FS_REQUIRES_DEV,
+ .fs_flags = FS_REQUIRES_DEV | FS_VIRTUALIZED,
};
static int __init init_iso9660_fs(void)
I think, we need to make this run-time configurable in future.
|
|
|
|
Re: CDWriter at a VPS? [message #2435 is a reply to message #2434] |
Tue, 04 April 2006 20:14 |
dev
Messages: 1693 Registered: September 2005 Location: Moscow
|
Senior Member |
|
|
1. you need to install SRC RPM (http://openvz.org/download/kernel/)
2. somewhere in /usr/src (depending on host OS you use. e.g. redhat usually keeps them in /usr/src/redhat, SUSE in /usr/src/packages)
you will have directory SPECS and kernel-ovz.spec file in it.
3. in kernel-ovz.spec there is list of patches to apply.
For example, if you say the patch I proposed as /usr/src/.../SOURCES/isofs.patch, then in kernel-ovz.spec you need to add line (after the last 'PatchXXXX: ...' there):
and line (right after the last '%patch ...':
4. after that you simply need to build new RPMs with:
# rpmbuild -ba --target=i686 kernel-ovz.spec
5. build RPMs will be saved in /usr/src/.../RPMS/i686/
[Updated on: Tue, 04 April 2006 20:14] Report message to a moderator
|
|
|
|
|
|
Re: CDWriter at a VPS? [message #2453 is a reply to message #2369] |
Wed, 05 April 2006 13:31 |
slg2001
Messages: 20 Registered: March 2006 Location: Germany
|
Junior Member |
|
|
Hi,
i build the new kernel from last rpm-source-package.
/usr/src/redhat/BUILD/ovzkernel-2.6.16/linux-2.6.16/fs/isofs /inode.c
----------------------- cut -------------------------
static struct file_system_type iso9660_fs_type = {
.owner = THIS_MODULE,
.name = "iso9660",
.get_sb = isofs_get_sb,
.kill_sb = kill_block_super,
.fs_flags = FS_REQUIRES_DEV | FS_VIRTUALIZED,
};
----------------------- cut -------------------------
installed kernel: 2.6.16-026test007.1.2006040502 #1 Wed Apr 5 13:27:32 CEST 2006 i686 i686 i386 GNU/Linux
But i get the same errors!
----------------------- cut -------------------------
[root@vps-burn ~]# mount /dev/hdg /media/cdrecorder
mount: unknown filesystem type 'iso9660'
[root@vps-burn ~]# mount /dev/hdh /media/cdrecorder
mount: unknown filesystem type 'iso9660'
----------------------- cut -------------------------
slg2001
To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
|
|
|
|
|
|
|
Re: CDWriter at a VPS? [message #2458 is a reply to message #2369] |
Wed, 05 April 2006 14:45 |
slg2001
Messages: 20 Registered: March 2006 Location: Germany
|
Junior Member |
|
|
Hi,
it works! The iso9660 module was not loaded!
Thank's all for your support!!!
slg2001
To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
|
|
|