LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2011, 12:56 PM   #1
noby950
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Rep: Reputation: 0
Cannot access sda1 through command prompt.


I am trying to access another partition on my drive through the command prompt. I have tried to access it through the /dev directory but when I input "cd ./sda1" or "cd /sda1" it says no such file or directory. Help with this will be greatly appreciated.
 
Old 04-07-2011, 01:18 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
you can't just cd into /dev/(harddrive) You have to mount the harddrive then you can cd to it. for example

# mkdir /mnt/sda1
# mount -t auto /dev/sda1 /mnt/sda1
# cd /mnt/sda1

Now the file you mount your harddrive does not have to be sda1 i can be anything you want it to be.

Incase sda1 don't mount because it does not exist try

# fdisk -l

See if you can figure it out from here.
 
1 members found this post helpful.
Old 04-07-2011, 02:08 PM   #3
noby950
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Alright I got the partition to mount and now I'm able to look at the contents with the "ls" command. Now my trouble is that I cannot change my directory to one inside the partition. Specifically the "WINDOWS" folder. My ultimate goal is to access the SAM file in "WINDOWS/System32/config".
 
Old 04-07-2011, 02:35 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Windows usually creates 2 partitions try mounting sda2.
 
Old 04-07-2011, 02:45 PM   #5
noby950
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Yeah I made a typo in my original post. I have mounted sda2 and i can see WINDOWS when I use the "ls" command. When I try to switch to the directory it says the directory doesn't exist.
 
Old 04-07-2011, 02:56 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Please give us the exact command you use to switch to the directory.
 
Old 04-07-2011, 03:02 PM   #7
noby950
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
cd /mnt/sda2
cd /Windows OR cd ./Windows

The first command successfully got me to /mnt/sda2 but I can't get to the WINDOWS folder.
 
Old 04-07-2011, 03:04 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
If the folder is named WINDOWS, you should try cd WINDOWS, in Linux file-handling is case-sensitive.
 
Old 04-07-2011, 03:11 PM   #9
noby950
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Alright I found my problem. My problem was that i was adding a "/" before the Windows in "cd Windows".

Thanks for your help guys it was much appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space. tony128 Linux - Newbie 6 09-13-2010 01:15 AM
BT3 final on EEE 900 cannot alter permissions on SD card (sda1) or access files techemically Linux - Software 1 02-13-2009 01:20 PM
how to access X11 server from command prompt Icode4food Linux - Newbie 4 06-02-2008 10:34 PM
Newbie:how to access command prompt marlon2006 Linux - General 6 05-06-2006 06:01 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM


All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration