LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 06-14-2015, 06:06 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Only one partition mounts


I have 2 partitions on my sdb volume.

And both UUIDs are in fstab.

Yet only one mounts on bootup.

Why is that ?
 
Old 06-14-2015, 06:20 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Please provide full output of following commands:
Code:
lsblk -o name,uuid,fstype,mountpoint
cat /etc/fstab
Also, is sdb a fixed or removable device?

Last edited by Didier Spaier; 06-14-2015 at 06:34 PM.
 
Old 06-14-2015, 06:57 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
sdb is a usb external drive.

Code:
# lsblk
bash: lsblk: command not found

# blkid

/dev/sda1: LABEL="Windows_XP_Partition" UUID="5E1006FC1006DAC3" TYPE="ntfs" 
/dev/sda2: UUID="b08b8b0f-eda2-47dc-8fd8-92bd2936d800" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda4: LABEL="PUPPEX_TAHR" UUID="3fb46150-be16-4301-a770-0f110f769d50" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda5: LABEL="Puppy_5.9.3_SDA5" UUID="ae03ec69-b09e-48c2-815d-58a494be70cc" TYPE="ext3" 
/dev/sdb1: LABEL="Backup_Toshiba_Partition" UUID="9C24D67524D651BE" TYPE="ntfs" 
/dev/sdb5: LABEL="Toshiba_Partition_Empty" UUID="01D050F76A0DD520" TYPE="ntfs" 

# cat /etc/fstab

UUID="dc2277e3-04e8-4e51-84fa-1f0472a4f9e6"     /               ext3     defaults                           0 1
none                                            /proc           proc     defaults              				0 0
none          									/sys            sysfs    defaults               		    0 0
none          									/dev/pts        devpts   gid=2,mode=620         			0 0
/dev/fd0     								    /mnt/floppy     auto     noauto,rw              			0 0
none         									/dev/shm        tmpfs    defaults,size=1G       			0 0 
UUID="5E1006FC1006DAC3"  						/media/windows/ ntfs     defaults               			0 0 
UUID="59043662-c655-4ed4-b49b-300c579bb8b8"  	/               ext3     defaults               			0 1 
UUID="30F88E78F88E3BDA"                         /               ntfs     defaults               			0 1
UUID="ae03ec69-b09e-48c2-815d-58a494be70cc"     /               ext3     defaults,relatime,data=writeback   0 0    
UUID="1b4043fa-c89d-4fb2-ba50-6207825"          /               ext3     defaults                           0 1
UUID="01D050F76A0DD520"							/               ntfs     defaults                           0 0
#                                                                                                defaults                           0 0#
 
Old 06-14-2015, 08:36 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can not have all of the file systems being mounted to /. Create some directory /media/xyz (make sure xyz is unique for each like you did for sda1 ) for sdb1 and sdb5. Also make sure there is a line feed at the end of the last line. While editing the fstab file move the cursor past the last character of the last line and press the enter key.

Also comment out or delete the file systems in the fstab file that are not being used.

Last edited by michaelk; 06-14-2015 at 09:38 PM.
 
Old 06-14-2015, 09:32 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
As Michaelk points out, each partition needs its own distinct mount point.

In case it helps, here's a bit of my /etc/fstab. Note the "auto" switches on the partitions on my external HDD.

Code:
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
/dev/sda3        /home            ext4        defaults         1   2
UUID=1655a198-15a7-471f-9e99-e3fc9fd92ca0  /media/sdb1  ext3   rw,user,auto      0  1
UUID=7900ade7-de36-41e5-88b5-2d7aaa8adcd4  /media/sdb5  ext3   rw,user,auto       0  1

Last edited by frankbell; 06-14-2015 at 09:35 PM.
 
Old 06-14-2015, 09:40 PM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
All it took was one change.

Quote:
UUID="01D050F76A0DD520" /Linux_Files ntfs defaults 0 0
 
Old 06-14-2015, 09:50 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Did you also want to mount sdb1?

As stated in my previous post to avoid confusion and to clean up fstab I would delete the following but you can comment them out if desired.
Code:
UUID="dc2277e3-04e8-4e51-84fa-1f0472a4f9e6"     /               ext3     defaults 
UUID="59043662-c655-4ed4-b49b-300c579bb8b8"  	/               ext3     defaults 
UUID="30F88E78F88E3BDA"                         /               ntfs     defaults
UUID="1b4043fa-c89d-4fb2-ba50-6207825"          /               ext3     defaults

Last edited by michaelk; 06-14-2015 at 10:25 PM.
 
Old 06-14-2015, 10:21 PM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
The mount statement is not working.

Is there a way to get any pen drives inserted to auto mount ?

(I am talking pen drives inserted after system has booted.)

Quote:
cd /
cd root/Downloads
mount -a
/bin/./unetbootin installtype=USB targetdrive=/dev/sdc1

Last edited by Fixit7; 06-14-2015 at 10:23 PM.
 
Old 06-14-2015, 10:36 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
In addition your /etc/fstab is even more wrong because the UUID of partition /dev/sdb1 seen in output of blkid is 9C24D67524D651BE but we don't see this UUID in /etc/fstab. You should have checked that yourself before posting and still have only one partition in /dev/sdb that can be mounted, so the title of this thread is misleading.

To make sure everything is fixed I suggest that you:
  • post the new output of /etc/fstab
  • issue the command "mount -a" (typed as root, of course) then post the output of "df -h"

This will allow use to see and indicate you the remaining corrections that could be needed.

PS as already pointed out the command lsblk is included is the package util-linux alongside blkid, so you should have it. To check, please post the output of "whereis lsblk".

Last edited by Didier Spaier; 06-14-2015 at 10:54 PM.
 
Old 06-15-2015, 12:14 AM   #10
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I am human, not a cyborg.

After rebooting 5 times, ALL partitions are mounting.

Code:
UUID="01D050F76A0DD520"							/Linux_Files    ntfs     defaults                           0 0
UUID="9C24D67524D651BE"							/               ntfs     defaults                           0 0
UUID="D5DC-6345"                                /      			fat32    defaults                           0 0

Last edited by Fixit7; 06-15-2015 at 12:21 AM.
 
Old 06-15-2015, 03:51 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
All partitions are mounting? You still have multiple file systems being mounted to /.

Post the output of the mount command (without any options).
 
Old 06-15-2015, 11:02 AM   #12
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I cleaned it up. But sdb5 is not mounting.

Quote:
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0
none /dev/shm tmpfs defaults,size=1G 0 0
UUID="5E1006FC1006DAC3" /media/windows/ ntfs defaults 0 0
UUID="ae03ec69-b09e-48c2-815d-58a494be70cc" /my-applications ext3 defaults,relatime,data=writeback 0 0
UUID="01D050F76A0DD520" /Linux_Files ntfs defaults 0 0
UUID="9C24D67524D651BE" /SDA5_DO_NOT_DELETE ntfs defaults 0 0
UUID="D5DC-6345" / fat32 defaults 0 0
Results of mount.

Quote:
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1505304k,nr_inodes=218981,mode=755)
none on /proc type proc (rw,relatime)
none on /dev/pts type devpts (rw,relatime,gid=2,mode=620)
none on /sys type sysfs (rw,relatime)
shmfs on /dev/shm type tmpfs (rw,relatime,size=747888k)
tmpfs on /tmp type tmpfs (rw,relatime,size=747888k)
none on /dev/shm type tmpfs (rw,relatime,size=1048576k)
/dev/sda4 on /mnt/sda4 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb1 on /mnt/sdb1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda1 on /mnt/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda2 on /mnt/sda2 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb5 on /mnt/sdb5 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
 
Old 06-15-2015, 12:46 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Should of been the 1st question asked...

Code:
/dev/sda4 on /mnt/sda4 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb1 on /mnt/sdb1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda1 on /mnt/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda2 on /mnt/sda2 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb5 on /mnt/sdb5 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
It appears that your file systems are being automatically mounted and that your UUID entries are not. Did you create the mount point directories? It is possible to create udev rules to have them mounted to a particular directory.

Code:
UUID="D5DC-6345" / fat32 defaults 0 0
Again, only the root file system is mounted to /. FYI many distributions will fail to boot if it can not find a file system in the fstab file that is supposed to automount.
 
Old 06-15-2015, 02:19 PM   #14
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I created new directories or used existing directories as the mount point.

sda5 is empty except for a text file.

I used to thunar to create a text file but it says it is a folder. ??

Does Linux not distinguish between a folder and a text file when it come to determining the file type ?

Last edited by Fixit7; 06-15-2015 at 02:23 PM.
 
Old 06-15-2015, 02:24 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Are you booting from a live USB?

Last edited by michaelk; 06-15-2015 at 02:28 PM.
 
  


Reply



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
[SOLVED] "data=writeback" in fstab mounts root partition as "read-only" holister Linux - General 7 11-28-2011 09:47 PM
fstab - FAT32 partition always mounts read only greengrocer Linux - Newbie 9 12-08-2008 04:38 AM
grub mounts wrong partition linuxer12 Linux - General 10 11-07-2007 03:09 AM
root partition mounts ro iceman47 Linux - General 2 01-21-2004 06:57 AM
Compiled RH7.3 to read WinXP NTFS partition, mounts in Console, but can't mount fstab BlackDogg Linux - Newbie 20 08-05-2002 11:15 PM

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

All times are GMT -5. The time now is 04:38 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
Open Source Consulting | Domain Registration