LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting a SCSI drive to image it. (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-a-scsi-drive-to-image-it-210153/)

jhill 07-27-2004 05:26 AM

Mounting a SCSI drive to image it.
 
I am currently in the process of setting up a server with a SCSI hard disk. This is the only drive in the machine. I want to be able to image some of the partitions on this drive to allow for an easy system restore.

I have two drive imaging packages. Partition Magic's Drive Image 5 which will read EXT2 (not EXT3 or Reiser) but not write to it meaning that I will have to create a FAT/NTFS partition to write to solely for the created image files.

I also have Paragon's Drive Backup 5.0 which claims to read and write to all linux filesystems. It boots of a CD into it's own linux OS. This seems to work fine on my dual boot machine with an IDE hard disk meaning that I can see all the drives. When I try it on the server machine with a SCSI hard disk it says that there is no Hard Drive installed!?

So, getting to my questions...

I am struggling to mount the drive from the command line. What is the SCSI device called? Is it sda1, because I can't see that in /dev/?
I have
  • /dev/scd0
  • /dev/scsi/host0/bus0/target0/lun0/+cd
  • /dev/scsi/host0/bus0/target0/lun0/-generic

If I locate the device where do I mount it?

Thank you.

PS If anyone has any recommendations for alternative imaging software I would love to hear them.

Andrew Benton 07-27-2004 06:30 AM

If it's the only hard disk on the machine, how can you not know what it's called? Where is your root partition mounted? What does it say in /etc/fstab ?
As for software to image a partition, what's wrong with good old tar?
tar cjf folder.tar.bz2 folder
That command will create a tar.bz2 archive of the folder you name, so if you have a partition mounted at /mnt/example
cd /mnt
tar cjf example.tar.bz2 example
then to expand that somewhere else, mount a different partition on /mnt/example then
cd /mnt
tar xjf example.tar.bz2


All times are GMT -5. The time now is 09:28 AM.