Just a small question:
Is it possible to mount a disk-device (/dev/cdrom) to a file instead of a
path?
now: "/dev/cdrom" -> "/media/cdrom"
i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar
Thank you.
S.H.
Printable View
Just a small question:
Is it possible to mount a disk-device (/dev/cdrom) to a file instead of a
path?
now: "/dev/cdrom" -> "/media/cdrom"
i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar
Thank you.
S.H.
On Tue, 04 Nov 2008 22:20:51 +0100, SH wrote:
[color=blue]
> Just a small question:
>
> Is it possible to mount a disk-device (/dev/cdrom) to a file instead of a
> path?
>
> now: "/dev/cdrom" -> "/media/cdrom"
> i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar[/color]
sudo mount -o loop /home/images/kubuntu-8.10-dvd-amd64.iso /export8.10
--
In her mercy, history anesthetizes those whom she
intends to destroy.
-- Leon Trotsky
In article <geqebk$tv4$02$1@news.t-online.com>,
SH <trash_mail_account@web.de> wrote:[color=blue]
> Just a small question:
>
> Is it possible to mount a disk-device (/dev/cdrom) to a file instead of a
> path?
>
> now: "/dev/cdrom" -> "/media/cdrom"
> i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar[/color]
cat /dev/cdrom > file.iso
--
-eben [email]QebWenE01R@vTerYizUonI.nOet[/email]P royalty.mine.nu:81
This message was created using recycled electrons.
Em Terça, 4 de Novembro de 2008 21:20, SH escreveu:
[color=blue]
> Just a small question:
>
> Is it possible to mount a disk-device (/dev/cdrom) to a file instead of a
> path?
>
> now: "/dev/cdrom" -> "/media/cdrom"
> i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar
>
> Thank you.
>
> S.H.[/color]
not mount... but copy, yes
dd if=/dev/cdrom of=./cdimage.iso
cdimage.iso will be a virtual-cd file with all the contents of the cd disk
Em Terça, 4 de Novembro de 2008 23:44, Joe User escreveu:
[color=blue]
> On Tue, 04 Nov 2008 22:20:51 +0100, SH wrote:
>[color=green]
>> Just a small question:
>>
>> Is it possible to mount a disk-device (/dev/cdrom) to a file instead of a
>> path?
>>
>> now: "/dev/cdrom" -> "/media/cdrom"
>> i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar[/color]
>
> sudo mount -o loop /home/images/kubuntu-8.10-dvd-amd64.iso /export8.10
>[/color]
the OP wants to do the opposite of that
Well, that's exactly not, what I wanted. :-)
I do not want to mount a file, I want to mount a DVD/CD, so that I can
access it like an iso-file.
But I need that "on the fly", so creating the dump with dd or cat is no
solution, because i want to share it via SMB to a Windows-Machine.
S.H.
Em Quarta, 5 de Novembro de 2008 00:11, SH escreveu:
[color=blue]
> Well, that's exactly not, what I wanted. :-)
>
> I do not want to mount a file, I want to mount a DVD/CD, so that I can
> access it like an iso-file.
> But I need that "on the fly", so creating the dump with dd or cat is no
> solution, because i want to share it via SMB to a Windows-Machine.
>
>
> S.H.[/color]
why don't you share the mount point where the device is mounted then?
it will do the same...
On Wed, 05 Nov 2008 00:11:27 +0000, ArameFarpado wrote:
[color=blue]
> Em Terça, 4 de Novembro de 2008 23:44, Joe User escreveu:
>[color=green]
>> On Tue, 04 Nov 2008 22:20:51 +0100, SH wrote:
>>[color=darkred]
>>> Just a small question:
>>>
>>> Is it possible to mount a disk-device (/dev/cdrom) to a file instead of
>>> a path?
>>>
>>> now: "/dev/cdrom" -> "/media/cdrom"
>>> i want: "/dev/cdrom" -> "/media/cdrom.iso" or similar[/color]
>>
>> sudo mount -o loop /home/images/kubuntu-8.10-dvd-amd64.iso /export8.10
>>[/color]
> the OP wants to do the opposite of that[/color]
It's the same thing:
[color=blue]
>mkdir /dev/cdrom
>mount -o loop /home/images/kubuntu-8.10-dvd-amd64.iso /dev/cdrom[/color]
If /dev/cdrom exists as a device file, just delete it before the mkdir.
--
Freedom is not a concept in which people can do anything
they want, be anything they can be. Freedom is about
authority. Freedom is about the willingness of every single
human being to cede to lawful authority a great deal of
discretion about what you do
-- Rudy Guiliani
On Wed, 05 Nov 2008 01:11:38 +0100, SH wrote:
[color=blue]
> Well, that's exactly not, what I wanted.
>
> I do not want to mount a file, I want to mount a DVD/CD, so that I can
> access it like an iso-file.
> But I need that "on the fly", so creating the dump with dd or cat is no
> solution, because i want to share it via SMB to a Windows-Machine.
>
>
> S.H.[/color]
Strange request, what exactly is your goal?
Maybe you can use dd and make the output file a socket of fifo?
On Wed, 05 Nov 2008 01:11:38 +0100, SH wrote:
[color=blue]
> Well, that's exactly not, what I wanted. :-)
>
> I do not want to mount a file, I want to mount a DVD/CD, so that I can
> access it like an iso-file.
> But I need that "on the fly", so creating the dump with dd or cat is no
> solution, because i want to share it via SMB to a Windows-Machine.
>
>
> S.H.[/color]
That's the beauty of *nix - everything is a file, so when your mount point
is e.g. /media/cdrom - that is a file.
I do _NOT_ want to mount the iso.
I want the iso as a result.
S.H.
> why don't you share the mount point where the device is mounted then?[color=blue]
> it will do the same...[/color]
Nope, the Windows-Machine could not use it as a CD-Drive. It would be a
net-share then. Doesn't work with Copy-Protections.
> Strange request, what exactly is your goal?
Scenario:
- Video-DVD in /dev/cdrom
- Samba-Share on Mountpoint for Windows-HTPC does not work because of CSS
protection
- dvdreadfs with fuse to Samba-Share works, but is too slow and sometimes
stops while playing the movie on tv
- Samba-Share of the iso-File of the DVD and mount it for example with
"Alcohol 120%" on the Windows-machine _could_ work
- for that, i need the iso/image to be read "on the fly"
- LAN is 100mbit, so should be fast enough
[color=blue]
> Maybe you can use dd and make the output file a socket of fifo?[/color]
How?
S.H.
> That's the beauty of *nix - everything is a file, so when your mount point[color=blue]
> is e.g. /media/cdrom - that is a file.[/color]
It's shown as directory?! What do you mean?
S.H.
On Wed, 05 Nov 2008 11:21:11 +0100, SH wrote:
[color=blue]
> I do _NOT_ want to mount the iso.
> I want the iso as a result.
>
> S.H.[/color]
Ok, but you don't want a real iso, just a virtual one, that looks like a
file, but on a read you would get data from the disk. Is that it?
What do you want to do with this iso on the windows machine?
> Ok, but you don't want a real iso, just a virtual one, that looks like a[color=blue]
> file, but on a read you would get data from the disk. Is that it?[/color]
Exactly!
[color=blue]
> What do you want to do with this iso on the windows machine?[/color]
Mount it with "Alcohol 120%". Only this way, the copy protections and CSS
works.
And I can access it like a "local" CD/DVD, not as a SMB-Share.
S.H.
SH wrote:[color=blue][color=green]
>> That's the beauty of *nix - everything is a file, so when your mount point
>> is e.g. /media/cdrom - that is a file.
>>[/color]
>
> It's shown as directory?! What do you mean?
>
> S.H.[/color]
A directory is a file. It is located on the hard disk, and everything on
the hard disk is a file.
Directory files contain information for other files and directories.
--
John
No Microsoft, Apple, AT&T, Intel, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
But how to share it as "file" with samba?
In article <gers78$5v9$03$1@news.t-online.com>,
SH <trash_mail_account@web.de> wrote:[color=blue][color=green]
> > Strange request, what exactly is your goal?[/color]
>
> Scenario:
>
> - Video-DVD in /dev/cdrom
> - Samba-Share on Mountpoint for Windows-HTPC does not work because of CSS
> protection
> - dvdreadfs with fuse to Samba-Share works, but is too slow and sometimes
> stops while playing the movie on tv
> - Samba-Share of the iso-File of the DVD and mount it for example with
> "Alcohol 120%" on the Windows-machine _could_ work
> - for that, i need the iso/image to be read "on the fly"
> - LAN is 100mbit, so should be fast enough
>[color=green]
> > Maybe you can use dd and make the output file a socket of fifo?[/color]
>
> How?[/color]
dd if=/dev/cdrom of=file.iso
At least I think that's what "> >" (whose name you cut out) means,
although I don't know what he/she means by a "socket of" that file.
--
-eben [email]QebWenE01R@vTerYizUonI.nOet[/email]P [url]http://royalty.mine.nu:81[/url]
LEO: Now is not a good time to photocopy your butt and staple it
to your boss' face, oh no. Eat a bucket of tuna-flavored pudding
and wash it down with a gallon of strawberry Quik. -- Weird Al
On Wed, 05 Nov 2008 11:24:29 +0100, SH wrote:
[color=blue][color=green]
>> That's the beauty of *nix - everything is a file, so when your mount
>> point is e.g. /media/cdrom - that is a file.[/color]
>
> It's shown as directory?! What do you mean?
>
> S.H.[/color]
A directory is merely a certain type of file.