Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 7379  / 2 Years ago, sat, april 9, 2022, 12:46:25

I have an external hdd with 3 partitions - 2 ntfs and 1 fat32 file systems. In linux I made folder in one of ntfs partitions, downloaded some stuff, and wanted to access through Win7; but windows can't SEE those folders. Other folders are still there. How can I access those folders made by linux? BTW, I use Ubuntu 11.10 with gnome and Windows 7



(320GB is my external hdd).




sudo fdisk -l




Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbe2dbe2d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 61646847 30720000 7 HPFS/NTFS/exFAT
/dev/sda3 61646848 225486847 81920000 7 HPFS/NTFS/exFAT
/dev/sda4 225488894 312580095 43545601 5 Extended
/dev/sda5 225488896 233299967 3905536 82 Linux swap / Solaris
/dev/sda6 233302016 312580095 39639040 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x73696d20

Device Boot Start End Blocks Id System
/dev/sdb1 63 65529134 32764536 b W95 FAT32
/dev/sdb2 65529135 625137344 279804105 f W95 Ext'd (LBA)
/dev/sdb5 65529198 270325754 102398278+ 7 HPFS/NTFS/exFAT
/dev/sdb6 270325818 625137344 177405763+ 7 HPFS/NTFS/exFAT



cat /etc/mtab




/dev/sda6 / ext4 rw,errors=remount-ro,user_xattr,commit=0 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/vindzigelskiu/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=vindzigelskiu 0 0
/dev/sdb1 /media/1D06-2AB4 vfat rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelpe r=udisks 0 0
/dev/sdb5 /media/Adata04097GB fuseblk rw,nosuid,nodev,allow_other,blksize=4096,default_permissions 0 0
/dev/sdb6 /media/Adata040169GB fuseblk rw,nosuid,nodev,allow_other,blksize=4096,default_permissions 0 0

More From » 11.10

 Answers
2

Firstly, can you reproduce?



Run these commands in a terminal:



umount /dev/sdb5
mount /dev/sdb5 -t ntfs /mnt
echo "hello world" > /mnt/bar0.txt
mkdir /mnt/foo
echo "hello world" > /mnt/foo/bar1.txt
sync
umount /mnt


Now boot into windows.




  1. Can you open file bar0.txt?

  2. Can you open folder foo?

  3. Can you open file bar1.txt from inside folder foo?



If you can't reproduce



Something went fubar during your original operation. Try reproducing with your original dataset. If you still can't reproduce, chalk it up to an anomaly until you can. That is to say, there isn't enough evidence to say what went wrong. If you're curious, try breaking it. Deliberately do things wrong until your actions reproduce the problem. Maybe the problem only manifests when the ntfs needs checking..



If you can reproduce



Gather logs. Look in /var/log for anything interesting, and especially dmesg. Pinpoint when/where the error happens. Is it when you create a file? Is it when you create a folder? Is it when you create a file in a folder? Is it when you don't run sync before umounting? Is it when you interrupt a large copy leaving broken files?



Secondly, some thoughts




  1. Do the folders exist? When you boot back into linux, can you see the folders in question?


  2. Are the folder names weird? There are a number of characters windows can't use in file names.


  3. Does linux have the reverse problem? If you create a new folder in windows, can you see it in linux?



[#41111] Saturday, April 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utschang

Total Points: 357
Total Questions: 120
Total Answers: 119

Location: Croatia
Member since Sat, May 2, 2020
4 Years ago
utschang questions
Mon, Aug 30, 21, 14:09, 3 Years ago
Tue, May 17, 22, 20:44, 2 Years ago
Sun, Jul 11, 21, 23:54, 3 Years ago
Tue, Sep 7, 21, 04:23, 3 Years ago
;