PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 08:04:55 AM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: Why can't I read/write to my 2nd Harddrive  (Read 1400 times)
caerhays
Full Member
***
Offline Offline

Posts: 63


« on: March 21, 2010, 05: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 ?.
Logged

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
muungwana
Hero Member
*****
Offline Offline

Posts: 5403


« Reply #1 on: March 21, 2010, 06:06:13 PM »


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

cat /etc/fstab
Logged

.. 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 ..
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #2 on: March 21, 2010, 06: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
Logged

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
muungwana
Hero Member
*****
Offline Offline

Posts: 5403


« Reply #3 on: March 21, 2010, 06: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
Logged

.. 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 ..
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #4 on: March 21, 2010, 07: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.
Logged

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
muungwana
Hero Member
*****
Offline Offline

Posts: 5403


« Reply #5 on: March 21, 2010, 07: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
 
Logged

.. 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 ..
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #6 on: March 21, 2010, 07: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.

Logged

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
muungwana
Hero Member
*****
Offline Offline

Posts: 5403


« Reply #7 on: March 21, 2010, 08: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
Logged

.. 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 ..
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #8 on: March 22, 2010, 07:35:19 AM »

Hi muungwana,

The partition is formatted as ext3. It was a copy of my old / partition.
Logged

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
menotu
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11982

┌∩┐(◕_◕)┌∩┐


« Reply #9 on: March 22, 2010, 07: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
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 3.2.17bfs kernel, KDE 4.8.3; nvidia 295.53, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/320GB
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #10 on: March 22, 2010, 08: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.
Logged

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
menotu
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11982

┌∩┐(◕_◕)┌∩┐


« Reply #11 on: March 22, 2010, 08: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  Wink

You haven't tried any of the 2010 Beta's yet?  Crikey, your a patient soul!
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 3.2.17bfs kernel, KDE 4.8.3; nvidia 295.53, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/320GB
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #12 on: March 22, 2010, 09: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.
Logged

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
menotu
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11982

┌∩┐(◕_◕)┌∩┐


« Reply #13 on: March 22, 2010, 09:20:48 AM »

Well, being a Windows "repairer" I won't need to tell you about backing up your data!!!  Cheesy  Cheesy  Cheesy
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 3.2.17bfs kernel, KDE 4.8.3; nvidia 295.53, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/320GB
caerhays
Full Member
***
Offline Offline

Posts: 63


« Reply #14 on: March 23, 2010, 06: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 ?.
Logged

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
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM