Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

i borked fstab, changed a label, now wont boot

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
qu1nn
Posts: 8
Joined: 2018-02-11 17:19

i borked fstab, changed a label, now wont boot

#1 Post by qu1nn »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#2 Post by Head_on_a_Stick »

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.
deadbang

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

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

#3 Post by qu1nn »

the system used to automagically go into debian KDE.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#4 Post by Head_on_a_Stick »

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!
deadbang

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

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

#5 Post by qu1nn »

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

#6 Post by qu1nn »

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"

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#7 Post by Head_on_a_Stick »

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.
deadbang

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5343
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#8 Post by dilberts_left_nut »

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...

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

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

#9 Post by qu1nn »

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

#10 Post by qu1nn »

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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5343
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#11 Post by dilberts_left_nut »

That might be a clue, no?

Check output of 'df -h'.
Also 'mount'.
AdrianTM wrote:There's no hacker in my grandma...

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

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

#12 Post by qu1nn »

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

#13 Post by qu1nn »

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

User avatar
Thorny
Posts: 542
Joined: 2011-02-27 13:40

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

#14 Post by Thorny »

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
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#15 Post by GarryRicketson »

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.

Post Reply