LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 11-25-2014, 07:48 AM   #1
Alex Smith-Fanning
LQ Newbie
 
Registered: Nov 2014
Posts: 8

Rep: Reputation: Disabled
Exclamation Deleted Swap and Now Things are Going Wrong... (Debian Jessie)


Well, I had transferred Debian over to a larger hard drive (via using GParted to copy the whole partition) and it worked (to my surprise) for a while, but then I realized that it was using the old hard drives swap, so I deleted it and rebooted back into Debian and guess what? It wont boot. So I tried to put the swap back, that didn't work. I do have an error message though, it says something like this:
scripts/local-premount/rescuevol-can't remember-not found
But that has nothing to do with my problem (I am guessing).

Does anybody have any information they could give me? Reinstallation is not an option, and I have already tried booting off of the old drive, and it wont boot either.
 
Old 11-25-2014, 09:31 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If you back up /home, and /etc, you usually have most of the stuff you need, and you can do a reinstall. That's your fall back.

Has all mention of the old hard drive been removed from the system? Remember, you may have had /dev/sda, then added /dev/sdb. But when you pull sda and sling it, sdb suddenly becomes sda

Why not post the contents of /etc/fstab? That will help,
 
Old 11-25-2014, 10:01 AM   #3
Alex Smith-Fanning
LQ Newbie
 
Registered: Nov 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Its not my personal stuff that I am worried about (oddly), the things that I am worried about are my installed packages. As I don't have internet at home it will be very hard to get all the packages that I have installed back installed.

And I haven't gotten rid of the old drive yet, I don't plan to. I just moved Debian to a larger drive. The full Debian installation is still there in the old drive, but that wont boot either. Could /etc/fstab be saying that the old swap is still in the old drive? Is that why it is not working?

As I need information to do these things before I have to disconnect from the Internet, what would I have to do to /etc/fstab to be able to boot my system again?

When I get home I can try to post the contents of fstab, but if I disconnect the other (older) drive completely from my computer, would that help?
 
Old 11-25-2014, 01:45 PM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,484

Rep: Reputation: Disabled
Your original drive would have been the first drive, /dev/sda, when you copied it via gparted, you copied it onto the second drive, /dev/sdb.

So, first off, how many drives are connected, which one is now the primary/first drive(?), it should be your bigger drive, on that drive, change your /etc/fstab file, comment out the 'swap' line, it should now boot up when restarted.

If you didn't change anything on your old drive, it should (still) boot quite happily if it is the first/primary drive in your computer.

Last edited by fatmac; 11-25-2014 at 01:47 PM.
 
Old 11-25-2014, 03:49 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Alex Smith-Fanning View Post
I do have an error message though, it says something like this:
scripts/local-premount/rescuevol-can't remember-not found
But that has nothing to do with my problem (I am guessing).
Guess again.
I don't use Debian, but a meander through the script is likely to be enlightening. First option would be to remove swap from fstab, and make sure it isn't mention on boot (resume= keyword). The latter can be temporarily done from teh grub command line at boot.
 
Old 11-25-2014, 04:32 PM   #6
Alex Smith-Fanning
LQ Newbie
 
Registered: Nov 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
on that drive, change your /etc/fstab file, comment out the 'swap' line, it should now boot up when restarted.
I have already tried once to change the /etc/fstab, but it didn't work.
The original /etc/fstab file is as follows:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=aee3d498-71cb-4437-87ae-e678b37c7a0d / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc5 during installation
be31ec52-627f-4b86-b3bc-945563581873 none swap sw 0 0


It just completely hangs at boot. It gets past GRUB and then just hangs. It does the exact same thing when I boot either drive.

If I really need to, I can reinstall. Would I be correct if I said that there is a cache for all installed packages somewhere on the filesystem? That's the only problem, getting my installed packages back. That's what is important to me.

Last edited by Alex Smith-Fanning; 11-25-2014 at 04:49 PM.
 
Old 11-26-2014, 03:18 AM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,484

Rep: Reputation: Disabled
As you are using UUID, likely it is your problem.
Use 'blkid' to find out what they should be, enter them into your grub boot line, should sort it out.
(Also you could likely get away with using /dev/sd? in their place to get you back up & running.)

Packages should be in /var/cache/apt/archives.
 
Old 11-26-2014, 03:19 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If you have pulled or swapped drives, then yoy HAVE to change /etc/fstab.

To fix this, boot on an install cd or rescue cd, get a terminal (Ctrl_Alt_f2 usually) and run
Quote:
ls -l /dev/disk/by-uuid
That will show you a list of your partitions and their uuid; you can enter the correct uuid for your partition. If you don't know your partition, you can always mount one (on /mnt or /tmp is usually safe) and have a look at what is on it.
 
Old 11-26-2014, 01:10 PM   #9
Alex Smith-Fanning
LQ Newbie
 
Registered: Nov 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I fixed the issue with the whole system not booting. I simply downloaded the Debian rescue disk from the website, booted it up, and uninstalled cloud-initramfs-rescuevol and restarted my computer. The computer boots into Debian now, but I don't have a graphical desktop. I get the commandline interface to Debian. So I checked to see if XOrg is running, and it is. Does anyone have any suggestions as to how to get my GNOME graphical desktop back? Should I reinstall XOrg? Should I reinstall GNOME? What do I do?
 
Old 11-27-2014, 04:11 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Try this for starters

Code:
startx > ~/some_file 2>&1
less some_file
 
Old 11-27-2014, 06:07 AM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,484

Rep: Reputation: Disabled
Have you tried - startx, gdm, or gnome-session in a terminal?
 
Old 11-27-2014, 06:01 PM   #12
Alex Smith-Fanning
LQ Newbie
 
Registered: Nov 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes, all of those. I have tried every single one of them and it comes out with an error saying "connection refused".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian's new Art Theme (Jessie aka Debian 8.x). jens Debian 2 11-11-2014 02:48 AM
[SOLVED] Debian Jessie security dinodesilva Debian 3 06-26-2014 09:52 PM
LXer: Ubuntu 14.04 vs. Debian 7.3 vs. Debian Jessie Preview LXer Syndicated Linux News 0 01-27-2014 08:52 PM
LXer: Debian 8.0 Will Be Known as Jessie LXer Syndicated Linux News 0 07-31-2012 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration