General :: Calculate Usable Bytes On A Disk Partition?
Mar 10, 2010
How do you calculate the number of usable bytes on a disk partition? When I do an fdisk -l I get this:
Disk /dev/md0: 192.0 GB, 192069500928 bytes
2 heads, 4 sectors/track, 46891968 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
[code]...
View 7 Replies
ADVERTISEMENT
Feb 17, 2010
I am a brand new member
here is my question :
in a RedHat configuration :
i need to be sure that a partition has been formatted with those parameters code...
View 3 Replies
View Related
May 3, 2011
Mounted second hard disk still report 0 bytes even when files are already deleted in rhel5 . I already checked the lost+found and trash . It only happen that disk space on deleted files cannot be recovered after the disk reach full capacity , but if it does not reach yet its full capacity , deleting files will recover the disk space . The format of the disk I have mounted is ext3 also have tried ntfs using fuse but the same problem , once allowed to reach 0 bytes I can no longer recover space with deleting files and had to reformat and restore the backup
View 4 Replies
View Related
Aug 17, 2010
I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?
View 4 Replies
View Related
Aug 5, 2011
These following ext3 partitions contain identical data. As we can see, the larger the partition size, the more space is required for the same files:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop11 3965777 561064 3199964 15% [...]
/dev/loop19 573029 543843 29186 95% [...]
[code]....
View 2 Replies
View Related
Apr 28, 2011
I was saving a few pictures, and I realized that none of them were actually being saved. I went to my home folder and I noticed that I only had 0 bytes left, then I deleted everything in my trash, got some space back, then it disappeared.
View 3 Replies
View Related
Jan 8, 2011
How do fix my Swap Partition? Last night I added unused space to the main Ubuntu partition. Now I noticed the Swap Partition is always at 0 bytes. I'm using a Sony Laptop, and have enclosed two screenshots. One of the Disk Utility and a system monitor.
View 9 Replies
View Related
Jan 9, 2011
I recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:
Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php include "index.php";?>
icukapi.php file:
PHP Code:
<?php echo "test";?>
My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.
View 1 Replies
View Related
Dec 5, 2010
This question is only partially linux-related, but I accidently typed cp file /dev/sda2 instead of cp file /mnt/sda2. The first 300 bytes or so of the ntfs partition were overwritten and now it can't mount and can't boot. I figured I would try copying the first 4096 bytes from another ntfs partition and see if that gave it enough to at least boot. It didn't and I'm wondering if there's any way to fix this sort of thing easily (without downloading an entire Windows 7 DVD) and what exactly I overwrote that was so important.
View 5 Replies
View Related
Sep 2, 2010
I recently cleared out some old partitions, and "/" was getting full so I made it bigger. It went from about 2Gb to 7Gb.
Now when I boot into my OS I get a dialogue saying:
Code:
The volume "Filesystem root" has only 0 bytes disk space remaining
You can free up disk space by removing unused programs or files, or by moving files to another disk or partition I don't see how this is possible. If anything it should have more free space than it had before. how I might go about diagnosing this issue?
View 9 Replies
View Related
Oct 10, 2010
I have a 2 TB disk in an external SATA dock, formatted with a single ext3 (Linux) partition, which doesn't show up in the Windows 7 Computer Management->Disk Management utility, even as a raw/blank disk. I've verified that there's nothing wrong with the disk by connecting it to my Linux machine and mounting it, and I've verified that the dock is functioning properly by connecting a different FAT32-formatted disk, which mounts flawlessly as expected.I realize that I can't actually read the ext3 partition without additional software (e.g., Ext3IFS), but why doesn't the disk show up at all? Is there some sort of stupid anti-Linux filter built in? Is there any way to force Windows to recognize the disk, so that I can at the very least use direct block access with it?
Background: I want to clone an identical 2 TB disk onto this one. Due to my hardware layout, it's much easier to have the source disk attached to one machine and the destination disk connected to another, and do the clone over the network (the network is not a bottleneck with switched gigabit ethernet), than it is to hook them both up to one machine.(1) I did this once before when both machines were running Linux, but I've since upgraded the destination machine and decided to switch back to Windows for regular desktop use. I've got Cygwin installed, and have verified that the same basic method (dd + nc) will work, but I can't do anything if Windows doesn't even consider the destination disk to exist.I only have one eSATA port on each machine. Opening them up just to do this clone is a rather large annoyance. Also, since this is my backup disk, I'd like to eventually automate the cloning from the active disk to another one that I regularly swap with a third disk that I store off-site.
View 1 Replies
View Related
Feb 17, 2011
USB flash disk partition disappeared as well as partition table I'm not sure about the cause
Code:
root@u# less /var/log/syslog
usb 5-1: New USB device found, idVendor=058f, idProduct=1234
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[code]....
Where did the partition table go? The device had one ext3 partition something around 4GB(size of USB storage device). I need to restore few files from this device.
View 3 Replies
View Related
Apr 27, 2011
I would like to know if is possible extend a partition using one disk. I have 50 GB on /dev/vdf2 and would like to add on:
/dev/vdc1 50G 6.4G 41G 14% /home3
And this partition will have 100G of space..
View 9 Replies
View Related
Mar 14, 2011
When going through my emails that are produced by the cron jobs ran on my Solaris servers, I am receiving a message that states,"/ is 50% full" what can I do to either lower the amount of data on this partition or raise the threshold limits to to stop this message? I would prefer to learn how to lower the amount of data on this disk to bring under my disk quota of 50% in order to stop these emails being produced by the cron job running on this server.
View 1 Replies
View Related
Mar 6, 2010
I'm trying to dual boot pclinux2009 with vista already installed on an acer laptop, but once i get to the partition part of the linux installation the laptop freezes.
View 2 Replies
View Related
Apr 3, 2011
I have just created a usb boot disk so that I can install Fedora 14.I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean bytes and copies these at a time. But how do I know what to set it to?dd if=F14-Live-i686.iso of=/dev/sdb bs=8MIn the above example it is set to 8MB. However could I set this to any value that I want?
View 1 Replies
View Related
Oct 24, 2010
I'm totally new to linux and a more experienced friend advised me to install slackware if I want to get the best possible understanding of how linux works. I've installed slackware but having logged in as root, when I type the command "startx" to load the GUI I get this error message:
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Oct 24 14:40:24 2010
(==) Using config file: "/etc/X11/xorg.conf"
(EE) intel(0): Given depth (4) is not supported by I830 driver
(EE) intel(1): [drm] failed to set drm interface version.
(EE) intel(1): Failed to become DRM master.
[Code]...
View 5 Replies
View Related
Feb 1, 2010
I need to resize a NTFS partition in a disk for which I have an image (dumped with dd).
I mounted it through the loop device on linux:
# losetup -o 32256 /dev/loop0 disk.img # I got the offset from looking at fdisk's output
# mount /tmp/t /dev/loop0
# ls /tmp/t
[content of NTFS partition shows correctly]
# umount /tmp/t
# gparted /dev/loop0
gparted shows me the disk correctly; it just contains one large NTFS partition I want to shrink.
I have it had it running for one hour now.
Question: will this work? There is lots of disk access but the timestamp and size of the underlying file disk.img remain unchanged.
View 1 Replies
View Related
Apr 13, 2010
i have debian system in which i have mounted the OS on a ext-3 system . I have got a partition of 60 gb , which is formatted to ext-2 partition . Even if I mount , i cant write anything into it . How can i change that ? How can I make the disk writable?
View 2 Replies
View Related
May 26, 2009
The partition is formatted to ext3, starting with block 1 on the drive. The mount point for /dev/sdc1 lists 0 files when doing `ls -A` `df -h` shows that the partition has 92MB used. How is this space being used, and how can I free it up?edit: I guess this isn't a newbie question.
View 7 Replies
View Related
Mar 30, 2010
OS: LINUX RHEL5
I want to resize the partition
for example..
my
/u01 is 50 gb.
/u02 is 30 gb.
i need to risize /u02 to 100gb( i have space left of around 60 gb and I need to take 10gb from /u01)
View 1 Replies
View Related
Jan 7, 2009
I'm trying to resize a partition on an IDE hard disk to use the entire disk but can not get more than a 309GB partition. I can get 295, 300, 301, 302GB, etc... fine but start getting problems with anything over 309GB. I get the following error with 310GB or more:
error: block relocator should have relocated 533 Warning: You should reinstall your boot loader before rebooting. Read section 4 of the Parted User documentation for more information. I am using Slackware 12.1, GNU parted 1.8.8, ext2 filesystem.
Some output that may be of use:
root@asus:~# parted /dev/hdb print
Model: ST3500630A (ide)
Disk /dev/hdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
[code].....
View 3 Replies
View Related
Nov 16, 2010
I downloaded an raw SD card image that has two partitions. It caused some file system errors when I tried to dd it directly into an SD card. I am not sure if the card is defective or the image. Is there a way to examine this image without writing it to a physical card? Like trying to mount the partitions separately or checking the tables?
View 2 Replies
View Related
Feb 23, 2011
I'm installing RHEL 4.x to a hard disk that already has windows 7 enterprise installed. I would like to dual-boot both the OSes. The hard drive size is about 220 GB (of which windows 7 occupies about 50 GB).Now, is there any free and friendly tool that I can download to partition this drive ?RHEL comes with a text mode (disk druid) to partition and I could not figure out how to resize the existing windows partition. So, I'm assuming that I need to abort the linux install now and proceed to boot from another CD that contains a good partitioning tool and then later resume boot from RHEL install disk.Also, what should my partitions look like ? What size should they be ? The system is a new LENOVO with 4 GB RAM on a i5 core processor.I know that I will need atleast 5 partitions. right ?1) /boot2) /3) /home4) swap5) /var
View 2 Replies
View Related
Sep 8, 2011
As far as I know hard drives are faster at the beginning of the disk. If this is true, why does Ubuntu put the swap partition to the back of the disk by default?
View 1 Replies
View Related
Jan 6, 2011
I recently installed Linux to run a few Linux based tools on a disk images I have, and I can't seem to copy the disk image over to my ext3 partition.
The particular distibution I'm using is BackTrack 4 r2, which is Ubuntu based. I can't seem to find specifically which version of Ubuntu is being used. The disk image is 108GB. It is currently located on a NTFS partition on a SATA hard drive connected directly to the computer. The ext3 partition is located on a second SATA hard drive connected to the same computer. It has 200GB total. I do not remember exactly how much free space it had but "df -h" showed a lot more than 108GB. The computer has 4GB of RAM and I gave it 8GB of swap space.
At this point it has been running for more than 12 hours. This is far longer than I would expect it to take had I been copying the file under Windows. How ever I do not have much experience with Linux, so if it's supose to take this long please let me know. I am planning on letting it run until I wake up tomorrow.
"cp -v" hasn't been very verbose at all. The only sign I have that indicates the computer is still trying to do something is the HDD light on my chasis that has stayed lit this whole time.
View 4 Replies
View Related
Apr 30, 2010
I have installed 1tb hard drive and would like to partition as follows:
1) / - 20g
2) /swap - 6G
3) /photos /150g
4) /videos /500g
5) /audio /300g
After 2-3 partition an extended partition automatically created in which I am not able to create specified capacity i.e., say I want 150g of /photos partition, the /videos partition is automatically reduced and a free space at the end appears. Some free space is always there which i am not able to understand. Nevertheless i clicked to create, but I get an error viz. 'device not created'.
View 7 Replies
View Related
Mar 3, 2011
I want to install Cent OS5 on my machine. The Hard Disk is SATA. I want to discuss about how to custom partition the hard disk. In the old version there is a drop down list for manual partition the hard disk. like /,boot,swap,var etc etc. In the new version of centos 5 I can not see things like that. During installation process and in partition page there are things like:
Code:
Remove all partitions on selected drives and create default layout.
Remove Linux partitions on selected drives and create default layout.
Use free space on selected drives and create default layout.
Create custom layout.
When I choose custom layout it show me an error message. "An error has occurred-no invalid devices were found on which to create new files system. Please check your hardware for the cause of this problem."
View 1 Replies
View Related
May 13, 2011
I used to be Novell admin/CNE more than nine years. Since Novell sunset, I study myself and move to Linux...... At daily work, I face a lot challenges of Linux. I really need to get help from experienced Linux people. How to clean up disk space on /var partition Red Hat 5.
View 4 Replies
View Related
Mar 10, 2011
Newbie to Linux Ubuntu 10.10. Got the installation done on the wrong disk, How can I move the partition or uninstall?
View 1 Replies
View Related