i borked fstab, changed a label, now wont boot

If none of the more specific forums is the right place to ask

i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 17:26

using debian 9.3, unfortunately, I was screwing around usb drives on kde partitioner. When I rebooted I am stuck in a login prompt.

Unfortunately I had a very nice nextcloud setup….
and I think that it, albeit beyond my technical understanding, is just probably a few commands to undo my bad….

note generally i set it and forget it.... with the occasional hardware of this type of problem;


My first thought was that I borked /etc/fstab.

When I go to nano etc/fstab it is empty and says that it is read only:

I have 3 drives;
an ssd driva sda
a 3TB drive for swap and other os items (sdb) I let it autoconfigure what was suggested on initial installation of debian.

and a 3TB drive for backups (sdc)


so as root if I do sudo mount -o remount, rw /dev/sda1
then I go back and recheck fstab I see an error “ [Error reading lock file ./.fstab.swp: not enough data read]

image is posted here of the drives:
lsblk -i http://postimg.org/image/60desuf4b/3f644ee0/


any suggestions would be VERY greatly appreciated.
Thanks for your time
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby Head_on_a_Stick » 2018-02-11 17:52

qu1nn wrote:I had a very nice nextcloud setup….

I don't know what this means, please explain further and include as much detail as you can.

From your screenshot, it looks as if your system has booted just fine, what exactly were you expecting to happen?

Given that your are booted and logged in, an fstab problem seems unlikely, no?

Clearly I am missing something so please provide more information about exactly what has gone wrong.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8315
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 17:54

the system used to automagically go into debian KDE.
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby Head_on_a_Stick » 2018-02-11 17:58

Please post the output of
Code: Select all
systemctl get-default

Does this bring up your desktop
Code: Select all
# systemctl isolate graphical.target

If not, does this do the trick:
Code: Select all
startx

Post any error messages in full, thanks!
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8315
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 18:07

thanks for responding.
all three commands you suggested are posted here:
see https://postimg.org/image/sjzb23izf/7c6cf282/
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 18:11

something else is funky as well;
if I want to take a look at the backup /etc/fstab.bak I get the following:

"-bash: fork: Cannot allocate memory"
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby Head_on_a_Stick » 2018-02-11 18:19

I did not tell you to run `startx` as root, please don't do that.

Log out then log back in again as your normal user and run the `startx` command again but without root privileges.

Please also post the contents of /var/log/Xorg.0.log after the inevitable failure.

I'm not going to click on any more picture links so you might want to install https://packages.debian.org/stretch/pastebinit so we can continue in a more civilised manner.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8315
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: i borked fstab, changed a label, now wont boot

Postby dilberts_left_nut » 2018-02-11 18:21

qu1nn wrote:I was screwing around usb drives on kde partitioner.

More detail on this would prove helpful.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4911
Joined: 2009-10-05 07:54
Location: enzed

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 18:31

I changes a usb drive mount point from empty to something else; sorry that was several days ago and am not 100% sure but it changed to /home/jason/mcfiles ??? rebooted and then login prompt.

hey head on a stick, I appreciate your assistance in helping me fix my screw up
but using another computer so I cannot install that proprietary app you pointed out, nor will I be spending all day typing it out for you.

so much for civilized.
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 18:37

as a user startx scrolls by a bunch of stuff, looks like commands: similar to what I posted in last picture image.
when I try to go /var/log it says : no such file or directory.... latery systemd-journal[301] failed to create new runtime journal: no space left on device.. ...


keeps repeating
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby dilberts_left_nut » 2018-02-11 18:49

That might be a clue, no?

Check output of 'df -h'.
Also 'mount'.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4911
Joined: 2009-10-05 07:54
Location: enzed

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 18:59

somethings funky with sda. shows 100% use, I swear I wasnt close to being 'full' (like 75GB free only a couple of days ago - I usually monitor with a desktop widget.

how do I delete temp files from sda1 from command line?
also see
https://postimg.org/image/jvgr8682j/82af75cc/
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby qu1nn » 2018-02-11 20:00

somehow something that I did in kde partition editor caused my primary drive sda to fill up with data from one of my backup drives
Steps I used to fix:
1) had to log in as root and do sudo mount -o remount, rw /dev/sda1 (as drive was read only for some reason)
2) ensured that the backup drive was unmounted sudo umount /dev/sdc
3) deleted files from SDA rm -r NAME_MAPPED_DRIVE (the mistake that sucked disk space)
4) as root: cp fstab.bak fstab (overwrote fstab with backup)
5)edited out mistake line in fstab
6) rebooted

Thanks to those willing to help
qu1nn
qu1nn
 
Posts: 8
Joined: 2018-02-11 17:19

Re: i borked fstab, changed a label, now wont boot

Postby Thorny » 2018-02-12 08:27

qu1nn wrote:hey head on a stick, I appreciate your assistance in helping me fix my screw up
but using another computer so I cannot install that proprietary app you pointed out, nor will I be spending all day typing it out for you.

H_o_a_S is one of our most knowledgable and prolific posters, has helped lots and lots of people here.
Wasn't asking you to type it out for him, was asking you to post for *you* so you could get the best help with your issue.

I going to write this, realising that you probably won't like it, please don't react, just consider it. It might help you in your future posts.

Your "attitude" is likely to make people not want to help you. And you will want as many as possible to be willing to help you, we have expectations for information when it is asked for.

I for one, don't like to be asked to click on pictures, I have a low bandwidth cap on my Internet connection and images are usually large files. In addition there can be security issues with images.
User avatar
Thorny
 
Posts: 542
Joined: 2011-02-27 13:40

Re: i borked fstab, changed a label, now wont boot

Postby GarryRicketson » 2018-02-12 13:57

by qu1nn » nor will I be spending all day typing it out for you.


With out the details and info, we can't help. Nor will I spend all day trying get the info , or do searches for you. It is your problem, if you can not at least take the time to type out all the details, nobody can help you.

On Debian how do I delete temp files from sda1 from command line?

Hint: the 'rm' command can be used to delete files.
I am using a text browser, so can not see the images.
dilberts_left_nut wrote:
qu1nn wrote:I was screwing around usb drives on kde partitioner.

More detail on this would prove helpful.
User avatar
GarryRicketson
 
Posts: 5187
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable