LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-14-2008, 01:28 PM   #16
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37

Sarmoodi,
Don't do anything yet. Just run that "fdisk -l" to list the harddisk setup for us. Not sure if you have to run "su" and give your root password first.

Then we'll see what you have actually created on that harddrive. We can then work out what your /etc/fstab file should look like.

You might also run "swapoff -a" as root, so that Linux don't try to write to the swap partition, in case its the wrong one you have in your current fstab. Just don't run too many programs at the same time after you have done that. Linux will kill (end) some programs by itself if it runs out of memory while you haven't got swap.

Mons

Edit: At least we know you have your windows C drive on /media/hd

Last edited by monsm; 01-14-2008 at 01:30 PM.
 
Old 01-14-2008, 07:08 PM   #17
sarmoodi
Member
 
Registered: Jan 2008
Posts: 37

Original Poster
Rep: Reputation: 15
problem solved...it was partitioning problem...the swap was taking the 35 GB...i've deleted this partition and the other 400 MB partition and then created a 500 MB swap partition and the rest became as D: (i've mounted it as /media/hd2 as the c: is /media/hd) and now i can c all partitions from linux...


thank u all so much for help..and b ready for more hhhh...thanx
 
Old 01-15-2008, 06:55 AM   #18
sarmoodi
Member
 
Registered: Jan 2008
Posts: 37

Original Poster
Rep: Reputation: 15
it seems not really solved....i can get access to partition but i can see it as empty!! although it contains files...

this is the /etc/fstab :

/dev/hda5 / ext3 noatime 1 1
/dev/hda1 /media/hd ntfs umask=0022,nls=utf8,sync,ro 0 0
/dev/hda7 /media/hd2 ntfs defaults 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0


i have mounted the hda7 to /media/hd2 as it shown above...and now when i try to access this partition i receive this message "could not enter folder /media/hd2" and then looks like empty !!
 
Old 01-15-2008, 07:05 AM   #19
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Dude, thats because you do not have the right permissions to view! Can't you see the files even as root? You can just do one thing, in your /etc/fstab file, for those Windows drives, just remove 'defaults' and put this:
Code:
usr,umask=0000
 
Old 01-15-2008, 07:05 AM   #20
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Actually, you can set fmask and dmask. umask gives you all sorts of permissions.
 
Old 01-15-2008, 07:22 AM   #21
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Just specify user id and group id along with umask. For example, if the user's id is 1000 and his group id is 1000:
defaults,rw,gid=1000,uid=1000,umask=0022
You'll also need to install and specify ntfs-3g if you need to write to ntfs.
 
Old 01-15-2008, 07:37 AM   #22
Alohamora
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Hello dear this is karan singh......

wel im a newbeeeee in this forum site.....also to linux
but as far as my views are concerned on this topic
i think you should try the mounting process again and then restart the system.

May be it can work.....
 
Old 01-15-2008, 07:42 AM   #23
sarmoodi
Member
 
Registered: Jan 2008
Posts: 37

Original Poster
Rep: Reputation: 15
i tried to chenge the /etc/fstab but when i try to save the changes it says:


"documents could not b saved,as it was not possible to write to file:///etc/fstab.
check that u have write access to this file or that enough disk space is available"...
 
Old 01-15-2008, 07:43 AM   #24
sarmoodi
Member
 
Registered: Jan 2008
Posts: 37

Original Poster
Rep: Reputation: 15
hi alohamora.... mount it to what? /media/hd2 also??
 
Old 01-15-2008, 09:09 AM   #25
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Dude, please type the following commands:
Code:
su root
gedit /etc/fstab &
Now edit it. This is because, you need to be such a user who has permissions to write to this folder. And that is root!
 
Old 01-15-2008, 01:29 PM   #26
sarmoodi
Member
 
Registered: Jan 2008
Posts: 37

Original Poster
Rep: Reputation: 15
ok thanks...it solved now....thank u all
 
  


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
Mandriva Installer Changes NTFS Partition NarrowPathPilgrim Linux - Newbie 1 11-05-2007 06:07 PM
NTFS partition access kodiak18 Mandriva 8 08-16-2007 03:46 PM
NTFS partition access Red Barchetta Linux - Newbie 6 03-23-2007 04:22 AM
Can't access NTFS partitions from mandriva 2007 majk Linux - Newbie 1 12-04-2006 08:14 AM
NTFS partition access rr_rr_29 Linux - Hardware 1 10-17-2005 04:59 AM


All times are GMT -5. The time now is 07:04 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