NTFS partition doesn't appear on Xubuntu Hardy

Asked by Santiago Ward

Hello everybody,
I've decided to test Xubuntu Hardy. I made a clean install on my laptop. When I logged in, I realized I couldn't see my Windows XP partition on the GTK bookmarks. I went to /media and saw it wasn't there either. Finally I decided to test the liveCD on my desktop PC, and had the same problem.
I wasn't sure if this was a bug, and if so, which package is involved.
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Max Schukin
Solved:
Last query:
Last reply:
Revision history for this message
Max Schukin (schukin) said :
#1

Run Terminal and enter:
sudo mount -a -o force

If it wont help, press Alt+F2 and enter:
gedit /etc/fstab
Copy all the text and post it here.

Run Terminal and ether:
sudo fdisk -l
And post the output here.

Revision history for this message
Max Schukin (schukin) said :
#2

Use "mousepad /etc/fstab" not "gedit /etc/fstab" in Xubuntu.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#3

sudo mount -a -o force didn't solve the problem.

Here's the text in /etc/fstab:
unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0

Here's the output of sudo fdisk -l:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1bdf1bde

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 7 HPFS/NTFS

Thanks!

Revision history for this message
Max Schukin (schukin) said :
#4

Did you get fstab from livecd?
Did you use Wubi to install Xubuntu? Because it looks like you have only one partition (160Gb) and no linux partitions.
If you're running Wubi look for your windows partition in /host.

Hope it helps.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#5

I got it from the LiveCD, I haven't installed Xubuntu on this computer yet.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#6

I just tried my Gutsy LiveCD, and the NTFS partition in there in /media. Is this a bug in Hardy?

Revision history for this message
Max Schukin (schukin) said :
#7

Run Terminal and enter:
sudo mkdir /media/windows
sudo mount -t ntfs /dev/sda1 /media/windows

Revision history for this message
Santiago Ward (santiagoward2000) said :
#8

That helped. Now I can see the content if I manually go to /media/windows in thunar, but it doesn't appear as a removable drive (as it did in Gusty).
Thanks!

Revision history for this message
Max Schukin (schukin) said :
#9

If you already have your Windows partition mounted, unmount it:
1. Open Terminal
2. Enter:
sudo umount /dev/sda1

Press Alt+F2 and enter:
gksudo mousepad /etc/fstab
Add the following string:
/dev/sda1 /media/windows ntfs defaults,umask=007,gid=46 0 1

Run Terminal and enter:
sudo mount -a

What version of Xubunty are you using? 8.04 beta, 8.04 alpha?

Revision history for this message
Santiago Ward (santiagoward2000) said :
#10

Sorry, but that didn't work. I'm using the 8.04 beta.

Revision history for this message
Max Schukin (schukin) said :
#11

I don't know what else to try.
You can manually mount your partition and add it to "Places" (right click on the panel, and select the Add to Panel option).

I think if you install Xubuntu the problem can be solved or even won't appear.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#12

Well, thanks for your patience.
I installed it on my laptop, and the problem was there, even after installing all the updates and making a partial upgrade.
I followed the steps again and I got a folder with the content of the partition, but it wasn't recognized as a disk.
I added the folder to Thunar's sidebar, so I can see it in Places as a GTK bookmark, but now I have to mount and unmount it manually through the terminal.
Thank you.

Revision history for this message
Max Schukin (schukin) said :
#13

You need to add your partition to fstab.
If you already have your Windows partition mounted, unmount it:
1. Open Terminal
2. Enter:
sudo umount /dev/sda1

Press Alt+F2 and enter:
gksudo mousepad /etc/fstab
Add the following string:
/dev/sda1 /media/windows ntfs defaults,umask=007,gid=46 0 1
Save the file.
Run Terminal and enter:
sudo mount -a

If it wont help post your fstab, fdiks and mount output:
1. Press Alt+F2 and enter:
gedit /etc/fstab
Copy all the text and post it here.
2. Open Terminal and ether:
sudo fdisk -l
And post the output here.
3. Open Terminal and ether:
sudo mount -a
And post the output here.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#14

Sorry for the delay. I updated to the RC. I followed the steps but didn't work. Here are the texts you asked:
1.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=89a7bab0-a782-4d03-9a58-aa04420c571e / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=47a90d77-560a-414d-b9e6-15cdad269636 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/SQ003937 ntfs defaults,umask=007,gid=46 0 1

2.
sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xef30ef30

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 1885 15141231 7 HPFS/NTFS
/dev/sda2 1886 7296 43463857+ 5 Extended
/dev/sda5 1886 7227 42909583+ 83 Linux
/dev/sda6 7228 7296 554211 82 Linux swap / Solaris

3. sudo mount -a had no output.

Thanks

Revision history for this message
Max Schukin (schukin) said :
#15

Does your windows partition automount on startup to /media/SQ003937 with read/write permissions?
Have you tried to and add it to "Places" (right click on the panel, and select the Add to Panel option)?

Revision history for this message
Santiago Ward (santiagoward2000) said :
#16

No, it does not automount. I have to mount it with sudo mount /dev/hda1.
I have the "Places"item on the panel, but how do I add it there?

Revision history for this message
Max Schukin (schukin) said :
#17

Check if /media/SQ003937 exists. If it doesn't exists create it. To do this open Terminal and enter:
sudo mkdir /media/SQ003937
Restart your computer, open /media/SQ003937 and look if there are any files.

If it won't work open Terminal and enter:
less /etc/group
and look for a line like this:
plugdev:x:46:username1,username2
Write down the number after "plugdev:x:" you'll need it later.

Enter in terminal:
sudo vol_id -u /dev/sda1
Copy the output (it should be something like this: ee8f1e0b-1fb7-4197-a786-c7fb11fdcd33) somewhere, you'll need it later.

Enter in terminal:
sudo mousepad /etc/fstab
Change the line:
/dev/sda1 /media/SQ003937 ntfs defaults,umask=007,gid=46 0 1
to
UUID=XXX /media/SQ003937 ntfs-3g defaults,umask=007,gid=YYY 0 1
where XXX is the output from "sudo vol_id -u /dev/sda1"
YYY is from the line "plugdev:x:"
Save the file and restart your computer.

Now open /media/SQ003937 and look if there are any files.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#18

I can see the files now in /media/SQ003937. Thanks.
Is there any way to make Thunar recognize that folder as a removable drive?

Revision history for this message
Best Max Schukin (schukin) said :
#19

Does your "Places" panel look like this: http://goodies.xfce.org/projects/panel-plugins/xfce4-places-plugin ?
Make sure that "Show removable media" and "Show GRK bookmarks" are marked in the properties/preferences dialog.
Try to right-click on the "Places" panel and find something like "Add".
It it won't work try this:
1. Open Terminal and enter:
nano ~/.gtk-bookmarks
2. You should see something like this:
file:///home/max/Documents
file:///home/max/Music
file:///home/max/Pictures
file:///home/max/Videos
3. Add the following string:
file:///media/SQ003937
4. To save the file press Ctrl+X and then press Y.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#20

Thanks, that did it. There was no "Add" when I right-clicked on "Places", but adding file:///media/SQ003937 on ~/.gtk-bookmarks worked.
Thank you!

Revision history for this message
Santiago Ward (santiagoward2000) said :
#21

Thanks Max Schukin, that solved my question.

Revision history for this message
Santiago Ward (santiagoward2000) said :
#22

Now, should I report this as a bug before the final release?

Revision history for this message
Max Schukin (schukin) said :
#23

The final release is today. But you can still report any bugs at http://bugzilla.xfce.org