LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 04-22-2019, 12:07 PM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311

yes, thanks.
You only need to create a directory like:
Code:
sudo mkdir -p /mnt/windows
sudo mount -t ntfs /dev/sda2 /mnt/windows
 
1 members found this post helpful.
Old 04-23-2019, 05:54 AM   #17
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by pan64 View Post
yes, thanks.
You only need to create a directory like:
Code:
sudo mkdir -p /mnt/windows
sudo mount -t ntfs /dev/sda2 /mnt/windows
Getting closer


user@user-Extensa-5630:~$ sudo mount -t ntfs /dev/sda2 /mnt/windows
Windows is hibernated, refused to mount.
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
user@user-Extensa-5630:~$

I have switched it off twice now what do I need to do never knew about hibernation.
 
Old 04-23-2019, 06:04 AM   #18
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by bscho View Post
Getting closer


user@user-Extensa-5630:~$ sudo mount -t ntfs /dev/sda2 /mnt/windows
Windows is hibernated, refused to mount.
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
user@user-Extensa-5630:~$

I have switched it off twice now what do I need to do never knew about hibernation.
https://lifehacker.com/shutting-down...ind-1825532376
 
Old 04-23-2019, 06:46 AM   #19
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by bscho View Post
Getting closer


user@user-Extensa-5630:~$ sudo mount -t ntfs /dev/sda2 /mnt/windows
Windows is hibernated, refused to mount.
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
user@user-Extensa-5630:~$

I have switched it off twice now what do I need to do never knew about hibernation.
Have solved it needed to go to windows command prompt and typed shutdown /s

ls works now in the windows but is not on the top of the tree it is in User
I want to go to C:\Windows\System32\config to edit the SAM file
 
Old 04-23-2019, 08:28 AM   #20
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,496

Rep: Reputation: Disabled
Quote:
user@user-Extensa-5630:~$ sudo mount -t ntfs /dev/sda2 /mnt/windows
Quote:
ls works now in the windows but is not on the top of the tree it is in User
I want to go to C:\Windows\System32\config to edit the SAM file
So now you need to change directory into 'config'.
Code:
sudo cd /mnt/Windows/System32/config
Do what you need to do, then change back to your Linux home directory,
Code:
cd
you should now be in your home directory on your Linux system.

You can confirm that by entering
Code:
pwd
 
Old 04-23-2019, 08:56 AM   #21
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by fatmac View Post
So now you need to change directory into 'config'.
Code:
sudo cd /mnt/Windows/System32/config
Do what you need to do, then change back to your Linux home directory,
Code:
cd
you should now be in your home directory on your Linux system.

You can confirm that by entering
Code:
pwd
Thanks for your post.

with
cd /mnt/Windows/System32/config
No such file or directory
With Sudo I get
Sudo: cd: command not found
 
Old 04-23-2019, 01:34 PM   #22
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,496

Rep: Reputation: Disabled
Quote:
Originally Posted by bscho View Post
Thanks for your post.

with
cd /mnt/Windows/System32/config
No such file or directory
With Sudo I get
Sudo: cd: command not found
You don't need sudo with cd or pwd, you type them as your normal user.

Perhaps your permissions will let you change directory to your Windows config without the use of sudo(?), it's been a long time since I had any version of MS.

(Failing that, try changing into each Windows directory one at a time.)

Last edited by fatmac; 04-23-2019 at 01:39 PM.
 
Old 04-23-2019, 02:49 PM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
The top of the tree is /...

The windows partition is mounted to /mnt/windows, the full path is

/mnt/windows/Windows/System32/config
 
Old 04-24-2019, 02:40 AM   #24
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by michaelk View Post
The top of the tree is /...

The windows partition is mounted to /mnt/windows, the full path is

/mnt/windows/Windows/System32/config
Thanks for that it works.
 
Old 04-24-2019, 03:05 AM   #25
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Have chmod the SAM file and copied to my home directory but cannot read the octet stream.

Is there an editor for this?

Thanks
 
Old 04-24-2019, 04:00 AM   #26
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Why do you need it? Probably you can't do that at all (but from windows).
 
Old 04-24-2019, 04:06 AM   #27
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by pan64 View Post
Why do you need it? Probably you can't do that at all (but from windows).
Well I thought I could edit passwords.

I have instead taken a SAM without passwords and will switch it for those who have forgotten their passwords.

I have a disk that does erase the passwords but it has a problem if the Windows is hibernated.

I need to get over this problem.
 
Old 04-24-2019, 04:10 AM   #28
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by bscho View Post
Well I thought I could edit passwords.

I have instead taken a SAM without passwords and will switch it for those who have forgotten their passwords.

I have a disk that does erase the passwords but it has a problem if the Windows is hibernated.

I need to get over this problem.
Switch the Windows fast startup feature off altogether on the relevant Windows machines. Bootups will be slower but you won't be bothered by the issue of machines being in hybrid shutdown/hibernation state.

Setting HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power\HiberbootEnabled to 0 should do the trick.
 
Old 04-24-2019, 04:19 AM   #29
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Since cracking is against the forum rules please do not ask for specific help on the subject

Last edited by michaelk; 04-24-2019 at 04:23 AM.
 
Old 04-24-2019, 05:57 AM   #30
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by michaelk View Post
Since cracking is against the forum rules please do not ask for specific help on the subject
Ok I'll just swap the old sam for a sam without a password.

Thanks everyone for your help.
 
  


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
Authentication failure/ I tryed 3 authentic passwords but none work in terminal. don't know how to install vlc without terminal. so please elneuma Linux - Desktop 2 12-12-2016 01:40 PM
[SOLVED] Using DD to transfer one partition to another different size partition zemir Linux - Newbie 7 07-30-2011 06:46 AM
cloning linux partition to different laptop, invalid partition table dsollen Linux - Software 8 11-23-2009 08:50 PM
Copy Contents of LVM Partition to Another Partition With a Different File System tmort Linux - General 3 03-07-2008 05:00 AM
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 06:09 PM

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

All times are GMT -5. The time now is 09:03 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