|
|
Mozy Online Backup: 2GB Free. Automatic. Secure.
Subject: Re: CD-RW-Drive & cdrecord & ATAPI - msg#00113
List: linux.newbie
Ray Olszewski wrote:
<snip>
Others have said a lot here already, but I want to raise more
fundamental puzzlement. I didn't know cdrecord (see below) was even able
to burn to atapi devices under 2.4.x kernels. You might want to report
the error messages in more detail.
<snip>
Hi, Ray:
I am using Slackware v9.1, kernel 2.4.22, and a
"CRW-5224A, ATAPI CD/DVD-ROM drive"
'cdrecord' can 'burn' to ATAPI devices with SCSI emulation.
If append="hdc=ide-scsi" is parsed in lilo.conf during boot
( and you are using lilo as the boot loader
and /dev/hdc is your CDROM-RW device ;-)
then applications that default to using SCSI devices will use
the ATAPI device. Here is a script that I use to burn data to
my ATAPI CDROM-RW device:
#!/bin/bash
#
# /usr/local/bin/burncd.sh
#
cat /usr/local/bin/burncd.sh
echo ""
echo " First argument is <$1>."
echo "Second argument is <$2>."
echo ""
eject -t ; close the CDROM tray
if [ -n $1 ] ; then
if [ -n $2 ] ; then
cdrecord -v dev=0,0,0 fs=64M speed=$2 driveropts=burnproof $1
else
echo "Second argument is burn speed [1 - 52] and must not be null."
fi
else
echo ""
echo "First argument is filename.ext and must not be null."
echo ""
fi
mount /mnt/cdrom && ls -l /mnt/cdrom && umount /mnt/cdrom
echo $1
eject
HTH, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Backup up Linux fileserver via Maxtor External Hard Drive
At 11:31 AM 12/29/2004 -0500, Eve Atley wrote:
We recently purchased a Maxtor External Hard Drive 250gb OneTouchII. We were
considering using this to backup data on our RedHat Linux 9 fileserver,
hooking it directly to this fileserver. One unrelated issue is that the usb
is probably 1.1 while specs are 2.0, though the drive does say it's 1.1
compatible. Second, what issues do we need to resolve in order for a. the
Linux box to read the drive, and b. formatting the unformatted external
drive to work with the Linux box?
Eve -- I waited a bit before replying, in the hope that someone with more
specific knowledge than I can offer would turn up. My own experience with
USB drives is limited to flash drives (those little keychain thingies). But
I suspect that the issues for these USB hard disks are the same, so I'll
tell you what I know in the hope that you will find it helpful.
First, to mount and read the drive, you need a few things set in your
kernel. (This is for 2.4.x kernels; if you use 2.6.x, the details may
differ a bit.)
USB Storage -> Support for USB -> USB mass storage support
needs to be enabled (in kernel or loaded as a module)
In this area, you probably also want to enable
USB Storage -> Support for USB ->Preliminary USB device
filesystem
USB drives are mounted as scsi drives, so basic scsi drive support
needs to me provided, either in kernel or loaded as a set of modules (two,
as I recall). Abd you need the /dev pseudofile entries for scsi devices,
probably just /dev/sda and /dev/sda*
an appropriate filesystem driver needs to be loaded, in the kernel
or as a module; ext2 works fine.
Second, once you have all that set up, you should be able to use the usual
tools to set up your USB drive. It will (probably; I don't know your setup)
show up as /dev/sda, so you can fdisk that device to set up your
partitions, then mkfs.ext2 whatever partitions you choose to set up, then
use whatever you are used to using (cp, tar, whatever) to do the actual
backups.
Third, one thing Linux is never very smart about is noticing when mounted
filesystems are removed. You'll want to be careful to umount any
filesystems on this drive before you disconnect it. (The USB stuff itself
is fine about noticing the connection and disconnection of USB devices.)
And ... this was probably obvious ... you need to umount the partitions
after you connect the device.
Last, the only likely issue your use of USB 1.1 will raise is speed of
packups. If that proves to be an issue for you, and your server is an i86
system, you might want to spend the US$10 or so for a PCI card that
provides USB 2.0.
As I said at the outset, I haven't actually used these drives myself, so
I'm extrapolating hee from my experiences with USB flash. If I've gotten
some details wrong, I do hope that someone will spot them and post a
correction.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.6 - Release Date: 12/28/2004
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Next Message by Date:
click to view message preview
Re: CD-RW-Drive & cdrecord & ATAPI
At 02:17 PM 12/29/2004 -0500, chuck gelm wrote:
Ray Olszewski wrote:
<snip>
Others have said a lot here already, but I want to raise more fundamental
puzzlement. I didn't know cdrecord (see below) was even able to burn to
atapi devices under 2.4.x kernels. You might want to report the error
messages in more detail.
<snip>
Hi, Ray:
I am using Slackware v9.1, kernel 2.4.22, and a
"CRW-5224A, ATAPI CD/DVD-ROM drive"
'cdrecord' can 'burn' to ATAPI devices with SCSI emulation.
Sorry, Chuck. Bad writing on my part. When I wrote the above, I meant to be
referring to writing to atapi devices in native mode. I use scsi emulation
here in pretty much the same way you do and have done so for years.
I was surprised (and still am) that Peter has an ATAPI CD burner running
at all under 2.4.x, unless he is already using SCSI emulation (relevant
since most of the feedback he got was about using SCSI emularion ... if
he's already doing that, it won't help him).
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.6 - Release Date: 12/28/2004
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Previous Message by Thread:
click to view message preview
Re: Backup up Linux fileserver via Maxtor External Hard Drive
chuck gelm wrote:
Eve Atley wrote:
We recently purchased a Maxtor External Hard Drive 250gb OneTouchII.
We were
considering using this to backup data on our RedHat Linux 9 fileserver,
hooking it directly to this fileserver. One unrelated issue is that
the usb
is probably 1.1 while specs are 2.0, though the drive does say it's 1.1
compatible. Second, what issues do we need to resolve in order for a.
the
Linux box to read the drive, and b. formatting the unformatted external
drive to work with the Linux box?
Thanks,
Eve
Hi, Eve:
I recently purchased a USB interface device that accepts a 2.5" hard
drive. It is USB 2.0 & 1.1 compatible, it just runs slower at v1.1
according to the documentation. I inserted one of my linux laptop
driver and plugged it into my USB port of a Slackware v9.1,
kernel 2.4.22, workstation and 'tail /var/log/messages' reported:
Dec 29 05:18:21 server kernel: hub.c: new USB device 00:10.3-6,
assigned address 3
Dec 29 05:18:22 server kernel: scsi2 : SCSI emulation for USB Mass
Storage devices
Dec 29 05:18:35 server kernel: sdb: sdb1 sdb2
Dec 29 05:18:38 server usb.agent[1535]: missing kernel or user mode
driver usb-storage
I am not sure what the last line meant but, knowing that my
1st partition is swap and the 2nd the working partition, I:
mount /dev/sdb2 /mnt/hd
mounts the filesystem at /mnt/hd :-)
'lsmod' |grep -i usb shows that
usb-storage and usbcore
are installed.
As Ray mentioned, if your new drive is unpartitioned and/or unformatted;
I assume that you can use 'fdisk' to partition and mkfs.????
to create a filesystem on it.
HTH, Chuck
-
To unsubscribe from this list: send the line "unsubscribe
linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quote "As Ray mentioned, if your new drive is unpartitioned and/or
unformatted;
I assume that you can use 'fdisk' to partition and mkfs.????
to create a filesystem on it. "
To create a partion, run fdisk and partion the correct device. If you
wish to format the drive with a file system, you can use:
mke2fs /dev/hdXX (sdXX for scsi) for an ext2 partition
mke2fs -j /dev/hdXX for ext3 partition
mkresierfs /dev/hdXX for a reiser3 partion
I personally use an ext2 on my boot partion, and a reiser 3 for
everything else linux.
One more thing, the partitions must have a file system installed in
order for you to mount them.
Jeremy
jkbullfrog@xxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Next Message by Thread:
click to view message preview
Re: CD-RW-Drive & cdrecord & ATAPI
At 02:17 PM 12/29/2004 -0500, chuck gelm wrote:
Ray Olszewski wrote:
<snip>
Others have said a lot here already, but I want to raise more fundamental
puzzlement. I didn't know cdrecord (see below) was even able to burn to
atapi devices under 2.4.x kernels. You might want to report the error
messages in more detail.
<snip>
Hi, Ray:
I am using Slackware v9.1, kernel 2.4.22, and a
"CRW-5224A, ATAPI CD/DVD-ROM drive"
'cdrecord' can 'burn' to ATAPI devices with SCSI emulation.
Sorry, Chuck. Bad writing on my part. When I wrote the above, I meant to be
referring to writing to atapi devices in native mode. I use scsi emulation
here in pretty much the same way you do and have done so for years.
I was surprised (and still am) that Peter has an ATAPI CD burner running
at all under 2.4.x, unless he is already using SCSI emulation (relevant
since most of the feedback he got was about using SCSI emularion ... if
he's already doing that, it won't help him).
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.6 - Release Date: 12/28/2004
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
|
|