LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Can anyone help me (https://www.linuxquestions.org/questions/ubuntu-63/can-anyone-help-me-682665/)

pixellany 11-12-2008 07:28 AM

Quote:

Originally Posted by pinniped (Post 3339317)
I forgot about that "NTFS in use" thing - in situations where you are sure the filesystem is not in use, just add 'force' to the option list in fstab. I've encountered so many situations (manufacturer bug, etc) that would mark the filesystem "in use" that I have sometimes wondered if a random number generator is somehow involved in deciding whether the filesystem is in use or not.

I was about to tell OP to use the man pages, but I just ran man fstab and man mount, and I can't find the "force" option.
???

bergzan 11-12-2008 10:25 AM

SO do u know if there is any oprion how to run these disks (usb flash drive work all i have to do is safly remove in windows dut cant do these with HDD)

pinniped 11-12-2008 03:10 PM

Quote:

Originally Posted by pixellany (Post 3339407)
I was about to tell OP to use the man pages, but I just ran man fstab and man mount, and I can't find the "force" option.
???

"force" is an option for ntfs-3g. When 'mount' is invoked, options are passed to the filesystem driver. Don't count on the main 'mount' page to be up to date and document all options from all implemented filesystems.

bergzan 11-12-2008 04:10 PM

so can u tell me what do i need to do so i will be able to least read from disks

cos i rly need the disks cos i have some stuff on it i need for work

pinniped 11-12-2008 10:25 PM

Quote:

Originally Posted by bergzan (Post 3339884)
so can u tell me what do i need to do so i will be able to least read from disks

cos i rly need the disks cos i have some stuff on it i need for work

I thought that part was already clear. If you only want to *read* then, as root:

mount -t ntfs /dev/(your NTFS partition's device) /(your mount point)

If you want a normal user to mount the drive and be able to read it, create an entry in /etc/fstab with the options noauto,user

If you want to be able to write as well, then use "ntfs-3g" rather than "ntfs".

bergzan 11-13-2008 01:09 AM

wel if i tipe /etc/fstab in terminal
i get bash: /etc/fstab: Permission denied

SqdnGuns 11-13-2008 01:22 AM

Quote:

Originally Posted by bergzan (Post 3340249)
wel if i tipe /etc/fstab in terminal
i get bash: /etc/fstab: Permission denied

sudo gedit /etc/fstab

bergzan 11-13-2008 01:43 AM

OK in fstab i see these
what do i have to do now ?


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda1 :
UUID=3a4210af-31d8-427b-86ec-ce9448674e81 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=59b1bf81-a24a-4037-aa26-b47648944814 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdb /media/500\040giga ntfs-3g defaults,locale=en_US.UTF-8 0 0


im realy stupid about these OS (first time using it now 3 days)
so sry for these stupid questions

pinniped 11-13-2008 02:10 AM

Quote:

Originally Posted by bergzan (Post 3340276)
/dev/sdb /media/500\040giga ntfs-3g defaults,locale=en_US.UTF-8 0 0

Try adding 'user,noauto,' after the 'defaults,' part. That should prevent it from being mounted for 'root' at boot-time and it should allow other users to mount it - either via an automounter when it is plugged in or via:
mount /media/500\040giga

bergzan 11-13-2008 02:37 AM

i tried everithing u sad and nothing :S
gues im to dumb to do this

pinniped 11-13-2008 03:36 AM

Quote:

Originally Posted by bergzan (Post 3340327)
i tried everithing u sad and nothing :S
gues im to dumb to do this

So what have you done? What does the fstab file look like now?

We should probably start all over again; looking at the previous posts, both pixellany and I have asked you to post the output of:

sudo fdisk -l

This will tell us what your various disks are and we will at least be able to tell you what to do to set up fstab entries.

Also, did you install the "ntfs-3g" software? If not, use your package manager to install it.

bergzan 11-13-2008 06:40 AM

ntfs-3g is installed


Disk /dev/sda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x36c636c5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9598 77095903+ 83 Linux
/dev/sda2 9599 10011 3317422+ 5 Extended
/dev/sda5 9599 10011 3317391 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2052474d

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1 ? 410 119791 958924038+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 121585 234786 909287957+ 43 Unknown
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 14052 14052 5 72 Unknown
Partition 3 does not end on cylinder boundary.
/dev/sdb4 164483 164486 25945 0 Empty
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order



P.S.: and lil info NTFS reading work i tried with USB 138 flash drive
i went in windows and do safely remove hardware

but cant do with 500 GB disk

irishbitte 11-13-2008 11:02 AM

Try logging into windows on your machine, then ensure that you shutdown the machine from within windows fully.

If the 'in-use' flag on an ntfs filesystem is not unset, your linux filesystem will not mount it, no matter what you do!

bergzan 11-13-2008 11:44 AM

I will do that with external HDD
mut cant with internal becaose i dont have windows on these computer and this computer is the only 1 with sata
(other 1 is older and have only IDE)

bergzan 11-13-2008 11:52 AM

ok 350GB external disk is now readable (gues i need to format the comp and get vista on and than ubuntu again)


All times are GMT -5. The time now is 09:39 AM.