So I was trying to mount a drive on boot. I was editing /etc/fstab and then I rebooted to see if my drive would mount on boot. Now I can't do anything. The prompt I see  Give root password for maintenance (or press Control-D to continue):   When I press Control-D this prints: sulogin: cannot read /dev/tty1: Operation not permitted  I've tried all kinds of root passwords but none of them work. I tried to tap shift while it boots and nothing happens.  EDIT: This question is not a duplicate because when I press Control-D at the prompt I get an error message   I'm on a Pine64. Is there any way to salvage the device or save the files?  Bootable USB's do not work
377
I need to reset my password. I have followed these steps:    However, then I go to "root" or "netroot" recovery options, it tells me:  Give root password for maintenance (or type Control-D to continue)   Clearly, I do not know the root password. If I type CTRL+D, I return to the list of options. From  I read:  Under chapter 'The Other Way':  4. Highlight the line that begins kernel and press 'e' to edit`   But in the grub configuration file I have no line that starts with kernel. Only:  setparams 'Ubuntu...' recordfail set gxfpayload... insmod part_msdos insmod ext2 set root=... search --no-floppy... linux /boot/vmlinuz-2.6.38... initrd /boot/initrd.img-2.6....   Those are all lines in my GRUB. Which line should I edit? Or is there another way to reset my password?
66710
I have been through this kind of feature in older versions of Ubuntu. When I'd like to mount a partition it will ask me a password. Now I want to enable that kind of feature in Ubuntu 12.04.  How can I achieve this?
13862
I recently repartitioned my HDD and I have damaged GRUB on my system. On boot I get the GRUB rescue prompt and I have to go through the following steps in order to boot normally:  set root=(hd0,msdos6) set prefix=(hd0,msdos6)/boot/grub insmod normal normal   (Those steps were found on another post on here!).  I'm very tired of repeating this on every boot, how do I permanently fix GRUB?
82856
I've made a bit of a balls up...  When attempting to create a bootable Ubuntu usb drive I accidentally ran dd on my main system drive :(  sudo dd if=/path/to/image.img of=/dev/rdisk1 bs=1m   I realised what I'd done pretty quickly but everything seemed fine so I re-ran the command on the correct drive /dev/disk2 and thought "phew not sure how I got away with that"... Then things started going wrong... I could continue using the applications I had open but opening anything new / accessing the hdd caused that thing to lock.  Sadly I haven't been using time machine, lesson learnt!   I spoke to AppleCare who said I need to reformat the machine but I'm really hoping there's some way to restore whatever 1m I destroyed (I'm assuming something to do with the partition information). Wishful thinking?  Also, AppleCare told me to restart, which means I can only user repair mode utils.  Help!
97588
i am stuck with a big problem.  I have encrypted my linux drive with LUKS and now I can't remember it. During boot, it prompts me for the passphrase, but I went into troubleshooting mode and deleted the entry from /etc/crypttab so at least I can boot now into my account but that doesn't solve the problem. I can't access my drive /dev/sda5.  Can someone please show me a way to crack the passphrase or is there no way around it.
27060
Sorry if this question is already solved.  I changed my Operating System, from Windows to Linux Ubuntu 13.04.   I have 2 partitions:   C: (system) and  M: It's NTFS; there I have my information, music, photos. When I want to access the Disk to use the information, I can't get past this error:   Error mounting /dev/sda2 at /media/love/Mis Archiivos: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/love/Mis Archiivos"' exited with non-zero exit status 14:  The disk contains an unclean file system (0, 0).  Metadata kept in Windows cache, refused to mount.  Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown  Windows fully (no hibernation or fast restarting), or mount the volume  read-only with the 'ro' mount option.    Clarification: I don't have 2 OSes. I only have Linux installed.
85084
I'm trying to do the following but it's not quite right.  cat ~/Desktop/blah.png | ssh -t -t trusktr@50.116.4.56 "cat | sudo -i 'cat | /path/to/blah.png'"   I have my public ssh key in the trusktr@50.116.4.56 user's .ssh folder, so no initial password is needed. When the sudo -i command finally starts, it prompts me for the root password, but immediately fails as if I had pressed enter but I didn't even touch the keyboard. I have a feeling maybe the cat command is being catted into the password prompt. The output looks like this:  trusktr@LENOVO-PC ~ $ cat ~/Desktop/win-8.1-missing-lockscreen-setting.png | ssh -t -t trusktr@50.116.4.56 "cat | sudo -i 'cat &gt; /srv/http/default/htdocs/~/img/win-8.1-missing-lockscreen-setting.png'" tcgetattr: Not a character device [sudo] password for root: You type like i drive. [sudo] password for root: Your mind just hasn't been the same since the electro-shock, has it? [sudo] password for root: Maybe if you used more than just two fingers... sudo: 3 incorrect password attempts Connection to 50.116.4.56 closed.   I don't have direct ssh access through the root user, only through a normal user with access to sudo using the root password.  How might I cat the image through ssh, through the non-root user, into the root location all in a single command?
54675
I am trying to mount some of my hard drive and USB but getting this error  Error mounting: mount exited with exit code 1: helper failed with: mount: only root can mount /dev/sdd1 on /media/sdd1   how can I fix this?  There is no drive by the name of /dev/sdd1 and no /media/sdd1 cause when I try to unmount/detach it I get:  root@sysadmin-MS-7592:/home/sysadmin# udisks --unmount /dev/sdd1 Unmount failed: Device is not mounted  root@sysadmin-MS-7592:/home/sysadmin# udisks --detach /dev/sdd1 Detach failed: Device is not a drive
52108
I don't want to reset the password nor delete it. I need to know the password. What can be done? Specific software for that? Easier way of getting the password from inside a non-admin account through Windows itself or reboot is needed? Thanks  EDIT: Also, where are the password files stored? If I get in the system files with another bootable OS, I can read those and get the pwd from it.   EDIT: I don't want to reinstall Windows, I want the password.
89270
I want to format my USB stick to ext4 and just use as I would any other typical non-linux format drive (FAT32, exFAT, NTFS).   That is to say, I want to be able to plug the usb stick into any of my linux machines, and read/write to it without needing to adjust permissions, like doing chmod or chown stuff.  I would prefer to use GUI partition software like GParted, rather than command-line commands, though I welcome any solution!  I'm sure a post like this is duplicate flag heaven for some, but after browsing 6~10 SO and forum posts from google, I didn't find a simple solution to my question. Seemed like everything was about adjusting permissions on a per-user basis. Maybe you just cannot use ext4 drives with the same brainless convenience as NTFS.
79045
I'm looking for a solution to write-protect the contents of a USB key. The idea is to prevent its contents from being inadvertently removed by the user or changed by malicious programs -- not to restrict the re-cycling of the key for something else.  Here is a summary of my findings so far:   Some keys have a switch which makes them read-only. Unfortunately this is not always the case.  With a FAT32 filesystem the only solution seems to be setting the files "read-only". But this protection is too weak. There is a slightly stronger write-protection available for NTFS, which can be achieved by removing write privileges from "All Users" it will make the files read-only to every account, except "Administrator". Formatting the disk as UDF makes it read-only under Windows&nbsp;XP SP3, but read-write in Windows&nbsp;Vista, Windows&nbsp;7, Linux and Mac&nbsp;OS&nbsp;X. Formatting as ISO9660/CDFS makes it read-only under Linux and Mac&nbsp;OS&nbsp;X, but unfortunately the contents are not readable anymore from Windows. With microcontroller-specific software is possible (if supported by the chip) to re-partition the key so it displays for example a write-protected and a read-write partition. The problem is that it is very confusing for the users: the write-protected partition can appear as a CD-ROM drive (which it is not), after insertion some drivers are apparently installed on the computer (in fact they are not really drivers), and it can lead to prompting for reboot. Besides, this solution cannot be applied universally because it requires knowing which chip is used in the drive, and the existence of publicly available tools to re-program the device.  John Reasor mentions utilities able to fill all free space on the device, making it impossible to create new files (see below).   Does there exist a general solution to store non-modifiable contents on a USB key?   It protects the contents from modifications typically done from the shell (e.g. delete, rename, move) or from the files and folders being modified by a standard applications (e.g. save-as) It should work with most of the devices The user can still re-format the device into a regular key to re-cycle it for another usage (for example, with )
45210
I use Kali Linux and discovered the following "problem":  root@kali:/proc/self# ls -l cmdline -r--r--r-- l root root 0 May 27 13:43 cmdline root@kali:/proc/self# chmod 744 cmdline chmod: changing permissions of `cmdline': Operation not permitted   I am not allowed to change the permissions of that file... but I am root? Why is that? Are there ways to work around this? I allready tried some things like moving the file (what is obviously not possible), change the runlevel etc.
47027
I went into Live CD and activated Terminal.  Then, I typed gksu nautilus to gain temporary access to my root directory. Once the Manager window opened, I clicked on File System and navigated to the /etc/default/grub directory. I then double clicked on the Grub file to make changes to the TIMEOUT and TIMEOUT_QUIET.  I saved the file after I made the changes. Then I went back to the terminal mode and typed:  gksu update-grub   The error message I got was:     Can not find a device for / (is /dev mounted?)   I'm not sure what to do at this point. How can I run update-grub to update the changes? Thanks in advance for your help. Please be very detailed and specific with your response as I am totally new to this environment.
46166
How do I mount an ext4 partition as my user account so I wouldn't require root access to r/w on it? I used -o uid=flint,gid=flint on the mount command but I keep getting   mount: wrong fs type, bad option, bad superblock on /dev/sda7,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so   Another thing, I want avoid using udisks for now as it doesn't let me mount to my specified mount point name.
74835
Can I mount a file system image without root permission? Normally I would do:  mount -o loop DISK_IMAGE FOLDER   Without using sudo or setting the suid on mount, is there any suitable way to do this?  I know I can use fusermount with some ISO images, but that is pretty limited, even for ISO images, some of my images cannot be mounted, but mount always works.
80904
I've installed Ubuntu 12.04 along with Windows 8.1. When I tried to open the C: drive in Ubuntu a window is popping out saying to run this command:  mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /media/2A36EE3236EDFEA7   After running the command I'm getting the error mount: only root can do that.   What should I do?
119526
We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will do.  Is that possible?