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?
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.
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?
I'm having the following issue on an appliance using uClinux and MTD to access a NAND flash memory: Although the kernel has Yaffs compiled and it seems able to access the NAND, it doesn't create devices (/dev/mtdblock? and /dev/mtd?):
Code: root:~> dmesg Linux version 2.6.19.3-ADI-2007R1.1-svn (root@ubuntu) (gcc version 4.1.1 (ADI 07R1)) #1 Thu Feb 10 15:37:08 CET 2011 Blackfin support (C) 2004-2007 Analog Devices, Inc. Compiled for ADSP-BF532 Rev 0.5
I installed OpenSUSE 11.1 on a friends computer after having a lot of trouble from ubuntu, and because I use it. It was working great when she got it home, but it locked up randomly and wouldn't unfreeze so she turned it off and when she rebooted She got an error about there not being a file system present and that she needed to run a mount command, which didn't work. After that, now it just says that there is no files system present and you ge tthe basic prompt. I had her run a live cd and run Gpartd and check and repair the partitions, but it did nothing.
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.
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?
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)
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.
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..
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.
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....
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.
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.
Just moved to Ubuntu from XP. Whole process has gone very smoothly, but left with a small problem (i.e. it isn't actually affecting usability) that I don't seem to be able to fix and can't find on forums/internet. I also have a problem with the Floppy drive, but I've seen that problem elsewhere in the forums.
It's a dual boot system with both NTFS and Ext4 drives. All are visible and fully accessible. I decided to convert one of the NTFS drive to Ext4. That appeared to be successful and was successfully remounted as an Ext4 drive. The drive label is "Data". I did have a bit of a problem getting it remounted so that I could see/use it under my log-in as opposed to just under root. It's at this point I think that I did something to create the problem.
I now have two entries for "Data" in drop down menu for Places. The true one is shown as a standard hard drive icon, but the false one is shown as a different icon - possibly an external drive icon (note that the floppy drive is also showing as the same icon and I can't access that, but I've seen that's a problem elsewhere in the forums).
I can write and read to the true "Data" hard drive. If I click on the other false "Data" icon, I get the message "mount: /dev/sdd1 already mounted or /media/Data busy mount: according to mtab, /dev/sdd1 is already mounted on /media/Data". If unmount the true drive and try to mount the false drive, the system mounts the true drive instead. If I log into nautilus as root, neither the false data drive or the floppy appear in the left hand panel.
For some reason my Windows partition is being automatically mounted under ubuntu 9.10. I would prefer not to mount it, but as it's not included in fstab I don't know how to stop it..
Code: $ cat /etc/fstab # /etc/fstab: static file system information.
i know this is probably a really novice question.. but i can't seem to find where the mount direcotry for my mp3 player is.. its showing up in rhythm box, but when i look in media its not there, and when i click on places its not showing up either..
Concerning an installation of Ubuntu 10.0.4 LST.After update from Update Manager, where a kernel update was installed:
Code: mount: mounting /dev/disk/by-uuid/62643a8f-2322-4a0d-07842ff6a26 on /root failed: invalid argument mount: mounting /dev on /root/dev failed: no such file or directory[code[,,....
After this, it opens up BusyBox - when I exit from here, it responds with "Kernel Panic - attempting to kill init."I assumed this means the kernel can't be mounted, but I'm not great with these matters.
Im having trouble sharing a mounted iso in narty. i have mounty installed which is what i use to mount my iso's with and i attempted to share the folder it creates in my home folder over the network to a windows based machine with no luck.
On my computer I have one IDE drive that is my boot drive and a mirrored SATA raid set. When I login as "root" and mount the SATA volume it's always there. When I logout or shutdown if I login as root it's always mounted. I want to do the same thing for my own user ID. I did a search on having volumes mounted when I boot but they seem related to older versions of Ubuntu. It almost seems like a permissions problem since the "root" ID mounts the volume when I boot and my user ID does not.
I have a Sandisk mp3 player. I got it because A - I like Sandisk and B - I know they have better out of box support for Linux than most other manufacturers. It is an 8gb mp3 player with an 8gb micro SD card, so each pieces of media mount independently under - SANDISK - 8gb Media.
Sandisk sits in my desk for a few months, unused, since then I upgrade systems to 9.10, blah blah... not it won't mount. Sure, it'll charge it and all. But the actual device won't mount. I did not check fdisk -l, however, I did check gparted and I never saw the thing get recognized.
OK got a couple of external USB hard drives and my mp3 player that are fairly often connected to my laptop. When updating the files on my mp3 player the other day I noticed something that seemed weird.After deletion of files there is same amount on the disk. After ejecting and reinserting things are still the same. To have the files correctly updated I have to Unmount the drive, then I see it flushing the .Trashes folder and actually freeing space on the drive.
Now the same thing seems to happen at Shutdown of the PC, files are not being updated and are still being seen by the mp3 player/hard drive. Think new files are being seen but old one not removed but not 100% sure.Is there anything I can do to force Ubuntu to correctly Unmount all drive at Shutdown so I don't have to do each one manually first? Or is there something else I am missing?
Is anyone aware of a way (or a program I can use) to write to an existing ISO image?To set the scene I've used APTonCD to create an ISO with all the programs on I want so that the next time I install Linux Mint (or Ubuntu) I can just put in the CD & install a lot of programs in one go with Package Manager. Thats worked fine & I have the ISO ready for CD but I would like a way to change it a bit so that I can add some of my own custom setup scripts (stuff to set up user accounts & so on) then every thing I need is all on one CD / DVD
When I powered-up my computer today I received the message that the home partition listed in /etc/fstab cannot be mounted and to press ESC to go to the recovery shell.
My computer is dual-boot, with Windows on the first hard disk (sda) and Ubuntu 9.10 on the second hard disk (sdb); I am using Grub version 1.97 beta4. The home partition is thus on sdb2 and the file system is ext4.
The /etc/fstab file contains all the partitions and has not changed since last October. Also, when issuing the command fdisk l, all partitions are correctly displayed, including the home that cannot be mounted.
Finally, the command fsck /dev/sdb2 quickly returns the result that /dev/sdb2 is clean!
I am trying to actually wipe my entire hard drive and figured it may just be easiest to format the hard drive and deleting the partitions. So when I go to System => Administration => Disk Utility => Select the Hard Drive => Click Delete Partition => And I get the error shown in my screenshots. What would be my best way to delete this partition and remove ubuntu completely for the time being. And yes I am using the latest RC. 10.04. However I don't suspect this is a bug.