I accidentally deleted my /etc/fstab file.Without knowing this i shutdowned my Ubuntu OS.
Now i can't be able to boot.
My screen look like thisPlease give me some solutions.
@AvinashRaj by the way you not only don't need chroot, you also don't need the -o rw,remount options or the touch or anything really other than making a simple fstab file that mounts your root. Also, since /home is often on a separate partition, you should also add that to fstab or you won't be able to log in
@AvinashRaj The second and third are the same. Except in the second you tell people to run something extra which does nothing. You might as well tell them to sing a song. It'll do as much good. Nuke the second method.
@AvinashRaj if your /home is a separate partition, you won't be able to log in unless you also add that to fstab because your home will be absent. The system might create a new, empty $HOME for you copying files from /etc/skel but I'm not sure if that will always happen.
@AvinashRaj I do not know if it's a remnant from the past, but I have also proc /proc proc defaults 0 0 in my /etc/fstab --- maybe you need to recreate that too.
And you could break getting to a point where you've mounted the disk (recovery/live/etc) and writing a new fstab into two separate points. That way you're not duplicating most of the work.
Actually, @AvinashRaj would you even get the prompt you are showing in your question if you've removed fstab? I'm not sure
Wow! @AvinashRaj I just tested this actually, I deleted my fstab, rebooted and it was recreated by the system automatically! Methinks your solution might be needless
I can't test in a VM, it's stuck on the purple bootup screen (plymouth I guess) but I can't pass a Ctrl+Alt+F to it so I can't see if a shell is loaded. Not sure how a shell could be loaded though if it doesn't know where to find /
@Rmano F12 worked for some reason, I think any key would
OK, it looks like the rescue shell will mount at / the partition that GRUB has as /.
Which means that I really should do more testing before "correcting" your answer @AvinashRaj. Damn, you were quite right, of course rw,remount was needed. Sorry again
and you might get newbies using ext4 blindly, even for other filesystems so I think it's better to leave it out. All told, that's a great answer though, at least it will be if I stop breaking it :)
Without fsatb, you will not be able to run bash, you will drop to busy box with limited commands (only what is in the initrd). As with the chroot, sure it is possible, but it is going to be more difficult then simply booting a live image. — bodhi.zazen24 mins ago
My default boot line is BOOT_IMAGE=/boot/vmlinuz-3.8.0-35-generic root=UUID=fe469c02-94bf-4a0f-a430-32767942a34d ro quiet so yes --- I think your root is mounted, it is just mounted ro. Have you tried mount -o remount,rw /?
I was successful in configuring a simple Heartbeat setup on Ubuntu 12.04, which will fail-over two VIPs to a second server when BOTH Ethernet links fail. What I can't figure out is how to fail-over two VIPs when either of the two NICs looses a link connection. Heatbeat will detect the link is do...
I have just had my best Linux day ever... Went to answer this question --- someone pointed out I had made a big mistake --- posted the question to know what mistake did I make and how to correct it --- and in return accumulated lots of knowledge about Linux --- BEST MISTAKE EVER... Thank you Ask Ubuntu :-)
@Aditya in your answer ("conclusions") this excerpt: "if you directly move files to /dev/null, you can still recover it as demonstrated above" is still not correct --- any root script in the system could overwrite it while you are typing the command for recovering it.
If I do: touch file; mv file /dev/null as root, /dev/null disappears. ls -lad /dev/null results in no such file or directory. This breaks applications which depend on /dev/null like SSH and can be resolved by doing mknod /dev/null c 1 3; chmod 666 /dev/null. Why does moving a regular file to t...
Well the command could be used to scare people... "can I type this"... :-) totally the only effect is the error (if you directly move files to /dev/null, you can still recover it as demonstrated above). (Evil grin)
@Aditya you're very welcome, I don't understand the details either, haven't taken the time to read the code. The basic idea is that /dev/null is not overwritten by the file on OSX because it is treated differently and this will break dev/null
/dev/null is not a disk location. It's just an alias - a shorthard for "nowhere". It's a fictional device that accepts data then deletes it, not storing it anywhere.
In other words, mv ~ /dev/null is equivalent to a "delete".
What you're going to have to do is look into restoring from where t...
What happens in OSX is that /dev is a special filesystem that will not let you create a normal file. When you do an mv between different filesystem mv can't simply rename the file; it will delete the destination and copy the source. So on OSX the delete step will succeed, and the copy will fail. At least this is what I understand...
@Alvar Thanks you! Exactly, it's not asking how to do something in the 14 release, just how the upgrade system works. Man, you people are really trigger happy with the older/newer releases
The expression .* is expanded by bash to include the current and parent directories:
$ ls -la
total 2600
drwxrwxrwx 2 terdon terdon 2162688 Sep 10 16:22 .
drwxr-xr-x 142 terdon terdon 491520 Sep 10 15:34 ..
-rw-r--r-- 1 terdon terdon 0 Sep 10 16:22 foo
$ echo .*
. ..
If I run rm -rf...
@AvinashRaj no, I hate video tutorials. Exactly because of crap like that
6 minutes of this idiot blathering on about things he doesn't understand. He gives 4 dangerous commands and only 2 are actually in any way dangerous and the second won't run without sudo which he didn't use
So, the only "correct" thing he said is the forkbomb which will be fine after restarting... grrr
...and by the way, random deadly command is too easy. The nice one is "perfectly fine commands that will kill your system with just one wrong keystroke"... that would be a nicer competition. (once upon a time rm -rf /tmp/dir and adding a space before tmp did work, now rm is smarter...)
Be sure you want to do this. Be very sure. No, re-consider it first. You won't be dissuaded? Okay, change the UID of your login to 0 in /etc/passwd (that's the third GECOS field).
This is a very bad idea, and very dangerous, as it subverts the security model.
I have installed VLC 2.0.8 TwoFlower and I was wondering where I can find VLC's source code.
I am using ubuntu 13.10 and I don't plan to do anything with the code, I just want to have a look at it.
I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update them?
I have a couple applications I use regularly that aren't being actively developed any lon...
@Mateo I know and it was a 10k user who closed it and then told me:
@terdon It's a dupe. You can argue whether it's a dupe of that specific question or a different one, but it is a dupe. "How do I get the source code to Ubuntu?" is the question. VLC is simply one small part of Ubuntu. Otherwise, it's not about Ubuntu at all, as it's about VLC, in which case "Off Topic" would be how it should be closed. — dobey7 mins ago
@terdon Time to get to a reasonable workstation with everything you want OOTB. Just my opinion. If you want to see the differences from Debian mainline - I asked that question some time ago askubuntu.com/questions/15220/…
@hbdgaf huh? I've had that ever since moving away from Ubuntu, what do you mean?
Don't get me wrong, Ubuntu came close, just Mint fared better. Anyway, I've moved to LMDE for other reasons. Yes, it needs a little (not much) tweaking but I love the idea of the semi-rolling release. I'd had enough of upgrading.
Why does it seem so easy to pirate today?
It just seems a little hard to believe that with all of our technological advances and the billions of dollars spent on engineering the most unbelievable and mind-blowing software, we still have no other means of protecting against piracy than a "serial ...
hey, I think it needs to scramble the user icon as well if it is going to do that, but then I might try to flag as a copy paste... almost started to do that with this one.
The username and rep were incorrectly reported by the audit system if you look at the original post by clicking the question title link... So it was obviously a test ;)
@PyRulez OK, let's see if they're hardlinked. Post the output of ls -li devices.2.2/reg-dummy and ls -li devices.2.2/reg-dummy/subsystem/devices/reg-dummy
and @PyRulez again, please tell me what command you run to delete it and what error it gives you!
@Mateo yeah, I upvoted and passed the test! Whohoo!
@blade19899 it's something enabled on the more popular sites where you have people blindly approving edits without actually reading, just to get the badges. It is now active on AU as well.
@blade19899 It's obvious quality in some area or an obvious lack thereof to keep people from bot-approving/bot-denying a slew of things in the queue for badges or rep.
I really hate these minimalist UIs, I can never remember what the hell those little squiggles mean and I need to click through more crap to get to where I'm going :(
@Mateo I can see why that would be a pain to implement. Multiple windows would be obnoxious to maintain. What if there's a window that is maximized but it isn't in the "show" state? What about different graphical toolkits - how do you parse them all? It's just a conflagaration of bug waiting to happen. Why not just use a keyboard shortcut that sends the minimize signal to the active window instead. Seems better.
We need a memepic of a bunch of monks standing around with emblems on their chests. It would be applicable to so many things. Text editors, IDEs, web browsers, Linux distros, programming languages. "It's a religious decision" ;)
I dunno, I just don't get the chrome interface. Same issue with nautilus, I don't know what to click to do what, the icons are not self-explanatory for me
Ow yeah, @Seth, i was possibly serial down voted. For future reference, what are the procedures i need to take when i think i have been serial down voted?
@Mateo I tried to get it building a long-ish time ago when people were talking about it being dated in repo and I was all "This... should not be built in a ppa"
@Mateo - also, I'm about half way done with the generation of a plymouth template I found laying around. Going to have to install a VM again soon for testing.
Yeah, it would come with a super-big disclaimer - This app can and probably will break your stuff if you don't REALLY know what you're doing. You were warned.
@Mateo Yes that. And there are other considerations. I don't want to deal with "My binary driver only supports text mode, but your app didn't work" or "I statically set the resolution to something my card doesn't support" or "You scaled instead of centering. It's stretchy and doesn't look right" or "You centered and I have these ugly black bars."
I have a directory inside itself. How do I delete it.
~/.local/share/Trash/files$ ls devices/
reg-dummy
~/.local/share/Trash/files$ ls devices/reg-dummy/
subsystem
~/.local/share/Trash/files$ ls devices/reg-dummy/subsystem/
devices
Also
~/.local/share/Trash/files$ find devices/ | head -n 20
d...
@blade19899 No action is needed, if it was a lot the system will reverse it. If it wasn't a lot then there's nothing you can do. It's just about 8 rep, one upvote on an answer will wipe it away ;)
If it was tons you might notify us, so we can check for some things.
@Seth that. Basically, who decided to include AU in the UBuntu.com umbrella with the branding etc?
Was that a community decision or was it SE/Canonical?
I was thinking of posting a meta question asking people's opinion on whether this should be the case, but not if that was already done and the community voted yes.
UDS-P will be held in Orlando, FL from October 31st – November 4th. While there is a Summit every six months I feel UDS-P is a vital event for Ask Ubuntu to have representation in since it will be for the next Long Term Support release of Ubuntu. As such, I would like to represent the Ask Ubuntu ...