I have read some posts where noobs have reinstalled kubuntu because of some problems that could have been fixed if they had known how to mount the hdd from the live cd.
step 1: boot from a live cd. can be feisty, edgy, knoppix etc. etc.
step 2: open konsole and:
A: type sudo fdisk -l /dev/hda (sda for sata disk). If you have a dual
boot system you will have to do sudo fdisk -l /dev/hdb or /sdb
depending on which drive you wish to access.
This will print the partition table.
Sample below:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 131 1052226 82 Linux swap / Solaris
/dev/sda2 132 588 3670852+ 83 Linux
/dev/sda3 589 29126 229231485 83 Linux
/dev/sda4 29127 30401 10241437+ 5 Extended
/dev/sda5 29127 30401 10241406 83 Linux
determine which partition is your hdd (usually /dev/hda or /dev/sda
forsata disk) In this case /sda1 is swap, /sda2 is /var, /sda3
is /home, and /sda5 is /. ( i know this because I installed it). fdisk will
not show themount points.
B: create directory or mount point for one or all partitions. All if you
don't know which one you need to get to.
sudo mkdir /media/name_of_hd (could be /media/windows
or /media/home. In this case I would do /media/sda1 /media/sda2
and so on for each partition.
Step 3: edit /etc/fstab
A: in konsole type kdesu kate /etc/fstab.
This will open the fstab in the text editor. start a new line after the
last entry. It may not look like it but there are 6 columns separated
by spaces. 1st column is device, 2nd is mount point 3rd is file
system type, 4th is permissions 5th and 6th are irrelevant for this
tutorial. Sample below:
unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/hda1 swap swap defaults 0 0
(new lines)
/dev/sda2 /media/sda2 ext3 defaults 0 0
/dev/sda3 /media/sda3 ext3 defaults 0 0
/dev/sda4 /media/sda4 ext3 defaults 0 0
/dev/sda5 /media/sda5 ext3 defaults 0 0
Notice i did not add a line for /dev/sda1 because it is swap
according to fdisk above. Now save the new /etc/fstab by clicking
on the save icon or >file>save.
B: In konsole type sudo mount -a
You will get errors if there are any misspellings in /etc/fstab or if you
got the file system type on any of the lines wrong. If everthing is
correct you should now be able to browse the partitions in
konqueror or edit any of the files with kate or your favorite editor.
I hope this is helpful.
Charlie
contrib by jankushka:
content:
you can look at the mounted file systems by issuing "df -h".
where -h stands for "human readeable".
you can look at the current mount table by issuing "mount".
the 4th column of fstab is not "permissions", rather "mount options".
step 1: boot from a live cd. can be feisty, edgy, knoppix etc. etc.
step 2: open konsole and:
A: type sudo fdisk -l /dev/hda (sda for sata disk). If you have a dual
boot system you will have to do sudo fdisk -l /dev/hdb or /sdb
depending on which drive you wish to access.
This will print the partition table.
Sample below:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 131 1052226 82 Linux swap / Solaris
/dev/sda2 132 588 3670852+ 83 Linux
/dev/sda3 589 29126 229231485 83 Linux
/dev/sda4 29127 30401 10241437+ 5 Extended
/dev/sda5 29127 30401 10241406 83 Linux
determine which partition is your hdd (usually /dev/hda or /dev/sda
forsata disk) In this case /sda1 is swap, /sda2 is /var, /sda3
is /home, and /sda5 is /. ( i know this because I installed it). fdisk will
not show themount points.
B: create directory or mount point for one or all partitions. All if you
don't know which one you need to get to.
sudo mkdir /media/name_of_hd (could be /media/windows
or /media/home. In this case I would do /media/sda1 /media/sda2
and so on for each partition.
Step 3: edit /etc/fstab
A: in konsole type kdesu kate /etc/fstab.
This will open the fstab in the text editor. start a new line after the
last entry. It may not look like it but there are 6 columns separated
by spaces. 1st column is device, 2nd is mount point 3rd is file
system type, 4th is permissions 5th and 6th are irrelevant for this
tutorial. Sample below:
unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/hda1 swap swap defaults 0 0
(new lines)
/dev/sda2 /media/sda2 ext3 defaults 0 0
/dev/sda3 /media/sda3 ext3 defaults 0 0
/dev/sda4 /media/sda4 ext3 defaults 0 0
/dev/sda5 /media/sda5 ext3 defaults 0 0
Notice i did not add a line for /dev/sda1 because it is swap
according to fdisk above. Now save the new /etc/fstab by clicking
on the save icon or >file>save.
B: In konsole type sudo mount -a
You will get errors if there are any misspellings in /etc/fstab or if you
got the file system type on any of the lines wrong. If everthing is
correct you should now be able to browse the partitions in
konqueror or edit any of the files with kate or your favorite editor.
I hope this is helpful.
Charlie
contrib by jankushka:
content:
you can look at the mounted file systems by issuing "df -h".
where -h stands for "human readeable".
you can look at the current mount table by issuing "mount".
the 4th column of fstab is not "permissions", rather "mount options".
Comment