LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-20-2009, 10:14 AM   #1
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
mounting


Hello, I just installed Debian 4.0r5 on the following partitions

hda1 5 gig swap ( ext3 )
hda2 15 gig / ( ext3 )
hda3 38 gig /home ( ext3 )

on completion of installation i notice the home partition is / volume is attached to /. Does that mean Debian leaves it to the user to attach and mount the home to hda2???

I also have two external usb drives, one with reiserfs file system and the other with ntfs. I also have an cowon music player which is seen as a usb pen drive.

I can currently use gui to read from the reiserfs drive and cowon drive.

I have my mail from old system backed up on the reiserfs drive. Since the .thunderbird folder is hidden I am in a bind. Debian is not allowing me to log into gnome as root. Which means i have to do the restore in the console.

*************************************************************************
fdisk -l result
************************************************************************

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

Device Boot Start End Blocks Id System
/dev/hda1 1 608 4883728+ 82 Linux swap / Solaris
/dev/hda2 * 609 3040 19535040 83 Linux
/dev/hda3 3041 7296 34186320 83 Linux

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 19457 156288321 83 Linux

Disk /dev/sdb: 16.5 GB, 16542334976 bytes
64 heads, 32 sectors/track, 15776 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1 ? 379950 937327 570754815+ 72 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 82368 1027695 968014120 65 Novell Netware 386
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 913029 1858355 968014096 79 Unknown
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 1409025 1409052 27749+ d Unknown
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

*************************************************************************

Please note the ntfs drive is not connected. The reiserfs drive is sda1.
Do I have to manually attach it each time i want to use it???

Last edited by siawash; 02-20-2009 at 10:17 AM.
 
Old 02-20-2009, 10:33 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,249

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
please post the output cat /dev/fstab
 
Old 02-20-2009, 10:40 AM   #3
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
This is what i get from that command:

cat /dev/fstab
cat: /dev/fstab: No such file or directory
 
Old 02-20-2009, 10:44 AM   #4
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Would I eventually have to do:


mount /dev/hda2 /home
 
Old 02-20-2009, 11:07 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,202

Rep: Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542
No but I assume that the home partition was created when you installed debian.

BTW its /etc/fstab and not /dev/fstab. In a nutshell all filesystems get mounted under / and the installer would of automatically configured the fstab to mount all partitions created. Existing partition may or may not be automatically configured to be mounted. You can see what is mounted via the mount command without options.

In addition your sdb drive looks corrupted or may not be partitioned/formatted.
 
Old 02-20-2009, 11:16 AM   #6
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Here is the output:

<file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
siawash@che:~$
 
Old 02-20-2009, 11:21 AM   #7
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
As you saw there was no mention of /home or sda1 drive
 
Old 02-20-2009, 11:23 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,249

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Quote:
Originally Posted by siawash View Post
Here is the output:

<file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
siawash@che:~$
add a line to /etc/fstab like:
Code:
/dev/sda1 /wherever/you/want   reiserfs  defaults 0 0
also, couldnt tell from your original post if this was a problem for you:
Code:
/dev/hda3 /home   ext3  defaults 0 0

Last edited by schneidz; 02-20-2009 at 11:26 AM.
 
Old 02-20-2009, 11:45 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,202

Rep: Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542
Was hda3 an existing partition from a previous installation?
 
Old 02-20-2009, 11:58 AM   #10
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
yes, the this was from the slackware home partition which I over wrote. I just formatted and installed Deb over where Slack used to be. I had already backed up /home.

The /hda3 partion is currently not accessible. So shall i go ahead and add

/dev/hda3 /home ext3 defaults 0 0

to my fstab

Last edited by siawash; 02-20-2009 at 12:08 PM.
 
Old 02-20-2009, 12:06 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,202

Rep: Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542
And what would you like to do with the hda3 partition? As suggested you can mount it anywhere, just create a directory.
 
Old 02-20-2009, 12:14 PM   #12
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I want to attach hda3 to an existing /home partition not shown in fdisk or fstab but I know I created one during installation.

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

Device Boot Start End Blocks Id System
/dev/hda1 1 608 4883728+ 82 Linux swap / Solaris
/dev/hda2 * 609 3040 19535040 83 Linux
/dev/hda3 3041 7296 34186320 83 Linux

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 19457 156288321 83 Linux
 
Old 02-20-2009, 02:31 PM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,249

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
are you able to automount your reiserfs ?

for your home partition (you mite need to be root):
Code:
mv /home /home-bak
mkdir /home
mount /dev/hda3 /home
 
Old 02-20-2009, 06:17 PM   #14
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I already had a /home directory so I did

mount /dev/hda3 /home

I checked properties of my /home folder in gnome and see it has changed from / which is hda2 to hda3 which is attached to hda3.

But when I do cat /etc/fstab i still do not see hda3...


sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
che:/home/siawash#
 
Old 02-21-2009, 07:41 AM   #15
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I made a major oversight. Even though I did

mount /dev/hda3 /home

the properties of my /home folder shows volume as /

So mounting hda3 to to /home has not attached /home to hda3
 
  


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
mounting a mount (recursive mounting?) fudam Linux - General 6 10-16-2006 05:50 PM
mounting digital camera, mounting in general? lugoteehalt Linux - Hardware 6 08-29-2006 12:52 PM
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 07:34 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:37 AM.

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