- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Create DAT file
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
Discussions
Discussions
Forums
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
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
тАО12-31-2009 02:35 PM
тАО12-31-2009 02:35 PM
Re: Create DAT file
# tar xvzf ramdisk.dat -C /mnt/ramdisk
# ls -l /mnt/ramdisk
total 24
drwxr-xr-x 2 root <<<<<<< current 1024 Aug 15 2007 bin
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 dev
drwxr-xr-x 7 root <<<<<<< current 512 Aug 15 2007 etc
-rwxr-xr-x 1 root <<<<<<< current 272 Aug 14 2007 init
drwxr-xr-x 3 root <<<<<<< current 2048 Aug 15 2007 lib
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 mnt
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 proc
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 sbin
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 sys
drwxrwxr-x 2 root <<<<<<< current 512 Aug 15 2007 tmp
drwxr-xr-x 3 root <<<<<<< current 512 Aug 15 2007 usr
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2010 03:56 PM
тАО01-02-2010 03:56 PM
Re: Create DAT file
# tar xvzf ramdisk.dat -C /mnt/ramdisk
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2010 04:23 PM
тАО01-02-2010 04:23 PM
Re: Create DAT file
> file works only under freeBSD, it doesn't
> work under linux:
It _might_ be interesting if we knew which
"tar" programs were involved.
tar --version
(And if we knew that you were working with
the same data in both cases.)
> # tar xvzf ramdisk.dat -C /mnt/ramdisk
Probably not where I'd put something other
than a mount point for a file system, but
it's your system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2010 04:35 PM
тАО01-02-2010 04:35 PM
Re: Create DAT file
freeBSD:
# tar --version
bsdtar 2.2.5 - libarchive 2.2.4
Debian Lenny:
# tar --version
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 10:59 PM
тАО01-04-2010 10:59 PM
Re: Create DAT file
initrd / ramdisk images are gzip'd CPIO files.
To extract 'ramdisk.dat':
tmp]# mkdir image; cd image
image]# gzip -cd ../ramdisk.dat | cpio -vidum
To re-create the ramdisk image:
image]# find . -print | cpio -ocv | gzip -9 > ../ramdisk-new.dat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 08:16 AM
тАО01-05-2010 08:16 AM
Re: Create DAT file
linux:/tmp# mkdir image; cd image
linux:/tmp/image# gzip -cd /home/ramdisk/ramdisk.dat | cpio -vidum
and the linux server doesn't start anymore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 01:21 PM
тАО01-05-2010 01:21 PM
Re: Create DAT file
I don't recall having been shown the contents
of this cpio archive ("cpio -tv"), so I know
nothing, but if it contained absolute paths
instead of relative paths, then restoring it
(with "-u") might have overwritten a
directory like, say, "/dev", with
inappropriate data, and that could make a
system unusable.
- « Previous
-
- 1
- 2
- Next »