Author Topic: [SOLVED] Drives missing  (Read 1282 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
[SOLVED] Drives missing
« on: January 05, 2013, 03:03:30 pm »
I am trying to go (cd) to a folder in Drive3 but in Terminal, they’re not there (Drive 2 & Drive 3), what’s going on?
Screenshots included.
« Last Edit: January 05, 2013, 11:18:46 pm by pooky2483 »

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #1 on: January 05, 2013, 03:40:13 pm »
Something new, I just tired right-clicking on the 'Drive3' icon as in the first screenshot and then 'open in terminal' which worked.
Why does it not show up in the terminal entry as described above?

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1529
  • Karma: 121
  • Gender: Male
    • View Profile
    • Awards
Re: Drives missing
« Reply #2 on: January 05, 2013, 04:18:04 pm »
It appears that Drive1 is mounted in your home folder under media but the other drives are mounted somewhere else.
If they are auto mounted then they should be listed in your fstab:
Code: [Select]
cat /etc/fstab
Alternatively you could look with:
Code: [Select]
mount | grep Drive
« Last Edit: January 05, 2013, 04:29:33 pm by SeZo »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14054
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Drives missing
« Reply #3 on: January 05, 2013, 04:27:13 pm »
I'm not sure any of the are mounted at /media

IIRC they're mounted at /mnt .. but I could be wrong.

As SeZo says .. run:
Code: [Select]
mount

to see where they are mounted.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #4 on: January 05, 2013, 06:45:15 pm »
(click to show/hide)

Code: [Select]
mount | grep Drive
pooky2483@pooky2483-ubuntu12:~$ mount | grep Drive
/dev/sdd1 on /media/Drive1 type ext4 (rw)
/dev/sdc1 on /media/Drive2 type ext4 (rw)
/dev/sdb1 on /media/Drive3 type ext4 (rw)
pooky2483@pooky2483-ubuntu12:~$

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1529
  • Karma: 121
  • Gender: Male
    • View Profile
    • Awards
Re: Drives missing
« Reply #5 on: January 05, 2013, 08:05:20 pm »
OK, so cd into the drive you want to be in (replace X with number):
Code: [Select]
cd /media/DriveX/<folder name>

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #6 on: January 05, 2013, 09:28:05 pm »
OK, so cd into the drive you want to be in (replace X with number):
Code: [Select]
cd /media/DriveX/<folder name>

That wont work (see screenshot)

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14054
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Drives missing
« Reply #7 on: January 05, 2013, 09:40:41 pm »
What SeZo says WILL work  :o

in that screenshot you entered:

Code: [Select]
cd media
(which s a "relative path" .. as you were already in /home/pooky2483 it looked for a folder called "media" at that location, and as there WAS one, it entered it)

so ended up at ~/media .. or put another way .. /home/pooky2483/media

You *should* have entered:

Code: [Select]
cd /media
(which is an "absolute path", starting at /)

and you'd have ended up at /media

Kinda pointless saying something won''t work until you've tried it ;)
« Last Edit: January 05, 2013, 10:04:56 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #8 on: January 05, 2013, 10:08:21 pm »
I can get to media/Drive1/any/folder
But I can't get to
media/Drive2/any/folder or media/Drive3/any/folder
See screenshot

It seems the only way I can get to Drive2 or Drive 3 is to use 'open in terminal' after right clicking on the drive icon on the desktop

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #9 on: January 05, 2013, 10:12:12 pm »
OK... Just saw the '/'
why is it different when I did it the way I did before?????
 :o Confused

Sorry for the confusion

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14054
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Drives missing
« Reply #10 on: January 05, 2013, 10:15:25 pm »
re-read my last response .. the answer is in there ;)

when you run:
Code: [Select]
cd media

it looks for a directory called media in the CURRENT DIRECTORY (which happened to be your Home folder at that time)

when you run:
Code: [Select]
cd /media

it starts from / .. not the CURRENT DIRECTORY.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #11 on: January 05, 2013, 10:16:21 pm »
pooky2483@pooky2483-ubuntu12:~$ cd /media
pooky2483@pooky2483-ubuntu12:/media$ dir
12.04Boot  Drive1  Drive2  Drive3  Drive4  Home
pooky2483@pooky2483-ubuntu12:/media$

Just spotted something else... Drive4... I only have 12.04Boot Drive1 Drive2 Drive3
Not Drive4
Where's that come from? can I remove it somehow?

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Drives missing
« Reply #12 on: January 05, 2013, 10:19:38 pm »
when you run:
Code: [Select]
cd media

it looks for a directory called media in the CURRENT DIRECTORY (which happened to be your Home folder at that time)

when you run:
Code: [Select]
cd /media

it starts from / .. not the CURRENT DIRECTORY.

I'm sorry, I still can't get my head round why it only shows 'Drive1' when I type 'cd media' and when I type 'cd /media' it shows all of them!

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-68-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14054
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Drives missing
« Reply #13 on: January 05, 2013, 10:20:39 pm »
make sure it's empty, and not referenced in fstab .. then yes you can:
Code: [Select]
sudo rm -r /media/Drive4

Be SURE to get that command right .. you wouldn't want to erase one of your hard drives.

A simpler (GUI) method may be to open nautilus as root:
Code: [Select]
sudo nautilus

then in the nautilus window that just opened .. navigate to /media .. and delete the folder in the normal way.

.
« Last Edit: January 05, 2013, 10:24:52 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14054
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Drives missing
« Reply #14 on: January 05, 2013, 10:22:41 pm »
Quote
I'm sorry, I still can't get my head round why it only shows 'Drive1' when I type 'cd media' and when I type 'cd /media' it shows all of them!

you must  have a folder called "media" in your Home folder, that contains a folder or symlink called "Drive1"
(possibly a symlink we placed there so you can open/save files on Drive1 from within libreoffice ?)

What's the output from:
Code: [Select]
ls -l ~/media

.
« Last Edit: January 05, 2013, 10:30:37 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal