I decided to take an old Gateway that I bought off a guy cheaply and turn it into a file and web server.I purchased copies of Debian 5.0.4 i386 disks (31 in all) on the advice of a friend, the disks weren't expensive, but now that Ive installed all the disks, I'm having a variety of errors
[443.110940 end request: I/O error, dev hde, sector 76021855 [443.111074] EXT3-fs error (device hde1): ext3_get_inode_loc: unable to read inode block - inode=2375715, block=9502724 INIT: cannot execute "/sbin/getty"
I was using gparted from a live usb to resize an ext4 partition and it failed while running resize2fs. The error it gave was
Code: resize2fs: The inode is from a bad block in the inode table while trying to resize /dev/sda5 please run 'e2fsck -fy /dev/sda5' to fix the filesystem after the aborted resize operation.
my server is fedora-7 and it was working fine till yesterday yester I have power failu problem after we got problem. while booting following error coming Inode 3640928 has a bad extended atribute block
I am using Wind River Linux- 2.6.27.18-WR3.0bg_standard. The problem is whenever I execute "reboot, ls, cd" and many other commands the OS prompts me an error- "end request: i/o error, dev sda, sector "(different sector each time)" and EXT3-fs error (device sda1):ext3_get_inode_loc:unable to read inode block- inode-4088001, block-4097027 I also executed "dmesg", it also showed similar errors. Has the disk gone bad or the kernel is corrupted?
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
What I want to do is from a file having block like
<event> 8 3 0.2685416E-02 2 -1 0 21 -1 0
[code]...
The first line after the "<event>" is its process-id, so I would like to have at the end a summary of how many "event" block I have for each type, ie how many
6 1 0.2685416E-02
or how many
7 2 0.2685416E-02
etc etc
I do not know in advance how many different-kind of block I will have, so it has to be a bit smart to scan the file, and make an new "summary" info for each unique type I was using something like
I am trying to count no. of characters in a word but it is coming one more than what it actually should be.
Code:
I can have a work around by subtracting 1 from the output (6-1=5 in this case). BUT, I am just curious to know, why the character count is coming as 6 and not 5.
Target F12 mysql - 5.1.42-2 Source FC 5 mysql - 5.0.27-1
I've put SElinux into permissive mode as it was practically denying anything that moved. Both installed from the standard repos. I used mysql-administrator to create a backup of the FC5 server (all databases/tables) and transferred it to the new system. I restored it onto that machine and double checked that my standard admin user (full privs) was present and let me log in to make changes. All good so far.
So I copied over my files from my sites, point a browser at them and I get nothing, not even errors. Now it's a long while since I set the original up and have probably forgotten something simple but despite making the error output more verbose I can't seem to track anything down other than:
[Code]....
So it suggests my tables are invalid/trashed but I can't seem to figure out why. The original server is still running happily so I'm not in any rush to fix this, I'll keep plodding, Phpinfo reveals a normal operational php setup, so i think that side of the sites is functional. Apache test pages work on blank virtual hosts but viewing my sites reveals the favicon working fine but otherwise comepletely blank pages (zero output, even source). I tried running the page as a raw CLI input to the php package using php index.php and php returned nothing, logged nothing unusual but sat with my CPU at 100%, unsure if that is related.
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?
About a month and a half ago I purchased two new 500GB serial ATA hard drives from Best Buy to replace my other, very old 186GB SATA hard drive. Since then I've had issues with Linux. Sometimes when it's booting it gives a bunch of error messages, such as "failed to set xfermode," and then it boots. Other times, after INIT has started, I get ext3 errors about failing to read an inode block, then "cannot start /sbin/agetty" and "ID c5 respawning too fast," and at this point booting fails altogether. These errors seem to happen randomly. However, once the system has booted, everything seems to work fine, and there are no further issues.
I know it's not a faulty hard drive or filesystem because I've tried Linux on both hard drives numerous times, and I've reformatted many times, one time I even tried erasing one of the hard drives byte for byte and then formatting it, and still had issues.
I've tried Arch Linux, Gentoo, VectorLinux, and openSUSE, and all of them have given me these problems. The live CD's for Ubuntu 10.04, Clonezilla, and GParted all have trouble partitioning/cloning/installing to these hard drives. At this point, it's obvious to me that there is a universal problem with this particular model.
GRUB and Syslinux both work fine, and Windows XP works fine too. It's only Linux that's giving me issues.
I would rather not buy a new hard drive if I can help it, seeing as these two are almost brand new. Is there some BIOS setting that could be causing these problems? Is it some unsupported feature in the hard drives? Is it a bug in the Linux kernel?
The hard drive model is WD5000AADS. Both hard drives are this same model. My motherboard is an NForce 680i SLI.
EDIT: I've tried ext2/3, ReiserFS, and XFS, and all of them do this, so I don't think it's a filesystem issue.
I have a 14TB raid, file system is read-only and I am trying to run e2fsck -B -p -C -v -y /dev/sdb1, it goes through, but fails and says bad block/inode or fails to transfer, something like that.Is there a way I can get this to run successful, this is a production storage server, its critical.
I have WD external hdd (80GB) formatted with fat32. I was using this hdd to transfer the data from computer A (LINUX, RH9) to computer B (Win7).
I was keep copying and deleting the data in the WD hdd during the data transfer because the amount to transfer is more than 300GB.
After doing this several times (and the WD drive was emptied), comp. A said the disk is full. I checked using 'df' and it was really full but 'ls -la' shows that there is no data in it.
I checked it in comp. B, and it showed empty. I tried to format in comp. A using 'mkdosfs -F 32 /dev/xxx# (block#)', but showed an error message like below.
'Warning: block count mismatch: found 78xxxxx but assuming 0'.
I found a similar situation in this forum metioning 'possible damaged linux kernel (not exactly same expression though)', so I re-installed linux in comp. A, but the problem was not solved.
1. why the disk info. is showed differently in linux and win7 2. why I cannot format it
I'm using ubuntu 10.04 64bit server edition running a small dev server. What's happning though is that my one ext4 filesystems reports the wrong amount of free blocks. This is what fsck reports
Code: fsck -n /dev/sda1 fsck from util-linux-ng 2.17.2
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.
While booting my Linux System (Red hat Enterprises edition 5.1) I am getting a messsage as below , the message is getting generated during file checking on first boot. Extended attribute block 18875430 has reference count 2 , should be 1. and after this system remains in the same sate.
#!/usr/bin/perl use DBI; my ($db, $user, $pw) = ('dbname', '****', '***********'); my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr
[code].....
The error message is
[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr
I have installed both Windows Xp and Fedora 12. Last time when i was working on Fedora it didn't shut down properly. Now following error occurs and finally the system sleeps.
ata1.00 : exception Emask 0x0 Sact 0x0 SErr 0x0 action 0x0 ata1.00 : BMDMA stat 0x25 ata1.00 : cmd c8/00:00:50:5a:34/00:00:00:00:00/e4 tag 0 dma 131072 1n res 51/40:7f:d1:5a:34//00:00:00:00:00/e4 Emask 0x9 (media error) ata1.00 : status : { DRDY ERR } ata1.00 : err : { UNC } end_request: I/O error, dev sda, sector 70539985 JBD : Failed to read block at offset 5884 EXT4-fs(sda): error loading journal mount: wrong fs type, bad option, bad superblock on /dev/sda8, codepage or helper program, or other error In some case useful info is found in syslog-ty dmesg | tail or so
I got a problem booting ubuntu 10.4 RC but i solved it by replacing root partirion uuid in grub boot menu then I disapled totally uuid passing to linux from /etc/default/grub . but something else i noticed why grub choosed insmod=ext2 why not ext4 specially I use now ext4 .I tried by editing the grub boot menu replacing "insmod=ext2" by "insmod=ext4" it booted and the three lines error during booting that i used to see them science ubuntu 9.10 totally disappeared . really I dont understand can anybody explane for me.and if what i did was right ,can anybody tell me how to make grub always and permenantly detect ext4 as ext4 not as ext2.
I had 5.4 machine. Upgraded to 5.5 today via yum upgrade. All went fine. Rebooted. Wanted to convert root partition to ext4 (I have three partitions: /boot, / and swap). All of them on software RAID 1 (root is /dev/md2). I did the following for converting
yum install e4fsprogs tune2fs -O extents,uninit_bg,dir_index /dev/md2 nano /etc/fstab # I indicated here that my /dev/md2 is of ext4
How does a filename is mapped to its inode ??? If I want to make our own system call and use a filename as argument how can I get its inode ,if I want to use some of member of inode structure in code. Basically I want to get the fd of the file.
In my project, there is a requirement for adding one more attribute for file properties which keeps track of previous file copies(Copy history). So how can we accomplish this? can we add/store this information in inode structure?
Poking around reveals that one Dave Chinner, Principal Engineer -- SGI Australian Software Group, submitted a series of patches to deal with preventing the flushing of stale inodes. I'm trying to figure out just how relevant those patches are to the stability of XFS, especially to pre-Lucid Ubuntu systems: are they in danger of data loss? Some quick search results thrown together in an effort to asses this issue:[URL]..Quote:
Dave Chinner (9): xfs: Don't flush stale inodes xfs: Ensure we force all busy extents in range to disk xfs: reclaim inodes under a write lock xfs: Avoid inodes in reclaim when flushing from inode cache
I am running into a scenario where inode utilization (df -i)on a partition is 100% I want know
1) Is there a better way to list the total count of all files in a partition and just display total number of files in each directory in that partition I can get approx total for the entire partition by following commands
ls -Rla | wc -l find -type f | wc -l
whereas ls -Rla gives too lengthy outptut with all the files in each directory
2) How to know inode utilization for each user or system account? There is huge number of files and how to remove it