Slackware :: Large Partition Fsck On Shutdown Instead Of Boot?
Sep 15, 2010
Got tired of long waits for fsck on very large partitions.Here's a script to fsck selected partitions every 'N' shutdowns. No more boot delays for fsck (unless something is really wrong
Update1: On my system '/usr/libexec/gam_server' (gamin component used by xfce) prevented /home from being unmounted. I changed
Code:
[code]...
View 4 Replies
ADVERTISEMENT
Apr 21, 2011
Fsck is not check any file system which are not root file system at boot time.
Normally it run: /sbin/fsck -A -R -C -a
But this command doesn't do anything.
I've tried to strace it, and looks like this:
Code:
View 2 Replies
View Related
Nov 6, 2010
I ran preupgrade - it took hours seemed ok it told me that the boot partition was not large enough but that it would install whatever at boot time provided my internet connection was "hard wired" - not exactly clear what that means but i have a ethernet connection to my dsl modem - which sounded hard wired to me - so i told it to go ahead at the end it told me to boot i did, but system hangs with cursor at top left corner booted again and interrupted the bootloader see i have the choice to boot the new fedora13 or the last fedora 12 fedora 13 does not boot fedora 12 does boot
View 2 Replies
View Related
Jun 29, 2010
Every 32 boot ups, the fsck runs automaticall on my drives.Iould like it to run at shutdown and was looking for a solution.I saw an app call autofsck but not find it in synaptic.Can someone help me find a solution to this. I am running a laptop with 9.10 and a desktop with 8.10.
View 3 Replies
View Related
Nov 27, 2010
I want to be able to run fsck at, or near, shutdown at the end of the day, and not have to wait for it when booting (important now that I have 1TB drives!). As far as I can tell, the only way to arrange to run fsck on the root partition is if it is unmounted and I believe that only occurs at reboot time.
So, I thought of using the /forcefsck file that, when exists, will force file system check upon the next boot. So I envision having a script that touches that file, or issues the right shutdown command, then lets the system reboot and thus forcing a fsck of the root partition. However, I then want the system to turn right around and then shutdown, so that when I cold boot the system in the morning, I won't see the fsck run at that time, ever.
So I think this boils down to being able to run a one-time init script or something like that. Is there an established way or idiom for running an init script only one time? I know I can create a non-standard init-script that looks for a special file like is done for /forcefsck, and only shutdown if that file is seen, but surely someone else has already come up with a canned solution/init-script to what I want to do.
View 5 Replies
View Related
Jun 13, 2010
I have a file server that has a raid array with a jfs file system attached. Whenever there is a power cut (quite frequently in our house), and the server is not shutdown cleanly, then the raid array is not automatically mounted since ubuntu doesn't know if the journal is clean. I have to then manually run fsck and remount the partition by hand which is a bit annoying. Basically, does anybody know if fsck can be setto run if a non-clean shutdown has been detected, or failing that, on every boot?
View 2 Replies
View Related
Jan 9, 2010
I ran fsck on one of my backup drives, one that is almost full, and I'm not quite sure if that drive is going bad or not.
It's running ext3 and has around 1.6TB used (2.0TB drive).
This is what the output was:
Code:
charles@thor:~$ sudo fsck -rV /dev/sdc1
fsck from util-linux-ng 2.16
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -r /dev/sdc1
e2fsck 1.41.9 (22-Aug-2009)
I found some info about how ext3 defrags itself and that it cannot handle large files very well. Source.
Kinda makes me wonder how badly fragmented my 4TB partition is going to be. >.<
View 5 Replies
View Related
Apr 24, 2010
Everything is installed and setup on my system, but when I setup my partitions I chose my Windows partition to be bootable. Can I just use cfdisk to toggle the bootable flag so my linux partition is bootable and rewrite the partition table?
View 2 Replies
View Related
Apr 8, 2011
Running Opensuse 11.4 (but had same problem on 11.3). During startup and shutdown, the text messages are displayed using a very large font (characters are > 1 cm high). How can I specify the font and font size it uses ? Presumably it is doing a bad job of detecting the monitor (its a Samsung SyncMaster P2250). Which config file contains a suitable entry, and what is the entry ?
View 6 Replies
View Related
Mar 21, 2010
My windows partition isn't starting up, gives an error and suggests using chkdsk. However, I cant even reach safe mode or command prompt. I can still access my Windows hard drive through Ubuntu.I am wondering I can use a Linux tool to perform a check on this Windows partition? I found the fsck command, but I am confused about the warning about running it on a mounted system and about what exactly is a mounted system.
Can someone please tell me how exactly I wod go about doing a check on this partition? Its currently located in /media/disk.I can right click on the partition and unmount it. But if I do this, will Ubuntu still be able to see this partition?What command do I use to do fsck only on this Windows partition (and not the whole system and other mounted places)? How do I remount the Windows partition so that I can atleast salvage my data easily in case doing a disk check does not help?
View 2 Replies
View Related
Mar 7, 2010
Well, I noticed this by accident while trying to use dash for the rc.d scripts. I messed up and forgot to link it to /bin, and as such, the system failed to boot properly and would not respond. I rebooted (forcefully), but this messed up the filesystem. I booted the sw64 install DVD and tried to mount it, and it would not mount.
I tried to run fsck on it, but it said that fsck.jfs in NOT available. Eventually I booted my old slamd64 12.1 DVD and it had fsck.jfs. Any reason why this rather useful program was removed ? Or is it a bug, or is my DVD messed up? I guess I should just keep around another live CD, I do keep knoppix, but it boots so slow and I don't understand it at all, it's so hard to do anything with it.
View 5 Replies
View Related
Nov 25, 2009
I got 2 HDDs, I had created LVM by two of them. When I was trying to install quota it was saying it is better if you run fsck first message. When I tried to run fsck. It warned me that I could lose some of my data. So it happened. Actually it is worse: I can't boot my Fedora 11. When I try to run installer in rescue mode, it says no linux partition find. When I try to install (just to see partitions) it shows LVM volumes of hdds are ok but the partition which is / (root)partition seems in unknown format. How can I save my datas? Or can i restore my partitions, LVM?
View 11 Replies
View Related
Jan 10, 2010
I have two ext3 lv's of 4GB and 10GB in my hda8 partition, and they are automounted by /dev/mapper/ in my /etc/mtab files in each of the four distros (Suse9.3, OpenSuse10.2, kubuntu7.04 and Debian Lenny 5.0.3). Since ext3 is a journalled fs I feel I ought to fsck their integrity every 3 months or so, however I don't know
a) whether they must be unmounted before running fsck,
b) whether I should use a live CD such as knoppix to run the fsck command, and
c) whether I can and/or should run fsck /dev/hda8, or whether I should somehow fsck each lv seperately?
View 5 Replies
View Related
Sep 22, 2010
I would like to know if there is a way to do an unattended check on the root file system on my servers, *and* send emails in case of errors.
I know you can schedule a root file system fsck during boot time - but the root file system will be mounted read-only - so if fsck finds any problems - it can't email away a warning, or write the result to a file - or can it?
Essentially I would like my servers to do a self-check of the root file system periodically - and to email me if it fails. I just can't think of a way to get it done.
View 2 Replies
View Related
Jun 30, 2010
when my pc boots and shuts down my monitor goes into 'input out of range' mode for a bit between the gui and the text only phases of boot/shutdown.is there a way to fix this? or where to start troubleshooting?also, when it shuts down it hangs after coming back to the text only part
View 4 Replies
View Related
Feb 3, 2010
Sorry if this has been answered already, I've searched through like 20 different threads though and haven't found anything on it...
So I already have Windows 7 and LinuxMint installed, when I install Slackware can I use the same /boot partition that LinuxMint uses, or do I need to create a separate one?
View 2 Replies
View Related
Apr 4, 2011
I'm running an Acer Aspire 1830T-3721 dual-booting Windows 7 with Ubuntu 10.10 (Desktop).
Background: So first I dropped my laptop a couple feet while Windows was running. The laptop immediately shut off and then tried to boot. Booting Windows results in an unfortunate "Windows has encountered a problem communicating with a device connected to your computer. The error can be caused by ... faulty hardware ... Status: Oxc00000e9 Info: An unexpected I/O error has occurred." But Ubuntu booted fine, and could access my NTFS files fine, so I was trying to work on the problem from there. I try a few utilities, looking at the partition table, etc without actually applying any changes.
Then I run a fsck on the drive. It loudly warns me that if I continue on a mounted drive, then I'm going to mess things up. In a moment of stupidity I push on, thinking that surely it would ask me for more configuration, or confirmation, before actually starting. The fsck runs for about 1 second before I Ctrl-C it, running some preliminary stuff and then just starting pass 1.
After this, Ubuntu won't boot anymore. Instead, it hangs just after the init-bottom script runs. If I boot with init=/bin/bash, I can get to a shell, and see that my file system is still there, but not sure what else to do.
I've been running off of a SysRescCD LiveCD, from which I've looked at the drive with testdisk. Testdisk reports that "the hard disk seems too small" while showing me the partition table.
I ran a fsck on the Linux partition; it fixed a bunch of things. There has been no apparent effect on the boot behavior.
I can access all my files, back them up, and reinstall Ubuntu, but I'm hoping there's a better solution, perhaps one that will also help me repair my Windows installation (but I'm looking at one problem at a time here).
View 4 Replies
View Related
Dec 16, 2010
I have a system which previously have 3 OS installed on one physical HDD; WinXP on sda1, Win7 on sda2 and Slackware linux on sda3. Lilo is used as the boot loader.
Recently I bought another HDD and decided to reinstalled my Win7 on it and I use GParted to move Slackware to the original Win7 slot on my first HDD so now my Slackware partition has been move from sda3 to sda2.
I modified the /etc/lilo.conf file so that it reflects the new Slackware partition and run lilo to installed it.
The lilo installed correctly I can boot into WinXP and Win7 without problem but when I try to boot into Slackware, it fail at the root filesystem check, apparently the e2fsck still try to check sda3.
Is there anything that I can do to correct the problem without having to reinstall Linux?
View 4 Replies
View Related
Sep 25, 2009
When I do a forced fsck, I would like to have a log file to look at after boot.
When I check /var/log/ there are no files there with fsck output
I've run force fsck in these ways:
shutdown -rF now
-and-
touch /forcefsck
View 1 Replies
View Related
Jun 11, 2011
I have done 3 clean installs for this problem and it remains, i don't want to do it from the terminal..(Buttons exists but they won't work...)
View 3 Replies
View Related
Sep 7, 2010
I have my drives set to run fsck on boot up. This is the default setting for Fedora but if there is a problem it prompts me to run fsck manually. Is there a way to have Fedora just run fsck and fix any errors it finds on boot up?w in Debian distros you can put FSCKFIX=yes in the /etc/default/rcS file to do this. But I can't find the equivalent on Fedora.
View 2 Replies
View Related
Sep 10, 2010
When I run lilo (/sbin/lilo), it messes up my /boot partition. Next time I try to mount it after running lilo, I get an error: "mount: Stale NFS file handle" (I define -t ext2). My /boot partition is ext2, mounted locally, and not nfs. Then I do fsck /dev/sda1, and I get several: Free blocks count wrong for group #0 (7665, counted=5063). Fix<y>? I say yes to all and it works normally afterwards. This happens only after I run lilo. Lilo is installed in MBR.
Here is relevant configuration:
Code:
root@darwin:/home/cabrilo# cat /etc/lilo.conf
append=" vt.default_utf8=0"
boot = /dev/sda
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
prompt
timeout = 30
change-rules
reset
vga = normal
image = /boot/vmlinuz
root = /dev/sda3
label = Linux
read-only
This is my partition table:
Code:
root@darwin:/home/cabrilo# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8f800200
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104422 83 Linux
/dev/sda2 14 144 1052257+ 82 Linux swap
/dev/sda3 145 3432 26410860 83 Linux
/dev/sda4 3433 19457 128720812+ 83 Linux
And this is my fstab:
Code:
root@darwin:/home/cabrilo# cat /etc/fstab
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 1 1
/dev/sda1 /boot ext2 defaults 1 2
/dev/sda4 /home ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
View 4 Replies
View Related
Mar 12, 2011
I have a desire to boot Tripel windows7 arch and Slackware but unsure how to partison my hard drive??
View 5 Replies
View Related
Jan 4, 2011
I am wondering if there is a way to manually trigger a file system check during boot by pressing/holding a key. Maybe there is already a keyboard shortcut built in to do this?I know that using tune2fs you can modify the number of boots (mounts) between file system checks, or even use "shutdown -rF" to reboot the system and force a file system checkAlso, I do not want to force the user to choose to run/skip the file system check during boot. For example, prompting the user with, "Do you want to run a file system check [y/n]?" each boot (or even each time the system thinks it should run a file system check),s not desirable
View 1 Replies
View Related
Feb 25, 2011
I need to boot in WXP just because the guys at the company don't want to update for Linux drivers in the TS so I can't connect from home unless I do it in Windows XP. But today WXP refuses to boot, when the progress bar appears, the system boots automatically. The WXP CD doesn't help, the repair console doesn't let me run chkdsk or anything (dir C: gives an error about listing addresses or something like that). Is there any way to use fsck or anything in Linux to repair the WXP NTFS partition?
View 1 Replies
View Related
Apr 20, 2011
i have the same issue but with a real install, not a vmware.every reboot fsck says that my main partition was not cleanly unmounted and check is forced.during shutdown the ubuntu does not show messages in a clear way but in random places. however, i am able to see the "/ is busy" message 1 second before reboot/off.my distribution is 10.10 upgraded from 9.10, 10.04
View 2 Replies
View Related
May 29, 2010
I am using xfce desktop and terminal.
1) How do i check to see what is the default FTP Client used by Slackware12.2 when i type:
$ftp
2) How do i get ftp to download large files? > 2gb from ftp server elektroni.phys.tut.fi or any ftp server.
View 14 Replies
View Related
Apr 14, 2010
I am so sorry but this is not for me. I cant make this work. I want to install windows xp back in my pc, i just give up with Linux, I lack the expertise to do anything here.
View 2 Replies
View Related
Mar 5, 2011
In gparted I have the following stats for my /home drive
size: 824 gb
used 75.51 gb
unused 748.59 gb
Now when I view this in nautilus it shows something else: remaining free space as 709 gb. My question is what happened to the 40gbs? the 75.51gb are my files, but where did the 40gbs go to? Because 709 (total remaining) + 75 (my files) + 40 (mysteriously lost gbs) = 824gb. When I first made the partiton, it was a 824gb partition and ubuntu had automatically at that point reserved about 40gb for something. Does anyone know why Ubuntu reserved this space?
View 4 Replies
View Related
Jun 25, 2015
I use debian jessie 8.1 and when i boot it, pc start fsck block clean etc.. but the fsck control is activated every on boot?
View 14 Replies
View Related