PDA

View Full Version : [ubuntu] accessing hard drive on PC with linux on USB



ssharmab
December 2nd, 2010, 07:54 PM
Hi

I have Ubuntu 10.10 on my USB stick, and it boots fine. I want to be able to use the PC's hard drive, though, for storage of my files. My PC has WinXP on it and I dont want to lose it either.

Is there any way by which I can mount the hard drive whenever I boot using the USB stick so that I can use it for storage?

Thank you in advance
SsB

sikander3786
December 2nd, 2010, 08:34 PM
That would only work if you have a persistent install on your USB i.e, it is able to save changes and not reset them on every reboot.

https://wiki.ubuntu.com/LiveUsbPendrivePersistent

You need to define a mount for your Windows partition in /etc/fstab.

https://help.ubuntu.com/community/Fstab

https://help.ubuntu.com/community/MountingWindowsPartitions

Or install NTFS-Config, a gui tool to auto-mount NTFS drives.

Be cautious while using the Windows C: drive under Ubuntu ;-)

Important system files are not protected hence can be deleted by mistake.

If you want more help regarding the permanent mount, please post the output of these commands.


cat /etc/fstab


sudo fdisk -l


sudo blkid

cybergnome
December 3rd, 2010, 01:26 AM
I think you would do better to create a Linux partition on the hard drive, and not try to use the NTFS partition for storage when working with Linux. While the Linux driver can read/write to the partition, the MFT won't be updated, and you will begin to create errors that Windows will discover when you run CHKDSK.