General :: /var On SD Card :: Ext2 .vs. Ext3 .vs. Jfs .vs. Jffs2?
Apr 22, 2011
We are running debian off of an SD card and want to know what's best for /var?
- Plenty of room on 2GB SD card, so do we, make /var as large as possible (everything else is read only) to reduce block overwrites, or do we make /var as small as possible, hopefully reducing the load 'pdflush' places on the 200 Mhz system?
That said, why not ext2? Is there damage that can happen in /var due to insta-crash or power loss that will prevent proper system function? We heard ext4 is more optimized, but ext4 on 2.6.29, not sure.
If we must use a journaled file system for /var, then which is lowest load on system, or "better": jfs, ext3, jffs2 ...
I would like to convert my /tmp and /boot partitions from Ext3 to Ext2 on my Arch Linux setup. I don't see any use in having journaling for either partition. I want to make sure that I have the right steps lined up so could someone verify that this is correct (from a live cd):
Code: #sudo tune2fs -O ^has_journal /dev/sda7 #sudo e2fsck /dev/sda7 #sudo tune2fs -O ^has_journal /dev/sda5 #sudo e2fsck /dev/sda5 I then edit /etc/fstab to reflect these changes (ext3 to ext2 for both lines)
Does it matter what order I do it in (/dev/sda7 is /tmp and /dev/sda5 is /boot).
i m not able to copy a file over 16 gigs on an EXT2 or EXT3 partition. Is there a way to do this. I even tried to split my iso file too. I splitted my iso file in 4 files then copy them on the ext2 or ext3 partition. But as soon as I was trying to join the files together it never went over 16 gigs. Actually it stops at 16,843,020 kb exactly. is there a limit for those partitions or is there an another way to see my 20gigs iso file in one piece?
I have ext3 partition mounted on /mnt/shared/ as follows
Code:
Permissions above are of the actual mounted fs.
Goal is to have all files created on the fs 1) to belong to group 'users' 2) to have this groups permissions set to rw (rwx for directories) so that all users who belong to group 'users' have full read/write access to data and everyone else to have only read access.
Now because of setgid bit (s) in group permissions every file created has group 'users' and additionally setgid bit is set for directories. Because every users umask by default (on my system) is set to 0022 all created files will have permissions 644 for ordinary files and 755 for directories.
Net result of above means that users A and B who both belong to group 'users' won't be able to modify files created by the other.
So how can I make files created on the fs to be created always with umask 0002 WITHOUT changing default umask for users that is used elsewhere (like in their home directory) ?
I am planning on dual-booting Windows XP and Ubuntu on a new laptop, and because I have a program that lets me mount an ext2 filesystem on Windows, I was thinking of installing Ubuntu with ext2 instead of ext3. I am concerned, however, that it might open up a security risk for my Ubuntu partition. Would this cause a problem? (In case it's relevant, I use AVG Free antivirus in Windows.)
I use 8GB USB sticks for backup of Ubuntu 10.04. I have had a variety of problems with ext3 format (security tar file not readable, etc) and have reformatted to ext2, so far without a problem.
But - am I missing something by not using ext3 (or even ext4)? Should I be sticking with ext3 and try to resolve the problems - bearing in mind that as the USB stick is my backup I need it to be secure!
When installing fedora 10 from scratch on an acer aspire one 150L, which filesystem should be used? ext2 or ext3? a basic explanation of the reason would be great too.
I run an upgrade and an update on a lucid lynx beta 2. --- got no problems. but about the filesystems i have some questions because it seems for me that at every system boot the system will run an fsck. somtimes it's shown up, somtimes not. but in /var/log/messages and in syslog
I have always following messages ( occured in beta 2 too ).
But first before i continue - here my disk layout:
And here my filesystem types:
This is my problem because those values are seems to be static ! ( note: this partiton is mounted but not in use ) and last not least: the drive is an external usb scsi disk. but on the other side lucid lynx is running fine on my box.
I have a new Vertex2 Solid State Drive. When I try to install any distributions, formating the drive in EXT3 or EXT4 (or LUKS with EXT3, or EXT4). My hard drive times out during a copy process. (OpenSUSE 11.2 for example would crash after the 2nd file of X11. Debian got ~12% done when it crashed.)
I have a question, i accidentally formatted an lvm volume as ext2 after creating it. Then of course, we copied a ton of data to it before I realized it was ext2. (I guess ext2 was the default when using mkfs without a -t) Anyway - can I just use tune2fs -j on the LVM just like I would a /dev/sdx device?
I am student of MCS and working on final project. I am the user of windows xp. I am new in Linux. I am working on a project that titles "Hard disk data Recovery of ext2 and ext3 in linux". In windows, including dos.h and bios.h header files in program of c language I can send interrupt to bios and access most of the devices like parallel port, hard disks etc. But problem is that there is no bios.h and dos.h files in gcc. Now how can I access my hard drive using c program. How can I call int13h interrupt in linux or there is any other function in the linux to access the hard disk. In fact I want to access sectors of my hard disk using c language program. How can I do it?
I want to convert my swap space 8GB to usable formatHere is the output of sudo fdisk -l command$sudo fdisk -lDisk /dev/sda: 80.0 GB, 80026361856 bytes255 heads, 63 sectors/track, 9729 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0x26af26ae
Device Boot Start End Blocks Id System /dev/sda1 * 1 2295 18434556 7 HPFS/NTFS /dev/sda2 2296 9728 59705572+ f W95 Ext'd (LBA)
During the file system check of an ext3 partition at boot I get the following output:
The super-block could not be read or does not describe a correct ext2 filesystem. If the device is still valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate super-block:
I'm then forced to login in as root and given the following prompt:
I'm reluctant to do as advised by the output and run e2fsck -b because it is not an ext2 filesystem.
Although I can still enter runlevel 5, it doesn't seem to recognise mouse and keyboard input in KDE so my system is effectively redundant at the mo. For this reason any short term workarounds are welcome, but a fix is needed. This problem is part of a longer saga to do with recovering a Windows Vista installation which started failing to boot. I have used both Vista and SUSE tools to try and recover my bootloader to no avail, and this has been the result. If more detail about this is needed please ask and I can explain what I have done.
I just rebuild the kernel for slackware 13, everything works, but root file system which is ext3 is mounted as ext2. Normally I've build ext3, ext4 and so on as modules, not in the kernel... but if I do this, then the kernel mounts the file system as ext2, which is build in the kernel. I also modified rc.modules so I can make sure that ext3,ext4,jbd are loaded, but it doesnt work.
I have dual boot system..i.e, windows XP and ubuntu 9.10(insatlled side by side). when i try to boot ubuntu, Im gettin sh:grub > prompt
[Code]...
I am getting something like this.. root mount file system failed.. ext2 ext3 ext4 ....... kernel panic message and hanged at kenelthreadhelpper+ what can i do.. I cant reinstall ubuntu again.. Because I have installed nany application there..
I have to create jffs2 filesystem for ARM.I have already created directories and nodes of devices as well as inittab script for ext2 filesystem. Now I don't know how to proceed from here. How to convert ext2 to jffs2. One more thing, is it necessary to create partition on hard drive on which one filesystem is already present to create one more new filesystem.
I have formatted a sd card ext3 for some test but I would like to to reformat to vfat. I have used linux to reformat using mkfs.vfat but still can't read it in windows. The next thing I was going to try was to dd from a good SD card but wanted to see
I was testing a bug in F12+Acer Aspire One and its 'suspend' feature (you can probably find the thread) and I ended with my SDHC card messed up. I formatted it as ext2 (or ext3, don't remember exactly) and apparently its superblock got corrupted. For one thing there is a single file I want to recover from the card (I don't mind formatting it afterwards). I am no expert using e2fsck or fsck, that's why I am asking here. In addition I used the "dd" command to create a backup of the drive in a file (so I can start tinkering with it). What is the best course of action to recover my files? Either from the card or from the image?
I have an HP laptop with a recently installed copy of Mint 8 KDE Community Edition. I created the initial admin user account ("joseph") when I installed.
I had an existing home directory under a different name from another installation, so I added a user with that name ("joe") and imported a copy of the original home directory. The user "joe" didn't have the same admin privileges as the initial "joseph" account, so I added "joe" to the sudoers file and the same groups as the initial admin user.
Everything works perfectly under this arrangement, for the most part. Now here's the problem:
I have a T-Mobile G1 phone that uses Android. I've rooted and ROM-modded the G1, and have the microSD card in the phone set up with two partitions. The vfat partition stores all the photos, music and other stuff the phone needs. The ROM mod allows me to store apps on the SD card, so that second partition uses ext3 for its file system.
When I'm logged in as the admin "joseph" account and I insert the SD card in the laptop's card slot (or plug the phone into the USB port), the SD card can be mounted, and I have full access to both card partitions. I can see all folders. I do this to backup the contents of the card to an external drive (especially the apps in the ext3 partition, since that's been trashed on me once before on the phone).
However, when I log in as "joe", I cannot view the contents of the ext3 partition at all. I can see the vfat drive fine, and the ext3 partition mounts, but with user/group "joseph/joseph." When I open Dolphin to view the mounted ext3 partition, I get the error "could not enter folder /media/disk-1" at the bottom of the view window in Dolphin.
Here are the relative entries returned when I run "mount" to view the mounted drives:
/dev/mmcblk0p1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=1001,utf8,shortname=mixed,flush) /dev/mmcblk0p2 on /media/disk-1 type ext3 (rw,nosuid,nodev,uhelper=hal)
Note that the uid listed on the vfat mount is 1001, which is the gid for the "joe" account.
I know there must be a configuration setting somewhere that will allow the ext3 partition to automount under the "joe" user account. I suppose that using the admin account to change the permissions would be the easy way to do this, but there must be something that would do it automagically. I've ripped through all the config files I can find, but can't seem to find anything that would help.
All I'm looking for here is enough access to be able to copy the directories on that mount to my external drive.
I Tarred and GZipped most of the data on one 1Tb partition and stuck the archives on a second 1Tb partition on a separate disk. I then proceeded to format the first partition with NTFS (from Linux.) The only problem is that I completely forgot that I had a CD drive and formatted sdc1 instead of sdd1! I began doing a full NTFS format and after a minute or two I cancelled it and decided to do a quick format. I then realized my mistake. I managed to find a copy of the superblock and began trying to recover the disk. fsck -t ext3 recognized the partition as NTFS but I luckily didn't have fsck.ntfs installed so it didn't touch it. I managed to get it working with fsck.ext3 (with -b,-B and -y) fsck.ext3 didn't mind that it was an NTFS partition.
Roughly how long will this take? It's running from Knoppix within a virtual machine to a USB hard drive which is 100% full. Days? Being that for a few minutes I attempted a full format am I going to end up with a bunch of corrupted archives? If I do end up with file corruption can anyone recommend a way of recovering the data / sorting it out? Is it likely to be just a few old files that are corrupt (It's my understanding that filesystems like to keep files in the same area on the disk to minimize the amount of head travel.) This might just be wishful thinking but as the filesystem fills up will ext3 put the newer files towards the end of the disk? If so then I'm hoping that a full NTFS format starts at the beginning of the disk.
I keep getting a bunch of these warnings and was wondering what they mean and if they are anything that I should be worried about. Code: JFFS2 warning: (1038) jffs2_sum_write_data: Summary too big (-32 data, -1305 pad) in eraseblock at 00400000
I am trying to find a way to get/read the C source code from a JFFS2 image file. All I have is the jffs2 file and nothing else. I was looking for some kind of converter or reader that would allow me to do this. I know very little about Linux. I need to give the source code to a developer to save time on a new version/redevelopment of the original application.
I had to install a new disk drive in my PC a week ago because the old drive died. The new drive is a 160 gig drive. First I installed Win XP with S/P 3 and everything was fine. Then I installed Ubuntu 8.04 and the troubles began. Ubuntu resized the Windows partition down to 8.81 gig and used the other 137.44 gig for Ubuntu. When I booted into Windows I started getting nasty little messages about "not enough disk space". SOOoooo....... I booted using the Ubuntu install CD and ran "sudo gparted" in a terminal window. I tried to resize the ext2 partition but got an unknown error.
Then I ran fixmbr in Windows to get rid of grub. Then I tried running gparted again to delete the ext2 partition. Got an error that said "can't delete the partition because it's mounted". So I tried to unmount the partition but got a message that the command "unmount" could not be found. After that I installed Partition Magic in Windows and tried that. It sees the ext2 partition but says it's unsupported when I try to delete or resize it.
I ran fdisk but it doesn't see the Linux partitions either, so I can't delete them in that program. I finally tried to format the disk but now I have a 9 gig drive with nothing on it. How do I get those Linux partitions off the drive so I will have a 160 gig drive that I can start over with? I've spent 6 days this week reinstalling XP and all of my programs, and now everything is gone because Ubuntu decided to be a disk hog.
I was installing windows vista on my computer, so I backed up everything to a external drive which was formatted with ext2. I then proceeded to install windows vista. When I got to the partition section I tried installing windows vista to my raid 0. When it didn't work I decided that I would delete all my existing partitions and create a new one. Well in my haste I accidentally deleted my ext2 partition from my backup drive that was still connected. As soon as I realized what I had done I shutdown the windows install and disconnected my external drive. This is the current state of my drive from parted:
Model: WD 15EADS External (scsi) Disk /dev/sdb: 1500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags
I know that the drive only had one partition before and that it took up the entire disk and it was ext2 (maybe ext3).
This might be a longshot but i used to use the 4 bay NAS here Which formated the HDD JBOD array to EXT2 , Anyway i want to move to an 8 bay DAS now but i cant find an application to convert the partitions .
Partition magic says the partitions are unformatted and the partition id is set to linux raid auto . Is there any way to convert this partition to vanilla EXT2 so i can use partition magic on it ? Its a 4TB array so copying isnt possible.
I want to install Ubuntu to a USB Flash drive (so I have my Desktop everywhere and can customize it as I want). I'm still choosing what's the best filesystem for the USB; Ext2 with no journaling or Ext4 with journaling but performance increase? I know that journaling will probably reduce the life of the USB flash drive dramatically, so is Ext2 the obvious choice? Or is it a bad idea to install Linux (Ubuntu probably) on a USB Flash drive? I tried running a live CD from the USB drive, but it wasn't very customizable - which is the point of carrying my OS with me.
I need to mount my ext2 partition with write permissions for an average user. Right now, I can only write to the volume using sudo or the root account.
can't add the options uid=500,gid=500 to the ext2 volume because it says "bad option" I have 1 question. If you have a volume listed in /etc/fstab, and you try to mount it with different options than the ones listed in fstab, will it mount with the new options, or the fstab options?(e.x. if I try to mount /dev/sda6 with: mount-o auto,user,exec,rw,async. Will it mount with async or sync?)