Debian Configuration :: How To Run Fsck On Mounted Drive
Apr 22, 2016
How to run a fsck on a mounted drive? I attempted unmount and it said no. I suddenly got an error 4 and trying to run a check, and it aborts with can't cause mounted.
View 10 Replies
ADVERTISEMENT
Feb 20, 2010
When I plug in my external USB Hard drive which is formatted as a single NTFS partition, it is recognized and mounted automatically, a nautilus window pops open. Unfortunately it is not writable. The reason is: the partition is mounted "ntfs" (which lacks write support) instead of "ntfs-3g". This is the output of mount after plugging in the drive:
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type ntfs (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,dmask=0077)
I want this partition to be writable by just plugging it in.
The partition should not have any errors because a) I fsck'ed it windows and b) mounting it manually works:
$ sudo mount -t ntfs-3g /dev/sdc1 /media/disk_/
$ mount | grep sdc1
/dev/sdc1 on /media/disk_ type fuseblk (rw,allow_other,blksize=4096)
$ devkit-disks --mount-fstype ntfs-3g --mount /dev/sdc1
Mounted /org/freedesktop/DeviceKit/Disks/devices/sdc1 at /media/4EBC5FB82435B0EE
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
$ gnome-mount -nbtd /dev/sdc1
$ mount | grep sdc1
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
How can I get ntfs drives to be mounted as writable by default, preferrably without having to modify fstab?
View 1 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
Aug 27, 2010
How can I change the automatic fsck execution at boot time to be above 30 boots? I reboot the system sometimes 3 to 4 times a day. Intel 3 GHz, tower, i386 lenny vmlinuz-2.6.31-686
View 2 Replies
View Related
Nov 12, 2010
I want the filesystem of my external drive to be checked periodically after a numer of mounts. I put 2 in the sixth colums of fstab for this partition
Code:
/dev/sdb1/mnt/hdext3rw,dev,sync,user,noauto,exec,suid02
and I use the tune2fs to set the maximum mount count to 32.
Code:
tune2fs -c 32 /dev/sdb
now the mount count is 34 and the date of the last check is not recent, so apparently the auto fsck has not been performed. Probably because this partition is not mounted at start-up but I usually mount it manually.
View 3 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
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
Oct 24, 2015
I would like to resize the /home partition but it is mounted and when umount is run, it errors with 'busy'.
System Configuration:
I installed jessie on a laptop with one SSD. I used guided partitioning and selected the whole drive with multiple partitions. The /home now takes up 420 GB. I would like to reduce that to 20 GB to make room for another partition.
What are the methods reduce this partition?
View 8 Replies
View Related
Apr 18, 2010
I have two partitions in LVM. They are added in /etc/fstab to mount automatically. But, they are not working. The process to mount partitions seems to be happening before the service /etc/init.d/lvm2 is started. I can get it mounted using "mount -a" command, but not during the boot time. What should I do get it automatically mounted on every boot?
View 5 Replies
View Related
Jan 7, 2011
I'm not sure if this is a bug in Squeeze beta 2 or if it's something I've overlooked. I have a Maxtor 250 GB external USB drive that I use for backups. It gets auto-mounted fine, always in the same place, and from my normal user account I can write to it, even delete directories on it if I want to. But when, from Gnome, I select the "Safely remove" option, I get an error to the effect that it can't stop the device. The weird thing is that the thing actually *is* unmounted. I've checked the mount point and it's no longer there.Is there some package I maybe should've installed but haven't? I'm not really worried about data loss, since I'm sure the drive wouldn't unmount unless it was properly synched; it's just the error message that bugs me.
View 2 Replies
View Related
Nov 27, 2015
My primary repos are DVD .isos on my hard drive loop-mounted in /etc/fstab. Although I can install packages just fine and there are no issues with running installed applications, I must have screwed up the configuration of /etc/apt/sources.list because I get this output when I do apt-get update:
Code: Select allIgn file: jessie InRelease
Ign file: jessie InRelease
Ign file: jessie InRelease
Ign file: jessie InRelease
Ign file: jessie InRelease
[Code] .....
Here is my rather primitive but functional /etc/apt/sources.list:
Code: Select all# deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main
# deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main
deb file:/dvd1 jessie main contrib
deb file:/dvd2 jessie main contrib
deb file:/dvd3 jessie main contrib
[Code] ....
So what exactly have I screwed up?
View 0 Replies
View Related
Dec 20, 2010
how do i run fsck on my drives? all are ext2 power went out.
View 2 Replies
View Related
Jan 19, 2011
I have just installed Xubuntu and suprisingly it did not ask me to create a partition within its installer like Ubuntu does. So now, I am left with 150mb of free space. I want to expand that amount. The problem is, I do not know where it has been installed on. I have a C and an E drive. Currently, the C drive is mounted and the E drive will not mount even if i press the mount button. Does anyone have a solution?
View 8 Replies
View Related
Sep 7, 2010
I was working on my RHEL 5.2 workstation yesterday when the OS became flakey. first I noticed that some software that I had running was outputting and error that it was unable to write to log file because permission was denied - I've never seen this output before- it would have been writing to my home dir running under my user name. From an open terminal, i did "ls -al" and saw that many of the permissions the files in my home dir were listed as "????????" some were still "rwxrwxrwx", as well, many files were highlighted in the colors set for links and root privileges.
I tried to start a new terminal, and it failed. then Gnome crashed. When I reset the Machine, I got through grub, and into the startup, and after finding the Volumes, the startup failed with a Kernel panic:
giving several errors- like:
I dont have much experiencie with this stuff, but it looks obvious that somethig like the MBR or wherever the partion information is stored might have been corrupted.
What I dont understand is why I can get into GRUB (its a dual boot Windows Vista, RHEL machine). I'm guessing that this means its not a mechanical problem, because I can get RHEL to begin to boot which i think is failing somewhere around the /etc/rc.d/re.sysinit script, and also can get Vista to bring up the inital windows screen and a mouse pointer on spanning both of my screens which i think means that it must have at least loaded my ati drivers for my dual head radeon 4850. windows hangs there however.
I've tried the RHEL 5.2 rescue disc, and it doesn't recognize any Linux partitions.
I ran the system diagnostics out of the dell bios and it came back with a failed HDD : Error code 0142, but from digging around a bit I've found that this is a very broad diagnosis.
My concern over it being a mechanical problem is that I'm not sure that I want to try to run any further diagnostics, or any of the disk utility programs that i've seen listed here on linuxquestions, as it might damage it further, and there is some data that i would really like to get off this disk.
View 7 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
Feb 24, 2010
I got a Fat32 Extern Hard Drive and I would like to do a defrag and a scandisk on it with fsck? Can any one tell me what is the command to do it? I could not find it on google,
View 2 Replies
View Related
Nov 20, 2010
as far as i know Debian "Squeeze" has a disk check utility, but you can't run this on a mounted filesystem. Is there a way to trigger this during boot (before filesystem is mounted) ? I can run this once a month to keep filesystem healthy....
View 2 Replies
View Related
Jul 20, 2010
Having trouble with mounting drives, I have a usb pen drive that mounts no trouble now I've installed ntfs-3g and modified the fstab. however i can't write to it. I get the error as shown in the attached screen shot.
[Code]....
View 3 Replies
View Related
Mar 1, 2011
Is there a way to permanently, completely and utterly disabling the "feature" that stops me from opening my CD drive? I suspect it is the same thing that asks me if I want to play/mount/etc things when I plug them in. I don't - I just want to be allowed to use my computer without silly hindrances and interruptions. What is it that tries to take over my computer in this way?
View 10 Replies
View Related
Aug 28, 2015
How can I make a bootable usb drive with GParted?
Is there a package that I can install to do this.
View 8 Replies
View Related
Jan 27, 2016
I think my root drive is 100% full causing strange problems with my video server. What steps can I use to see what's taking up the room on the drive and perhaps identify files that can safely be deleted?
Code: Select allroot@lenny:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 55G 53G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 793M 1.1M 792M 1% /run
[code]...
View 14 Replies
View Related
Sep 8, 2010
I have installed a core debian install on the NAND on a little ARM dockstar, which is fine as a slow little media storage server but really i need to put squeezebox server on it and my media collection. Theres no issue slapping in a 2.5 usb HD in to the dock with my media on ... the issue i have is i do not have room in nand for the server application/associated dependancies (plus a lot of read/write issues if i put them in nand) so i am wondering if its possible to ammend the configuration somehow to have apt automatically install the server software (a pig to do manually with all the dependancies) to the USB HD (rather than the default nand paths) without affecting the operation/dependancies in the core install in NAND
View 5 Replies
View Related
Mar 2, 2011
I am having problem accessing and detecting a HFS+ USB HD Drive. I already installed HFSPLUS apps and its corresponding utils and said HFS and HFSPLUS module is loaded in my kernel.In short, my 1386 Debian squeeze cannot detect the said Drive and such I cannot mount it.
View 1 Replies
View Related
May 6, 2015
So after having spent the past half year preparing to abandon Windows and come over to Debian I finally made the switch last night only to realize I forgot one important thing... I didn't figure out how to map the network drive on my Windows server (currently learning to replace this with Debian as well) to my Debian system.
I have read about 15 links but keep getting the following error: Mount Error (6): No such device or address
Here is what I'm trying to enter into my terminal (with important bits removed for security of course)
mount -t cifs //xxx.xxx.xxx.xxx/Network_Storage/ -o username=xxx,password=xxx /mnt/cifs
View 14 Replies
View Related
Aug 24, 2015
when I type 'fdisk -l' I get the following:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 16065 584830259 584814195 278.9G f W95 Ext'd (LBA)
/dev/sdb5 16128 584830259 584814132 278.9G 7 HPFS/NTFS/exFAT
I have 2 hard drives both are 278.9GB in a mirror raid 1. Why does 2 partitions show up? Are they referring to each physical hard drive? I want to believe that this is the same partition and not two different physical hard drives since both are in the same 'start' and 'end' range. Is that correct?
View 3 Replies
View Related
Sep 22, 2015
I'm trying to set up an SSD as a cache to my external HDD (which is where my installation of Debian testing/stretch is installed). My installation is using LVM 2. I'm trying to have the SSD cache the entire external HDD, and not just one of the partitions (such as the root or home partitions).
Here are the relevant outputs.
uname -a: (Yes, I'm using the Debian stable kernel with Debian testing.)
Code: Select all3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
lsblk:
Code: Select allNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 149.1G 0 disk
sdb 8:16 0 111.8G 0 disk
sdc 8:32 0 298.1G 0 disk
├─sdc1 8:33 0 243M 0 part /boot
└─sdc5 8:37 0 297.8G 0 part
└─sdb5_crypt 254:0 0 297.8G 0 crypt
├─mydebianhostname--vg-root 254:1 0 14.3G 0 lvm /
├─mydebianhostname--vg-swap_1 254:2 0 11.5G 0 lvm [SWAP]
└─mydebianhostname--vg-home 254:3 0 267G 0 lvm /home
sr0 11:0 1 25M 0 rom
make-bcache -B /dev/sdc:
Code: Select allCan't open dev /dev/sdc: Device or resource busy
Must I "operate" on this drive via a live session or something.
View 0 Replies
View Related
Dec 30, 2015
I want to move my old system to a new drive. Currently I have Debian installed with following configuration:
I have an encrypted system where everything is encrypted except /boot. Currently I've /boot and / installed on a 16 GB mSata SSD and /home on a regulard HDD. I've got a 500GB SSD for Christmas and want to move the whole system to the new SSD.
I just wanted to ask if I've got the process required to to this down:
1. backup root-directory (/) without and /boot /home using tar keeping file-permissions and owners to ext. hard drive
2. backup /boot and /home separately using the same method
2. replace HDD with SSD remove mSATA SDD.
3. boot via live-usb
4. create appropriate volume groups, partitions, setup encryption etc.
5. extract backups to appropriate partitions
6. chroot to old /.
7. edit fstab
8. reinstall grub
9. create new init ram img.
I'm pretty sure I've got steps 1.-6. down but I'm very shaky on what to do next.
View 0 Replies
View Related
Jan 17, 2010
Basically, I have no trouble booting off a really old kernel like 2.6.18-6. If I try to boot off the newest one installed with Lenny, I get errors such as "mounting /dev/ on /root/dev failed...ditto for /sys on /root/sys" almost as if it's failing to find the drive. This finishes up with "target filesystem doesn't have /sbin/init" and I'm dropped into a busybox shell.It's an ordinary SATA drive, which is being used as an OS drive only. It seems as if something has changed with the newer kernel, but I have no idea where to start or what to look for.
View 3 Replies
View Related
Apr 24, 2011
I have Squeeze with Gnome.How is the best to stop all kind of usb drive automounting under Gnome?
View 2 Replies
View Related
Jun 16, 2011
Im running Squeeze (in VirtualBox on a Win host), and I need to clone my drive to a bigger one and boot from that drive. I used gparted from a live cd for the cloning, and got the following result with fdisk -l:
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
[Code].....
View 1 Replies
View Related