General :: Ext3 Filesystem Mounted In Ubuntu 9.10 (Echo Error)

Apr 19, 2010

I am trying to figure out a totally odd behavior of the ext3 filesystem mounted in Ubuntu 9.10. There is a Korn Shell script, part of which does the following in the loop:

while ((1)); do
mv dir1/file dir2;
if [[ ! -r dir2/file ]]; then
echo "ERROR"
ls -l dir1/* dir2/*
exit 1
elif
echo "OK"
fi
done

Given that dir2/file always exists and that I do not move it asynchronously with "&", my script should never hit the "ERROR" statement. The odd thing is that it does, and quite randomly (no pattern at all). However when it does hit the ERROR case, ls -l prints that file is in dir2 and it is readable! I tried using "-e" instead of "-r" test - no luck. I never seen anything like this in 10 years of my programming experience. Same script worked fine on Fedora 11, and yet it wouldn't work on Ubuntu.

View 5 Replies


ADVERTISEMENT

General :: View Bad Blocks On Mounted Ext3 Filesystem?

Mar 18, 2011

I've ran fsck -c on the (unmounted) partition in question a while ago. The process was unattended and results were not stored anywhere (except badblock inode). Now I'd like to get badblock information to know if there are any problems with the harddrive. Unfortunately, partition is used in the production system and can't be unmounted.

I see two ways to get what I want: Run badblocks in read-only mode. This will probably take a lot of time and cause unnecessary bruden on the system. Somehow extract information about badblocks from the filesystem iteself. How can I view known badblocks registered in mounted filesystem?

View 2 Replies View Related

Slackware :: EXT3-fs: Mounted Filesystem With Ordered Data Mode

Jan 20, 2010

At boot time, before entering Runlevel 3 the HDD will go mad when mounting tmpfs on /dev/shm...

Code:

EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
INIT:Entering runlevel 3

It will go on and on at the tmpfs on /dev/shm type tmpfs (rw) until i press ctrl-C...then I will stop whatever it is doing, let the hdd rest a bit, and resume normal boot..

View 13 Replies View Related

General :: External Drive Read Only - WARNING! Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage

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

Ubuntu :: GParted Error - Ext3 Filesystem Indicated As Swap

Jul 2, 2010

I just got a new hard disk so that my "/" and "/home" partitions would be located at their own separate drives. All was well until i tried to expand my "/home" partition to fill up the entire drive that used to also have the "/" and swap partitions on there. Let me sketch the before-and-after scenario in GParted,

Before:

What actually happened after:

Gparted gave an error prompt after which i found out that the entire ext3 partition (/home) had been moved to the left but not yet expanded to the right, which is of course not a problem. However, for some reason it has labelled the entire ext3 partition as a swap partition!

I'm still running ubuntu from the usb flash drive, because i dont want to risk that the (120GB) swap area will actually be used and cause my data to be lost.

I guess my question is, can i relabel the swap partition as ext3 like it was before without formatting (ie without losing data)?

Here's the output of "fdisk -l", which doesn't show the swap area (the drive in question is "/dev/sdb"):

Code:

View 2 Replies View Related

OpenSUSE Install :: Boot Error Because E2fsck Thinks Ext3 Filesystem Is Ext2 ?

Jan 19, 2010

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.

View 9 Replies View Related

Red Hat / Fedora :: Filesystem Check After Power Outage - WARNING: "Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage"

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

General :: Ext3/ext4 Filesystem - Cannot Open My Files

Jan 31, 2011

I have installed ubuntu to my pc. i made 3 partitions. one for system, one for data and one for swap. two of them were ext4. after some time i have reinstalled ubuntu again. but this time i didn't put to format the second partition, but just mount it using ext4. after that i cannot open my files. checked with gparted shows that 2GB used, but with df 188MB. and in properties writes ext3/ext4 filesystem. i used chown, chgrp but didn't help. please help, these data are ver important. i cannot lose them.

View 7 Replies View Related

General :: Windows - Ubuntu: Filesystem Could Not Be Mounted?

Feb 26, 2010

I run Windows Vista and Ubuntu 9.10 dual boot. Today while booting windows, it informed me that there was something wrong with my hard disk and it would perform a check, and made some fixes.

Only when I wanted to boot into ubuntu again did I realise that the disk check had corrupted my linux partition. Ubuntu's load screen shows up, but just before the login screen it says that the filesystem could not be mounted.

Is there a way I can fix this? And how do I prevent windows from doing the same in the future?

View 1 Replies View Related

General :: Mint 8: Regular User Can't Access Ext3 Partition On Mounted MicroSD Card?

Feb 19, 2010

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.

View 7 Replies View Related

General :: Finding Out The Time A Filesystem Was Last Mounted

Jun 15, 2010

I want to find out the last time a filesystem was mounted on Linux (Debian).

View 1 Replies View Related

General :: Grub: Kernel Parameter RO But Filesystem Still Gets Mounted Rw?

Jan 13, 2010

I am trying to do a fsck on my ext3 partition, but so far failed to let the system come up in single user mode and having the partition mounted read only. It says in the kernel parameter that it is read only (RO) but still mounts it RW. A remount with mount -o remount,ro does not work, since / is always busy. what to do to get a fsck done? I don't want to boot into a rescue system, this should be possible on a running system (like Windows does it, when rebooting)

View 1 Replies View Related

General :: Unpluging Mounted Shared Dir - Will It Crash The Filesystem

Nov 19, 2010

For example we have a PC with Linux and, let's say, ext4. It is connected to another PC with Linux and Samba-shared dir.First PC mounted shared dir of the second one. So it's in the filesystem, for example in "/mnt/000/". What will happen if I unplug the net cable from first PC? Will ext4 on the first PC crash so I'll have to perform fsck? I know that hot unpluging of mounted HDD probably will make filesystem read-only available and generally damaged.

View 1 Replies View Related

General :: Fscheck For Ext3 Filesystem - Usually Occurs When Reboot System Performing Administration Tasks

May 29, 2010

fscheck is quite annoying, since it usually occurs when I reboot my system performing administration tasks. do I actually need fscheck if Im using the ext3 file system? if not how would I extend the period between checks or just turn it off altogether?

View 9 Replies View Related

General :: Recovering Data From Ext3 Partition With Hardware Errors - Recovery Required On Readonly Filesystem

Jan 10, 2010

I have an external 3.5" USB 250Gb HDD which is showing symptoms of hardware problems (repeated /var/log/messages errors of "reset high speed USB device using ehci_hcd"). This was originally plugged in to my NSLU2 running Debian Etch. I have just installed Ubuntu Desktop 9.10 to a spare Pentium-3M laptop and was hoping to copy the contents of this HDD to a fresh drive. However, I cannot mount it even read-only; mount -o ro /dev/sde3 /mnt/disk fails, and the /var/log/messages error is "recovery required on readonly filesystem", "write access unavailable, cannot proceed". I cannot understand why mounting a disk read-only should require write access. Following advice I googled elsewhere, I tried running mke2fs -n /dev/sde3 to try to list the alternative superblocks - but once again I got the error that the device was read-only. How can I go about accessing the data on this disk?

View 11 Replies View Related

General :: Echo Command Error - File Exits

Mar 17, 2010

I faced a issue with updating a file contents with echo command which fails with error as below:
echo "foo" > bar //to create a file named "bar"
echo "foobar" > bar //to edit its contents

The latter fails, it prompts "File exists" i.e.
~>echo "foo" > bar
~>echo "foobar" > bar
bar: File exists.
~>cat bar
foo
~>

View 4 Replies View Related

General :: $echo Cat Vs $cat Echo / Difference Between Them?

Dec 16, 2010

What is the difference between

$echo cat
$cat echo

View 1 Replies View Related

Ubuntu :: Format Pen Drive Into An Ext3 Filesystem?

Mar 6, 2010

I was running ubuntu as a live cd and I wanted to format my pen drive into an ext3 filesystem. I put in sudo mkfs /dev/sda1, but know im thinking that sda1 was my HDD!! I removed the cd from my computer, and it wont boot up into windows anymore!The only thing that is giving me hope is that the mkfs took about 1 min to format whatever it was formatting (my pen drive or my hdd!!) and my hdd is 500gb big. Is there anyway that I could have accidentaly formatted my HDD?

View 9 Replies View Related

Ubuntu :: Filesystem Ext2 - Ext3 And Ext4 ?

Apr 30, 2010

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.

View 3 Replies View Related

Ubuntu :: Mount Ext3 Filesystem In Windows Xp?

Dec 12, 2010

This question is about windows xp but since I rarely use it and dont care about to sign up for some xp related forums

View 1 Replies View Related

Debian :: Recover Ext3 Filesystem ?

Nov 13, 2010

Yesterday I ran an extremely dangerous command by mistake:

Acctually I intended to dump the iso to a usb disk. Soon I found the "of" is incorrect, but 1 second has passed...

Since everything happens in 1 second, only MBR and /dev/sda1 has been affected. The filesystem of sda1 is ext3.

So, can I get any luck trying to recover data from the broken partition?

View 10 Replies View Related

Fedora Installation :: 11 - Can't Be Mounted When Booting After Converting From Ext3 To Ext4

Jun 16, 2009

I upgraded F10 to F11 successfully.

Then I convert the / partition filesystem by the following steps:login as root user in multi user mode read [url], and execute tune2fs -O extents,uninit_bg,dir_index /dev/mapper/VolGroup01-LogVol00 modify /etc/fstab, change the type of / to ext4

reboot
(because fsck say running it on a mounted filesystem can cause filesystem damage, so i decide to reboot to single user mode first. maybe it's a mistake here) try to boot F11 to single user mode, failed

reboot from a SystemRescueCD-1.2.0 LiveCD
run e2fsck -fpDC0 /dev/mapper/VolGroup01-LogVol00 in SystemRescueCD-1.2.0 LiveCD, no error reported

reboot
try to boot F11 normally(multi user mode), but it failed at: EXT3-fs: dm-0: couldn't mount because of unsupported optional features (40).

I tried rescue mode of Fedora-11-i386-netinst.iso after these steps above. The / partition can be found and mounted to /mnt/sysimage correctly. I can read/write files in / partition, and i can even yum new softwares in rescue mode, but it just can't be mounted when booting.

View 6 Replies View Related

Ubuntu :: Mounting External Encrypted HDD With Ext3 Filesystem

Jan 20, 2010

I have a external HDD with eSATA and USB connectors available. I want to use this HDD to store my backups. The HDD should be encrypted (my main system is as well).

So here is what I did so far:
1) I used the following code to create the encrypted LUKS partition with EXT3 Filesystem:
Code:
cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdb1
cryptsetup luksOpen /dev/sdb1 luks
mkfs.ext3 /dev/mapper/luks
The system always hang when I executed the "mkfs.ext3..." command, so I switched the HDD from eSATA to USB and then it worked fine.

2) When I switched on the ext. HDD the first time, the drive was recognized automatically and Nautilus asked for the password. I typed it in as checked the checkbox to remember the password in the future. For the backup I use a nice script that I found in another forum, where I can define a mountpoint and then the script will check for previous backups and only make a incremental backup based of the latest version. The script also mounts the drive automatically. In order to always have the same mountpoint, I want to make an entry in the /etc/fstab using the UUID of the ext. HDD.

Whatever I tried, it doesn't work. What am I doing wrong? Here is my current /etc/fstab
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/mapper/ubuntu-root during installation
UUID=2ea47421-73ce-4c66-9606-8a1db81ae640 / ext3 relatime,errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=dbdeb793-1d4e-43ea-8986-7b37fdbc9674 /boot ext3 relatime 0 2
# /home was on /dev/mapper/ubuntu-home during installation
UUID=42702091-83e6-43eb-aad1-108f43eedf9d /home ext3 relatime 0 2
# swap was on /dev/mapper/ubuntu-swap during installation
UUID=e225bcf9-908b-4226-a963-6b02ee658df1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
# Eintrag wegen iPhone
none /proc/bus/usb usbfs devgid=125,devmode=666,nodev,nosuid,noexec 0 0
# external HDD
UUID=913977f7-8fa6-416f-af79-b5f913b68f53 /media/backup-hdd ext3 noauto,users 0 0
I made the "none /proc/bus/usb..." entry because it was recommended to ensure correct behaviour of the iPhone. Not sure if I need it though.

I created the mountpoint with this command:
Code:
sudo mkdir /media/backup-hdd
Now it seems the mountpoints owner is not root - strange right?
Code:
2 4 drwxr-xr-x 3 michael michael 4096 2010-01-15 02:45 backup-hdd
How should I mount this drive correctly? It will be automounted as every USB device, but that should not be the case. I want the script to mount and unmount the drive.

View 2 Replies View Related

Ubuntu :: Filesystem Could Not Be Mounted

Feb 8, 2010

I can't restart ubuntu, because of an error during filecheck. Something like:

Code:

usplash failed
usplash could not set to 1152x864
Mountall failed
Filesystem could not be mounted

Do a manual fsck to repair error When I run fsck, it sees some multiply-nodes, when I try to repair them, it says:

Code:

Fail: Multiply-nodes allready copied or repaired After fsck is done, I have to reboot. And the cycle repeats.

View 4 Replies View Related

Fedora Installation :: Ext2 Or Ext3 - Which Filesystem Should Be Used?

May 4, 2009

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.

View 3 Replies View Related

Hardware :: Duplicated Directory On Ext3 Filesystem?

Jul 11, 2010

I was looking in a dir I haven't used for a while (I use it for data storage) and found a directory was repeated - that is, two directories with the same name. I renamed one of them, on the assumption that one of them has a non-printing character in its name, and that worked without a problem, but ls -i lists their inodes as the same. ls -l says they both have two inodes (. and ..), and the files they contain have the same names. The inodes of the files is the same (that is, the inode of a file in dir A is the same as the file of the same name in dir B.) Each file in each dir is listed as having only one inode, but it's the same as that in the other dir.

View 1 Replies View Related

Slackware :: Trying To Set Filesystem Type To Ext3 In Cfdisk?

Jun 21, 2010

I've scoured the list of options for FS type in cfdisk for ext3 or ext4 to no avail. How then do I set the filesystem type for my partition to ext3?

View 3 Replies View Related

General :: When Type The Df Command See That /dev/hda1 As A Filesytem That Is Mounted At '/'(root). Is /dev/hda1 A Filesystem?

Mar 26, 2010

When i type the df command i see that /dev/hda1 as a filesytem that is mounted at '/'(root). Is /dev/hda1 a filesystem. I thought that it is a partition on my hard disk that contains the root file system.

View 6 Replies View Related

Debian :: What Will Be Squeeze's Default Filesystem - Ext3 Or Ext4 ?

Apr 30, 2010

I'm wondering if anyone knows what will be Squeeze's default filesystem. Will it be the proven ext3 or the newer (sometimes faster, sometimes slower) ext4?

I currently have ext4 and I have nothing to complain about. In fact, my overall experience has been very positive. Ext4 is definitely faster when fsck runs during boot.

What would be the cons of having ext4 as default in Squeeze?

View 3 Replies View Related

Red Hat :: Ext3 Vs Vxfs Major Filesystem Size Differences

Mar 29, 2010

We have 3 RH5u4-64 servers. Server 1 is a standalone server. Servers 2 & 3 are clustered filesystem servers running Veritas CFS 5.0mp3.

Server 1's filesystem is EXT3 and was cloned from a Sun server running Veritas 5.0mp3-VXFS. Filesystem size returned from 'du' 'df' show about 428GB on both the Linux Standalone Server(EXT3) & the Sun Solaris Servers (vxfs).

We then cloned Server 1's filesystem (EXT3) to the 2-node CFS servers. Cloning was successful, but the filesystem sizes returned by 'du' 'df' show 128GB. Block Size for the EXT3 filesystem is 4k while blocksize for the VXFS filesystem is 1k.

Where did that other 300GB go?

I can see VXFS/CFS being slightly more efficient than EXT3 because it's been around much longer, but that can't possibly account for the vast difference.

View 4 Replies View Related







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