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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-30-2003, 05:09 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 25
Rep:
|
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
|
|
|
08-30-2003, 05:17 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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...
|
|
|
08-30-2003, 05:17 PM
|
#3
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Can you post your /etc/fstab file?
su to root in a shell
cat /etc/fstab
or
gedit /etc/fstab
|
|
|
08-30-2003, 05:25 PM
|
#4
|
LQ Newbie
Registered: Aug 2003
Posts: 25
Original Poster
Rep:
|
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....
|
|
|
08-30-2003, 05:27 PM
|
#5
|
Member
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246
Rep:
|
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.
|
|
|
08-30-2003, 05:29 PM
|
#6
|
LQ Newbie
Registered: Aug 2003
Posts: 25
Original Poster
Rep:
|
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
|
|
|
08-30-2003, 05:32 PM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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
|
|
|
08-30-2003, 05:32 PM
|
#8
|
Member
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246
Rep:
|
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.
|
|
|
08-30-2003, 05:34 PM
|
#9
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Alter it to this and save it - then reboot and check.
/dev/sda1 /disks/dos ntfs auto,ro,umask=0222 0 0
|
|
|
08-30-2003, 05:50 PM
|
#10
|
LQ Newbie
Registered: Aug 2003
Posts: 25
Original Poster
Rep:
|
i change the line and after i reboot if goes back to what it was??
|
|
|
08-30-2003, 05:52 PM
|
#11
|
LQ Newbie
Registered: Aug 2003
Posts: 25
Original Poster
Rep:
|
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
|
|
|
08-30-2003, 06:19 PM
|
#12
|
Member
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|