General :: Manually Marking A Filesystem As Clean
Dec 24, 2010
I run Linux Slackware 13.1. I have a hard drive with a ext2 filesystem, and I would like to mark the filesystem as Clean without running FSCK on it. I think I can do that with the debugfs command, but in the help there seem to be only a command to mark the filesystem as Dirty?? Is there a way to manually mark a ext2/ext3/ext4 filesystem as Clean?
View 2 Replies
ADVERTISEMENT
Aug 21, 2011
I got this error message when i tried to delete a video. i have cleared my trash bin but i still get this error message.
View 2 Replies
View Related
Nov 28, 2010
I went away for a few days but left my computer on to seed torrents. I come back today to find that my flatmate decided to have a tidy up, unplugging my computer and external HDD in the process...I set my computer back up but now my external drive is refusing to mount. This drive has EVERYTHING on it - about 5 years worth of music & video d/ls plus a lot of important documents so I'm praying that it isn't wrecked.That I know of, the drive was mounted but not in use when the power was pulled. The disk utility recognises its there and SMART-healthy, but claims "Filesystem is NOT clean" and won't mount it.
View 9 Replies
View Related
May 7, 2010
I upgraded from 9.10 to 10.04 and during the upgrade it asked to install a new version of grub or keep the current one. Thinking that I should just upgrade the grub just to make sure that I had the latest version I decided to do it. So I told it the partitions to use the ubuntu, ubuntu swap, vista, and vista recovery.Finished the upgrade and restarted.I tried to boot into both the vista, and vista recovery but I noticed something weird. Grub switched the names, the actual vista install is called recovery, and when you tried to load it, a blinking cursor would appear for a split second and then loop back to grub. If you tried to select the vista recovery now called vista it would just sit at the blinking cursor for infinity. But booting into ubuntu worked.
So I decided to wipe ubuntu and do a fresh install of 10.04. Went through and set up the swap and ext4 partitions at the end of the hard drive(because I would like to expand the windows directory should I ever be able to boot into it). Now when I start up and select vista recovery now called vista it sits at the blinking cursor just as before.
View 3 Replies
View Related
Feb 20, 2011
I have a massive ZFS array on my fileserver. Whenever a disk reports bad sectors to smartmon, I order a replacement, and I shelve the failing one.
And by "shelving the failing one", I mean that I give it a low-level format if applicable, or a destructive badblocks run to possible claim spare sectors to replace the bad ones, then use it to dump my DVDs (and lately BluRays) on, so that I can use it with my HTPC and bring it with me when going to my friends to watch movies. It's just a really easy and portable way to watch movies with XBMC. I have the stuff on pressed discs already, so I'm not dependent on their reliance, and the dying drive just gets a hospice life serving as quick-access media storage. Keeping in mind Google's reports that drives are 39x more likely to die within 60 days after their first SMART error, I'm expanding that period by the fact that these drives mostly remain on their shelves and are only plugged into the SATA bay once or twice every year.
I'm just saying this to make clear that I'm not confused about these drives dying, and I'm not looking to elongate their lives ;)
So. Sometimes these drives, after a badblocks run, simply claim fresh sectors from the spare pool, but sometimes there aren't any left, and I face the fact that there are bad sectors in my FS. That's not a problem if you use one of a set of linux filesystems, as mkfs.* often takes a badblocks list as input. But seeing as I sometimes bring a drive or two to my girlfriend's (Mac) or one of my friends (usually Windows), I've decided to use NTFS for these things. Up untill now, when a drive had unrelocatable bad sectors, I've just written data to it, re-read it, and files that were bad were put in a "BAD_SECTOR_FILES" folder on the drive.
Sure, it works, but it would be really nice to be able to just mark those sectors bad instead. It's a lot of hassle the other way around.
So I read some posts, of which most quickly switch subject to the often accurate one of "replace your drive!", and some suggest spinrite, but really, I don't see why I should pay that much money for such a trivial task.
The alternative is to use ext3, but I'd like to hear if someone knows how I can feed badblocks output to mkfs.ntfs, so that the bad blocks aren't used. Or if there are other tools (I could use Windows in a VM) that do the same. I'm confused about chkdsk, it seems the bad sectors thing is FAT only?
View 1 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
Apr 21, 2011
I have a few Threads that have been solved but I do not know how to add that Prefix. How do I change that on an existing thread.
View 3 Replies
View Related
Feb 6, 2011
I have checked the yum.log file and the last time an update was performed was Jan 6, 2011. I am the only person who administers this server and I do it remotely via SSH. No one has GUI access to this. At a minimum, the kernel version is older than the latest release. This is the first time since I brought this server online in 2009 that a monthly yum update didn't produce at least a dozen package updates. I've tried disabling the Priorities plugin (as well as rearranging priorities) and I get the same result: no updates available. For the record, I did spend quite a bit of time Googling this problem and doing a forum search here. I found nothing applicable to my particular situation. Here's the output of yum update:
[root@copeland2 log]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.5ninesolutions.com
* base: mirrors.easynews.com
* extras: mirrors.usc.edu
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centos.mirror.facebook.net
0 packages excluded due to repository priority protections
Setting up Update Process
No Packages marked for Update
View 4 Replies
View Related
Dec 18, 2010
I have problem with my printer HP Deskjet D1460. My printer is configured and works. When I send a file on the print, the printer clings a sheet of paper and starts to print, but a paper as was clean so clean and remains, after printing.
View 2 Replies
View Related
Oct 11, 2010
I configured cron to clean my /tmp directory, should I also add other locations to clean and especially /var/tmp.
View 4 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
Jun 16, 2010
My issue is with linux routing tables using iproute2, coupled with the iptables MARK target. When I create a rule to lookup a table with iproute2, and the routing table routes an address as type unreachable (or blackhole, or prohibit), if a higher priority rule does a lookup to another table that routes the address as type unicast but that higher priority rule also matches on a fwmark, the packet to that address is never generated locally to even go through iptables packet filtering/mangling in order to mark it, because the lower priority rule that doesn't match on a fwmark says it's unreachable. For example, I have 2 rules installed with ip:
Code:
10: from all fwmark 0x1000 lookup routeit
20: from all lookup unreach
ip route list table routeit
[code]....
Now, in the packet filter, I have an iptables rule to mark packets to destination 10.0.0.5 with 0x1000 in the mangle table and OUTPUT chain. When I generate a packet locally to 10.0.0.5, all programs get ENETUNREACH (tested with strace). However, if I take out the route entry that 10.0.0.0/8 is unreachable, it all works fine and the routes in the routeit table get applied to marked packets (I know because my default gateway would not be 1.2.3.4, but wireshark shows packets being sent to the MAC address of 1.2.3.4).
The best I can surmise is that when generating a packet locally, the kernel tests the routing tables in priority order but without any mark to see if it is unreachable/blackhole/prohibit, and doesn't even bother generating the packet and traversing iptables rules to see if it would eventually be marked and thus routed somewhere. Then I assume after that step, it traverses iptables rules, then traverses the routing tables again to find a route. So is there any way around this behavior besides adding fake routes to the routing table (e.g. routing 10.0.0.5 to dev lo in the unreach table in this example)?
View 2 Replies
View Related
Feb 4, 2010
Is there any difference between apt-get clean and aptitude clean? Do they both remove the same caches? Should I know any other commands for cleaning up wasted space on my ubuntu laptop?
View 1 Replies
View Related
Mar 16, 2011
Im new to the forum and to Ubuntu. I have a HP 'tablet' laptop which has no operating system installed and I was hoping to install Ubuntu. I downloaded ubuntu and the software to make it possible to boot from usb. I started the laptop up selected the option to boot from the usb. But now it says "marking TSC unstable due to TSC halts in idle" and then on the next line it says "switching to clocksource hpet" and it has been like this for hours. The laptop specs are: Intel Core 2 CPU T5600 @ 1833MHz with 1GB of RAM.
View 3 Replies
View Related
Apr 23, 2010
I've been running Courier IMAP for many years now, but when I added gmail's IMAP to my Outlook I noticed something interesting: when you delete a message, it gets thrown into the trash instantly.
With Courier IMAP (or any other IMAP server, for that matter), when you delete, it first marks it for deletion. Then after you Purge Deleted Messages it either gets rid of them or moves them to trash.
Is there a way to implement this in Courier IMAP?
View 1 Replies
View Related
Mar 23, 2011
One inconvenience I face now, though, is that I cannot tell if I have already forwarded certain messages or not, because the message is not automatically tagged as forwarded. how to set it up, so it would indicate in the list that the message has been forwarded?
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
Feb 2, 2010
The Network Manager on KDE gets DNS configuration from DHCP and sets it automatically, but I would like to use the Google Public DNS. If I overwrite /etc/resolv.conf with nameserver 8.8.8.8 it still resolves names with the old DNS (probably cached in memory) and, of course, even if it worked, it would be annoying having to do that every time I connect to a network.
I've noticed the Network Manager lets you specify a fixed DNS with the rest being taken from DHCP, but that's on a per network basis, and I would like to set it once for whichever network I connect to (if you're on the go with a laptop that becomes an issue).
View 1 Replies
View Related
Apr 16, 2010
A. I want to manually set the Window Clamp for my experiment.I came to know we can do that in net/ipv4/tcp_output.c::tcp_grow_window. I'm really confused with the flow. Even i tried in net/ipv4/tcp_output.c::tcp_select_window, but things are asusual.
B. Can I really improve the throughput by increasing the buffer space ? Do i have to go for netfileters or altering the existing data structure will do ?
View 3 Replies
View Related
Feb 4, 2009
I have a basic question regarding how to clean up linux disk space. I use "df" to check my disk and found out usage is 100%. SO I use "du -b | sort -r -n > tmp.txt" and found out that /var/spoon/clientmqueue/ has taken the biggest disk space. I deleted the file in that directory using "rm". But after that, I run "df" again, still got 100% usage.
View 2 Replies
View Related
Nov 15, 2010
I bought a linuk netbook some months ago, & a friend tried to put windows in it.... Well now i cant get either on it, clean it out & re-install linuk,it does't have a a disk drive in it.
View 14 Replies
View Related
Jun 24, 2010
I did a tune2fs -l on some volumes of mine, and a few say "not clean" as the filesystem state. But how do I tell what's causing it to be not clean, or how severe it is, so i know how soon i need to schedule downtime to run a e2fsck on that volume?
View 10 Replies
View Related
Jan 13, 2011
Wondering how to use awk to take nmap's output "Discovered open port 23/tcp on 192.168.0.4" and create a output of "192.168.0.4:23"?
View 9 Replies
View Related
Feb 15, 2010
For some reason, my kernel got uninstalled. I have only file called "initrd.img-2.6.26-1-xen-amd64.bak" in my /boot folder. The only other thing is a 'grub' folder. I booted into a rescue OS, but is there a way to install a kernel manually so that I can boot into my original OS again? Can I just download a vmlinuz file into that folder and then fix my menu.lst?
View 1 Replies
View Related
May 30, 2011
yum install libstdc++-docs doesn't work for me:No package libstdc++-docs available.So, I can only install it myself.I've found the C++ man pages here, how can I install it?I guess just put it under /usr/share/man/man3 will do the job, but I'm not sure.
View 1 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
Mar 14, 2011
creation of initrd manually(not using mkinitrd).
View 1 Replies
View Related
Sep 23, 2010
loading /usr/bin/teclafsck failed. please repair manually and reboot. the root file system is currently mounted read-only. to remount it read-write do:bash# mount -n -0 remount,rw /attention: only control-d will reboot the system in this maintence mode shutdown or reboot will not work.
View 3 Replies
View Related