Showing posts with label disk. Show all posts
Showing posts with label disk. Show all posts

Wednesday, 11 February 2015

[ubuntu] Burg on wrong disk... topic






I have installed burg to wrong disk (/sda not to /sdb). Can anyone help me with reconfigurating or reinstalling this? When computer boots i can see GRUB2.


Quote:





sudo burg-emu






Quote:





sudo fdisk -l











[ubuntu] Disk Drive for dev/mapper/cryptswap 1 is not ready or not present topic






Hello everyone

I have ubuntu 14.10 running in my laptop, and everytime during booting I get the aforementioned message. I have also noticed that in certain circumstances it starts to lag (it has 8Gb in RAM). I've searched the internet for an answer, but so far I have solved nothing.

Any ideas?

Thanks






[server] Correct procedure for extending disk topic






Hello,
I have many server with Ubuntu Server 14.04 LTS.
I have 2 Virtual Disk: one for S.O. Ubuntu, second for my data.
Many times I need to extend second disk.
I follow this guide (VMware KB: Extending a logical volume in a virtual machine running Red Hat or Cent OS ) but after 4 primary partitions can no longer extend the disk.


What is the procedure / method to extend a linux disk ?
create partitions of type extended rather than primary?
Or is there another way?


Tnx
Manuel






Tuesday, 10 February 2015

The volume "boot" has only 0 bytes disk space remaining topic






I know others have posted this, I have read and read and I really need some help.


Here is some (not even close) to all I have done, to try to fix this. I have lost track of what I have done so here is a start I supose.

OK so I have been getting this 0 bytes available in /boot for a while aI I have been trying to fix it.



sudo apt-get autoremove

dave@dave-Satellite-A135:~$ sudo apt-get autoremove
[sudo] password for dave:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not installed
linux-image-generic : Depends: linux-image-3.13.0-45-generic but it is not installed
E: Unmet dependencies. Try using -f.

so then I ran this
dave@dave-Satellite-A135:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-image-3.13.0-45-generic
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
linux-image-3.13.0-45-generic
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
4 not fully installed or removed.
Need to get 0 B/14.7 MB of archives.
After this operation, 32.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 425218 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-45-generic_3.13.0-45.74_i386.deb ...
Done.
Unpacking linux-image-3.13.0-45-generic (3.13.0-45.74) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-45-generic_3.13.0-45.74_i386.deb (--unpack):
cannot copy extracted data for './boot/System.map-3.13.0-45-generic' to '/boot/System.map-3.13.0-45-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-45-generic /boot/vmlinuz-3.13.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-45-generic /boot/vmlinuz-3.13.0-45-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.13.0-45-generic_3.13.0-45.74_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ad get the error code (1) I would assume because its trying toinstall the newest one but has no room.

So then I tried this
sudo apt-get autoremove
dave@dave-Satellite-A135:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not installed
linux-image-generic : Depends: linux-image-3.13.0-45-generic but it is not installed
E: Unmet dependencies. Try using -f.


dave@dave-Satellite-A135:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 456G 111G 322G 26% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.5G 4.0K 1.5G 1% /dev
tmpfs 303M 1.3M 301M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.5G 260K 1.5G 1% /run/shm
none 100M 68K 100M 1% /run/user
/dev/sda1 236M 233M 0 100% /boot




in the end here is what I still have
dave@dave-Satellite-A135:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 456G 111G 322G 26% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.5G 4.0K 1.5G 1% /dev
tmpfs 303M 1.3M 301M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.5G 260K 1.5G 1% /run/shm
none 100M 76K 100M 1% /run/user
/dev/sda1 236M 233M 0 100% /boot
dave@dave-Satellite-A135:~$






[ubuntu] Disk Utility: "Partition is misaligned by 1024 bytes..." topic






I'm planning to steal some of my Windows 7 partition to increase size of my Ubuntu on my dual-boot as I explained here (just waiting til I can buy some more internet allowance so I can download a Live iso - my internet access is via tethered smartphone). While waiting for my piggy bank to fill, I had a look at my system with Disk Utility, and found my Ubuntu partition is "misaligned by 1024 bytes" which may result in very poor performance." (Screenshot attached)

The laptop is giving less-than-optimal performance, but this may very well be because I smashed the screen and fed coffee to the keyboard. I use an external monitor and usb keyboard and mouse now, so my laptop is a desktop... but who knows what other destruction I have caused the machine's innards? Anyway, I'd like to fix this "misalignment" issue - but not if it means I have to reformat and lose my music/video/other collection (yes, backup backup backup... but it would be such a pain - plus the "poor" performance isn't that poor, and as I already wrote, there are many other possible reasons why performance isn't as good as what it was).

So, does "repartitioning" in this case mean reformating/whatever and losing my files? Or have I misunderstood this? What exactly does this repartitioning entail?

Another quick question: I said that I'm waiting til I can download an Ubuntu Live iso before shrinking the Windows 7 partition and giving the extra freed-up disk-space to Ubuntu. Obviously I don't have an Ubuntu iso. However, I do have a kubuntu-13.04-desktop-amd64.iso and a lubuntu-13.04-desktop-amd64.iso. I could use one of them rather than having to download an Ubuntu image, right? But I'm not a Kubuntu or Lubuntu user, I don't know what the required tools may be called... so can someone perhaps enlighten me on this too? Cheers.









Monday, 9 February 2015

[ubuntu] warning boot volume low free up disk space topic






it is saying their is little space remaining in "boot" I tried gparted to make boot bigger but it does not let me do anything so what do I use to fix this problem?
it tells me to remove unused programs or files but can I move files out of boot? dont want to bugger things up by doing that would that be safe to do?

using windows 8 and ubuntu 14.04 and duel booting setup...






apt-get -f install returns disk full error, but plenty of space on the drive topic






Hello Ubuntu gurus,

I'm running 12.04.2 LTS, and I've run into an issue with my server. I initially my machine running off of a 10Gb memory stick, but imaged it over to a proper drive a couple of years ago.

A couple of days ago, my server sent me a missive to my inbox:

Code:


/etc/cron.daily/apt:
Cache has broken packages, exiting


When running apt-get -f install to repair whatever package went awry, I receive the following error:


Code:


The following extra packages will be installed:
  tzdata
The following packages will be upgraded:
  tzdata
1 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
1 not fully installed or removed.
Need to get 0 B/439 kB of archives.
After this operation, 48.1 kB disk space will be freed.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 644187 files and directories currently installed.)
Preparing to replace tzdata 2014i-0ubuntu0.12.04 (using .../tzdata_2015a-0ubuntu0.12.04_all.deb) ...
Unpacking replacement tzdata ...
dpkg: error processing /var/cache/apt/archives/tzdata_2015a-0ubuntu0.12.04_all.deb (--unpack):
 error creating symbolic link `./usr/share/zoneinfo/America/Dominica': No space left on device
No apport report written because the error message indicates a disk full error
                                                                              Errors were encountered while processing:
 /var/cache/apt/archives/tzdata_2015a-0ubuntu0.12.04_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


A check of disk space shows plenty of space, and 48.1 kB shouldn't be a problem:


Code:


r3lai@hargow:~$ df
Filesystem              1K-blocks      Used Available Use% Mounted on
/dev/mapper/hargow-root  10579232    8624180  1417660  86% /
udev                      2014992          4  2014988  1% /dev
tmpfs                      404852      2372    402480  1% /run
none                          5120          0      5120  0% /run/lock
none                      2024260          0  2024260  0% /run/shm
/dev/sdc1                  233191      51552    169198  24% /boot
/dev/md0                1922730680 1739242556  85819012  96% /media/raid1


Does anyone here on the internet have any idea what could be the problem?

Thanks,

Amadaeus






Sunday, 8 February 2015

[ubuntu] Can anyone recommend good disk backup utility topic






Hi there,
I have ubuntu 12.04 that I run as a server, and I was wondering if anyone can recommend a good backup utility where I can just make a disk image of the drive.

My main purpose is if the hard drive was to fail... I can just buy another hard drive (different size+make) and mount the disk image, swap it out, and continue...

1. Can anyone recommend a good way to make such a backup? (Can "dd" command do this?)

2. Will it be a problem if I just mount a backed-up disk disk image onto a new hard drive and put it into the machine, or will it have problems with the fact that it's a different hard drive (different make, size, etc...)?


Thanks a ton!
PA






mdadm disk replacement keeps failing topic






Hi,

I have a Raid 5 setup thats been running for years. About 3 time I had a disk fail, and replaced it with a new one. I'm no Linux expert so I have been working mainly through webmin doing all this.

2 months ago I had another disk fail, and I replaced it with a used disk I had laying around (according to sticker its almost 6 years old). At the same time I decided to reinstall the OS. I'm now running Ubuntu Linux 14.10.

A week ago I noticed degraded performance so I checked s.m.a.r.t status, and the the last added disk had 394 errors. I decided to buy a new one and swapped it in yesterday. This process went differently than usual. After boot madam didn't recover the raid. I got it back up by:

Code:


sudo mdadm --stop /dev/md127

and

Code:


mdadm --assemble --force /dev/md127 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2

The raid came up and started to rebuild itself. Speed was ok but after some hours someting happened.

Code:


henrik@ocean:~$ sudo mdadm --detail /dev/md127[sudo] password for henrik:
/dev/md127:
        Version : 0.90
  Creation Time : Sun Jan 16 16:54:05 2011
    Raid Level : raid5
    Array Size : 5766792000 (5499.64 GiB 5905.20 GB)
  Used Dev Size : 1922264000 (1833.21 GiB 1968.40 GB)
  Raid Devices : 4
  Total Devices : 4
Preferred Minor : 127
    Persistence : Superblock is persistent


    Update Time : Sun Feb  8 07:58:01 2015
          State : clean, FAILED
Active Devices : 2
Working Devices : 3
Failed Devices : 1
  Spare Devices : 1


        Layout : left-symmetric
    Chunk Size : 64K


          UUID : 6b4d814c:5c337c42:e68158d3:bcc31e01
        Events : 0.371442


    Number  Major  Minor  RaidDevice State
      0      0        0        0      removed
      2      0        0        2      removed
      2      8      34        2      active sync  /dev/sdc2
      3      8      50        3      active sync  /dev/sdd2


      4      8        2        -      faulty  /dev/sda2
      5      8      18        -      spare  /dev/sdb2
henrik@ocean:~$ sudo mdadm --detail /dev/md127


I rebooted and the raid didn't come up. I assembled it again and the same thing happened after some hours.

The disk I replaced is /dev/sdb. Why is it set as spare? Is it working as part of the raid?

Should I replace /dev/sda now? It seems to have a fine s.m.a.r.t report.

The raid is up and I can access the data. But this situation is not stable. Any advice is appreciated.

/Henrik






Friday, 6 February 2015

Disk space dissapeared topic






Hi
I have an Ubuntu 14.04 installation on an old Dell optiplex that I run as my home media server with mythtv. The PC has an 80 GB internal hard drive and a 2 TB usb drive. I have my home directory located on the USB drive and all my recordigns from mythtv go there too.

I just tried to download some files and found I was out of space. I downloaded some recordings and still no luck. I checked the disks application and it says my intenal drive has 55 GB free and my usb drive has 106 GB free, yet if I right click on any folder in my home directory it says I have a few tens of kB free.

Does anyone know what might be going on or how I can start trying to find out?

Phil






slow disk IO since 14.04 topic






I run several machines with Ubuntu Desktop and always update them to the next version (albeit gradually, one after another). after upgrading 5 of my machines to 14.04 I noticed a significant slow down in disk ops. Or maybe it is just more of them. For instance, starting a chromium browser, or a firefox now takes 30-40 seconds of disk thrashing with IO, mostly reads. This was not so in 13.10
I first noticed this on a slow Intel I3 3GB laptop with HDD. This is my only 32 bit machine, at that point I thought this is because 32 bit, outdated, and the machine itself is slow. did not pay much attention. But then I upgraded my Intel I7 8GB laptop (also HDD) and noticed the same increase in disk IO.
after that I upgraded my desktops (all have a minimum of 16 and up to 32 GB RAM, top intel I7) and noticed the same thing except for the 2 machines that had SSD.
Ok, SSD does not slow down, I get this, but why was 13.10 like 5 times faster on all my HDD machines?

I have not yet upgraded to 14.10, maybe I skip this for 15.04

does anybody notice the same thing?