Formatting new tape cartridge ...

Posted on 2004-11-23
Last Modified: 2013-12-15
Hi Experts,
Do I need to format the new tape cartridge(4mm DDS-120) used for taking backup in SONY SDT 9000 Tape Drive on Red Hat Linux 7.2 server ?
Actually, I tried formatting using mkfs and got following message:
mkfs.ext2 /dev/st0
/dev/st0 is not a block special device.
Proceed anyway (y/n) y
mkfs.ext2 : Device size reported to be zero. Invalid partition specified or partition table wasn't reread after running fdisk due to modified partition being busy and in use. You may need to re-read your partiton table.

I booted and even changed the tape cartridge but git the same message ?
Thanks ...
Question by:mn210
    LVL 38

    Accepted Solution


       You don't need to format the tape. But you can use the Tape Vendor's utility to do it. Change SONY website.
    To use tape, you need to use "tar" or "mt" command. For example (as root),
    to erase the type.
    # mt -erase


    LVL 38

    Expert Comment

    > Change SONY website
    Check Sony website.
    LVL 12

    Expert Comment

    I think I reply to you on here unless you still got problem of using the fdisk.

    and yes Sony might have the tool, but normally it's for Windows.

    Since the tape normally in FAT32 format and when you reformat it by mkfs.ext2 there will be problem unless you recreate the partition using the fdisk.

    and normally you can backup the things in FAT32 as wesly_chen suggested using tar or mt, but you are using backup script, so it's better to have your script posted either here or so that we can have more idea.

    Author Comment

    I tried fdisk /dev/st0 ( with the new tape in the tape drive)  and got message - unable to read.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now