General :: Resize 100MB Fat Filesystem To Shrink It From 100MB To 50 MB?
Mar 22, 2010
I'd like to share with you an experiment. look at following steps: create an empty file with a low level tool like "dd"
# dd if=/dev/zero of=fatimage bs=512 count=200K
we now have an about 100MB zeroed file.
format it with mkdosfs (FAT16)
# mkdosfs fatimage
now we have a 100MB fat filesystem. We could check it with dosfsck. Mount it on loop, and copy saome data in it, so that it have a percentage of used space of about 30% (I've tried to copy on it a 30MB data directory). Then umount it.
# mount -o loop -t auto fatimage mountpoint
# cp -a $data mountpoint
# umount mountpoint
check filesystem with dosfscheck. We can notice used clusters and verify bytes used on that filesystem. And we could evalutate a space amuont to shrink the filesystem... why? Just for a didactical test. we could decide to shrink our 100MB filesystem to 50 MB: we have about 30 MB of data cpied on it, so there wil be anout 70 MB of free space. How to resize 100MB fat filesystem to shrink it from 100MB to 50 MB? If I had used an ext2/3 (or ext4 too but I don't know it) or a ntfs filesystem, I would easly been able to shrink it with resize2fs or ntfsresize. But as regards Fat filesystem I don't know any tool that work just on the filesystem.
I've tried, fatresize, but It return a strange error... searching for I suspect it is deeply based on parted and it expects to work on a partition not only on a filesystem like that described above. So is there anyone who knows, which tool I could use to shrink that filesystem? If you wolud like to make the test following above steps and tring to use fatresize program I will be grateful if you report your results there.
View 3 Replies
ADVERTISEMENT
May 8, 2010
I've a Raid0(Stripe) 500GB disk1) 100 MB =System Partiton (primary)2) 100 GB = C: installed on Windows 7 X64 (primary)3) 100 GB = D: (Logical)4) 100 GB = Fedora 12 x86_64After i install the bootloader hang, what to do now?
View 4 Replies
View Related
Nov 10, 2010
how to resize a filesystem in fedora and opensuse does any one know how to resize the filesystem in fedora and opensuse i have succeded in doing it in centos using fdisk i did the following steps i delete the partition using d then i create a new partition using n and then i save the changes then i run resize2fs and its done but in fedora and opensuse its not happening.
View 7 Replies
View Related
Apr 16, 2010
How can I shrink a partition to the filesystem size?I copied my ubuntu installation via dd from a smaller partition to a little bit bigger one to have all the same settings and programs and upgraded the distribution afterwards. Now the filesystem is smaller than the partition size. It would be nice to have both partitions have the same size so I could copy back the newer distribution someday ...GParted recognizes the new partition as 27 GB, the filesystem is just 25 GB.Is there a nice way to resize the partition to exact the size of the filesystem so that the filesystems remains untouched and no data might me lost?
View 4 Replies
View Related
Aug 6, 2010
I need to resize an ext4 filesystem partition, How can I do it being sure it wont get f#@ked up?
Is it safe to do it using a gparted live cd?
View 3 Replies
View Related
Jun 15, 2011
Each time I run "zypper update" on a SUSE 11.1 server it causes /var/lib/rpm/Packages to grow by a few KB even though there are no new updates. Since a cron runs this a couple of times a day the file is almost 400MB on one of my servers. I'd like to shrink the file back to a reasonable size before I run out of space on my /var partition.
View 3 Replies
View Related
Sep 16, 2009
My AWSTATS is not updating correctly. Upon closer look I noticed that the access_log file is already >300MB. logrotate was not running. Now I have enabled log rotate. However, it's not touching this existing access_log file. Is there a way for me to manually split and rotate this file into 3 100MB files, access_log.1 access_log.2 and access_log.3? I tried running logrotate (logrotate /home/user/httpd/access_log) from console and it's throwing Segmentation fault.
View 9 Replies
View Related
Feb 12, 2011
I would like to shrink my os partition without messing with it's data, to make room for a 2nd os. Will this happen if I command Gparted to Resize?
View 2 Replies
View Related
Mar 11, 2011
I am trying to mount a file image, like this
mount -o loop /tmp/apps.img /media/apps
But I get the following:
mount: you must specify the filesystem type
I try ext3:
mount -o loop /tmp/apps.img /media/apps -t ext3
dmesg says:
error: can't find ext3 filesystem on dev loop6.
I've also tried ext2, vfat etc. How can I detect the filesystem type of apps.img?
View 2 Replies
View Related
Mar 24, 2010
I've had a look at some similar threads but as I'm very new to linux they're already a bit technical for me. Sorry, this calls for someone with patience. I gather from other threads that disconnecting an external drive without unmounting is a no-no, and this seems to be the likely cause. Now the disk is read only and I'm unable to change any settings through the usual control panel on ubuntu. I'm just not familiar with the terminal instructions. I tried to cut and past a few command lines from other threads but I got some warnings that proceding could damage data. Like this one: WARNING! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.
View 5 Replies
View Related
May 18, 2011
I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:
*/dev/sda1 contains file system w/errors, check forced it then goes on to say..
*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message
*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage
*Would you like to continue (y/n)
Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.
Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?
View 2 Replies
View Related
Mar 27, 2010
When I try to boot to OpenSUSE I get the following error during boot-up: unknown filesystem type 'reiserfs' could not mount root filesystem - exiting to /bin/sh$
This only started happening quite recently - before this I could boot to Linux quite happily.
View 6 Replies
View Related
Jul 9, 2010
I have a following problem: Recently my drive with Ubuntu 9.4 has mysteriously stopped working, i.e. when I switch the computer on it informs me that GRUB didn't find the filesystem. Well, I suppose it happens.
First, I though it was due to the drive dying, but I popped it in an external enclosure and HDTune told me the drive was fine. Wanting to recover the files on the drive before reinstalling I first tried to mount it in said external enclosure under Windows (I have Win Ext2 driver installed which used to work just fine). This time, however, drive gets assigned a letter but upon opening it Windows popped up an error saying that the drive was not formatted and whether I would like to format it then.
Unfazed by this streak of failures I tried to mount it under Linux but, alas, to no avail. I might have tried every single -t operator under mount command but it still won't budge and let me mount.
View 5 Replies
View Related
Apr 22, 2011
I'm having issues trying to use dvd shrink with wine, the problem is everytime I click on the dvd shrink icon nothing happens it doesn't start I think have something to do with security settings, anyone having the same problem?
View 2 Replies
View Related
Dec 14, 2010
I have a partition, which is 32GB and is mounted to / of the archlinux distribution.I want to create another partition, I need about 5GB and I want to take them from this partition.If I use parted to resize the partition will I lose any files?
View 5 Replies
View Related
Jun 1, 2011
I am currently running Ubuntu 11.04 (narwhal), dualbooting with Windows 7. When I installed ubuntu, i gave it a small(er) partition size for it to use (10gb total for swap and main partition). I now find I have run out of room on my Ubuntu partition, and want to (if possible) shrink down my Windows partioion and move some of that freed space to Ubuntu to expand it.I tried to use gParted from a live Ubuntu CD, but I can't seem to move any unused space into the Ubuntu partitions. Am i doing something wrong?
View 2 Replies
View Related
Apr 22, 2010
I have a dual boot system on my Laptop running Arch Linux and Windows XP. I have the following setup on my Laptop.
View 2 Replies
View Related
Nov 30, 2010
So I have a partition I wanna make smaller. I can use GParted but this is not secure. Even with backup - there are tons of personal files, I can't check 'em all if they are correct after resizing. So I thought maybe I can create a dir on another machine and do something like
Code:
cp -a / /mnt/0 # which is a mounted directory on another machine
and after repartitioning HDD get everithing back this way. Will it work?
View 8 Replies
View Related
Jul 24, 2009
GParted, and the Win7 partition editor before installing won't let me shrink it. Parted Magic was no help, wouldn't even work.
View 2 Replies
View Related
May 21, 2010
does anyone happen to know if there is a an application equivalent to dvd shrink?
View 5 Replies
View Related
Aug 22, 2010
Just installed Fedora 13. And just as i finished installing, recovering backup and configuring everything. I realized that i forgot to make an extra partition (for experimenting with other distros).
During the Fedora installation i chose to include all three hard drives in the file system. So now sda, sdb and sdc are all included in the lvm group.
Found this thread in the forum: [URL]
Can i follow these steps to shrink the partition on sdc without damaging my current fedora installation? Can i run the commands straight from the shell, or do i need to boot up from a livecd?
View 7 Replies
View Related
May 9, 2010
I have somehow lost the ability to shrink my windows to the panel on my desktop and I am not sure how to fix this. does any one know how to fix this?
View 1 Replies
View Related
Jun 24, 2010
Here is screenshot showing my current partition in Gparted.
Screenshot-1.jpg
What I want to do is shrink the one (Ubuntu) and extend the other (XP) so that that they are more or less the same size. How?
View 7 Replies
View Related
Sep 22, 2010
Well... I've been givin this task, to make a script that shrinks the /dev/sda1 partition...generally my scripts is working.. it just destroys all data on the sda1 partition when it gets shrinked... i still dont get why =PYou see... i have to shrink the partition sda1 ( with ubuntu 10.04.1 ), but with the installation intact, through a script...I boot via the ubunto live cd, use my script, and my new partition sda3 is created perfectly as ext4.But as i mentioned earliere, data is lost on sda1
My script :
#!/bin/bash
clear
[code]....
View 8 Replies
View Related
Jul 11, 2010
I just installed centos 5.5 on my hd and now I want to shrink the hd so i can install windows. Gpart shows /dev/sda1 which is ext3 (/boot), and /dev/sda2 which is lvm2. But it doesn't let me resize the lvm2 partition.
View 1 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
Jul 2, 2011
I want to increase the size of my Linux partition (yellow and highlighted in image), which is situated in an extended partition, along with my biggest partition.
When I try to select the options from any partitioning software (EASUS, Paragon, Gparted) the option to resize is not available (or can't enlarge).
For example in the Paragon Hard Disk Manager, I can't add free space before the partition, even if I first shrink the "G:" partition, then try to enlarge the one with Linux.
Do you know what's happening here? Why am I not allowed to resize the partition?
View 2 Replies
View Related
Mar 21, 2009
Computer hardware is not my bag. I accidentally installed ubuntu on external F drive, thinking it was C drive, unaware that ubuntu installs on drive with most available space. Installation involved partitioning the drive in about half. So, before I install it on C drive, I want to restore my F drive. I deleted partition using XP Disk Management tool and tried to use gParted on Parted Magic live boot cd to resize remaining partition that contains my data. But it doesn't seem able to expand the good partition to reclaim the 'unallocated' space. How do I accomplish this? Must I backup and reformat?
View 9 Replies
View Related
Jan 19, 2010
I'm currently in the process of remove a drive from an lvm. I am following this guide
[URL]
and to be honest I have also posted this question at [URL] but I have a fair amount of data at stake here and really need to make sure I'm acting safely. This is certainly not a place to button mash or guess.this is the 2nd drive that I am removing, the first one went off without a problem.However, I just received this error
Code:
resize2fs: Can't read next inode while trying to resize /dev/vg0/lvol0
and I'm not sure what it means or where to go from here. The entire output is
Code:
root@dude:/mnt# resize2fs -p /dev/vg0/lvol0 4466524456k
resize2fs 1.41.4 (27-Jan-2009)
Resizing the filesystem on /dev/vg0/lvol0 to 1116631114 (4k) blocks.
[code]....
View 14 Replies
View Related
Sep 20, 2010
I installed linux to my whole hard drive. I want to make it a little smaller to dual boot windows just for games. Gparted wont let me resize my partitions at all.
View 5 Replies
View Related