Programming :: Provide A Block Size To Open An Archive?

Jul 12, 2011

Here [URL].. it says that you need to provide a block size to open an archive. What does that mean, and what would be a good number to use?

View 1 Replies


ADVERTISEMENT

Programming :: C Program - Getting The Raw Size Of A Block Device

Oct 16, 2010

How do you go about getting the raw size of a block device under Linux from within a C program? And I mean the raw size of the block device itself, not a file system that may or may not be installed on it. And I'd like to be able to get the raw size of any block device, from hard drives (e.g., /dev/sda) to LVM partitions (/dev/mapper/vg0-home) to loop devices to anything else that is a Linux block device.

View 3 Replies View Related

Programming :: Provide Password Through Script?

Aug 21, 2010

I want to automate one script which involves the ssh to other server using another user and then execute command. I want it to be unattended. But now when I ssh it prompts for the password. Is there any facility where I can provide password to the script and and script will run without prompting?

View 2 Replies View Related

Ubuntu :: Command To Get Block Size?

Mar 1, 2010

In a book, I read tha cmchk command is used to get the disk block size. But in Ubuntu, it is not allowed as command is not available.Can some body tell me what is its equivalent in Ubuntu.

View 4 Replies View Related

SUSE :: Change The HD Block Size

Nov 24, 2010

Does anyone have a guide/instructions to change the Block Size on a Linux disk from 4096 bytes to 1mb or more?

View 2 Replies View Related

Programming :: GDB Doesn't Provide The Correct Line In The Source Code

Jan 23, 2011

I found a strange problem when I use gdb in eclipse to debug. When I step in the program, the register RIP(I'm using x86_64 machine and that's EIP in 32 bit mode) shows correctly but the line stepping in the source code may be far from the correct line. For example, when there is no loop in the source code, the RIP keeps on increasing and the current instruction pointer goes back to several lines back. I'm sure the source code is the right one because I when I checked the memory and local variables after several lines the values are all correct. The source code has many empty lines and does it matters with GDB?

View 3 Replies View Related

Debian :: Du Command Without 1024 Block Size

Aug 20, 2011

i'm calculating the size of directories using "du"

PHP: function du($path)
{
exec ('du -sb ' . $path, $res[]);
$size = $res[0][0];

[Code].....

But then again, it doesn't calculate the actual file size, but rather a size aligned to 1024 bytes just as Windows does that with 4096 bytes cluster size. Is there a way to calculate the actual file size? eg. 1021 bytes

View 7 Replies View Related

General :: Dd Block Input/output Size?

Mar 8, 2010

I'm trying trying to understand dd, and I'd like to know why frequently do we have to use a block read/write size, like "dd bs=1024", "dd ibs=512"... If it executes the operation byte by byte, isn't it irrelevant? What is this block size then?

View 6 Replies View Related

Ubuntu / Apple :: How To Open A .sitx Archive

Oct 13, 2010

I received a .sitx archive and cannot yet find a way to open the archive. Anyone successful at opening a .sitx? How did you do it? What did you use?

I have searched through [URL] without success. It is a guide to switching from Mac to Linux.

View 3 Replies View Related

Ubuntu :: Open Every Directory In ARCHIVE MANAGER: C?

Nov 15, 2010

Every shortcut... every program... every link... everything opens in Archive Manager. And then it reports that the archive is not supported... I gotta launch everything directory related through a terminal just to get to navigate through a window manager.

View 2 Replies View Related

Ubuntu :: Open A 7z Multi Volume Archive From Gui?

Mar 6, 2011

Does anyone know of a way to open a 7z multi volume archive from gui?

View 2 Replies View Related

General :: Block Size For Disk Cloning With Diskdump (dd)?

Jan 17, 2011

I use dd in its simplest form to clone a hard drive dd if=INPUT of=OUTPUT However, I read in the manpage that dd knows a blocksize parameter. I was wondering whether there is an optimal value for the blocksize parameter that will speed up the cloning procedure?

View 4 Replies View Related

General :: Cannot Mount Ext4 Fs With Block Size Of 65536

Feb 5, 2011

I am doing some benchmarking on EXT4 performance on Compact Flash media. I have created an ext4 fs with block size of 65536. however I cannot mount it on ubuntu-10.10-netbook-i386. (it is already mounting ext4 fs with 4096 bytes of block sizes) According to my readings on ext4 it should allow such big block sized fs. I want to hear your comments.

[Code]...

View 2 Replies View Related

Ubuntu :: Mounting NTFS Changing The Block Size?

Mar 31, 2010

I have reformatted my hard drive with allocation size 64K for a better performance on my WDTV HD media player(dealing with large files). When I mount this drive on Linux, the mount tells me that "blksize=4096".If I keep writing files usinghis default etting(blksize=4096) to my NTFS formatted hard drive, will my WDTV be able to benefit from the performance improvement of 64k allocation size ? Should I try and mount my hard drive with a larger blksize ?I did some research on google but couldn't find an option to increase the blksize when mounting an NTFS pre-formatted drive.

View 1 Replies View Related

General :: Block Size Explanation In Plain English?

Apr 8, 2011

what block size means in plain English? I know block size 4k has 2 TB of file size limit and 1024 has around 17 GB. How do they calculate this?

View 3 Replies View Related

General :: Mount An NTFS Drive Which Has A Different Block Size?

Mar 31, 2010

I have reformatted my hard drive with allocation size 64K(formatted on windows with 64k setting) for a better performance on my WDTV HD media player(dealing with large files).When I mount this drive on Linux, the properties tells me that"blksize=4096".If I keep writing files using this default setting(blksize=4096) to my NTFS formatted hard drive, will my WDTV be able to benefit from the performance improvement of 64k allocation size ?I am confused, Does it have anything to do with "blksize=4096". ?Should I try and mount my hard drive with a larger blksize ?I did some research on google but couldn't find an option to increase the blksize when mounting an NTFS pre-formatted drive

View 1 Replies View Related

Ubuntu :: Archive Manager Unable To Open Pdf Files

Nov 7, 2010

surprisingly come across this file that the ubuntu archive manager is simply unable to unpack.these are some articles that i am trying to download.strangely i have never heard of the format and the page asks me to download "stuffit expander" to allow me to view the pdf files.
however when i download the file saving it on the desktop, and try to open it, archive manager is simply unable to do so!this is the title of the downloaded file -

VOL13_NO3_4.sit
and its 1.3 MB

and i am as of now unable to open it in any way.

View 9 Replies View Related

Ubuntu :: Unable To Open Rar Files - Archive Type Is Not Supported

Jul 9, 2010

I downloaded a rar file but it's not working with Archive Manager says "Archive type is not supported"

View 5 Replies View Related

Programming :: Bash/Perl Script - Provide List Of Hosts To Choose From And Ssh To Chosen Host?

Apr 6, 2010

I'm not sure if this is best done in Perl or Bash. I'm thinking surely someone else has created something close to what I'm looking for. The results of the script would be that someone would kick off "linux_hosts.sh" r whatever you want to call it, then a top "folder" of options (with hosts contained within each of these top menu choices), then, based on which number corresponds to that top level, they're presented with a set of linux hosts that are relevant to that top level name. Example:

$ linux_hosts.sh
1. VMware hosts 4. Private Domain
2. ESX servers 5. Red Hat boxes

[code]...

View 4 Replies View Related

General :: Cannot Mount Hard Disk: Block Count Exceeds Size Of Device

May 11, 2011

I have one hard disk (call her HDA) that contains nothing but a single ext4 partition containing a backup of all my important data. Last night I did a clean install of Ubuntu 10.10 on my primary hard disk (call her HDB) and from there proceeded to upgrade directly to Ubuntu 11.04 upgrade. In 10.10, I was able to read HDA just fine. However after the upgrade, I can no longer mount this drive. When mounting from file browser:

Code:

Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sda,missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so The end of dmesg said the following:

Code:

dmesg | tail
[ 82.130904] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks)

my hard disk has a block count greater than the size of my device. I've done my background searching on this and tried a command line utility I've never heard of before:

Code:

# sudo e2fsck /dev/sda
e2fsck 1.41.14 (22-Dec-2010)
The filesystem size (according to the superblock) is 122096646 blocks
The physical size of the device is 122096381 blocks

[code]....

this is as far as I've gotten. This drive holds over a decade's worth of work for me and is extremely valuable. I really didn't think that the Ubuntu upgrade process would mess with this drive, seeing as the Ubuntu install was contained on an entirely different drive. What is it that I need to do to restore my drive to working status?

View 9 Replies View Related

General :: Generate Random List And Determine Size Of Arbitrary Block Of Files In Dir?

Mar 4, 2010

I want to generate a temporary random list from a directory of files and then determine the size of an arbitrary block of files from this list (say 1-25 or 26-50) and add their names to a file along with some other info for each name. I can generate a random list with file sizes like this: ls -l | sort -R | cut -d " " -f 6 but i'm not sure how to add up the sizes of just a certain block of these files and at the same time save the file names.

View 2 Replies View Related

Ubuntu :: Zip File Gvfsd-archive / Archive Mounter Read Write Mode

Dec 6, 2010

I'd like to ask about archive mounter feature, can I mount zip file with read write mode? can gvfsd-archive do that?, or I must use fuse-zip to mount it? If I must use fuse-zip, how I wrap it so I can use it via nautilus or via gvfs-fuse-daemon

View 4 Replies View Related

Programming :: Could Not Read Symbols - Archive Has No Index

Apr 2, 2010

I am trying to port c & c++ open source code onto embedded target(MIPS).It compiles fine on x86/RH4. When I try embedded platform specific tool chain as follows, I get following error:

I tried different combinations. It did not help. My idea is to port an open source code that works fine on X86/Linux to an embedded target based on MIPS.

View 4 Replies View Related

Programming :: Warning: This System Can Not Link To Static Lib Archive

Jan 27, 2010

I'm trying to link 'aubio' (a lib) and its failing on one of ts dep's with this error.

Code:

$ make
Making all in src
make[1]: Entering directory `/home/John/Externals/aubio/aubio-0.3.2/src'
make all-am

[code]....

"Warning: This system can not link to static lib archive /usr/local/lib/libff"

I've configured/make/make installed fftw and its doing just fine in the usr/lib folder, so I'm at a loss at how to fix this. Do I need to build fftw again using some kind of shared make switch? I couldn't find any referance about that.

View 3 Replies View Related

Programming :: Ar - .libs/libbfd.a - Error Reading Archive.o - File Truncated

May 30, 2010

So the above is the error message I am receiving when trying to compile (at make stage when error received) binutils 2.20.1. I am compiling in Virtualbox and the base machine is SourceMage 64bit.

View 4 Replies View Related

Programming :: BASH Read Text List Zip Files Into A Single Archive?

Jul 22, 2010

AKA "zipping on the fly .. the slow-as-molasses way." The list includes full pathnames to each file, and they're all in subfolders of the same parent folder (which, unfortunately, is not the root folder of the drive or system on which the files reside). A cleaned-up and radio-ready portion of the list looks like

Quote:

.../taiga/ahqr-va-choyvp/bv0884-073.jpg
.../taiga/ahqr-va-choyvp/bv2635-073.jpg
.../taiga/ahqr-va-choyvp/bv3067-175.jpg

[code]....

What I'd like to be able to do is zip all the files in the list into a single archive, to avoid the step of having to copy them to the same location (presumably another folder on the HD) and then zip that folder. I'm more inclined to make provisions about extracting to a single folder at some other time. Is this possible in BASH, or would I have to consider a faster, more robust scripting language such as python or perl?

View 8 Replies View Related

OpenSUSE Hardware :: No Application That Can Open Type Block Device (inode/blockdevice)?

Jul 21, 2010

I'm having trouble mounting hard drives and partitions - and am rather nervous about using Yast partitioner to do this. Is there something that would tell me about mount points in Yast partitioner? So far I haven't been able to find that information anywhere. I don't want to lose information on existing drives and partitions but do want to be able to access them.Some of them appear under disk information in "My Computer" but if I try to mount them I get this error message.There is no application installed that can open files of the type block device (inode/blockdevice).I was trying to edit fstab,his didn't seem straightforward either. I've been hacking this about in other Linux distros - so not entirely clueless

View 6 Replies View Related

Ubuntu :: Open A Document In A3 Size?

Mar 9, 2010

how can I open a document in A3 size?

View 1 Replies View Related

Ubuntu :: Open A Document In A4 Size In Openoffice.org 3.0?

Mar 15, 2010

I want to open a document in A4 size in openoffice.org 3.0.How can I do it?

View 1 Replies View Related

General :: Get Error "does Not Look Like A Tar Archive" When Attempt To Verify An Archive Using Tar?

Jul 13, 2011

I am new to the world of linux and when attempting to verify a tar archive I am displayed the following error. When running the command tar cvfW archivename.tar filename directoryname does not yield any errors.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved