LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-30-2003, 06:09 PM   #1
New 2 The Game
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Rep: Reputation: 15
Ok 1 more question?


I have a second HD connected through USB. I can open this hard disk from /disks/dos/... But i noticed i cannot delete any files or add any to this drive.
Any suggestions? Thnx
 
Old 08-30-2003, 06:17 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
what filesystem is it?
if its a fat drive...then you'll have to edit the /etc/fstab ..
add an option:
umask=000
or specify a userID such as:
UID=500
so an example line would look like
/dev/hda /mnt/disk vfat user,umask=000,rw 0 0
or replace where i have umask=000 if you just want to specify it for a particular user...
 
Old 08-30-2003, 06:17 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Can you post your /etc/fstab file?

su to root in a shell

cat /etc/fstab

or

gedit /etc/fstab
 
Old 08-30-2003, 06:25 PM   #4
New 2 The Game
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Original Poster
Rep: Reputation: 15
how i do that??? find out if it is fat
I was on windows XP home i think it ntfs or something like that?
tell me how to find out what it is....
 
Old 08-30-2003, 06:27 PM   #5
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
Has the disk been mounted with the ro (read-only) option? Try setting the uid and gid options (execute "man mount" for more information). The mount point info is stored in /etc/fstab.
 
Old 08-30-2003, 06:29 PM   #6
New 2 The Game
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Original Poster
Rep: Reputation: 15
fstab pasted

this is my fstb line copy and pasted

# DO NOT EDIT: This is a generated file. To set mount points,
# file system types, or mount options edit /etc/harddrive.inf.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda3 / reiserfs rw 0 0
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
none /proc/bus/usb usbdevfs defaults 0 0
/dev/fd0 /mnt/floppy1 auto showexec=no,rw,user,noauto 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,user,exec,unhide 0 0
/dev/cdroms/cdrom0 /mnt/cdrom1 iso9660 noauto,ro,user,exec,unhide 0 0
/dev/cdroms/cdrom1 /mnt/cdrom2 iso9660 noauto,ro,user,exec,unhide 0 0
/dev/hda1 /boot ext2 defaults 0 2
/dev/sda1 /disks/dos ntfs defaults 0 2
/dev/fd0 /mnt/floppy1 auto showexec=no,sync,rw,user,noauto 0 0
/dev/cdroms/cdrom0 /mnt/cdrom1 iso9660 noauto,ro,user,exec,unhide 0 0
/dev/cdroms/cdrom1 /mnt/cdrom2 iso9660 noauto,ro,user,exec,unhide 0 0
 
Old 08-30-2003, 06:32 PM   #7
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
If its NTFS a typical entry in /etc/fstab would look like this (this is an example ) - Again - post your fstab file so we can have a look at it - Ive give instructions in the last post.

/dev/hda1 /mnt/windows ntfs auto,ro,umask=0222 0 0
 
Old 08-30-2003, 06:32 PM   #8
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
If your file-system is NTFS then it will definately be mounted as read-only as support for writing to NTFS filesystems is experimental at the moment and has been known to break the filesystem. Your best option is to create a small FAT32 partition which will be rad-write accessible from both Windows and Linux and can serve as a place to put files that need to be accessible from both OSes.
 
Old 08-30-2003, 06:34 PM   #9
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Alter it to this and save it - then reboot and check.

/dev/sda1 /disks/dos ntfs auto,ro,umask=0222 0 0
 
Old 08-30-2003, 06:50 PM   #10
New 2 The Game
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Original Poster
Rep: Reputation: 15
i change the line and after i reboot if goes back to what it was??
 
Old 08-30-2003, 06:52 PM   #11
New 2 The Game
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Original Poster
Rep: Reputation: 15
so how do i mkae a fat32 partition on this drive. I dont know if it matters but i am using Lindows. I know nothing so if you can give details i'd greatly apreciate it THNXS
 
Old 08-30-2003, 07:19 PM   #12
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
If you are resizing the NTFS partition then I recommend you use Partition Magic under Windows XP. If you are using Linux then the commands to use are resize2fs and parted. The manpages for both of these commands should show you how to use them.
Try:

resize2fs -p (linux partition device) (new size in blocks)
parted (drive (not partition) device)

then type help at the parted prompt to see the commands available. I suggest print, then resize, then mkpartfs, then quit. Once parted is finished, reboot and run mkdosfs -F 32 (new partition device file) to create the filesystem.

Once mkdosfs is complete then you should be able to mount the partition under linux and it should appear as an extra drive letter under Windows. To make linux mount the filesystem at boot add a line to your /etc/fstab file:

(new partition device) (new mount point) vfat defaults 0 0

P.S. unmount partitions before resizing them.

P.P.S. booting from a rescue cd-rom mey help if you wish to resize your root partition.
 
  


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
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 05:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 02:51 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 04:16 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 03:02 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 01:53 PM


All times are GMT -5. The time now is 06:25 AM.

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