Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Hardware/Software.
Acmlm's Board - I2 Archive - Hardware/Software - Linux again? O.o Mounting a drive
  
User name:
Password:
Reply:
 

UserPost
Knuckles T15X
Posts: 103/134
I made a mistake, the error was "Can't read superblock"
It can see it, but refuses to mount it >=O

Also, I'll try to do that with the NTFS disk.
Cellar Dweller
Posts: 65/269
I think I know why you can't use a non-root account to read the NTFS filesystem. Open the mount manpage and scroll down to "Mount options for ntfs". Note the description for the umask option.

For the NTFS filesystem try: "mount -t ntfs -o umask=666 /dev/hdb1 /mnt/ntfs". Then try to use it from a regular account.

If that works, add the following line to /etc/fstab :
/dev/hdb1 /mnt/ntfs ntfs auto,umask=666 0 0



As for the USB drive, I don't know what the problem is, but you can add the following to /etc/fstab :
/dev/sda1 /mnt/usb vfat noauto 0 0
Knuckles T15X
Posts: 102/134
This is what I use:
USB stick:
mount -t vfat /dev/sda1 /mnt/usb
NTFS disk:
mount -t ntfs /dev/hdb1 /mnt/ntfs

I still can't get it to mount when non-root... heck, when doing an XBox mod, the XBox ate ALL the data on my USB stick. After a reformat on a Windows PC to FAT32 (since I needed a format that can be read on Mac OSX, Windows, and Linux), I get a "bad superblock" error whenever I try to mount it under root. It mounts fine on Mac OSX and Windows... but WHY NOT WINDOWS?! It worked fine before!
FreeDOS
Posts: 475/1657
I thought it was something like this to mount NTFS:
mount -t ntfs /dev/hda1 /mnt/win

/dev/hda1 is the partition the NTFS is on. There is no zeroth partition...
BGenesis
Posts: 38/38
I used to have it... I completely forgot:
The actual command is something like:

mount ntfs /dev/hda0 /mnt/win

This simply mounts your windows partition to /mnt/win, but there's some more, so you can specify a umask, try

mount ?
or
mount help
Cellar Dweller
Posts: 63/269
I can't provide a walkthrough. I haven't needed to mount an NTFS filesystem or a USB disk, and I don't know what options need to be used in your case.

If you have used mount(I'm assuming that you have), most of the fields in /etc/fstab should be self explanitory. The mount(8) and fstab(5) manpages provide better explanations than I can. To access them, you can use the man command from the command line(eg. "man mount" and "man fstab").
Knuckles T15X
Posts: 97/134
O.o? I'm a newbie to Linux, could you walk me through this? (I know how to edit a file, though =P)
Cellar Dweller
Posts: 61/269
Have you tried editing /etc/fstab?
Knuckles T15X
Posts: 96/134
Nothing severely "OMG LINUX BROKE WORLD DIE NOW" serious, just need some help making things automount and such.

1) I have an NTFS drive, yes I got a module that lets me mount it in a read-only mode. But I'd like it to automount, and be accessible to all other user accounts (like my everyday use account), how is this done?

2) Same for USB drive, but minus the automounting.

I'm using Fedora Core 2 (2.6.5), with KDE. Thanks in advance! =P
Acmlm's Board - I2 Archive - Hardware/Software - Linux again? O.o Mounting a drive


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.011 seconds.