Author Topic: Why can't I read/write to my 2nd Harddrive  (Read 2173 times)

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Why can't I read/write to my 2nd Harddrive
« on: March 21, 2010, 04:44:22 PM »
I have the following setup:

[root@localhost philw]# fdisk -l

Disk /dev/hda: 120.1 GB, 120060444672 bytes
240 heads, 63 sectors/track, 15508 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x06cc06cb

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       10836    81920128+   7  HPFS/NTFS
/dev/hda2           10837       15508    35320320    5  Extended
/dev/hda5           10837       11919     8187448+  83  Linux
/dev/hda6           11920       12460     4089928+  82  Linux swap / Solaris
/dev/hda7           12461       15508    23042848+  83  Linux

Disk /dev/hdd: 10.8 GB, 10800857088 bytes
16 heads, 63 sectors/track, 20928 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xf475f475

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1       20928    10547680+  83  Linux

If I use Konqueror to look at my drives it shows my Windows partition (hda1) and my PCLOS / (hda5) and /home (hda7) partitions as mounted but the 10GB (hdd1) which is an old harddrive I have attached for data storage it always shows as unmounted.  If I try to mount it from Konqueror by right clicking the icon and selecting mount it brings up a dialog box saying "permission denied".

How do I get to make this drive readable/writable ?.  It hasn't been important to date but now I want to swap it with a 200GB drive I have acquired.  I have tried searching for an answer on the site but have to admit the business of unmounting and mounting is a mystery to me !.

Can anyone help please ?.
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Why can't I read/write to my 2nd Harddrive
« Reply #1 on: March 21, 2010, 05:06:13 PM »

what does this command give you(copy and paste it on the terminal)?

cat /etc/fstab
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #2 on: March 21, 2010, 05:14:41 PM »
[root@localhost philw]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/hda5 :
UUID=665ee4f8-f936-49e2-b6b6-f7127156dcde       /       ext3    defaults        1       1
#Entry for /dev/hda7 :
UUID=6b68d407-97e0-4911-a322-46e611f658a8       /home   ext3    defaults        1       2
#Entry for /dev/hda1 :
UUID=B4B4766DB47631CA   /media/hda1     ntfs-3g defaults,locale=en_US.UTF-8     0       0
none    /proc   proc    defaults        0       0
#Entry for /dev/hda6 :
UUID=170d705e-704d-409b-9fd9-bedb8be64084       swap    swap    defaults        0       0
none    /dev/pts        devpts  mode=0620       0       0


tmpfs /dev/shm tmpfs defaults 0 0
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Why can't I read/write to my 2nd Harddrive
« Reply #3 on: March 21, 2010, 05:33:55 PM »

log in as root or run konqueror as a root user and try to mount it again.

It is an internal drive, it should have an fstab entry
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #4 on: March 21, 2010, 06:00:52 PM »
Hi muungwana,

Can't get it to mount in Konqueror as root but can from the konsole:>

[root@localhost philw]# mount /dev/hdd1 /media/hdd1
[root@localhost philw]# df
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             7.7G  4.8G  2.6G  65% /
/dev/hda7              22G   14G  8.5G  61% /home
/dev/hda1              79G   31G   48G  39% /media/hda1
tmpfs                 629M     0  629M   0% /dev/shm
/dev/hdd1             7.7G  3.9G  3.5G  54% /media/hdd1

This gives me read/write access now but if I reboot my box the drive won't be mounted and i'm back to square one.  I gather I need to add something to the fstab file but haven't got a clue exactly what and don't want to bork my system.
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Why can't I read/write to my 2nd Harddrive
« Reply #5 on: March 21, 2010, 06:34:20 PM »

you can go to "pcc-> hardware -> browse and configure hardware -> hard disk". You should see all of your hard disks. Choose the one you want and then click "run config tool"

Another window will show up with all your hard drives again in tabs. Make sure you are looking at the right partition in the right tab and then click "mount point" and write down where you want it to be mounted(/mnt/hdd1 should work fine, you can always change it later). Click "done" and say "yes" when asked if you want modifications to be written to fstab file.

you can click "toggle expert mode" and then "options" and add different options if you want.

you can do the above or write your own entry in fstab

you can check out this link to have a better understanding of fstab: http://www.tuxfiles.org/linuxhelp/fstab.html
 
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #6 on: March 21, 2010, 06:50:08 PM »
Hi muungwana,

Did as you said but  after clicking "done" there is no follow up "yes/no" prompting if I want modifications to be written to fstab file !.

So problem is nothing is changing the fstab file.

I guess i'll have to write a line in myself, i'm just not sure about this "UUID" bit at the front.

It's late now (12.35am UK time) so i'm going for some shuteye. I'll ponder again tomorrow and await further advice.

HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Why can't I read/write to my 2nd Harddrive
« Reply #7 on: March 21, 2010, 07:03:56 PM »
that partition is formatted in what file system?

you can use the "UUID" system or the traditional "/dev/hdXY"  device node saddress. Both will work
« Last Edit: March 21, 2010, 07:05:33 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #8 on: March 22, 2010, 06:35:19 AM »
Hi muungwana,

The partition is formatted as ext3. It was a copy of my old / partition.
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15506
  • ┌∩┐(◕_◕)┌∩┐
Re: Why can't I read/write to my 2nd Harddrive
« Reply #9 on: March 22, 2010, 06:49:19 AM »
Hi caerhays

What version of PCLOS are you using? Is it 2010 Beta?

muungwana - if its 2010 would it be worth trying:

Configure Your Desktop > Advanced User Settings > Removable Devices > and checking the TickBoxes relevant to the HDD to enable "Automount on login" (there is also an  "Automount on attach")

Note: Although this says "Removable Devices" it refers to internal HDD's as well
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #10 on: March 22, 2010, 07:38:03 AM »
Hi menotu,

I'm running PCLOC2009.2 updated to 2010 to the point where the repos were frozen.

I'm waiting until 2010 final is released and any bugs ironed out before I install.

I'm going to have a go at editing fstab for the meanwhile. I'll let you all know how I get on in due course. Thanks for the help.
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15506
  • ┌∩┐(◕_◕)┌∩┐
Re: Why can't I read/write to my 2nd Harddrive
« Reply #11 on: March 22, 2010, 07:51:05 AM »
Quote
I'm waiting until 2010 final is released and any bugs ironed out before I install.

You shouldn't have too long to wait now  ;)

You haven't tried any of the 2010 Beta's yet?  Crikey, your a patient soul!
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #12 on: March 22, 2010, 08:13:16 AM »
I am indeed patient.  I have to be as I earn a part time living fixing Windows boxes !. 
PCLOS is my workhorse for all communication, invoices, letters, maintaining websites, etc., so I can't afford to bork it too often. Truth is i'ts only been borked twice since I turned to PCLOS in November 2008 and on both occasions it was down to me and not the system.

This is a great operating system built and maintained by a brilliant set of friendly people and I think is going from strength to strength.  Well done to all concerned.

Actually i'm dying to try the 20010 final and I intend to resize partitions at the same time so i'm preparing for big things.

Thanks all.
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15506
  • ┌∩┐(◕_◕)┌∩┐
Re: Why can't I read/write to my 2nd Harddrive
« Reply #13 on: March 22, 2010, 08:20:48 AM »
Well, being a Windows "repairer" I won't need to tell you about backing up your data!!!  :D  :D  :D
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline caerhays

  • Full Member
  • ***
  • Posts: 63
Re: Why can't I read/write to my 2nd Harddrive
« Reply #14 on: March 23, 2010, 05:15:10 PM »
Ok friends,

I had a go and edited my fstab and rebooted and my system now sees my 2nd harddrive.

I didn't use the UUID method because after mounting it using the mount command then doing a "blkid" in the konsole it gave this output:

[root@localhost philw]# blkid
/dev/hda1: UUID="B4B4766DB47631CA" TYPE="ntfs"
/dev/hda5: UUID="665ee4f8-f936-49e2-b6b6-f7127156dcde" SEC_TYPE="ext2" TYPE="ext3"
/dev/hda6: TYPE="swap" UUID="170d705e-704d-409b-9fd9-bedb8be64084"
/dev/hda7: UUID="6b68d407-97e0-4911-a322-46e611f658a8" SEC_TYPE="ext2" TYPE="ext3"
/dev/hdd1: UUID="665ee4f8-f936-49e2-b6b6-f7127156dcde" SEC_TYPE="ext2" TYPE="ext3"


Now i'm still learning but even I think it's strange that two devices should have the same UUID and this could confuse the system on booting. So I used "/dev/hdd1" as the identity which i'd read would also work.

The 2nd drive (hdd1) is formatted ext3 and had a copy of my original / partition on it.  So am I right in thinking this is why it has cloned the UUID as well ?.  I can't remember how I cloned it now but I think it was from a LiveCD.

In the interests of furthering my knowledge is anyone able to advise what has happened ?. If I had used the stated UUID would it have borked my system ?.
HP Pavillion a610.uk, 2.66GHz CeleronD 330, 120GB HD, 1.25GB RAM dual boot with WinXPPro

When you get to the end of your rope, tie a knot and hang on.
- Franklin D. Roosevelt