LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kubuntu 10.04, i386, new install. Can't access EXT4 partition on same HDD. (https://www.linuxquestions.org/questions/linux-newbie-8/kubuntu-10-04-i386-new-install-cant-access-ext4-partition-on-same-hdd-880404/)

Bhakta Neal 05-12-2011 04:56 PM

Kubuntu 10.04, i386, new install. Can't access EXT4 partition on same HDD.
 
Kubuntu 10.04, i386, new install. Can't access EXT4 partition on same HDD. Celeron, desktop.

Thank you.

Bhakta Neal 05-12-2011 05:00 PM

I rarely use the console. So, I am still very dumb when using it!

markush 05-12-2011 05:06 PM

Kubuntu 10.4 should out of the box support ext4. If you want to list the partitions on your computer use
Code:

fdisk -l
if you want to list the mounted partitions you may use
Code:

df -h
or
Code:

mount
if you want to mount a partition you'll have to use the mount command. As an example, if you have a partition /dev/sda7 which is not yet mounted and have a directory /mnt/tmp you may use the command
Code:

mount /dev/sda7 /mnt/tmp
which mounts the partition to the directory.

Markus

yancek 05-12-2011 05:09 PM

What's on the ext4 partition? Data? Another operating system? How have you tried to access it? Do you have a mount point for it? Is it mounted? I don't have Kubuntu so I don't know where you access the terminal, probably the Menu icon?? get your partition information using this command as root (sudo): sudo fdisk -l (lower case letter L in the command). Also, take a look at the /etc/fstab file to see what you have. If you don't understand it, post it here.

Bhakta Neal 05-12-2011 05:10 PM

Thank you.

Before I follow your instructions, I want to know if there is a way to have my partitions automatically mount upon every boot, without a prompt for password.

markush 05-12-2011 05:12 PM

surely, if you configure it in the /etc/fstab file.

Markus

Bhakta Neal 05-12-2011 05:14 PM

ok more on the auto in a moment. fdisk coming next:

Bhakta Neal 05-12-2011 05:18 PM

neally@honeybear:~$ sudo fdisk -l
[sudo] password for neally:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8b37325c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6079 48827392 83 Linux
/dev/sda2 6079 7903 14648320 83 Linux
/dev/sda3 7903 8025 976896 82 Linux swap / Solaris
/dev/sda4 8025 30402 179743744 83 Linux

Bhakta Neal 05-12-2011 05:20 PM

neally@honeybear:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 46G 44G 128M 100% /
none 245M 308K 245M 1% /dev
none 249M 92K 249M 1% /dev/shm
none 249M 80K 249M 1% /var/run
none 249M 0 249M 0% /var/lock
none 249M 0 249M 0% /lib/init/rw
/dev/sda4 169G 188M 160G 1% /media/disk


I am trying to be able to read/write files in sda4

Bhakta Neal 05-12-2011 05:23 PM

neally@honeybear:~$ sudo mount /dev/sda4 /mnt/tmp
mount: mount point /mnt/tmp does not exist

markush 05-12-2011 05:24 PM

Well, this tells you, that /dev/sda2 is not yet mounted.
And since /dev/sda4 is mounted to /media/disk, there is no problem for your Kubuntu to access the filesystem.

Markus

Edit: as I wrote "if you have a directory /mnt/tmp" if not, create one. But you don't need it since the partition is already mounted.

Bhakta Neal 05-12-2011 05:26 PM

I suppose it says sda4 is mounted?
But in Kubuntu's GUI file manager, Dolphin, It won't let me so much as write new folder. I can not see any files on it.

Bhakta Neal 05-12-2011 05:29 PM

Ok? All I know is I can't use sda4. Dolphin won't let me.

Bhakta Neal 05-12-2011 05:31 PM

I don't remember these problems on my last computer, with Kubuntu 9.10.
How can I use my filesystem?

markush 05-12-2011 05:32 PM

Well, you can write to it only as root. And if you open dolphin as a normal user, you don't have root-permissions.

There are two ways: write to the partition as root on the commandline, or create folders as root and change the owner of the folders to the normal user which then will have write-permissions within the folders

Markus


All times are GMT -5. The time now is 12:40 AM.