I had some minor problems in this book. I re-installed the windows operating system in the dual system. It basically went smoothly. I thought everything went wrong, but under ubuntu, when the device is started, the following error occurs: cocould not stat the resume device file '/dev/sda7' (and something about giving a path or press enter ). Press enter, but press ctrl + alt + F1 to enter tty1 and then press enter to log on to the system. But the problem always needs to be solved. The method is as follows:
According to the prompts, it can be determined that the swap partition is swap. after entering the system, enter
Sudo fdisk-l
To view the current disk partition. It turns out that the partition is adjusted when xp is installed. The original/dev/sda7 is changed to/dev/sda6, so you only need to modify the configuration file set for the ubuntu swap partition.
Method 1: directly modify the configuration file
Run
Sudo blkid
Result:
/Dev/sda1: UUID = "d6145c6c-b428-4f34-b517-d114060eae85" TYPE = "ext4"
/Dev/sda2: UUID = "0A640C2C640C1CD7" TYPE = "ntfs"
/Dev/sda4: LABEL = "freedom" UUID = "dbc04f37-5259-43a8-9de2-6c04760163cd" TYPE = "ext4"
/Dev/sda5: UUID = "9f7dc9aa-fb3e-48fe-9eeb-54b39eec18ba" TYPE = "ext4"
/Dev/sda6: LABEL = "swap" UUID = "da9644c3-af91-4990-b325-080912961e9b" TYPE = "swap"
View the uuid of a partition (what is uuid ?), Modify the content in the following three files:/etc/initramfs-tools/conf. d/resume,/etc/uswsusp. conf and/etc/fstab, set/etc/initramfs-tools/conf. change the UUID in d/resume to the uuid in/dev/sda6 (your swap partition) and set/etc/uswsusp. change the first line in conf to resume device =/dev/sda6, and finally put the line with the swap flag in/etc/fstab (usually the last line) the uuid is also changed to your new swap uuid.
Method 2. reconfigure swap
Run directly
Sudo dpkg-reconfigure uswsusp
Or
Sudo apt-get reinstall initramfs-tools
Follow the prompts to complete it step by step.
Both of the above methods have been tested and are feasible. If you have any questions, go to xinongda.com/osblogto reply.
» Reprinted copyright: Xinong big» ubuntu error cocould not stat the resume device file» This article link address: http://www.xinongda.com/public/osblog/2011/07/06/ubuntu_error_could_not_stat_the_resume_device_file/» if you like can: Click here to subscribe to this site