LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-30-2014, 11:04 AM   #1
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 50
Can't access Windows hard disk files with Debian live - disk is mounted


Hi everyone.

I'm trying to access an iso file on a Windows hard disk. I want to do a check on the iso file to see if it's not corrupted.

I'm running a live debian OS on a USB. For some reason, I can't access the Windows directory holding the iso file. I get the error message 'No such file or directory'.

A live usb distro apparently automatically mounts all the hard disks connected to the pc.
I can access the hard disk through the GUI and even make changes to Windows files and folders.
But when I try to get into a Windows directory through the terminal, I get the error message.

I really can't understand this.
I've done 'ls' on the /media file and it shows 2 hard disk names and a dvd-rom.
But when I try to get into the hard disk folder name with 'cd', it won't let me in!

Can anyone please help with this weird problem?

Last edited by Higgsboson; 12-30-2014 at 01:23 PM. Reason: Poor title
 
Old 12-30-2014, 01:29 PM   #2
lsalab
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Rep: Reputation: 3
Hi Higgsboson,

What specific error are you getting? can you post the output of the 'cd' you are trying?

this will give us a clue as to what is actually happening.
 
Old 12-30-2014, 01:52 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Have you mounted the drive. You can use the Disk Utility to mount it, also the file manager. As far as getting around in directories from the terminal you may have to modify your cd command because linux doesn't use the space in directory name.
For instance: "Documents And Settings" the spaces within the name aren't recognized. I can't remember but I think you have to wrap thr directory with " or ' to get cd to work with the spaces. It's explained here
http://trinityhome.org/Home/index.ph...g=en&locale=en
 
Old 12-30-2014, 01:55 PM   #4
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Thanks for your reply.

Here are the commands I'm using with the output at the end:

root@debian:/# cd /media
root@debian:/media# ls
070819_2057 B8A8C9D6A8C992F4 BCC04A84C04A44BC
root@debian:/media# cd /BCC04A84C04A44BC
bash: cd: /BCC04A84C04A44BC: No such file or directory

Is the 'cd /BCC04A84C04A44BC' command correct?
 
Old 12-30-2014, 01:55 PM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Sorry, seems I've misread the above posts.
Deleted.

Last edited by Teufel; 12-30-2014 at 02:15 PM.
 
Old 12-30-2014, 02:03 PM   #6
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by EDDY1 View Post
Have you mounted the drive. You can use the Disk Utility to mount it, also the file manager
Well, I've done a disk file usage command and I get the following:

root@debian:/media# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 150G 17G 133G 11% /media/B8A8C9D6A8C992F4
/dev/sdb1 932G 213G 719G 23% /media/BCC04A84C04A44BC
/dev/sr0 1.9G 1.9G 0 100% /media/070819_2057

I haven't shown the rest of the output, but it seems to be saying that the hard disks and dvd-rom are mounted.
The hard disk name doesn't have any spaces in it thankfully.
 
Old 12-30-2014, 02:11 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Higgsboson View Post
Is the 'cd /BCC04A84C04A44BC' command correct?
No.

The BCC04A84C04A44BC directory is not in '/', it's in '/media/'. If your terminal is already in /media (which it is because you ran "cd /media; ls"), then you can just give the relative path:

cd BCC04A84C04A44BC

or

cd ./BCC04A84C04A44BC # the '.' means "here"

If you want to give the full path, you can do that too, but you need to include /media

cd /media/BCC04A84C04A44BC
 
1 members found this post helpful.
Old 12-30-2014, 02:14 PM   #8
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
...

Last edited by Higgsboson; 12-30-2014 at 02:31 PM.
 
Old 12-30-2014, 02:23 PM   #9
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by suicidaleggroll View Post
No.

The BCC04A84C04A44BC directory is not in '/', it's in '/media/'. If your terminal is already in /media (which it is because you ran "cd /media; ls"), then you can just give the relative path:

cd BCC04A84C04A44BC

or

cd ./BCC04A84C04A44BC # the '.' means "here"

If you want to give the full path, you can do that too, but you need to include /media

cd /media/BCC04A84C04A44BC
Wow, you're absolutely right!
I really need to remember this bit!
Thanks so much dude!
 
  


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
Adding second hard disk with windows to boot with grub on first hard disk rushadrenaline Linux - Hardware 3 07-08-2009 04:39 AM
cannot mount (access)hard disk files yasawardene Linux - Newbie 2 08-24-2008 12:26 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
how 2 access a ext3 fs from windows on a local hard disk mukeshj Linux - General 2 07-09-2005 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 AM.

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