Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-24 Thread Joseph
On Fri, 2006-03-24 at 13:08 -0500, JimD wrote:
> On Fri, 24 Mar 2006 08:49:09 -0700
> Joseph <[EMAIL PROTECTED]> wrote:
> 
> > I've disable IDE ATAPI CD-ROM in the kernel but the DVD-drive wasn't
> > recognized upon reboot; well I think I just have to wait till they fix
> > it in the kernel :-/
> > For now, every time I made copy and eject the CD, I will reboot the
> > computer; oh well it is like Windows 98 - I'm used to it :-)
> 
> Did you try to turn off all SCSI cdrom options?  Make sure SCSI CDROM
> support is off as well as SCSI CDROM emulation.
> 
> Are you using a genkernel?  I recompiled my kernel to have the main
> stuff in the kernel.  For example SATA, IDE CD, ext2, reiserfs, etc is
> compiled into the kernel instead of as modules.
> 
> Did try to boot with this kernel option:
> pci=usepirqmask
> 
>  Jim

I've tried disabling SCSI for IDE and SCSI CDROM but I can not find any
"sr"  recognized devices; unless I missed something.
I've added to grub.conf as well (default kernel): 
root=/dev/sda3 pci=noacpi noapci pci=usepirqmask
it didn't help.

Here is what i have enabled in kernel when it comes to SCSI:
---.config--
# CONFIG_BLK_DEV_IDESCSI is not set
# SCSI device support
CONFIG_SCSI=y
# CONFIG_SCSI_PROC_FS is not set
# SCSI support type (disk, tape, CD-ROM)
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# SCSI Transport Attributes
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# SCSI low-level drivers
# CONFIG_ISCSI_TCP is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
CONFIG_SCSI_SATA=y
# CONFIG_SCSI_SATA_AHCI is not set
# CONFIG_SCSI_SATA_SVW is not set
# CONFIG_SCSI_ATA_PIIX is not set
# CONFIG_SCSI_SATA_MV is not set
# CONFIG_SCSI_SATA_NV is not set
# CONFIG_SCSI_PDC_ADMA is not set
# CONFIG_SCSI_SATA_QSTOR is not set
# CONFIG_SCSI_SATA_PROMISE is not set
# CONFIG_SCSI_SATA_SX4 is not set
# CONFIG_SCSI_SATA_SIL is not set
# CONFIG_SCSI_SATA_SIL24 is not set
# CONFIG_SCSI_SATA_SIS is not set
# CONFIG_SCSI_SATA_ULI is not set
CONFIG_SCSI_SATA_VIA=y
# CONFIG_SCSI_SATA_VITESSE is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
CONFIG_SCSI_QLA2XXX=y
# CONFIG_SCSI_QLA21XX is not set
# CONFIG_SCSI_QLA22XX is not set
# CONFIG_SCSI_QLA2300 is not set
# CONFIG_SCSI_QLA2322 is not set
# CONFIG_SCSI_QLA6312 is not set
# CONFIG_SCSI_QLA24XX is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_DEBUG is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
---end .config.--

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-24 Thread Joseph
On Thu, 2006-03-23 at 22:51 -0700, Richard Fish wrote:
> On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote:
> > OK, here is dmesg output, the last two lines indicate that:
> > hdc: DMA disabled
> > hdc: ATAPI reset complete
> 
> The lines that are interesting to me are:
> 
> VP_IDE: IDE controller at PCI slot :00:0f.1
> sata_via :00:0f.0: version 1.1
> 
> The above PCI id lines indicate that your parallel ata (IDE) device is
> really just a function of your SATA chip.  Since your hard disk
> wouldn't be affected, I would try a kernel without IDE support and see
> if the SATA driver picks up your CD drive.
> 
> -Richard

I've disable IDE ATAPI CD-ROM in the kernel but the DVD-drive wasn't
recognized upon reboot; well I think I just have to wait till they fix
it in the kernel :-/
For now, every time I made copy and eject the CD, I will reboot the
computer; oh well it is like Windows 98 - I'm used to it :-)

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Richard Fish
On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote:
> OK, here is dmesg output, the last two lines indicate that:
> hdc: DMA disabled
> hdc: ATAPI reset complete

The lines that are interesting to me are:

VP_IDE: IDE controller at PCI slot :00:0f.1
sata_via :00:0f.0: version 1.1

The above PCI id lines indicate that your parallel ata (IDE) device is
really just a function of your SATA chip.  Since your hard disk
wouldn't be affected, I would try a kernel without IDE support and see
if the SATA driver picks up your CD drive.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
On Thu, 2006-03-23 at 21:24 -0700, Richard Fish wrote:
> On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote:
> > That is interesting.
> > My DVD burner is connected to IDE controller and I have in kernel
> > enabled both options support:
> > <*> Include IDE/ATAPI CDROM support
> > and
> > <*> SCSI CDROM support
> > My DVD is recognized as /dev/hdc
> >
> > If I disable first option "DE/ATAPI CDROM support" will the drive be
> > recognized as /dev/sr0 ???
> 
> No, you would need to disable (or at least modularize) all IDE/ATAPI
> support (# CONFIG_IDE is not set).
> 
> But this would _only_ be an option if you actually have a SATA
> chipset.  If it is truly a PATA controller, then you won't get
> /dev/sr0 no matter what you do. [1]
> 
> Maybe you can post your dmesg output?
> 
> -Richard

OK, here is dmesg output, the last two lines indicate that:
hdc: DMA disabled
hdc: ATAPI reset complete

What application reseted the DMA, I don't know?

--dmesg-
Bootdata ok (command line is root=/dev/sda3 pci=noacpi noapic)
Linux version 2.6.15-gentoo-r4 ([EMAIL PROTECTED]) (gcc version 3.4.4 (Gentoo 
3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #3 SMP Sat Feb 25 17:33:09 MST 2006
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009fc00 (usable)
 BIOS-e820: 0009fc00 - 000a (reserved)
 BIOS-e820: 000e4000 - 0010 (reserved)
 BIOS-e820: 0010 - 1ffb (usable)
 BIOS-e820: 1ffb - 1ffc (ACPI data)
 BIOS-e820: 1ffc - 1fff (ACPI NVS)
 BIOS-e820: 1fff - 2000 (reserved)
 BIOS-e820: ff78 - 0001 (reserved)
ACPI: RSDP (v000 ACPIAM) @ 0x000fa8d0
ACPI: RSDT (v001 A M I  OEMRSDT  0x03000509 MSFT 0x0097) @ 
0x1ffb
ACPI: FADT (v001 A M I  OEMFACP  0x03000509 MSFT 0x0097) @ 
0x1ffb0200
ACPI: OEMB (v001 A M I  OEMBIOS  0x03000509 MSFT 0x0097) @ 
0x1ffc0040
ACPI: DSDT (v001  A0277 A0277001 0x0001 MSFT 0x010d) @ 
0x
Scanning NUMA topology in Northbridge 24
Number of nodes 1
Node 0 MemBase  Limit 1ffb
Using 63 for the hash shift.
Using node hash shift of 63
Bootmem setup node 0 -1ffb
On node 0 totalpages: 127885
  DMA zone: 2723 pages, LIFO batch:0
  DMA32 zone: 125162 pages, LIFO batch:31
  Normal zone: 0 pages, LIFO batch:0
  HighMem zone: 0 pages, LIFO batch:0
ACPI: PM-Timer IO Port: 0x808
Intel MultiProcessor Specification v1.1
Virtual Wire compatibility mode.
OEM ID: ASUSTeK  <6>Product ID:  <6>APIC at: 0xFEE0
Processor #0 15:15 APIC version 16
I/O APIC #1 Version 3 at 0xFEC0.
Setting APIC routing to flat
Processors: 1
Allocating PCI resources starting at 3000 (gap: 2000:df78)
Checking aperture...
CPU 0: aperture @ e800 size 128 MB
Built 1 zonelists
Kernel command line: root=/dev/sda3 pci=noacpi noapic
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 65536 bytes)
time.c: Using 3.579545 MHz PM timer.
time.c: Detected 1802.396 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Memory: 510632k/523968k available (2753k kernel code, 12948k reserved, 1294k 
data, 228k init)
Calibrating delay using timer specific routine.. 3613.38 BogoMIPS (lpj=7226767)
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0(1) -> Node 0 -> Core 0
mtrr: v2.0 (20020519)
ACPI: setting ELCR to 0e20 (from 0c20)
Using local APIC timer interrupts.
Detected 12.516 MHz APIC timer.
Brought up 1 CPUs
time.c: Using PIT/TSC based timekeeping.
testing NMI watchdog ... OK.
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1
ACPI: Subsystem revision 20050902
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 12 devices
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Boot video device is :01:00.0
PCI: Using IRQ router default [1106/3227] at :00:11.0
PCI: IRQ 0 for device :00:0f.1 doesn't match PIRQ mask - try pci=usepirqmask
agpgart: Detected AGP bridge 0
agpgart: AGP aperture is 128M @ 0xe800
PCI-DMA: Disabling IOMMU.
pnp: 00:07: ioport range 0x680-0x6ff has been reserved
pnp: 00:07: ioport range 0x290-0x297 has been reserved
PCI: Bridge: :00:01.0
  IO window: disabled.
  MEM window: faf0-fbff
  PREFETCH window: f000-f9ff
PCI: Setting latency timer of device :00:01.0 to 64
IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $
Total HugeTLB memory allocated, 0
Installing knfsd (copyright (C) 

Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Richard Fish
On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote:
> That is interesting.
> My DVD burner is connected to IDE controller and I have in kernel
> enabled both options support:
> <*> Include IDE/ATAPI CDROM support
> and
> <*> SCSI CDROM support
> My DVD is recognized as /dev/hdc
>
> If I disable first option "DE/ATAPI CDROM support" will the drive be
> recognized as /dev/sr0 ???

No, you would need to disable (or at least modularize) all IDE/ATAPI
support (# CONFIG_IDE is not set).

But this would _only_ be an option if you actually have a SATA
chipset.  If it is truly a PATA controller, then you won't get
/dev/sr0 no matter what you do. [1]

Maybe you can post your dmesg output?

-Richard

[1] Technically you could use ide-scsi emulation, but it wouldn't help.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
On Thu, 2006-03-23 at 20:44 -0700, Richard Fish wrote:
> On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote:
> > After following several leads from Gentoo folks (including replacing DVD
> > cable) I've narrow it down to problem with "dma" resetting itself on
> > "eject".
> 
> Hmm, what type of controller is this attached to?
> 
> On my new laptop, I have a PATA DVD burner, but it is ultimately
> attached to a SATA chipset.  I could not get DMA to work correctly
> using the IDE drivers.  The solution was to disable all IDE support,
> add SCSI CD-ROM support, and let the SATA driver control the drive as
> /dev/sr0.
> 
> -Richard

That is interesting. 
My DVD burner is connected to IDE controller and I have in kernel
enabled both options support:
<*> Include IDE/ATAPI CDROM support
and
<*> SCSI CDROM support
My DVD is recognized as /dev/hdc 

If I disable first option "DE/ATAPI CDROM support" will the drive be
recognized as /dev/sr0 ???

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Richard Fish
On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote:
> After following several leads from Gentoo folks (including replacing DVD
> cable) I've narrow it down to problem with "dma" resetting itself on
> "eject".

Hmm, what type of controller is this attached to?

On my new laptop, I have a PATA DVD burner, but it is ultimately
attached to a SATA chipset.  I could not get DMA to work correctly
using the IDE drivers.  The solution was to disable all IDE support,
add SCSI CD-ROM support, and let the SATA driver control the drive as
/dev/sr0.

-Richard

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
A week ago I was posted a message when struggling trying to copy my
own DVD with:
dd if=/dev/dvd of=backup.iso  or
cat /dev/dvd >backup.iso

After following several leads from Gentoo folks (including replacing DVD
cable) I've narrow it down to problem with "dma" resetting itself on
"eject". 

When I boot the computer (amd64) the DVD DMA is "ON" 
[quote]using_dma = 1 (on) 

At this point I can make as many copies as I want using commands "dd" or
"cat" but I can not issue eject command 
eject /dev/hdc

As soon as I eject the CD (and reinsert it) the status of DMA is
changing on the DVD 
using_dma = 0 (off) 
And at this point make no difference if I change that status back to
"ON" or not every subsequent DVD copy fails.

I've run onto few posting on Google regarding DMA resetting itself but
no solution.
-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-18 Thread Boyd Stephen Smith Jr.
On Friday 17 March 2006 23:13, Joseph <[EMAIL PROTECTED]> wrote about 
'Re: [gentoo-user] dd if=/dev/dvd of=backup.iso':
> program k9copy didn't work for me and k3b stopped after copying 850Mb
> dmesg showing a lot of errors:
> hdc: media error (bad sector) status=0x51 SeekComplete Error
> hdc: media error (bad sector) status=0x34
>
> It could be that few disks had an error but I get similar error reading
> commercial disk as well.  So much for DVD enjoyment (very unreliable).

I get errors on commercial disks as well.  Some are for copy protection.  
Some are just bad sectors than, when playing, the player skips.  (2k is 
less than a frame; one bad sector doesn't even cause a skip most of the 
time.)  I turn on 128 retrys, and ignore read errors for after that.  I've 
never had trouble playing an iso ripped that way.

DVDs absolutely SUCK as a backup solution.  The data density is just too 
high for the media.  If you want to back up more than 10G use tape (if you 
can ensure a clean environment) or USB/iSCSI/eATA/nfs attached storage.

For pure, unadulterated, bit-by-bit copies, I can only suggest the tool(s) 
mentioned earlier in the thread that let you read multiple times, either 
from a single drive of multiple different drives (better), and combine 
them into a single .iso.

Even dd w/ conv=noerror will give up after some point and write some data 
that may (or may not) be correct for that sector.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-17 Thread Joseph
> > That would explain but according to my fstab file both should be mount
> > as iso9660 type;
> 
> It does explain it.  I've done it many a time.
> 
> > my amd64 fstab entry (showing all small letters):
> > /dev/cdroms/cdrom0  /mnt/cdrom  iso9660
> > /dev/pktcdvd/0   /mnt/cdrw udf
> > /dev/hdc/mnt/dvdr  iso9660
> >
> > on amd64 is used:  mount /dev/hdc  /mnt/dvdr   so it should be mounted
> > as iso9660 the same line x86-system.
> 
> If you specify both the device and mount point your /etc/fstab is ignored.  
> Instead it will use /etc/filesystems or /proc/filesystems and try each one 
> in order.

That would explain it, thanks for explanation; always learn something
new.

> If you want to use /etc/fstab your can use either the device node or the 
> mount point but not both.
> 
> > > I used to rip DVDs and CDs using dd w/ conv=noerror.  I find I
> > > actually get better results with a tool designed to read CDs
> > > specifically.  I don't know if it is because they better moderate the
> > > speed of the drive, or if they are simply cognizant of the error
> > > correction bits on the disk, but I'll never go back to reading CDs or
> > > DVDs with dd again.
> >
> > What program are you using to make iso backup k9copy?
> 
> I use k3b actually.

program k9copy didn't work for me and k3b stopped after copying 850Mb
dmesg showing a lot of errors:
hdc: media error (bad sector) status=0x51 SeekComplete Error
hdc: media error (bad sector) status=0x34

It could be that few disks had an error but I get similar error reading
commercial disk as well.  So much for DVD enjoyment (very unreliable). 

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-17 Thread Boyd Stephen Smith Jr.
On Friday 17 March 2006 11:39, Joseph <[EMAIL PROTECTED]> wrote about 
'Re: [gentoo-user] dd if=/dev/dvd of=backup.iso':
> On Thu, 2006-03-16 at 21:52 -0600, Boyd Stephen Smith Jr. wrote:
> > On Thursday 16 March 2006 12:11, Joseph <[EMAIL PROTECTED]> wrote
> > about
> > 'Re: [gentoo-user] dd if=/dev/dvd of=backup.iso':
> > > Though, I don't see what difference it could make, but why one
> > > machine list the files and directories in small letter and the other
> > > one in caps.
> >
> > One machine is mounting as iso9660; the other is mounting as UDF.  The
> > one mounting as UDF is more correct.
> 
> That would explain but according to my fstab file both should be mount
> as iso9660 type;

It does explain it.  I've done it many a time.

> my amd64 fstab entry (showing all small letters):
> /dev/cdroms/cdrom0  /mnt/cdrom  iso9660
> /dev/pktcdvd/0 /mnt/cdrw udf
> /dev/hdc  /mnt/dvdr  iso9660
>
> on amd64 is used:  mount /dev/hdc  /mnt/dvdr   so it should be mounted
> as iso9660 the same line x86-system.

If you specify both the device and mount point your /etc/fstab is ignored.  
Instead it will use /etc/filesystems or /proc/filesystems and try each one 
in order.

If you want to use /etc/fstab your can use either the device node or the 
mount point but not both.

> > I used to rip DVDs and CDs using dd w/ conv=noerror.  I find I
> > actually get better results with a tool designed to read CDs
> > specifically.  I don't know if it is because they better moderate the
> > speed of the drive, or if they are simply cognizant of the error
> > correction bits on the disk, but I'll never go back to reading CDs or
> > DVDs with dd again.
>
> What program are you using to make iso backup k9copy?

I use k3b actually.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-17 Thread Joseph
On Thu, 2006-03-16 at 21:52 -0600, Boyd Stephen Smith Jr. wrote:
> On Thursday 16 March 2006 12:11, Joseph <[EMAIL PROTECTED]> wrote about 
> 'Re: [gentoo-user] dd if=/dev/dvd of=backup.iso':
> > The strange part is that when I mount the same DVD in amd64-machine all
> > directory and files are listed in small letters (and I know they should
> > be all CAPS).
> >
> > Though, I don't see what difference it could make, but why one machine
> > list the files and directories in small letter and the other one in
> > caps.
> 
> One machine is mounting as iso9660; the other is mounting as UDF.  The one 
> mounting as UDF is more correct.  This won't make a difference to dd 
> (since it operates below the file system) but would affect cp, ll, or any 
> other program that required the drive to be mounted.

That would explain but according to my fstab file both should be mount
as iso9660 type;  my x-86 system had entry (showing file in CAP
LETTERS):
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660  

my amd64 fstab entry (showing all small letters):
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660  
/dev/pktcdvd/0   /mnt/cdrw udf
/dev/hdc/mnt/dvdr  iso9660

on amd64 is used:  mount /dev/hdc  /mnt/dvdr   so it should be mounted
as iso9660 the same line x86-system.

> I used to rip DVDs and CDs using dd w/ conv=noerror.  I find I actually get 
> better results with a tool designed to read CDs specifically.  I don't 
> know if it is because they better moderate the speed of the drive, or if 
> they are simply cognizant of the error correction bits on the disk, but 
> I'll never go back to reading CDs or DVDs with dd again.

What program are you using to make iso backup k9copy?  

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Boyd Stephen Smith Jr.
On Thursday 16 March 2006 12:11, Joseph <[EMAIL PROTECTED]> wrote about 
'Re: [gentoo-user] dd if=/dev/dvd of=backup.iso':
> The strange part is that when I mount the same DVD in amd64-machine all
> directory and files are listed in small letters (and I know they should
> be all CAPS).
>
> Though, I don't see what difference it could make, but why one machine
> list the files and directories in small letter and the other one in
> caps.

One machine is mounting as iso9660; the other is mounting as UDF.  The one 
mounting as UDF is more correct.  This won't make a difference to dd 
(since it operates below the file system) but would affect cp, ll, or any 
other program that required the drive to be mounted.

I used to rip DVDs and CDs using dd w/ conv=noerror.  I find I actually get 
better results with a tool designed to read CDs specifically.  I don't 
know if it is because they better moderate the speed of the drive, or if 
they are simply cognizant of the error correction bits on the disk, but 
I'll never go back to reading CDs or DVDs with dd again.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Joseph
On Thu, 2006-03-16 at 16:58 +, Neil Bothwick wrote:
> On Thu, 16 Mar 2006 09:43:53 -0700, Joseph wrote:
> 
> > Good try, thank. But the output is the same, I got only about 846MB out
> > of 4.7Gb DVD and it stopped with Input/output error
> 
> Is it the same place on every disc?

NEW INFORMATION

I've tried the same command 
dd conv=noerror if=/dev/cdroms/cdrom0 of=family.iso
on x86 (different machine) and I was able to copy 2.6Gb to iso file; so
it stopped in different location.

However, in one of your previous email you suggested I try:
# mkisofs -o mydvd.iso /mnt/dvdr/
so I did and the system stopped (on amd64 machine) with Input/output
error. can not read from '/mnt/dvdr/video_ts/vts_01_0.bup'
Following you suggestion 
quote---
Just to flog a dead horse, I suspect that there is indeed some error on
the dvd and that it is in the file video_ts/vts_01_0.bup

It may be that the error is insufficient to matter on playback (after
all, whats a few frames of video between friends, the eye hardly notices
it ), but when the computer actually needs a bitwise copy it barfs?
---end qutoe---

That was good suggestion, so I rebooted the amd64-machine (just to make
sure not process is left running from previous operations), mounted the
DVD:
# mount /dev/hdc /mnt/dvdr  and I've tried to copy that file
'video_ts/vts_01_0.bup' and I could not, I got Input/output error.  
# cp: reading /mnt/dvdr/video_ts/vts_01_0.bup': Input/output error

However, when I repeated the same process on x86-machine it copied just
fine:
# cp /mnt/cdrom/VIDEO_TS/VTS_01_0.BUP .
# ll
total 2759652
-r--r--r--  1 root root 126976 Mar 16 10:34 VTS_01_0.BUP
It copies the same file without any problem 

The strange part is that when I mount the same DVD in amd64-machine all
directory and files are listed in small letters (and I know they should
be all CAPS).
# ll /mnt/cdrom/video_ts/
total 4211042
-r-xr-xr-x  1 root root  12288 Jan 27 12:37 video_ts.bup
-r-xr-xr-x  1 root root  12288 Jan 27 12:37 video_ts.ifo
-r-xr-xr-x  1  root root   114688 Jan 27 12:37 video_ts.bob
-r-xr-xr-x  1  root root   126976 Jan 27 12:33 vts_01_0.bup
...

But when I mount the same DVD on x86-machine it list the directory and
files in CAPS as it should
# ll /mnt/cdrom/VIDEO_TS/
total 4211042
-r--r--r--  1 4294967295 4294967295  12288 Jan 27 12:37 VIDEO_TS.BUP
-r--r--r--  1 4294967295 4294967295  12288 Jan 27 12:37 VIDEO_TS.IFO
-r--r--r--  1 4294967295 4294967295 114688 Jan 27 12:37 VIDEO_TS.VOB
-r--r--r--  1 4294967295 4294967295 126976 Jan 27 12:33 VTS_01_0.BUP
...

Though, I don't see what difference it could make, but why one machine
list the files and directories in small letter and the other one in
caps.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Neil Bothwick
On Thu, 16 Mar 2006 09:43:53 -0700, Joseph wrote:

> Good try, thank. But the output is the same, I got only about 846MB out
> of 4.7Gb DVD and it stopped with Input/output error

Is it the same place on every disc?


-- 
Neil Bothwick

"Ubuntu" is an ancient African word, meaning "I can't configure
Slackware".


signature.asc
Description: PGP signature


Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Joseph
On Thu, 2006-03-16 at 15:24 +0100, Rasmus Andersen wrote:
> On Thu, Mar 16, 2006 at 11:49:00AM +0100, Alex Schuster wrote:
> > Or use dvdisaster (free, get it from http://www.dvdisaster.com/). It  
> > is especially useful for bad disks, and doesn't stop when encountering  
> > an error. 
> 
> I havent followed this thread closely but have the 'conv=noerror' option
> to dd been tried?

Good try, thank. But the output is the same, I got only about 846MB out
of 4.7Gb DVD and it stopped with Input/output error

I don't think that I would ever try to rely on DVD as a backup medium
after my simple experience. 

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Rasmus Andersen
On Thu, Mar 16, 2006 at 11:49:00AM +0100, Alex Schuster wrote:
> Or use dvdisaster (free, get it from http://www.dvdisaster.com/). It  
> is especially useful for bad disks, and doesn't stop when encountering  
> an error. 

I havent followed this thread closely but have the 'conv=noerror' option
to dd been tried?

Cheers,
  Rasmus
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Matthias Bethke
Hi Joseph,
on Wednesday, 2006-03-15 at 15:55:17, you wrote:
> > could be the reader then? Do you have another computer with a dvd drive
> > and 4.7g available space?
> 
> Yes, I've tired on two different systems, one is x86 and the other amd64
> with similar result on both of them; the copying stops at some point and
> doesn't go any further.

Could it be that it's supposed to be like this? Some kiind of copy
protection using bad blocks that are unused in the file system so in
normal use you never run into them, but you do when trying to get an
image? Stuff like this has been common since the C64 age.

cheers!
Matthias
-- 
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0  8DEF 48D9 1700 FAC3 7665


pgpH4hQBOH0zb.pgp
Description: PGP signature


Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-16 Thread Alex Schuster
Joseph writes:

> Is there any limitation in using "dd" to generate backup of DVD (dvd is
> 4.7, unencrypted)?

There should be no limit.

> If I use:
> dd if=/dev/dvd of=backup.iso
> I only get about 2Gb file and it stops or freezes, the disk is bout
> 4.3Gb

Are there any syslog or dmesg messages?

Some ideas:

Try readcd instead of dd, it's in app-cdr/cdrtools.
readcd dev=/dev/dvd -f backup.iso

Or use dvdisaster (free, get it from http://www.dvdisaster.com/). It  
is especially useful for bad disks, and doesn't stop when encountering  
an error. If the image has errors after reading the whole disk, you  
can read the image again, with another drive if possible, and it will  
fill the missing parts. It is a graphical application (with a nice  
rendering of the reading process), but also works on the command line.

Alex
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Ghaith Hachem
This might sound weird but yesterday i was making an iso out of a
700MB cdrom with the cp /dev/hda command it gave an error then i
started gnome cd master and did the image it copied normally it
happened to 2 cds so try that

--
Cheers,
Ghaith

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Iain Buchanan
On Wed, 2006-03-15 at 15:55 -0700, Joseph wrote:
> I can mount the DVD without any problems.  I created the DVD using
> dvd-slideshow and it worked perfectly.
> I can rip VOB's from the DVD using k3b or dvdrip; works in both
> programs. 
> So I can recreate the DVD but what bugs me that I can not make a backup
> to an ISO file using command line.

Have you considered this?:

dd doesn't do any sort of error checking or retrying, therefore the
first hiccup it runs into may make it stop, and that's that.

You could mount it and use mkisofs from the command line?
-- 
Iain Buchanan 

A good name lost is seldom regained.  When character is gone,
all is gone, and one of the richest jewels of life is lost forever.
-- J. Hawes

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Nick Rout

On Wed, 15 Mar 2006 17:24:12 -0700
Joseph wrote:


> 
> Good try, but it didn't work either.
> When, I mount the DVD and try:
> mkisofs -o mydvd.iso /mnt/dvdr/
> I get:
> mkisofs: Input/output error. can not read from
> '/mnt/dvdr/video_ts/vts_01_0.bup'
> 
> I run out of ideas as well how to copy (my own) DVD to iso file.  
> 
> Thanks to all who responded, I'll put this case to rest I think. 

Just to flog a dead horse, I suspect that there is indeed some error on
the dvd and that it is in the file video_ts/vts_01_0.bup

It may be that the error is insufficient to matter on playback (after
all, whats a few frames of video between friends, the eye hardly notices
it ), but when the computer actually needs a bitwise copy it barfs?

> 
> -- 
> #Joseph
> -- 
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Joseph
On Thu, 2006-03-16 at 12:06 +1300, Nick Rout wrote:
> On Wed, 15 Mar 2006 15:55:17 -0700
> Joseph wrote:
> 
> > On Thu, 2006-03-16 at 11:19 +1300, Nick Rout wrote:
> > > On Wed, 15 Mar 2006 15:04:06 -0700
> > > Joseph wrote:
> > > 
> > > > > > If I use:
> > > > > > dd if=/dev/dvd of=backup.iso
> > > > > 
> > > > > First of all, I would add the "bs" option to increase the buffer and 
> > > > > therefore 
> > > > > speed. Something like:
> > > > > dd bs=10 if=/dev/dvd of=backup.iso
> > > > 
> > > > No, this command didn't work either, I got about 700Mb and it quit,
> > > > though the light in the drive was flashing nothing was copied to ISO
> > > > file.
> > > > 
> > > > > 
> > > > > > I only get about 2Gb file and it stops or freezes, the disk is bout
> > > > > > 4.3Gb
> > > > > 
> > > > > That would indicate read errors. Is the dvd scratched or dirty? Wash 
> > > > > it with 
> > > > > lukewarm water and dishwasher liquid and try again.
> > > > 
> > > > DVD is brand new, no scratches. 
> > > 
> > > could be the reader then? Do you have another computer with a dvd drive
> > > and 4.7g available space?
> > 
> > Yes, I've tired on two different systems, one is x86 and the other amd64
> > with similar result on both of them; the copying stops at some point and
> > doesn't go any further.
> > One system has Philips DVD drive and the other one has BenQ DVD 
> > 
> > I can burn perfect DVD every time but getting it back in form of ISO
> > from DVD is a pain - IMPOSSIBLE. 
> > 
> > > these things are fiddly, there are billions of little holes and a laser
> > > light reading them. There are manufacturing tolerances in the reader and
> > > the disk. There are imperfect firmwares in the drives. In short,
> > > sometimes a particular disk and a particular drive just don't get on.
> > > The drives also get old and tired. IMHO you need to be prepared to throw
> > > the drive out after some indeterminate (but not long enough) period and
> > > get a new one.
> > > 
> > > Is this a movie or data? Have you tried just mounting then copying the
> > > files to your hard drive. This might identify where on the disk things
> > > are going wrong. If it is a small or unimportant file you might still
> > > have an effective backup.
> > 
> > I can mount the DVD without any problems.  I created the DVD using
> > dvd-slideshow and it worked perfectly.
> > I can rip VOB's from the DVD using k3b or dvdrip; works in both
> > programs. 
> > So I can recreate the DVD but what bugs me that I can not make a backup
> > to an ISO file using command line.
> 
> OK I see you have considered most of the possibilities i considered.
> 
> how about: 
> 
> mount /dev/dvd /mnt/dvd
> mkisofs -o mydvd.iso /mnt/dvd  
> 
> (disclaimer, other options might be needed. is mkisofs even the right
> program for dvd's? k3b is making me lazy)

Good try, but it didn't work either.
When, I mount the DVD and try:
mkisofs -o mydvd.iso /mnt/dvdr/
I get:
mkisofs: Input/output error. can not read from
'/mnt/dvdr/video_ts/vts_01_0.bup'

I run out of ideas as well how to copy (my own) DVD to iso file.  

Thanks to all who responded, I'll put this case to rest I think. 

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Nick Rout

On Wed, 15 Mar 2006 15:55:17 -0700
Joseph wrote:

> On Thu, 2006-03-16 at 11:19 +1300, Nick Rout wrote:
> > On Wed, 15 Mar 2006 15:04:06 -0700
> > Joseph wrote:
> > 
> > > > > If I use:
> > > > > dd if=/dev/dvd of=backup.iso
> > > > 
> > > > First of all, I would add the "bs" option to increase the buffer and 
> > > > therefore 
> > > > speed. Something like:
> > > > dd bs=10 if=/dev/dvd of=backup.iso
> > > 
> > > No, this command didn't work either, I got about 700Mb and it quit,
> > > though the light in the drive was flashing nothing was copied to ISO
> > > file.
> > > 
> > > > 
> > > > > I only get about 2Gb file and it stops or freezes, the disk is bout
> > > > > 4.3Gb
> > > > 
> > > > That would indicate read errors. Is the dvd scratched or dirty? Wash it 
> > > > with 
> > > > lukewarm water and dishwasher liquid and try again.
> > > 
> > > DVD is brand new, no scratches. 
> > 
> > could be the reader then? Do you have another computer with a dvd drive
> > and 4.7g available space?
> 
> Yes, I've tired on two different systems, one is x86 and the other amd64
> with similar result on both of them; the copying stops at some point and
> doesn't go any further.
> One system has Philips DVD drive and the other one has BenQ DVD 
> 
> I can burn perfect DVD every time but getting it back in form of ISO
> from DVD is a pain - IMPOSSIBLE. 
> 
> > these things are fiddly, there are billions of little holes and a laser
> > light reading them. There are manufacturing tolerances in the reader and
> > the disk. There are imperfect firmwares in the drives. In short,
> > sometimes a particular disk and a particular drive just don't get on.
> > The drives also get old and tired. IMHO you need to be prepared to throw
> > the drive out after some indeterminate (but not long enough) period and
> > get a new one.
> > 
> > Is this a movie or data? Have you tried just mounting then copying the
> > files to your hard drive. This might identify where on the disk things
> > are going wrong. If it is a small or unimportant file you might still
> > have an effective backup.
> 
> I can mount the DVD without any problems.  I created the DVD using
> dvd-slideshow and it worked perfectly.
> I can rip VOB's from the DVD using k3b or dvdrip; works in both
> programs. 
> So I can recreate the DVD but what bugs me that I can not make a backup
> to an ISO file using command line.

OK I see you have considered most of the possibilities i considered.

how about: 

mount /dev/dvd /mnt/dvd
mkisofs -o mydvd.iso /mnt/dvd  

(disclaimer, other options might be needed. is mkisofs even the right
program for dvd's? k3b is making me lazy)


> 
> -- 
> #Joseph
> -- 
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Joseph
On Wed, 2006-03-15 at 14:30 -0800, Eric Bliss wrote:
> On Wednesday 15 March 2006 14:04, Joseph wrote:
> > > > If I use:
> > > > dd if=/dev/dvd of=backup.iso
> > > 
> > > First of all, I would add the "bs" option to increase the buffer and 
> therefore 
> > > speed. Something like:
> > > dd bs=10 if=/dev/dvd of=backup.iso
> > 
> > No, this command didn't work either, I got about 700Mb and it quit,
> > though the light in the drive was flashing nothing was copied to ISO
> > file.
> > 
> > > 
> > > > I only get about 2Gb file and it stops or freezes, the disk is bout
> > > > 4.3Gb
> > > 
> > > That would indicate read errors. Is the dvd scratched or dirty? Wash it 
> with 
> > > lukewarm water and dishwasher liquid and try again.
> > 
> > DVD is brand new, no scratches. 
> > 
> 
> You said earlier that the disk was unencrypted.  Is it a disk that you made, 
> or a disk that you purchased?  I ask because I heard a while back that some 
> DVD manufacturers would create their disks with intensionally bad sectors as 
> a kind of copy protection.  You could be running into a problem with that, if 
> it's a manufactured disk rather than a burned disk.

No, the disk (DVD) IS NOT encrypted, I created is using dvd-slideshow
(some family photos), so the original ISO that I burn to DVD disk was
about 4.3GB.
For curiosity I tried to get it back from DVD to ISO file and I run onto
problems that I can not solve.  

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Joseph
On Thu, 2006-03-16 at 11:19 +1300, Nick Rout wrote:
> On Wed, 15 Mar 2006 15:04:06 -0700
> Joseph wrote:
> 
> > > > If I use:
> > > > dd if=/dev/dvd of=backup.iso
> > > 
> > > First of all, I would add the "bs" option to increase the buffer and 
> > > therefore 
> > > speed. Something like:
> > > dd bs=10 if=/dev/dvd of=backup.iso
> > 
> > No, this command didn't work either, I got about 700Mb and it quit,
> > though the light in the drive was flashing nothing was copied to ISO
> > file.
> > 
> > > 
> > > > I only get about 2Gb file and it stops or freezes, the disk is bout
> > > > 4.3Gb
> > > 
> > > That would indicate read errors. Is the dvd scratched or dirty? Wash it 
> > > with 
> > > lukewarm water and dishwasher liquid and try again.
> > 
> > DVD is brand new, no scratches. 
> 
> could be the reader then? Do you have another computer with a dvd drive
> and 4.7g available space?

Yes, I've tired on two different systems, one is x86 and the other amd64
with similar result on both of them; the copying stops at some point and
doesn't go any further.
One system has Philips DVD drive and the other one has BenQ DVD 

I can burn perfect DVD every time but getting it back in form of ISO
from DVD is a pain - IMPOSSIBLE. 

> these things are fiddly, there are billions of little holes and a laser
> light reading them. There are manufacturing tolerances in the reader and
> the disk. There are imperfect firmwares in the drives. In short,
> sometimes a particular disk and a particular drive just don't get on.
> The drives also get old and tired. IMHO you need to be prepared to throw
> the drive out after some indeterminate (but not long enough) period and
> get a new one.
> 
> Is this a movie or data? Have you tried just mounting then copying the
> files to your hard drive. This might identify where on the disk things
> are going wrong. If it is a small or unimportant file you might still
> have an effective backup.

I can mount the DVD without any problems.  I created the DVD using
dvd-slideshow and it worked perfectly.
I can rip VOB's from the DVD using k3b or dvdrip; works in both
programs. 
So I can recreate the DVD but what bugs me that I can not make a backup
to an ISO file using command line.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Eric Bliss
On Wednesday 15 March 2006 14:04, Joseph wrote:
> > > If I use:
> > > dd if=/dev/dvd of=backup.iso
> > 
> > First of all, I would add the "bs" option to increase the buffer and 
therefore 
> > speed. Something like:
> > dd bs=10 if=/dev/dvd of=backup.iso
> 
> No, this command didn't work either, I got about 700Mb and it quit,
> though the light in the drive was flashing nothing was copied to ISO
> file.
> 
> > 
> > > I only get about 2Gb file and it stops or freezes, the disk is bout
> > > 4.3Gb
> > 
> > That would indicate read errors. Is the dvd scratched or dirty? Wash it 
with 
> > lukewarm water and dishwasher liquid and try again.
> 
> DVD is brand new, no scratches. 
> 

You said earlier that the disk was unencrypted.  Is it a disk that you made, 
or a disk that you purchased?  I ask because I heard a while back that some 
DVD manufacturers would create their disks with intensionally bad sectors as 
a kind of copy protection.  You could be running into a problem with that, if 
it's a manufactured disk rather than a burned disk.

-- 
Eric Bliss
systems design and integration,
CreativeCow.Net
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Neil Bothwick
On Wed, 15 Mar 2006 14:50:59 -0700, Joseph wrote:

> Yes, the disk is unmounted.  I have the same problem on x86 and AMD64. 
> There are no scratches on the disk.

Have you tried another disc? I asked this before but you haven't
mentioned it.


-- 
Neil Bothwick

Time for a diet! -- [NO FLABBIER].


signature.asc
Description: PGP signature


Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Nick Rout

On Wed, 15 Mar 2006 15:04:06 -0700
Joseph wrote:

> > > If I use:
> > > dd if=/dev/dvd of=backup.iso
> > 
> > First of all, I would add the "bs" option to increase the buffer and 
> > therefore 
> > speed. Something like:
> > dd bs=10 if=/dev/dvd of=backup.iso
> 
> No, this command didn't work either, I got about 700Mb and it quit,
> though the light in the drive was flashing nothing was copied to ISO
> file.
> 
> > 
> > > I only get about 2Gb file and it stops or freezes, the disk is bout
> > > 4.3Gb
> > 
> > That would indicate read errors. Is the dvd scratched or dirty? Wash it 
> > with 
> > lukewarm water and dishwasher liquid and try again.
> 
> DVD is brand new, no scratches. 

could be the reader then? Do you have another computer with a dvd drive
and 4.7g available space?

these things are fiddly, there are billions of little holes and a laser
light reading them. There are manufacturing tolerances in the reader and
the disk. There are imperfect firmwares in the drives. In short,
sometimes a particular disk and a particular drive just don't get on.
The drives also get old and tired. IMHO you need to be prepared to throw
the drive out after some indeterminate (but not long enough) period and
get a new one.

Is this a movie or data? Have you tried just mounting then copying the
files to your hard drive. This might identify where on the disk things
are going wrong. If it is a small or unimportant file you might still
have an effective backup.


-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Joseph
> > If I use:
> > dd if=/dev/dvd of=backup.iso
> 
> First of all, I would add the "bs" option to increase the buffer and 
> therefore 
> speed. Something like:
> dd bs=10 if=/dev/dvd of=backup.iso

No, this command didn't work either, I got about 700Mb and it quit,
though the light in the drive was flashing nothing was copied to ISO
file.

> 
> > I only get about 2Gb file and it stops or freezes, the disk is bout
> > 4.3Gb
> 
> That would indicate read errors. Is the dvd scratched or dirty? Wash it with 
> lukewarm water and dishwasher liquid and try again.

DVD is brand new, no scratches. 

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Joseph
On Wed, 2006-03-15 at 10:23 +0100, Harald Arnesen wrote:
> Joseph <[EMAIL PROTECTED]> writes:
> 
> > On Tue, 2006-03-14 at 23:14 +, Neil Bothwick wrote:
> >> On Tue, 14 Mar 2006 15:00:08 -0700, Joseph wrote:
> >> 
> >> > If I use:
> >> > dd if=/dev/dvd of=backup.iso 
> >> > I only get about 2Gb file and it stops or freezes, the disk is bout
> >> > 4.3Gb
> >> 
> >> Is it the same size every time? Is is the same with different discs? It
> >> could be a fault on the disc. I usually use "cp /dev/dvd file.iso" but dd
> >> has always worked for me in the past, albeit slightly slower (even with a
> >> larger block size).
> >
> > Yes, almost the same size.
> > I know there is a file size limit on ext2 but I'm using ext3, so there
> > shouldn't be a problem.
> > If I try "cp /dev/hdc file.iso" I get an error:
> > cp: reading "/dev/hdc' : Input/output error
> 
> Have you verified that your file system supports files larger than 2GB?
> Try the following:
> 
> $ dd if=/dev/zero of=largefile bs=1M count=5000
> -- 
> Hilsen Harald.

Yes, that command worked, it gave me 5Gb file 

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Joseph
On Wed, 2006-03-15 at 18:47 +1300, Glenn Enright wrote:
> On Wednesday 15 March 2006 17:50, Ghaith Hachem wrote:
> > On 3/15/06, Joseph <[EMAIL PROTECTED]> wrote:
> > > If I try "cp /dev/hdc file.iso" I get an error:
> > > cp: reading "/dev/hdc' : Input/output error
> >
> > there's a problem with the disk then it's not reading it
> 
> the disk is unmounted right?

Yes, the disk is unmounted.  I have the same problem on x86 and AMD64. 
There are no scratches on the disk.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-15 Thread Harald Arnesen
Joseph <[EMAIL PROTECTED]> writes:

> On Tue, 2006-03-14 at 23:14 +, Neil Bothwick wrote:
>> On Tue, 14 Mar 2006 15:00:08 -0700, Joseph wrote:
>> 
>> > If I use:
>> > dd if=/dev/dvd of=backup.iso 
>> > I only get about 2Gb file and it stops or freezes, the disk is bout
>> > 4.3Gb
>> 
>> Is it the same size every time? Is is the same with different discs? It
>> could be a fault on the disc. I usually use "cp /dev/dvd file.iso" but dd
>> has always worked for me in the past, albeit slightly slower (even with a
>> larger block size).
>
> Yes, almost the same size.
> I know there is a file size limit on ext2 but I'm using ext3, so there
> shouldn't be a problem.
> If I try "cp /dev/hdc file.iso" I get an error:
> cp: reading "/dev/hdc' : Input/output error

Have you verified that your file system supports files larger than 2GB?
Try the following:

$ dd if=/dev/zero of=largefile bs=1M count=5000
-- 
Hilsen Harald.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-14 Thread Uwe Thiem
On 15 March 2006 00:00, Joseph wrote:
> Is there any limitation in using "dd" to generate backup of DVD (dvd is
> 4.7, unencrypted)?

There is not.

>
> If I use:
> dd if=/dev/dvd of=backup.iso

First of all, I would add the "bs" option to increase the buffer and therefore 
speed. Something like:
dd bs=10 if=/dev/dvd of=backup.iso

> I only get about 2Gb file and it stops or freezes, the disk is bout
> 4.3Gb

That would indicate read errors. Is the dvd scratched or dirty? Wash it with 
lukewarm water and dishwasher liquid and try again.

Also: You have a iso like my.iso that you have burnt to a dvd. Now you read it 
back to back.iso and compare checksums to make sure the dvd has been burnt 
correctly, you will almost always get an error. Reason is that dd reads a 
couple of bytes of trailing garbadge back. :-(

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-14 Thread Glenn Enright
On Wednesday 15 March 2006 17:50, Ghaith Hachem wrote:
> On 3/15/06, Joseph <[EMAIL PROTECTED]> wrote:
> > If I try "cp /dev/hdc file.iso" I get an error:
> > cp: reading "/dev/hdc' : Input/output error
>
> there's a problem with the disk then it's not reading it

the disk is unmounted right?

-- 
Chance is perhaps the work of God when He did not want to sign.
-- Anatole France
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-14 Thread Ghaith Hachem
On 3/15/06, Joseph <[EMAIL PROTECTED]> wrote:

> If I try "cp /dev/hdc file.iso" I get an error:
> cp: reading "/dev/hdc' : Input/output error

there's a problem with the disk then it's not reading it

> --
> #Joseph
> --
> gentoo-user@gentoo.org mailing list
>
>


--
Cheers,
Ghaith

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-14 Thread Joseph
On Tue, 2006-03-14 at 23:14 +, Neil Bothwick wrote:
> On Tue, 14 Mar 2006 15:00:08 -0700, Joseph wrote:
> 
> > If I use:
> > dd if=/dev/dvd of=backup.iso 
> > I only get about 2Gb file and it stops or freezes, the disk is bout
> > 4.3Gb
> 
> Is it the same size every time? Is is the same with different discs? It
> could be a fault on the disc. I usually use "cp /dev/dvd file.iso" but dd
> has always worked for me in the past, albeit slightly slower (even with a
> larger block size).

Yes, almost the same size.
I know there is a file size limit on ext2 but I'm using ext3, so there
shouldn't be a problem.
If I try "cp /dev/hdc file.iso" I get an error:
cp: reading "/dev/hdc' : Input/output error

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-14 Thread Neil Bothwick
On Tue, 14 Mar 2006 15:00:08 -0700, Joseph wrote:

> If I use:
> dd if=/dev/dvd of=backup.iso 
> I only get about 2Gb file and it stops or freezes, the disk is bout
> 4.3Gb

Is it the same size every time? Is is the same with different discs? It
could be a fault on the disc. I usually use "cp /dev/dvd file.iso" but dd
has always worked for me in the past, albeit slightly slower (even with a
larger block size).


-- 
Neil Bothwick

Support bacteria - they're the only culture some people have.


signature.asc
Description: PGP signature


[gentoo-user] dd if=/dev/dvd of=backup.iso

2006-03-14 Thread Joseph
Is there any limitation in using "dd" to generate backup of DVD (dvd is
4.7, unencrypted)?

If I use:
dd if=/dev/dvd of=backup.iso 
I only get about 2Gb file and it stops or freezes, the disk is bout
4.3Gb

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list