Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-23-2007, 09:23 AM   #1
Registered: Dec 2006
Location: India
Distribution: openSUSE 10.2/ Gentoo 2006.1
Posts: 50

Rep: Reputation: 15
Using disk partitions

I installed opensuse on a 10 gig partition on my old 20 gig HDD. I had planned to use the remaining 10 gigs to try out other distros. Now I want to get opensuse use the other 10 gigs to. How can i do that?

What i have tried:
1] Made an entry in fstab called /dev/hda4 (the parition label)
The partition type is ext3. But I also left the other two columns for this entry in the fstab file blank, coz I dont know what do I put in there.
2] Created a folder on the desktop called part2
3] Then, as root, I did this : mount /dev/hda4 /home/ecuas/Desktop/part2

This mounted the hard disk, but only with read only permissions. I tried changing the permissions as root, but got the msg that "Permissions cannot be changed. Is a read only disk"
I cannot write any data to the disk either as root or as a user.
What should I do so that linux recognizes this partition as a 'part' of the existing system and can freely read-/write to it?
Old 01-23-2007, 09:51 AM   #2
LQ Veteran
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,657

Rep: Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676
Umount the partition. Then edit your /etc/fstab file as root. Usually system defaults for linux partitions are read and write. Here is how to code it for defaults.

/dev/hda8 /mnt/mdk9-2home ext3 defaults 1 2
/dev/hdb5 /mnt/music ext2 defaults 1 2
These are two partitons on my two disk system, with system defaults. If system defaults do not work, add 'r/w' as an option.

If nothing works, please post the exact coding you have in your fstab file for this partition.

Hope this helps.
Old 01-23-2007, 09:54 AM   #3
Senior Member
Registered: Oct 2003
Posts: 2,813

Rep: Reputation: 291Reputation: 291Reputation: 291
Use this for your fstab entry for hda4:

/dev/hda4 /home/ecuas/Desktop/part2 ext3 user,noauto,defaults 1 2

If hda4 is already mounted, unmount hda4. Then run as root,

# mount /dev/hda4
# chmod -R 777 /home/ecuas/Desktop/part2

That should do it. The above fstab entry will let any user mount hda4; you don't need to be root. Also, hda4 will not automount at boot. If you want to change this behaviour, drop "user" if you want only root to be able to mount and drop "noauto" if you want hda4 to auotmount at boot.
Old 01-24-2007, 08:54 AM   #4
Registered: Dec 2006
Location: India
Distribution: openSUSE 10.2/ Gentoo 2006.1
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks. I'll try this n get back to u.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Which partitions should go on which disk? TomX Linux - Newbie 3 10-23-2005 05:43 PM
removed disk partitions - disk is now too small jordanthompson Linux - Software 18 12-09-2004 04:07 PM
How many partitions on one disk? alanbarnard Linux - Newbie 3 12-04-2004 10:04 AM
Help with disk partitions gagda1 Linux - Newbie 3 10-14-2004 09:05 PM
Multi-Disk partitions???? clustered_chaos Linux - General 3 02-25-2003 09:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration