Debian Configuration :: Hibernate To Disk Not Restoring
Mar 9, 2011
I have Debian 6 (squeeze), I have also seen this under Ubuntu (can not remember how I fixed it). (has worked in ubuntu 10.10)I can hibernate, but when I switch on the system cold boots (it does not restore previous session).Note suspend works fine. Have looked in /var/log/pm-suspend.log Shows for each block of suspend suspend a block of resume suspend, but hibernate hibernate is not followed by resume hibernate ( I assume that is what is expected.)
My computer initially had one hard drive, with Debian Lenny 5.0.4 installed. I haven't done any special configuration, so upon boot, I was presented with the GRUB kernel select menu, then gdm, etc. I think I used the Debian installer's 'use entire drive with LVM' configuration.
I then added a second hard drive, with the intention of installing Windows XP on it. After I installed XP on this second drive, I found out that it had overwritten the MBR on the first drive. (It was my intention do use the BIOS' F8-key boot menu to choose between the two drives, each with their own distinct boot loader. The two drives and OS's would be completely independent.)
Using my Debian installer CD, I think I have GRUB installed on the first drive again. I've found a number of tutorials which say I can use 'set' and 'linux' to boot the system, but the linux command always returns a file not found error.
I think my LVM filesystem is still intact, as the Debian installer's fdisk reports it, it can also chroot to it and my installation appears to be intact. 'ls' within GRUB shows (derek-swap_1) (derek-root) (hd0) (hd0,1) (hd0,2) (hd1) (hd1,1) (fd0) . 'derek' was the hostname I used.
I would like to simply restore the system to the way it was before: with the standard GRUB that comes with Debian 5.0.4, which then boots into the debian with my LVM filesystem. Is there a way to do this from the Debian installer CD? (I was hoping there would be a 'dummy install' command which would install GRUB and configure it properly, but leave all my existing partitions and filesystems intact.)
I have recently installed Debian alongside Vista on the same boot menu using the GRUB booting device. Only problem is, I couldn't boot Vista at all any more, so I removed my Debian installation from that drive. But the GRUB boot record persists, I don't have the Recovery disk to restore my old system, so I have to find a way to manually remove the GRUB track and put the old record in its place. I assume there was a copy made of it by the installation program, now my only problem is to find that file and copy the content back in place (at the address at the very beginning of the drive) all that by using Linux code, since that is all I have left. Being new to this game, I have no idea how to begin writing the right command for a job like this
I use my laptop at the college, and I've to suspend him frequently. So, I've decided to install the package pm-utils, to hibernate my PC, instead of power off it. When I try to do "# pm-hibernate", a tty appear, and this error is displayed :
[3506.405310] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [3506.405310] PM: Device usb1 failed to freeze: error -2 This is the result in pm-suspend.log : Initial commandline parameters:
Installed Debian 8.2 a while back, and I've been having issues with getting the machine to suspend correctly. If I try to put it to sleep when logged in to my regular user account the screen just goes black and then the computer hangs. However if I put it to sleep as root everything works fine. I do this by running this command (as root):
Code: Select allsystemctl suspend
What can I do about this? Worked fine on Debian wheezy..
Btw, just found this in the dmesg log. Connected perhaps..?
Code: Select all[ 6.863018] ACPI Warning: SystemIO range 0x00000000000018e0-0x00000000000018ff conflicts with OpRegion 0x00000000000018e0-0x00000000000018ef (\_SB_.PCI0.SBUS.SMBI) (20140424/utaddress-258) [ 6.863028] ACPI:
If an ACPI driver is available for this device, you should use it instead of the native driver
My Thinkpad T61 just got a Corsair X256 SSD in the ultrabay (where the CD usually is). This works well except for hibernating. Earlier I had a traditional HDD drive there which also hibernates just fine.After a failed hibernate the machine hangs with this message on screen:
I've been running 6.0.2 amd64 stable since release day and recently have noticed my suspend and hibernate do not work. Normally I have transmission running and have set it to not enter sleep mode while torrents are active. However today I have not had transmission and was wanting to see if the sleep mode options would kick in. So I have set my display to "sleep when inactive for" 5 mins (this works perfect) I have set "put computer to sleep when inactive for" 10 mins (this does not work at all)
When I try to manually test suspend my display flashes black for a few seconds but remains backlit, then asks me to log back in When I manually go into hibernate mode my display turns off, pops back on for a second and in a terminal says something about a usb device (something failed but it happens so fast I cannot read it)
I've tried editing .xinitrc to contain ck-launch-session and dbus-launch to no avail. Console kit is installed. I'm using Sid without a login manager, and xfce's suspend and hibernate work fine on my Wheezy computer. Xfce4-session and consolekit are installed. Is this a problem with permissions?
I have installed the latest virtualbox 4.1 on my desktop and laptop. It hosed suspend and hibernate.
The laptop is A Dell D630 with Intel Core2 Duo CPU, the desktop is an AMD based ASUS M3N78-VM mobo with Athlon II x2 250 CPU. Debian Testing 32-bit (same results with the 2.6.39 and the 3.0 kernels). Both have nvidia cards though - the desktop an integrated 8200, the laptop a NVS 135M. But suspend/hibernate was working before with the 4.0 series virtualbox.
The workaround is to clear the vboxpci vboxnetadp vboxnetflt vboxdrv modules from the memory before suspend/hibernate. I added the
service vboxdrv stop rmmod vboxpci vboxnetadp vboxnetflt vboxdrv
lines to my sleep script (i dont use power managers, just the acpi powerbutton/lid scripts modified). Everything is ok now.
I am running Squeeze on an older Compaq EVO laptop with radeon graphics.
A few months ago, after an upgrade, suspend and hibernate stopped working. The suspend or hibernate worked fine, but the resume just hung with a black screen. I finally got around to looking into it and found a workaround.
The workaround is to disable Kernel Mode Setting for the radeon. This can be done by adding the boot parameter "radeon.modeset=0" or by editing /etc/modprobe.d/radeon-kms.conf so that it includes the line "options radeon modeset=0".
If you are interested in the details, you can search for problem reports related to radeon kernel mode setting.
I have a Insprion 14R (N4010) and when I hibernate it will usually restore without a problem, but maybe 15% of the time it will reboot while loading. I would like to figure why, since I'd rather not lose anything... My swap space is 5.9GB, I have 4GB RAM (video uses 1gb, so I have 3gb usable)
I was using Ubuntu, installed over Wubi in WindowsXP. Due to some hard disk issues, I was having some problems booting into Windows. But Ubuntu was working fine. So i backed up all my data from Ubuntu and somehow managed to back up the 'root.disk' from Windows.That hard disk turned out to have some bad sectors. Now I am over a new hard disk with all my data and WindowsXP freshly installed. I want to have my old copy of Ubuntu back as I have the 'root.disk' file with me. How shall I proceed?I tried installing a fresh copy of Ubuntu using Wubi and then replace the 'root.disk' file. But it showed some Grub error.
I have this 1 TB HDD , which had a single NTFS partition. I was planning to repartition it using my Mac OSX Disk Utility( my blunder). Once I did the reparitioning disk utility ran for like 8 hrs for reparition of 120 Gigs. After seeing no status after 8 hrs , I just plugged it out.After that am not able to use my HDD seems this wretched utilit has screwed thepartition table. Needless to say this 1 TB contains my 10 years of life time.Till now I have done :Used R3cover to recover partition table: No luckUsed Stellar for Mac : NO luck( this tool ran for 36 hrs before shouting No Data Found!!)Am runnig Test Disk: Interesting tool ran for 30 hrs and asked me to do a deep search now its been running for 2 days with status showing 50% usageThe status shows some 20 Linux parition, 1 Swap parition and 1 unknown partition.As Far as I know I never created any Liux partition.
Linux 329525360 746620911 417095552 Linux 329525384 746620935 417095552 Linux 329525408 746620959 417095552
I am looking for an Open Source software making it possible to make a disk image of an Ubuntu installation as well as a Windows XP installation.I have checked out Clonezilla which almost solved the problem. However, the disk to which you restore needs to be the same size or bigger. I want to restore the whole thingo a smaller disk than the original.I am considering getting myself an SSD disk which will be considerably smaller than the 160 gb disk I have right now. I need it to work for Windows as well. Unfortunately I can't get rid of Windows quite yet I often participate in webinars on GotoWebinar and they do not support Linux ...
How can I load packages from the cd? I installed from cd1 which I burned on a desktop, then installed Lenny onto a laptop. Works great, no problems except I have no way of connecting the laptop other than wireless. I've found the network manager package on the cd, but don't have a clue how to install it. I really need to get the wireless working so I can install package manager, wi-fi radar and some other things. I tried putting the disk back in and thought rescue mode might bring me back to where I could select the individual packages I need, but that didn't work, it just wanted to go through another install. Thought there was a way to select individual packages and add them to the installation.
We had a server failure this morning because grub was throwing error 15 (file not found). We discovered that the disk had changed names from hd0,0 to hd1,0. Making the appropriate replacements in menu.lst fixed the problem, but I'm still wondering what could have caused the spontaneous name change.
here are some other possibly related tidbits: * the server had been down because of a power loss, but it is behind a UPS so i doubt there is any electrical damage * eth0 also temporarily failed but the system failed over to eth1
My current theory is that when the bios was configuring the hardware the loss of eth0 shuffled around the addresses of the remaining hardware on the pci bus, which somehow caused the hd0/hd1 confusion. The problem is that everything i've read [URL] says that the drive assignment should be based on the way the disk is connected to the motherboard (which in this case didn't change)
A few days ago I upgraded from debian 7 to 8. First I update, upgrade and dist upgrade - change source list and again update, upgrade and dist upgrade.When inserting a USB disk on key, it works okay. When plugging my WD "My passport" backup USB disk it does not work. The automatic mount works, but the disk can be accessed.I tried to do it manually in a format that worked on debian 7..Manual mount fails too.
umount My passport fdisk -l (to see device name) mount -t vfat -o rw /dev/sdb1 /media/kuku/usb_mp4 dmesg | tail [ 2381.080822] sd 9:0:0:0: [sdb] No Caching mode page found [ 2381.080828] sd 9:0:0:0: [sdb] Assuming drive cache: write through
I created my data pool using /dev/disk/by-id and things went well. a recent view of zpool status however showed /dev/sdb and /dev/sdc being used instead. how can I be sure a rearrangement of my disks wont cause error?
What i need is to mount several directories from any other partiton (or file system) as a new merge file system that can grow or decrease depending on the free space. As if it was a dinamic RAID,so i can work with huge files distributed over the partitions mounted.
I seem to have a major discrepancy between what df reports and what du reports. df tells me that I am using 20G, but I am only able to find 9.5G using du. What follows are the ls -l of root, a df of my system, and the du for every directory in root that is not a symbolic link, mnt, or proc. I would appreciate any suggestions on where to look for the remaining 10.5G that seems to have disappeared. I am running under VM Player code...
concerning Linux, mdadm, and creating RAID Array's in Debian. I've done a lot of reading and research on RAID both on this board and elsewhere (The Linux Documentation Project's Software-RAID HOWTO is especially good), but I've run across something that no one seems to explain, and I'm not sure why. I'm instructed to create partitions on the drives I wish to add to my array. These partitions inevitably take up the whole disk, and are always have their system IDs set to "Linux raid autodetect". What I don't understand is why, after creating these partitions, some guides then go on to create an array (say a RAID5 one) with just the disks themselves as members, while others go on to create the RAID5 array with the previously created partitions as members. E.g.,
im am new in compiling kernel, i had kernel 2.6.32-5 on debian 6 , so i compiled kernel 18.104.22.168 , my system can boot and up but i have a problem with flash disk and CDs and DVDs , now i cant mount these cases, in compiling i select CD-ROM /dvd filesystem and Dos/fat/NTFs filesystem too
I'm trying to setup a PXE server with Jessie. I've got the basic setup working by following the steps at [URL] .... That part was really easy. I would like to make the process as automated as possible and then add Win7/10 to the system as well.
The first hurdle I've come across is the fact that netboot downloads everything off the repositories. This has the potential to use up a lot of bandwidth and I would like to avoid this if possible. The first idea I came across was to create a local mirror, this way not only will I be installing everything off the LAN but I'll also be getting all the updates for my systems off the LAN too. I wasn't too keen on this. The other option that I read about was to use the debian ISOs instead.
What I have tried is to copy the Debian ISO to /var/www/html/debian
Then, when my boot via the pxe, i set the option to manually select a repository and then i type in the IP address for my webserver for the address and type in /debian for the mirror directory.
However it breaks at this point. I get a message saying "Downloading a file failed"
I would prefer the as much of the install to come from the ISO as possible to keep bandwidth usage to a minimum.
For Win10, I read that I have to use an AIK to build the Winpe and then boot that. Then I can load the Windows10 ISO via nfs through Winpe.
pxelinux.cfg/default Code: Select allroot@DHCP:/srv/tftp# cat pxelinux.cfg/default UI menu.c32 TITLE PXE Test Boot LABEL Debian 8 kernel linux append vga=normal preseed/url=http://192.168.0.254/debian/preseed.txt initrd=initrd.gz --
LABEL Windows 10 kernel ?? append ??
LABEL HardDrive Boot
This is a preseed I have setup so far
Code: Select all#### Contents of the preconfiguration file (for jessie) ### Localization # Preseeding only locale sets language, country and locale. d-i debian-installer/locale string en_US
I've got an 8-disk raid-5 setup, and one of the disks failed. I shut the system down, replaced it, and powered the box back on again. Then, I made a catastrophic mistake; I 'failed' and removed the wrong disk (should have been sdj1, and I typed sdk1 by accident). I tried to re-add sdk1 back to the raid array, but it got listed as 'spare'. My raid array is off-line, since I now have 2 disks unavailable.
I know that the data still exists on sdk1, is there any way I can get the raid array to recognise the fact that it's a valid part of the array, and not a spare disk? At least if I can do that, I'll have a degraded but accessible array, and then I can rebuild the array on the properly replaced disk.