- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar & dd problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 11:40 PM
02-08-2006 11:40 PM
tar & dd problem
i've backupped io2 file via tar. Now I want extract io2 not via tar but via dd. The operating system returned me these error:
# tar tv
-rw-r--r-- 0/1 36567531 Feb 9 12:18 2006 io2
drwx------ 0/0 0 Feb 6 15:50 2006 lost+found/
# dd if=/dev/rmt/0 of=/dev/null
read: Not enough space
0+0 records in
0+0 records out
Of course the file system where I restore the io2 file have the right space available.
Thanxs,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 11:59 PM
02-08-2006 11:59 PM
Re: tar & dd problem
where is the file io2 ?
is this a typo?
# dd if=/dev/rmt/0 of=/dev/null
# ll /dev/rmt/0
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:04 AM
02-09-2006 12:04 AM
Re: tar & dd problem
The file backup up using tar can not be extracted using dd. dd does block by block copy and it below file level.
Use tar itself to extract the file
#tar -xvf io2 .
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:07 AM
02-09-2006 12:07 AM
Re: tar & dd problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:07 AM
02-09-2006 12:07 AM
Re: tar & dd problem
If your file is on a tape you must use /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:12 AM
02-09-2006 12:12 AM
Re: tar & dd problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:13 AM
02-09-2006 12:13 AM
Re: tar & dd problem
# mt rew
# tar xvf /dev/rmt/0mn io2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:18 AM
02-09-2006 12:18 AM
Re: tar & dd problem
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 01:36 AM
02-09-2006 01:36 AM
Re: tar & dd problem
Try this:
mt -f /dev/rmt/0mn rew
Then, the following will extract the first "file" (be it tar, fbackup, dump, vxdump format) on the tape:
dd if=/dev/rmt/0mn of=/somefs/tapefile.1 bs=10240
Then test the recovered "raw" file with:
tar tvf /somefs/tapefile.1
Note: if the "tar file" on the tape was backed up with no blocking factor -- its default will be 20 (@ 512bytes). That is why you need to specificy it in your dd command.
If you've multiple "files", then just continue usingwith yur dd'd noting the bllock size of your "files". You may also use the "mt asf/fsf" file positioning commands if you want to go to a particular "file" on your tape.
Hope this helps.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 02:25 AM
02-09-2006 02:25 AM
Re: tar & dd problem
Massimo