Odd question I know and this is more out of curiosity then out of real usage.
Background:
I have a bit of a script that creates a xen image and within I check if the partition that is given contains a filesystem and if this filesystem has inodes in use. (This is all under ext2). After one run of the script which I had to abort there was a filesystem on the partition and my script refused to create a new one. Simple solution was just to create a new filesystem on the very partition and the script went on. I also thought of recreating the partition but this would not be very applicable on a running system with the partition on the same disk like root paritition.
So I'm looking for a way to delete a filesystem or at least set it's used inode number to zero.
When installing fedora 10 from scratch on an acer aspire one 150L, which filesystem should be used? ext2 or ext3? a basic explanation of the reason would be great too.
I run an upgrade and an update on a lucid lynx beta 2. --- got no problems. but about the filesystems i have some questions because it seems for me that at every system boot the system will run an fsck. somtimes it's shown up, somtimes not. but in /var/log/messages and in syslog
I have always following messages ( occured in beta 2 too ).
But first before i continue - here my disk layout:
And here my filesystem types:
This is my problem because those values are seems to be static ! ( note: this partiton is mounted but not in use ) and last not least: the drive is an external usb scsi disk. but on the other side lucid lynx is running fine on my box.
Some say because the record is not in a fixed length so rec_len is the real record length. Why is the length of the array `name' not fixed? I thought C arrays like this should be fixed length. C99 has variable-length arrays, does this structure count on C99?
This problem has arrived again.......I tried the same solution but didn't work out...the problem is described below.
I use Ubuntu 9.10 .
I did this in Ubuntu 9.10 live CD.
quote from terminal :-
ubuntu@ubuntu:~$ sudo mkdir /win ubuntu@ubuntu:~$ sudo mount /dev/sda5 /win ubuntu@ubuntu:~$ sudo mkdir /vdisk ubuntu@ubuntu:~$ sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk
[Code]....
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
During the file system check of an ext3 partition at boot I get the following output:
The super-block could not be read or does not describe a correct ext2 filesystem. If the device is still valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate super-block:
I'm then forced to login in as root and given the following prompt:
I'm reluctant to do as advised by the output and run e2fsck -b because it is not an ext2 filesystem.
Although I can still enter runlevel 5, it doesn't seem to recognise mouse and keyboard input in KDE so my system is effectively redundant at the mo. For this reason any short term workarounds are welcome, but a fix is needed. This problem is part of a longer saga to do with recovering a Windows Vista installation which started failing to boot. I have used both Vista and SUSE tools to try and recover my bootloader to no avail, and this has been the result. If more detail about this is needed please ask and I can explain what I have done.
Playing with the Box, I deleted a Raid-0 partition intentionally, saved it, and reboot drops me to (Repair Filesystem#) prompt. I notice during boot-up that the box didn't find /dev/md0, which is expected.
So what's the recovery procedure, since I can't edit #/etc/fstab, permission denied.
#fdisk -l shows all other partitions.
Not much familiar with fsck/e2fsck, yet like to give it a try.
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?
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.
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.
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 am planning on dual-booting Windows XP and Ubuntu on a new laptop, and because I have a program that lets me mount an ext2 filesystem on Windows, I was thinking of installing Ubuntu with ext2 instead of ext3. I am concerned, however, that it might open up a security risk for my Ubuntu partition. Would this cause a problem? (In case it's relevant, I use AVG Free antivirus in Windows.)
i TOTALLY ****ed up my windows bootmgr, and, in some way, the linux partition too. I'd like to format the windows partition, but as all my info stays intact I'd like to conserve it that way. The only way I can think of, is to make a new ext2 partition on the same HDD y have windows ( I only have one HDD, so... ) and save the information there . Wich is the correct way to do so, without losing all my software and/or information??
Other details:
* Rright now, i don't have ubuntu installed on my pc ( I'm using a live cd ). * I'm using ( or was ) win 7. * The only partitions on my HDD is an ntfs ( 60 GB ) and an unallocated ( 240 GB )
I have a installation of Ubuntu on a flash drive that I just finished updating, etc. I noticed that it ran surprisingly slow during all my updates and software installations. I looked into it further and found out that for Flash Drive installations, it is recommended to use ext2 due to it's speed and lack of journaling (to limit the amount of writes to the disk).
I REALLY don't want to spend all the time and effort I have just spentt on reinstalling from scratch! I'd like to convert my partition filesystem from ReiserFS to ext2. How can I do this?
Can I backup all the information, do a new installation using the LiveCD, and restore the backup? What program can I use, and which directories do I need to backup?
I use 8GB USB sticks for backup of Ubuntu 10.04. I have had a variety of problems with ext3 format (security tar file not readable, etc) and have reformatted to ext2, so far without a problem.
But - am I missing something by not using ext3 (or even ext4)? Should I be sticking with ext3 and try to resolve the problems - bearing in mind that as the USB stick is my backup I need it to be secure!
I wanted to access my Ubuntu partitions on my OS X side.
First things first, I downloaded MacFuse from: [url] Then, I went to [url]
And got their software. From there I mounted the .DMG files and ran the installers. I was able to get all of the software installed and running with no reboot required. Then I loaded the MacFuse control panel, enabled beta, and updated. NOTE: I am unsure if you need the beta for this to work as I did not try without it! Upon the completion of the update, I fired up terminal.
Now, I needed to know exactly which partition my /home/ was located on, so I typed:
Code:
From this, and my basic knowledge of how I setup my Ubuntu partitions, I was able to tell that my 68 GB disk, disk0s4, was my Ubuntu /Home. Then I created a directory in my /Volumes folder to mount the EXT partition to by typing:
Code:
Now that I knew what the disk was and had the all software installed, all I needed to do was mount disk0s4. This is accomplished with:
Code:
Then, I went into the Finder and saw a volume on the left side of the window called "disk0s4". In there are all my files from my home directory of Ubuntu that I can easily access. Great success!
The system that all of this was done on is a Dell Min 10v dual booting between OS X 10.6.6 and Ubuntu 10.10.
I have recently bought a Toshiba 1TB external USB disk.
I have formatted it using gparted to ext2 and Debian see's it but gives me an error "unable to mount volume" with some extra stuff about programs shouldn't disconnect shared drives.
I can mount it ok by creating a folder called usbdisk and the mount command "mount -t ext2 /dev/sda1 /home/mike/usbdisk" and it works fine, but I have to do this everytime I start the machine.
Does anyone know what exactly I should put into a setup file to make the machine do this everytime , but only if its there.
As I'm not very clued up on bash scripting , I'm assuming it something along these lines:
How would I add this at boot?? Would I add it to the end of "init.d/rc" ?
I had to install a new disk drive in my PC a week ago because the old drive died. The new drive is a 160 gig drive. First I installed Win XP with S/P 3 and everything was fine. Then I installed Ubuntu 8.04 and the troubles began. Ubuntu resized the Windows partition down to 8.81 gig and used the other 137.44 gig for Ubuntu. When I booted into Windows I started getting nasty little messages about "not enough disk space". SOOoooo....... I booted using the Ubuntu install CD and ran "sudo gparted" in a terminal window. I tried to resize the ext2 partition but got an unknown error.
Then I ran fixmbr in Windows to get rid of grub. Then I tried running gparted again to delete the ext2 partition. Got an error that said "can't delete the partition because it's mounted". So I tried to unmount the partition but got a message that the command "unmount" could not be found. After that I installed Partition Magic in Windows and tried that. It sees the ext2 partition but says it's unsupported when I try to delete or resize it.
I ran fdisk but it doesn't see the Linux partitions either, so I can't delete them in that program. I finally tried to format the disk but now I have a 9 gig drive with nothing on it. How do I get those Linux partitions off the drive so I will have a 160 gig drive that I can start over with? I've spent 6 days this week reinstalling XP and all of my programs, and now everything is gone because Ubuntu decided to be a disk hog.
I would like to convert my /tmp and /boot partitions from Ext3 to Ext2 on my Arch Linux setup. I don't see any use in having journaling for either partition. I want to make sure that I have the right steps lined up so could someone verify that this is correct (from a live cd):
Code: #sudo tune2fs -O ^has_journal /dev/sda7 #sudo e2fsck /dev/sda7 #sudo tune2fs -O ^has_journal /dev/sda5 #sudo e2fsck /dev/sda5 I then edit /etc/fstab to reflect these changes (ext3 to ext2 for both lines)
Does it matter what order I do it in (/dev/sda7 is /tmp and /dev/sda5 is /boot).
I have a new Vertex2 Solid State Drive. When I try to install any distributions, formating the drive in EXT3 or EXT4 (or LUKS with EXT3, or EXT4). My hard drive times out during a copy process. (OpenSUSE 11.2 for example would crash after the 2nd file of X11. Debian got ~12% done when it crashed.)
I was installing windows vista on my computer, so I backed up everything to a external drive which was formatted with ext2. I then proceeded to install windows vista. When I got to the partition section I tried installing windows vista to my raid 0. When it didn't work I decided that I would delete all my existing partitions and create a new one. Well in my haste I accidentally deleted my ext2 partition from my backup drive that was still connected. As soon as I realized what I had done I shutdown the windows install and disconnected my external drive. This is the current state of my drive from parted:
Model: WD 15EADS External (scsi) Disk /dev/sdb: 1500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags
I know that the drive only had one partition before and that it took up the entire disk and it was ext2 (maybe ext3).
We are running debian off of an SD card and want to know what's best for /var?
- Plenty of room on 2GB SD card, so do we, make /var as large as possible (everything else is read only) to reduce block overwrites, or do we make /var as small as possible, hopefully reducing the load 'pdflush' places on the 200 Mhz system?
That said, why not ext2? Is there damage that can happen in /var due to insta-crash or power loss that will prevent proper system function? We heard ext4 is more optimized, but ext4 on 2.6.29, not sure.
If we must use a journaled file system for /var, then which is lowest load on system, or "better": jfs, ext3, jffs2 ...
This might be a longshot but i used to use the 4 bay NAS here Which formated the HDD JBOD array to EXT2 , Anyway i want to move to an 8 bay DAS now but i cant find an application to convert the partitions .
Partition magic says the partitions are unformatted and the partition id is set to linux raid auto . Is there any way to convert this partition to vanilla EXT2 so i can use partition magic on it ? Its a 4TB array so copying isnt possible.
create lenny usb-hdd live and would like to have ext2 on the usb stick.I changed in config/binary to ext2:LH_BINARY_FILESYSTEM="ext2"but get this problem:# lh_clean # lh_build W: You have selected values of LH_BOOTLOADER and LH_BINARY_FILESYSTEM which are incompatible - syslinux only supports FAT filesystems.
I'm stuck trying to install f13 on my trusty old eeepc 701 4g. It has a 4GB SSD and 32GB of usb flash memory. The plan is to replicate how I had f9 installed: / and /boot on the ssd with /usr/share and some /home/<user> data directories on the usb flash. I had a hacked f9 kernel that supported persistent usb, allowing me to suspend to ram with this arrangement. It looks like that's now built into the stock kernel. he problem I have is that the Live CD image (I've tried the stock Fedora and the XFCE spin) can't deal with installing to ext2 (only 3 and 4) and the boot.iso image flatly ignores the "lowres" and resolution=800x480" options. I can work my way through the first few screens blind, but can't deal with repartitioning.I'm sure this is a Standard Problem, but I haven't hot on the magic google search to find it all afternoon
I have a usb flash drive and according to sources I found out after the fact that I should have used ext2 instead of ext4 due to the extra write operations.
Is it possible to convert the ext4 root partition to ext2 or do I need to backup, reformat, and restore?