LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-18-2008, 02:41 PM   #1
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Rep: Reputation: 19
Question i cant open/mount brand spanking new partitions!


hi

any help here would be better than a blank brain! my problem is i have created a new 'Photos' partition under ebian 4.0 using gparted. gparted returned no errors, but nautilus says

unable to mount the selected volume

libhal-storage.c 1401 : info: called libhal_free_dbus_error but dbuserror was not set.

process 10243: applications must not close shared connections - see dbus_connection_close() docs. this is a bug in the application.

error: device /dev/hda2 is not removable

error: could not execute pmount

as you can see, the device is on /dev/hda2, but i cannot work out for the life of me why i cant mount it. HEEELP!

ps. if ive missed anything out (bar punctuation lol), please let me know

james waples, 14
 
Old 06-18-2008, 03:23 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,301

Rep: Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003
You created the partition, but did you create the file system on it?
 
Old 06-18-2008, 03:39 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Yep a bare partition with no file system can not be mounted..

man mkfs.ext3

mkfs.ext3 /dev/hda2
 
Old 06-19-2008, 10:50 AM   #4
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
umm... i dont think so. thanks so much for your help. i didnt think of that, so the saying 'you learn something new every day' really does work then!

thanks

james
 
Old 06-19-2008, 10:54 AM   #5
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
i have just tried that to no avail. would it be because the partition has no mount point. gparted also reads it as ext3, so my question is: how do i change the mount point of the partition?

thanks

james
 
Old 06-19-2008, 12:28 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
can you manually mount the partition ?


Open a shell and as root, try the following

mkdir /media/photos
mount /dev/hda2 /media/photos
cd /media/photos
mount


Does mount show the drive as mounted now ?
Can you create a file on the drive ?

If that works then you can edit your /etc/fstab file to add a mount point that will be available automatically at boot time.



If that Doesn't work ywould you post the output of the following commands here ?

mount

fdisk -l


Then we can see what is mounted and what drives and partitions are available on your system.

Last edited by farslayer; 06-19-2008 at 12:30 PM.
 
Old 06-19-2008, 12:37 PM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
A partition without filesystem cannot be mounted - and if mounted mkfs would refuse to work.
You could try the -f switch to mkfs.
gparted reads it as ext3 because before the space belonged to a partition with ext3 on it(?)

It could be that you solve this by rebooting - not like the fix-all-solution for windows...but:
the partition table (layout) has changed - it could be that the kernel has problems even seeing the new partition - and thus cannot work on it.
After rebooting the creation of a filesystem there should be no problem.
There could be a way without rebooting - but I don't know it.
 
Old 06-20-2008, 05:21 AM   #8
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
thanks very much.

i have tried the

mkdir /media/photos
mount /dev/hda2 /media/photos
cd /media/photos
mount

solution and it seems to work, so ta muchly, people!
 
Old 06-20-2008, 09:51 AM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
so now if you wish for that to mount automatically at every boot, you need to add an entry in your /etc/fstab file.

If you wish for PHOTOS to mount in a different location, say for instance under your home directory, you need to create a folder for it to use as a mount point in your home directory, then alter your fstab so that partition mounts to that folder..

As your normal user..

mkdir ~/photos

As root edit your /etc/fstab file

cp /etc/fstab /etc/fstab.bak - Back up your fstab file before starting
nano /etc/fstab - Edit the file using nano, pico, vi or whatever you feel comfortable with

Add a line at the end of your /etc/fstab file like the following
Code:
/dev/hda2       /home/username/photos           ext3    defaults        0       0
after that the partition should mount as /home/username/photos automatically every time you boot your machine.
 
Old 06-21-2008, 05:12 AM   #10
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
yeah. i have done that already and everything is working fantastically. thanks for all the help lads. i feel like such an idiot, but i had no second clue, so thanks again.

james
 
  


Reply


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
LXer: Is the Open Source Brand in the Right Hands? LXer Syndicated Linux News 0 03-21-2008 09:10 AM
Brand Spanking New! Rugger07 LinuxQuestions.org Member Intro 1 01-10-2008 07:14 AM
mount directories of partitions, not partitions possible? kpachopoulos Linux - General 9 09-02-2007 08:25 PM
LXer: firmware-tools update—Brand-spanking-new GUI. LXer Syndicated Linux News 0 08-23-2007 06:50 AM
brand spanking new to linux poetofdemorest Linux - Newbie 8 02-19-2006 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 PM.

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