LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2011, 11:20 AM   #16
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19

GNU nano 2.2.2 File: /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext3 errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=e05c7519-bb29-4e72-b7b2-2bda220fe058 none swap sw $
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
 
Old 05-20-2011, 11:22 AM   #17
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Where is my sda2 and sda4?
 
Old 05-20-2011, 11:30 AM   #18
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello Neal,

Long time no seen buddy! Let's see if I can help you out. Can you run in a terminal the following and post the output here?
Code:
sudo fdisk -l
That will list all your partitions on all your drives.

Kind regards,

Eric

PS: by the way, your other profile was Lorax (the tree hugger). Found it in my friend list.

Last edited by EricTRA; 05-20-2011 at 11:31 AM.
 
1 members found this post helpful.
Old 05-20-2011, 11:34 AM   #19
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
OMG!
I miss you Eric! My knight in shining armor! Ha ha!

Quote:
neally@honeybear:~$ sudo fdisk -l

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 7052 7811073 5 Extended
/dev/sda3 7052 7356 2441216 82 Linux swap / Solaris
/dev/sda4 7356 30402 185116672 83 Linux
/dev/sda5 6079 7052 7811072 83 Linux
 
Old 05-20-2011, 11:43 AM   #20
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

I've always been around my friend. You seemed to have lost the way to LinuxQuestions

Ok, here goes. Your /dev/sda2 is of the type extended meaning it holds another partition. You can only have four primary partitions on a disk and most likely you've created the extended type to overcome that limit since it allows you to create partitions inside the Extended type. The filesystem within the /dev/sda2 is /dev/sda5. Look at the start and end sectors for both partitions, they are identical.

Your /dev/sda4 partition is still there so you can go ahead and mount that. Test it by mounting it. Check for example if you have anything in /mnt with:
Code:
ls /mnt
If it comes up empty then run:
Code:
sudo mount /dev/sda4 /mnt
and run
Code:
ls /mnt
again.

Let me know if that works without errors.

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-20-2011, 11:47 AM   #21
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Sent you a pm on lq.

Quote:
neally@honeybear:~$ ls /mnt
neally@honeybear:~$ sudo mount /dev/sda4 /mnt
neally@honeybear:~$ ls /mnt
lost+found
 
Old 05-20-2011, 11:49 AM   #22
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Read and answered!

That output doesn't look good, at least that is if you had any data on that partition. Did you happen to format it, wipe it, repartition or anything like that? If you did then I hope you have a backup.

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-20-2011, 11:51 AM   #23
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Thank you for explaining the extended partition business. I knew what that meant, but I had no idea that I set it up that way. Now I can recognize it in the fdisk readout. You know, back when I was playing around with 11-boot, I was easily able to access files on any/every partition from all kinds of distros. Not sure why I understood, or did things correctly, back then...
 
Old 05-20-2011, 11:52 AM   #24
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Yea, dont worry about any data there. There never was any. New HDD, clean format, install.
 
Old 05-20-2011, 11:55 AM   #25
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

OK, then there's no problem at all in using it. I guess you have a directory created where you want to mount that partition? If so then follow what's pointed out in post #14 to add a line to your /etc/fstab to mount the partition correctly at boot. After you added it run:
Code:
sudo mount -a
and you should have access. Don't forget the 'user' parameter in the fstab line and also make sure you (as user) are owner of the directory you're mounting the partition to.

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-20-2011, 12:04 PM   #26
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
I admit, I am lost in #14, and the wiki. I get lost in other forums and tutorials also. Maybe Im just scared of manipulating the core neural workings of my system without step-by-step instructions. Remember how needy I was when I started Linux?! I still feel the same.

So, back to the thread, I am not sure how to add to fstab. I only know how to copy/paste!
 
Old 05-20-2011, 12:09 PM   #27
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
will i type
Quote:
sudo nano /etc/fstab
?

---------- Post added 05-20-11 at 12:10 PM ----------

Ok, I did so anyway!
 
Old 05-20-2011, 12:13 PM   #28
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
will i add:

/dev/sda4 /mnt auto user (not sure about the dump n pass)


Does "user" need to be my actual user name, "neally"?


?????????????????????????????
 
Old 05-20-2011, 12:14 PM   #29
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
There needs to be a "go to post #____" field on LQ.
 
Old 05-20-2011, 12:17 PM   #30
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

No worries, step by step it is. You do know how to open a terminal, that you have demonstrated already. So in a terminal type the following:
Code:
sudo nano /etc/fstab
That will open the Nano editor with the /etc/fstab file. Nano is a very easy editor so you should be able to perform the next steps.
Go down to the last line (add a blank line if needed by going to the end of the last line and press enter).
Now type (or copy paste the following on that line):
Code:
/dev/sda4 /mnt/data ext3 auto,user,rw 1 2
where /dev/sda is your partition you want to mount, /mnt/data is where you want to mount that partition (if you have another location where you want to mount the partition, then change /mnt/data to that and make sure you have the permissions correct (ls -l to show them, post if you doubt), ext3 is the filesystem you formatted the partition with (if its another one then change it to the correct one), auto means the system will mount the partition automagically at boot, user indicates that users can mount it, rw means the partition will be mounted read-write, the 1 is used to indicate the filesystem needs to be dumped at shutdown and the 2 indicates the order in which the filesystem will be checked at reboot.

After you typed in that line, type CTRL O (Control Oh) to output the document (save it) and enter yes to save it to the same name. Then type CTRL X (Control X) to close Nano.

Now run :
Code:
sudo mount -a
and your partition should be accessible to you for read and write operations both at console and in Dolphin. Any doubts, don't hesitate to post.

Kind regards,

Eric
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kubuntu10.04, partition access permissions Bhakta Neal Linux - Newbie 5 01-14-2011 06:13 PM
write access for ntfs partitions in opensuse11.0 plumpb Linux - Newbie 4 11-07-2008 10:59 AM
Write access to windows partitions in kubuntu 5.10 badbunny Ubuntu 4 02-07-2006 02:14 PM
HOWTO - Write Access to NTFS Partitions mac57 Mandriva 19 09-26-2005 01:11 AM
Mounting NTFS partitions with write access Tinky1901 Debian 13 04-09-2005 10:22 AM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration