How do I activate my sdb5 partition and have it stay active continually.

Gene Heskett gene.heskett at
Mon Jan 5 17:31:56 UTC 2009

On Monday 05 January 2009, Steven Vollom wrote:
>> /dev/sda1 /media/sda1 ext3 owner,atime,noauto,rw,nodev,noexec,nosuid 0 0
>> The difference is in the second option, I changed it from "/media" to
>> "/media/sda1".
>I think I screwed up.  I opened the GUI  to look at the partitions in
>Disk&Filesystems.  I expected to find sda1 with a mount point of
>/media/sda1.  It showed as /media/sdb1 instead of /media/sda1.  I then
>opened the Konsole and entered sudo kedit /media/sdb2  to try to get to
>that error.  This is what came on the Konsole:
>steven at Studio25:~$ sudo kedit /media/sdb1
>[sudo] password for steven:
>Error: "/tmp/kde-steven" is owned by uid 1000 instead of uid 0.
>kedit opened to a blank page and in the title bar it reads /media/sdb1 -
>KEdit <2>, like I have two KEdit windows open.

Oops, close that without saving.

>I want to go back and edit the mount point as /media/sda1.

A 'mount point' is nothing more nor less than a directory.  If there is 
nothing in it, it can be removed with an 'rmdir', see the manpage.

If there is something in that directory, probably because something was stored 
there when no media was mounted, then if its precious, mv (see the manpage) 
it to someplace safe.

Now, please understand that if I had a /media/westernsteer directory, I can 
mount any partition visible to the system on that mount point with the mount 

Demo (all as root or sudo'd, and the # sign is the shell prompt, no pound sign 
its the response to the command:

# mkdir /media/westernsteer
# df
(and get:)
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb3            468832020  97119656 347512852  22% /
/dev/sdb1               194442     81057    103346  44% /boot
/dev/sdc1            384578164 298590648  66452076  82% /amandatapes
tmpfs                  2075600         0   2075600   0% /dev/shm

The above to verify where my /boot is (this box is an odd bird), then

# mount -t ext3 /dev/sdb1 /media/westernsteer
# ls /media/westernsteer
config-  initrd-  memdisk                  vmlinuz-
config-   initrd-               vmlinuz-
config-   initrd-     vmlinuz-
config-   initrd-        vmlinuz-
config-2.6.26.gz         initrd-2.6.26.img      vmlinuz-2.6.27-4
config-       initrd-      vmlinuz-
config-       initrd-    vmlinuz-
config-2.6.27-4.gz       initrd-2.6.27-4.img    vmlinuz-
config-       initrd-          vmlinuz-2.6.28
config-       initrd- 
config-       initrd-          
config-2.6.28.gz         initrd-2.6.28.img            
grub                     lost+found                   

It is in fact, my /boot partition, mounted someplace else.  Now, clean up the 
mess I just made:

# umount /media/westernsteer
# rmdir /media/westernsteer
# ls /media/westernsteer
ls: cannot access /media/westernsteer: No such file or directory

Does this help your understanding of how this works?


Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
	"I don't think they could put him in a mental hospital.  On the
	other hand, if he were already in, I don't think they'd let him out."

More information about the kubuntu-users mailing list