Problem: Mounting Hard Drive

Hey guys, relative newbie to openSUSE and linux in general so please be patient with me! :slight_smile:

Ive just installed suse 11.1 on one of my hard drives. The problem I have however is with my 2nd hard drive, which for some reason did not mount automatically after installation. Ive formatted the drive as ext3 and will be using it for extra storage space, nothing more.

fdisk -l shows:

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0085715e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       24321   195358401   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4da6f9e4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       60051   482351625   83  Linux
/dev/sdb2           60051       60801     6032376   82  Linux swap / Solaris

and fstab shows:

/dev/disk/by-id/ata-WDC_WD5000AAKS-00YGA0_WD-WCAS84310255-part1 /                    ext3       defaults              1 1
/dev/disk/by-id/ata-WDC_WD5000AAKS-00YGA0_WD-WCAS84310255-part2 swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

The drive /dev/sda is the one that I am having troubles with :frowning:

Any help would be great, thanks! :slight_smile:

Open the partitioner at Yast → Ssytem → Partitioner. find sda1 and “Edit” it and give it a mount point, something like /data or perhaps /mnt/sda1, whatever you like.

Hi
Start YaST->System->Partitioner and highlight the drive sda and hit the
edit button. Give it a mount point (eg /data) and you should be good to
go.

You should then see a new entry in the fstab. Now I would use the
command line (as root user) to add a sub folder under /data and change
the ownership to your user name, for example;


sudo mkdir /data/<your_user_name>
sudo chmod <your_user_name>:users /data/<your_user_name>


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.19-3.2-pae
up 4:23, 1 user, load average: 0.32, 0.26, 0.36
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

@malcolmlewis
IIRC you can chown the whole drive once it’s mounted

Hi
Not sure if the OP wants to add other user directories? If not, for
sure use the chown on the directory in fstab :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.19-3.2-pae
up 5:43, 1 user, load average: 0.45, 0.55, 0.39
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Guys, you made that sound so easy! Worked a charm, thanks a bunch